]>
Commit | Line | Data |
---|---|---|
e6056257 RD |
1 | /* |
2 | * FILE : src/mac/gdi.cpp | |
3 | * | |
4 | * This file was automatically generated by : | |
5 | * Simplified Wrapper and Interface Generator (SWIG) | |
6 | * Version 1.1 (Build 883) | |
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) __declspec(dllexport) a | |
28 | # else | |
29 | # if defined(__BORLANDC__) | |
30 | # define SWIGEXPORT(a) a _export | |
31 | # else | |
32 | # define SWIGEXPORT(a) a | |
33 | # endif | |
34 | # endif | |
35 | #else | |
36 | # define SWIGEXPORT(a) a | |
37 | #endif | |
38 | ||
39 | #include "Python.h" | |
40 | ||
41 | #ifdef __cplusplus | |
42 | extern "C" { | |
43 | #endif | |
44 | ||
45 | extern void SWIG_MakePtr(char *, void *, char *); | |
46 | extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *)); | |
47 | extern char *SWIG_GetPtr(char *, void **, char *); | |
48 | extern char *SWIG_GetPtrObj(PyObject *, void **, char *); | |
49 | extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); | |
50 | extern PyObject *SWIG_newvarlink(void); | |
51 | #ifdef __cplusplus | |
52 | } | |
53 | #endif | |
54 | #define SWIG_init initgdic | |
55 | ||
56 | #define SWIG_name "gdic" | |
57 | ||
58 | #include "helpers.h" | |
59 | #include <wx/imaglist.h> | |
e6056257 RD |
60 | #include <wx/fontmap.h> |
61 | #include <wx/fontenc.h> | |
62 | #include <wx/fontmap.h> | |
63 | #include <wx/fontutil.h> | |
c3bfa1cb | 64 | #include <wx/dcbuffer.h> |
e6056257 RD |
65 | |
66 | ||
67 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
68 | PyObject* o2; | |
69 | PyObject* o3; | |
70 | ||
71 | if (!target) { | |
72 | target = o; | |
73 | } else if (target == Py_None) { | |
74 | Py_DECREF(Py_None); | |
75 | target = o; | |
76 | } else { | |
77 | if (!PyTuple_Check(target)) { | |
78 | o2 = target; | |
79 | target = PyTuple_New(1); | |
80 | PyTuple_SetItem(target, 0, o2); | |
81 | } | |
82 | o3 = PyTuple_New(1); | |
83 | PyTuple_SetItem(o3, 0, o); | |
84 | ||
85 | o2 = target; | |
86 | target = PySequence_Concat(o2, o3); | |
87 | Py_DECREF(o2); | |
88 | Py_DECREF(o3); | |
89 | } | |
90 | return target; | |
91 | } | |
c3bfa1cb RD |
92 | |
93 | // Put some wx default wxChar* values into wxStrings. | |
94 | static const wxString wxPyEmptyString(wxT("")); | |
e6056257 RD |
95 | // Implementations of some alternate "constructors" |
96 | ||
97 | wxBitmap* wxEmptyBitmap(int width, int height, int depth=-1) { | |
98 | return new wxBitmap(width, height, depth); | |
99 | } | |
100 | ||
101 | static char** ConvertListOfStrings(PyObject* listOfStrings) { | |
102 | char** cArray = NULL; | |
103 | int count; | |
104 | ||
105 | if (!PyList_Check(listOfStrings)) { | |
106 | PyErr_SetString(PyExc_TypeError, "Expected a list of strings."); | |
107 | return NULL; | |
108 | } | |
109 | count = PyList_Size(listOfStrings); | |
110 | cArray = new char*[count]; | |
111 | ||
112 | for(int x=0; x<count; x++) { | |
113 | // TODO: Need some validation and error checking here | |
114 | cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x)); | |
115 | } | |
116 | return cArray; | |
117 | } | |
118 | ||
119 | ||
120 | wxBitmap* wxBitmapFromXPMData(PyObject* listOfStrings) { | |
121 | char** cArray = NULL; | |
122 | wxBitmap* bmp; | |
123 | ||
124 | cArray = ConvertListOfStrings(listOfStrings); | |
125 | if (! cArray) | |
126 | return NULL; | |
127 | bmp = new wxBitmap(cArray); | |
128 | delete [] cArray; | |
129 | return bmp; | |
130 | } | |
131 | ||
132 | ||
133 | wxBitmap* wxBitmapFromIcon(const wxIcon& icon) { | |
134 | return new wxBitmap(icon); | |
135 | } | |
136 | ||
137 | ||
138 | wxBitmap* wxBitmapFromBits(char* bits, int width, int height, int depth = 1 ) { | |
139 | return new wxBitmap(bits, width, height, depth); | |
140 | } | |
141 | ||
142 | ||
143 | // #ifdef __WXMSW__ | |
144 | // wxBitmap* wxBitmapFromData(PyObject* data, long type, | |
145 | // int width, int height, int depth = 1) { | |
146 | // if (! PyString_Check(data)) { | |
147 | // PyErr_SetString(PyExc_TypeError, "Expected string object"); | |
148 | // return NULL; | |
149 | // } | |
150 | // return new wxBitmap((void*)PyString_AsString(data), type, width, height, depth); | |
151 | // } | |
152 | // #endif | |
153 | ||
154 | wxMask* wxMaskColour(const wxBitmap& bitmap, const wxColour& colour) { | |
155 | return new wxMask(bitmap, colour); | |
156 | } | |
157 | // Implementations of some alternate "constructors" | |
158 | wxIcon* wxEmptyIcon() { | |
159 | return new wxIcon(); | |
160 | } | |
161 | ||
162 | wxIcon* wxIconFromXPMData(PyObject* listOfStrings) { | |
163 | char** cArray = NULL; | |
164 | wxIcon* icon; | |
165 | ||
166 | cArray = ConvertListOfStrings(listOfStrings); | |
167 | if (! cArray) | |
168 | return NULL; | |
169 | icon = new wxIcon(cArray); | |
170 | delete [] cArray; | |
171 | return icon; | |
172 | } | |
da0ddbd6 RD |
173 | |
174 | wxIcon* wxIconFromBitmap(const wxBitmap& bmp) { | |
175 | wxIcon* icon = new wxIcon(); | |
176 | icon->CopyFromBitmap(bmp); | |
177 | return icon; | |
178 | } | |
e6056257 RD |
179 | // Alternate 'constructor' |
180 | wxCursor* wxPyStockCursor(int id) { | |
181 | return new wxCursor(id); | |
182 | } | |
183 | // Alternate 'constructor' | |
184 | wxColour* wxNamedColour(const wxString& colorName) { | |
185 | return new wxColour(colorName); | |
186 | } | |
187 | ||
188 | class wxPyPen : public wxPen { | |
189 | public: | |
190 | wxPyPen(wxColour& colour, int width=1, int style=wxSOLID) | |
191 | : wxPen(colour, width, style) | |
192 | { m_dash = NULL; } | |
193 | ~wxPyPen() { | |
194 | if (m_dash) | |
80cb3dbc | 195 | delete [] m_dash; |
e6056257 RD |
196 | } |
197 | ||
198 | void SetDashes(int nb_dashes, const wxDash *dash) { | |
80cb3dbc RD |
199 | if (m_dash) |
200 | delete [] m_dash; | |
e6056257 | 201 | m_dash = new wxDash[nb_dashes]; |
80cb3dbc | 202 | for (int i=0; i<nb_dashes; i++) { |
e6056257 | 203 | m_dash[i] = dash[i]; |
80cb3dbc | 204 | } |
e6056257 RD |
205 | wxPen::SetDashes(nb_dashes, m_dash); |
206 | } | |
207 | ||
208 | private: | |
209 | wxDash* m_dash; | |
210 | }; | |
211 | ||
212 | static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) { | |
213 | *x1 = dc->MinX(); | |
214 | *y1 = dc->MinY(); | |
215 | *x2 = dc->MaxX(); | |
216 | *y2 = dc->MaxY(); | |
217 | } | |
218 | // Alternate 'constructor' | |
219 | wxMemoryDC* wxMemoryDCFromDC(wxDC* oldDC) { | |
220 | return new wxMemoryDC(oldDC); | |
221 | } | |
222 | ||
223 | #if 0 | |
224 | extern wxFont * wxNORMAL_FONT; | |
225 | extern wxFont * wxSMALL_FONT; | |
226 | extern wxFont * wxITALIC_FONT; | |
227 | extern wxFont * wxSWISS_FONT; | |
228 | extern wxPen * wxRED_PEN; | |
229 | extern wxPen * wxCYAN_PEN; | |
230 | extern wxPen * wxGREEN_PEN; | |
231 | extern wxPen * wxBLACK_PEN; | |
232 | extern wxPen * wxWHITE_PEN; | |
233 | extern wxPen * wxTRANSPARENT_PEN; | |
234 | extern wxPen * wxBLACK_DASHED_PEN; | |
235 | extern wxPen * wxGREY_PEN; | |
236 | extern wxPen * wxMEDIUM_GREY_PEN; | |
237 | extern wxPen * wxLIGHT_GREY_PEN; | |
238 | extern wxBrush * wxBLUE_BRUSH; | |
239 | extern wxBrush * wxGREEN_BRUSH; | |
240 | extern wxBrush * wxWHITE_BRUSH; | |
241 | extern wxBrush * wxBLACK_BRUSH; | |
242 | extern wxBrush * wxTRANSPARENT_BRUSH; | |
243 | extern wxBrush * wxCYAN_BRUSH; | |
244 | extern wxBrush * wxRED_BRUSH; | |
245 | extern wxBrush * wxGREY_BRUSH; | |
246 | extern wxBrush * wxMEDIUM_GREY_BRUSH; | |
247 | extern wxBrush * wxLIGHT_GREY_BRUSH; | |
248 | extern wxColour * wxBLACK; | |
249 | extern wxColour * wxWHITE; | |
250 | extern wxColour * wxRED; | |
251 | extern wxColour * wxBLUE; | |
252 | extern wxColour * wxGREEN; | |
253 | extern wxColour * wxCYAN; | |
254 | extern wxColour * wxLIGHT_GREY; | |
255 | extern wxCursor * wxSTANDARD_CURSOR; | |
256 | extern wxCursor * wxHOURGLASS_CURSOR; | |
257 | extern wxCursor * wxCROSS_CURSOR; | |
258 | extern wxBitmap wxNullBitmap; | |
259 | extern wxIcon wxNullIcon; | |
260 | extern wxCursor wxNullCursor; | |
261 | extern wxPen wxNullPen; | |
262 | extern wxBrush wxNullBrush; | |
263 | extern wxPalette wxNullPalette; | |
264 | extern wxFont wxNullFont; | |
265 | extern wxColour wxNullColour; | |
266 | extern wxFontList * wxTheFontList; | |
267 | extern wxPenList * wxThePenList; | |
268 | extern wxBrushList * wxTheBrushList; | |
269 | extern wxColourDatabase * wxTheColourDatabase; | |
270 | ||
271 | #endif | |
272 | #ifdef __cplusplus | |
273 | extern "C" { | |
274 | #endif | |
275 | static PyObject *_wrap_wxEmptyBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
276 | PyObject * _resultobj; | |
277 | wxBitmap * _result; | |
278 | int _arg0; | |
279 | int _arg1; | |
280 | int _arg2 = (int ) -1; | |
281 | char *_kwnames[] = { "width","height","depth", NULL }; | |
282 | char _ptemp[128]; | |
283 | ||
284 | self = self; | |
285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"ii|i:wxEmptyBitmap",_kwnames,&_arg0,&_arg1,&_arg2)) | |
286 | return NULL; | |
287 | { | |
0e2ff151 | 288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 289 | _result = (wxBitmap *)wxEmptyBitmap(_arg0,_arg1,_arg2); |
e6056257 | 290 | |
0e2ff151 | 291 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
292 | if (PyErr_Occurred()) return NULL; |
293 | } if (_result) { | |
294 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
295 | _resultobj = Py_BuildValue("s",_ptemp); | |
296 | } else { | |
297 | Py_INCREF(Py_None); | |
298 | _resultobj = Py_None; | |
299 | } | |
300 | return _resultobj; | |
301 | } | |
302 | ||
303 | static PyObject *_wrap_wxBitmapFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
304 | PyObject * _resultobj; | |
305 | wxBitmap * _result; | |
306 | PyObject * _arg0; | |
307 | PyObject * _obj0 = 0; | |
308 | char *_kwnames[] = { "listOfStrings", NULL }; | |
309 | char _ptemp[128]; | |
310 | ||
311 | self = self; | |
312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapFromXPMData",_kwnames,&_obj0)) | |
313 | return NULL; | |
314 | { | |
315 | _arg0 = _obj0; | |
316 | } | |
317 | { | |
0e2ff151 | 318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 319 | _result = (wxBitmap *)wxBitmapFromXPMData(_arg0); |
e6056257 | 320 | |
0e2ff151 | 321 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
322 | if (PyErr_Occurred()) return NULL; |
323 | } if (_result) { | |
324 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
325 | _resultobj = Py_BuildValue("s",_ptemp); | |
326 | } else { | |
327 | Py_INCREF(Py_None); | |
328 | _resultobj = Py_None; | |
329 | } | |
330 | return _resultobj; | |
331 | } | |
332 | ||
333 | static PyObject *_wrap_wxBitmapFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
334 | PyObject * _resultobj; | |
335 | wxBitmap * _result; | |
336 | wxIcon * _arg0; | |
337 | PyObject * _argo0 = 0; | |
338 | char *_kwnames[] = { "icon", NULL }; | |
339 | char _ptemp[128]; | |
340 | ||
341 | self = self; | |
342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapFromIcon",_kwnames,&_argo0)) | |
343 | return NULL; | |
344 | if (_argo0) { | |
345 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
346 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
347 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapFromIcon. Expected _wxIcon_p."); | |
348 | return NULL; | |
349 | } | |
350 | } | |
351 | { | |
0e2ff151 | 352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 353 | _result = (wxBitmap *)wxBitmapFromIcon(*_arg0); |
e6056257 | 354 | |
0e2ff151 | 355 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
356 | if (PyErr_Occurred()) return NULL; |
357 | } if (_result) { | |
358 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
359 | _resultobj = Py_BuildValue("s",_ptemp); | |
360 | } else { | |
361 | Py_INCREF(Py_None); | |
362 | _resultobj = Py_None; | |
363 | } | |
364 | return _resultobj; | |
365 | } | |
366 | ||
367 | static PyObject *_wrap_wxBitmapFromBits(PyObject *self, PyObject *args, PyObject *kwargs) { | |
368 | PyObject * _resultobj; | |
369 | wxBitmap * _result; | |
370 | char * _arg0; | |
371 | int _arg1; | |
372 | int _arg2; | |
373 | int _arg3 = (int ) 1; | |
374 | char *_kwnames[] = { "bits","width","height","depth", NULL }; | |
375 | char _ptemp[128]; | |
376 | ||
377 | self = self; | |
378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"sii|i:wxBitmapFromBits",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3)) | |
379 | return NULL; | |
380 | { | |
0e2ff151 | 381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 382 | _result = (wxBitmap *)wxBitmapFromBits(_arg0,_arg1,_arg2,_arg3); |
e6056257 | 383 | |
0e2ff151 | 384 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
385 | if (PyErr_Occurred()) return NULL; |
386 | } if (_result) { | |
387 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
388 | _resultobj = Py_BuildValue("s",_ptemp); | |
389 | } else { | |
390 | Py_INCREF(Py_None); | |
391 | _resultobj = Py_None; | |
392 | } | |
393 | return _resultobj; | |
394 | } | |
395 | ||
396 | static PyObject *_wrap_wxMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
397 | PyObject * _resultobj; | |
398 | wxMask * _result; | |
399 | wxBitmap * _arg0; | |
400 | wxColour * _arg1; | |
401 | PyObject * _argo0 = 0; | |
402 | wxColour temp; | |
403 | PyObject * _obj1 = 0; | |
404 | char *_kwnames[] = { "bitmap","colour", NULL }; | |
405 | char _ptemp[128]; | |
406 | ||
407 | self = self; | |
408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMaskColour",_kwnames,&_argo0,&_obj1)) | |
409 | return NULL; | |
410 | if (_argo0) { | |
411 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
412 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
413 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMaskColour. Expected _wxBitmap_p."); | |
414 | return NULL; | |
415 | } | |
416 | } | |
417 | { | |
418 | _arg1 = &temp; | |
419 | if (! wxColour_helper(_obj1, &_arg1)) | |
420 | return NULL; | |
421 | } | |
422 | { | |
0e2ff151 | 423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 424 | _result = (wxMask *)wxMaskColour(*_arg0,*_arg1); |
e6056257 | 425 | |
0e2ff151 | 426 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
427 | if (PyErr_Occurred()) return NULL; |
428 | } if (_result) { | |
429 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p"); | |
430 | _resultobj = Py_BuildValue("s",_ptemp); | |
431 | } else { | |
432 | Py_INCREF(Py_None); | |
433 | _resultobj = Py_None; | |
434 | } | |
435 | return _resultobj; | |
436 | } | |
437 | ||
438 | static PyObject *_wrap_wxEmptyIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
439 | PyObject * _resultobj; | |
440 | wxIcon * _result; | |
441 | char *_kwnames[] = { NULL }; | |
442 | char _ptemp[128]; | |
443 | ||
444 | self = self; | |
445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxEmptyIcon",_kwnames)) | |
446 | return NULL; | |
447 | { | |
0e2ff151 | 448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 449 | _result = (wxIcon *)wxEmptyIcon(); |
e6056257 | 450 | |
0e2ff151 | 451 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
452 | if (PyErr_Occurred()) return NULL; |
453 | } if (_result) { | |
454 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p"); | |
455 | _resultobj = Py_BuildValue("s",_ptemp); | |
456 | } else { | |
457 | Py_INCREF(Py_None); | |
458 | _resultobj = Py_None; | |
459 | } | |
460 | return _resultobj; | |
461 | } | |
462 | ||
463 | static PyObject *_wrap_wxIconFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
464 | PyObject * _resultobj; | |
465 | wxIcon * _result; | |
466 | PyObject * _arg0; | |
467 | PyObject * _obj0 = 0; | |
468 | char *_kwnames[] = { "listOfStrings", NULL }; | |
469 | char _ptemp[128]; | |
470 | ||
471 | self = self; | |
472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIconFromXPMData",_kwnames,&_obj0)) | |
473 | return NULL; | |
474 | { | |
475 | _arg0 = _obj0; | |
476 | } | |
477 | { | |
0e2ff151 | 478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 479 | _result = (wxIcon *)wxIconFromXPMData(_arg0); |
e6056257 | 480 | |
0e2ff151 | 481 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
482 | if (PyErr_Occurred()) return NULL; |
483 | } if (_result) { | |
484 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p"); | |
485 | _resultobj = Py_BuildValue("s",_ptemp); | |
486 | } else { | |
487 | Py_INCREF(Py_None); | |
488 | _resultobj = Py_None; | |
489 | } | |
490 | return _resultobj; | |
491 | } | |
492 | ||
da0ddbd6 RD |
493 | static PyObject *_wrap_wxIconFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { |
494 | PyObject * _resultobj; | |
495 | wxIcon * _result; | |
496 | wxBitmap * _arg0; | |
497 | PyObject * _argo0 = 0; | |
498 | char *_kwnames[] = { "bmp", NULL }; | |
499 | char _ptemp[128]; | |
500 | ||
501 | self = self; | |
502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIconFromBitmap",_kwnames,&_argo0)) | |
503 | return NULL; | |
504 | if (_argo0) { | |
505 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
506 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
507 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIconFromBitmap. Expected _wxBitmap_p."); | |
508 | return NULL; | |
509 | } | |
510 | } | |
511 | { | |
512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6824d4f9 | 513 | _result = (wxIcon *)wxIconFromBitmap(*_arg0); |
da0ddbd6 RD |
514 | |
515 | wxPyEndAllowThreads(__tstate); | |
516 | if (PyErr_Occurred()) return NULL; | |
517 | } if (_result) { | |
518 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p"); | |
519 | _resultobj = Py_BuildValue("s",_ptemp); | |
520 | } else { | |
521 | Py_INCREF(Py_None); | |
522 | _resultobj = Py_None; | |
523 | } | |
524 | return _resultobj; | |
525 | } | |
526 | ||
e6056257 RD |
527 | static PyObject *_wrap_wxStockCursor(PyObject *self, PyObject *args, PyObject *kwargs) { |
528 | PyObject * _resultobj; | |
529 | wxCursor * _result; | |
530 | int _arg0; | |
531 | char *_kwnames[] = { "id", NULL }; | |
532 | char _ptemp[128]; | |
533 | ||
534 | self = self; | |
535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxStockCursor",_kwnames,&_arg0)) | |
536 | return NULL; | |
537 | { | |
0e2ff151 | 538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 539 | _result = (wxCursor *)wxPyStockCursor(_arg0); |
e6056257 | 540 | |
0e2ff151 | 541 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
542 | if (PyErr_Occurred()) return NULL; |
543 | } if (_result) { | |
544 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCursor_p"); | |
545 | _resultobj = Py_BuildValue("s",_ptemp); | |
546 | } else { | |
547 | Py_INCREF(Py_None); | |
548 | _resultobj = Py_None; | |
549 | } | |
550 | return _resultobj; | |
551 | } | |
552 | ||
553 | static PyObject *_wrap_wxNamedColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
554 | PyObject * _resultobj; | |
555 | wxColour * _result; | |
556 | wxString * _arg0; | |
557 | PyObject * _obj0 = 0; | |
558 | char *_kwnames[] = { "colorName", NULL }; | |
559 | char _ptemp[128]; | |
560 | ||
561 | self = self; | |
562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNamedColour",_kwnames,&_obj0)) | |
563 | return NULL; | |
564 | { | |
6824d4f9 RD |
565 | _arg0 = wxString_in_helper(_obj0); |
566 | if (_arg0 == NULL) | |
e6056257 | 567 | return NULL; |
e6056257 RD |
568 | } |
569 | { | |
0e2ff151 | 570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 571 | _result = (wxColour *)wxNamedColour(*_arg0); |
e6056257 | 572 | |
0e2ff151 | 573 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
574 | if (PyErr_Occurred()) return NULL; |
575 | } if (_result) { | |
576 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
577 | _resultobj = Py_BuildValue("s",_ptemp); | |
578 | } else { | |
579 | Py_INCREF(Py_None); | |
580 | _resultobj = Py_None; | |
581 | } | |
582 | { | |
583 | if (_obj0) | |
584 | delete _arg0; | |
585 | } | |
586 | return _resultobj; | |
587 | } | |
588 | ||
589 | static PyObject *_wrap_wxMemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
590 | PyObject * _resultobj; | |
591 | wxMemoryDC * _result; | |
592 | wxDC * _arg0; | |
593 | PyObject * _argo0 = 0; | |
594 | char *_kwnames[] = { "oldDC", NULL }; | |
595 | char _ptemp[128]; | |
596 | ||
597 | self = self; | |
598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMemoryDCFromDC",_kwnames,&_argo0)) | |
599 | return NULL; | |
600 | if (_argo0) { | |
601 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
602 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
603 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMemoryDCFromDC. Expected _wxDC_p."); | |
604 | return NULL; | |
605 | } | |
606 | } | |
607 | { | |
0e2ff151 | 608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 609 | _result = (wxMemoryDC *)wxMemoryDCFromDC(_arg0); |
e6056257 | 610 | |
0e2ff151 | 611 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
612 | if (PyErr_Occurred()) return NULL; |
613 | } if (_result) { | |
614 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMemoryDC_p"); | |
615 | _resultobj = Py_BuildValue("s",_ptemp); | |
616 | } else { | |
617 | Py_INCREF(Py_None); | |
618 | _resultobj = Py_None; | |
619 | } | |
620 | return _resultobj; | |
621 | } | |
622 | ||
623 | static int _wrap_wxNORMAL_FONT_set(PyObject *val) { | |
624 | ||
625 | PyErr_SetString(PyExc_TypeError,"Variable wxNORMAL_FONT is read-only."); | |
626 | return 1; | |
627 | } | |
628 | ||
629 | static PyObject *_wrap_wxNORMAL_FONT_get() { | |
630 | PyObject * pyobj; | |
631 | char ptemp[128]; | |
632 | ||
633 | SWIG_MakePtr(ptemp, (char *) wxNORMAL_FONT,"_wxFont_p"); | |
634 | pyobj = PyString_FromString(ptemp); | |
635 | return pyobj; | |
636 | } | |
637 | ||
638 | static int _wrap_wxSMALL_FONT_set(PyObject *val) { | |
639 | ||
640 | PyErr_SetString(PyExc_TypeError,"Variable wxSMALL_FONT is read-only."); | |
641 | return 1; | |
642 | } | |
643 | ||
644 | static PyObject *_wrap_wxSMALL_FONT_get() { | |
645 | PyObject * pyobj; | |
646 | char ptemp[128]; | |
647 | ||
648 | SWIG_MakePtr(ptemp, (char *) wxSMALL_FONT,"_wxFont_p"); | |
649 | pyobj = PyString_FromString(ptemp); | |
650 | return pyobj; | |
651 | } | |
652 | ||
653 | static int _wrap_wxITALIC_FONT_set(PyObject *val) { | |
654 | ||
655 | PyErr_SetString(PyExc_TypeError,"Variable wxITALIC_FONT is read-only."); | |
656 | return 1; | |
657 | } | |
658 | ||
659 | static PyObject *_wrap_wxITALIC_FONT_get() { | |
660 | PyObject * pyobj; | |
661 | char ptemp[128]; | |
662 | ||
663 | SWIG_MakePtr(ptemp, (char *) wxITALIC_FONT,"_wxFont_p"); | |
664 | pyobj = PyString_FromString(ptemp); | |
665 | return pyobj; | |
666 | } | |
667 | ||
668 | static int _wrap_wxSWISS_FONT_set(PyObject *val) { | |
669 | ||
670 | PyErr_SetString(PyExc_TypeError,"Variable wxSWISS_FONT is read-only."); | |
671 | return 1; | |
672 | } | |
673 | ||
674 | static PyObject *_wrap_wxSWISS_FONT_get() { | |
675 | PyObject * pyobj; | |
676 | char ptemp[128]; | |
677 | ||
678 | SWIG_MakePtr(ptemp, (char *) wxSWISS_FONT,"_wxFont_p"); | |
679 | pyobj = PyString_FromString(ptemp); | |
680 | return pyobj; | |
681 | } | |
682 | ||
683 | static int _wrap_wxRED_PEN_set(PyObject *val) { | |
684 | ||
685 | PyErr_SetString(PyExc_TypeError,"Variable wxRED_PEN is read-only."); | |
686 | return 1; | |
687 | } | |
688 | ||
689 | static PyObject *_wrap_wxRED_PEN_get() { | |
690 | PyObject * pyobj; | |
691 | char ptemp[128]; | |
692 | ||
693 | SWIG_MakePtr(ptemp, (char *) wxRED_PEN,"_wxPen_p"); | |
694 | pyobj = PyString_FromString(ptemp); | |
695 | return pyobj; | |
696 | } | |
697 | ||
698 | static int _wrap_wxCYAN_PEN_set(PyObject *val) { | |
699 | ||
700 | PyErr_SetString(PyExc_TypeError,"Variable wxCYAN_PEN is read-only."); | |
701 | return 1; | |
702 | } | |
703 | ||
704 | static PyObject *_wrap_wxCYAN_PEN_get() { | |
705 | PyObject * pyobj; | |
706 | char ptemp[128]; | |
707 | ||
708 | SWIG_MakePtr(ptemp, (char *) wxCYAN_PEN,"_wxPen_p"); | |
709 | pyobj = PyString_FromString(ptemp); | |
710 | return pyobj; | |
711 | } | |
712 | ||
713 | static int _wrap_wxGREEN_PEN_set(PyObject *val) { | |
714 | ||
715 | PyErr_SetString(PyExc_TypeError,"Variable wxGREEN_PEN is read-only."); | |
716 | return 1; | |
717 | } | |
718 | ||
719 | static PyObject *_wrap_wxGREEN_PEN_get() { | |
720 | PyObject * pyobj; | |
721 | char ptemp[128]; | |
722 | ||
723 | SWIG_MakePtr(ptemp, (char *) wxGREEN_PEN,"_wxPen_p"); | |
724 | pyobj = PyString_FromString(ptemp); | |
725 | return pyobj; | |
726 | } | |
727 | ||
728 | static int _wrap_wxBLACK_PEN_set(PyObject *val) { | |
729 | ||
730 | PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_PEN is read-only."); | |
731 | return 1; | |
732 | } | |
733 | ||
734 | static PyObject *_wrap_wxBLACK_PEN_get() { | |
735 | PyObject * pyobj; | |
736 | char ptemp[128]; | |
737 | ||
738 | SWIG_MakePtr(ptemp, (char *) wxBLACK_PEN,"_wxPen_p"); | |
739 | pyobj = PyString_FromString(ptemp); | |
740 | return pyobj; | |
741 | } | |
742 | ||
743 | static int _wrap_wxWHITE_PEN_set(PyObject *val) { | |
744 | ||
745 | PyErr_SetString(PyExc_TypeError,"Variable wxWHITE_PEN is read-only."); | |
746 | return 1; | |
747 | } | |
748 | ||
749 | static PyObject *_wrap_wxWHITE_PEN_get() { | |
750 | PyObject * pyobj; | |
751 | char ptemp[128]; | |
752 | ||
753 | SWIG_MakePtr(ptemp, (char *) wxWHITE_PEN,"_wxPen_p"); | |
754 | pyobj = PyString_FromString(ptemp); | |
755 | return pyobj; | |
756 | } | |
757 | ||
758 | static int _wrap_wxTRANSPARENT_PEN_set(PyObject *val) { | |
759 | ||
760 | PyErr_SetString(PyExc_TypeError,"Variable wxTRANSPARENT_PEN is read-only."); | |
761 | return 1; | |
762 | } | |
763 | ||
764 | static PyObject *_wrap_wxTRANSPARENT_PEN_get() { | |
765 | PyObject * pyobj; | |
766 | char ptemp[128]; | |
767 | ||
768 | SWIG_MakePtr(ptemp, (char *) wxTRANSPARENT_PEN,"_wxPen_p"); | |
769 | pyobj = PyString_FromString(ptemp); | |
770 | return pyobj; | |
771 | } | |
772 | ||
773 | static int _wrap_wxBLACK_DASHED_PEN_set(PyObject *val) { | |
774 | ||
775 | PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_DASHED_PEN is read-only."); | |
776 | return 1; | |
777 | } | |
778 | ||
779 | static PyObject *_wrap_wxBLACK_DASHED_PEN_get() { | |
780 | PyObject * pyobj; | |
781 | char ptemp[128]; | |
782 | ||
783 | SWIG_MakePtr(ptemp, (char *) wxBLACK_DASHED_PEN,"_wxPen_p"); | |
784 | pyobj = PyString_FromString(ptemp); | |
785 | return pyobj; | |
786 | } | |
787 | ||
788 | static int _wrap_wxGREY_PEN_set(PyObject *val) { | |
789 | ||
790 | PyErr_SetString(PyExc_TypeError,"Variable wxGREY_PEN is read-only."); | |
791 | return 1; | |
792 | } | |
793 | ||
794 | static PyObject *_wrap_wxGREY_PEN_get() { | |
795 | PyObject * pyobj; | |
796 | char ptemp[128]; | |
797 | ||
798 | SWIG_MakePtr(ptemp, (char *) wxGREY_PEN,"_wxPen_p"); | |
799 | pyobj = PyString_FromString(ptemp); | |
800 | return pyobj; | |
801 | } | |
802 | ||
803 | static int _wrap_wxMEDIUM_GREY_PEN_set(PyObject *val) { | |
804 | ||
805 | PyErr_SetString(PyExc_TypeError,"Variable wxMEDIUM_GREY_PEN is read-only."); | |
806 | return 1; | |
807 | } | |
808 | ||
809 | static PyObject *_wrap_wxMEDIUM_GREY_PEN_get() { | |
810 | PyObject * pyobj; | |
811 | char ptemp[128]; | |
812 | ||
813 | SWIG_MakePtr(ptemp, (char *) wxMEDIUM_GREY_PEN,"_wxPen_p"); | |
814 | pyobj = PyString_FromString(ptemp); | |
815 | return pyobj; | |
816 | } | |
817 | ||
818 | static int _wrap_wxLIGHT_GREY_PEN_set(PyObject *val) { | |
819 | ||
820 | PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY_PEN is read-only."); | |
821 | return 1; | |
822 | } | |
823 | ||
824 | static PyObject *_wrap_wxLIGHT_GREY_PEN_get() { | |
825 | PyObject * pyobj; | |
826 | char ptemp[128]; | |
827 | ||
828 | SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY_PEN,"_wxPen_p"); | |
829 | pyobj = PyString_FromString(ptemp); | |
830 | return pyobj; | |
831 | } | |
832 | ||
833 | static int _wrap_wxBLUE_BRUSH_set(PyObject *val) { | |
834 | ||
835 | PyErr_SetString(PyExc_TypeError,"Variable wxBLUE_BRUSH is read-only."); | |
836 | return 1; | |
837 | } | |
838 | ||
839 | static PyObject *_wrap_wxBLUE_BRUSH_get() { | |
840 | PyObject * pyobj; | |
841 | char ptemp[128]; | |
842 | ||
843 | SWIG_MakePtr(ptemp, (char *) wxBLUE_BRUSH,"_wxBrush_p"); | |
844 | pyobj = PyString_FromString(ptemp); | |
845 | return pyobj; | |
846 | } | |
847 | ||
848 | static int _wrap_wxGREEN_BRUSH_set(PyObject *val) { | |
849 | ||
850 | PyErr_SetString(PyExc_TypeError,"Variable wxGREEN_BRUSH is read-only."); | |
851 | return 1; | |
852 | } | |
853 | ||
854 | static PyObject *_wrap_wxGREEN_BRUSH_get() { | |
855 | PyObject * pyobj; | |
856 | char ptemp[128]; | |
857 | ||
858 | SWIG_MakePtr(ptemp, (char *) wxGREEN_BRUSH,"_wxBrush_p"); | |
859 | pyobj = PyString_FromString(ptemp); | |
860 | return pyobj; | |
861 | } | |
862 | ||
863 | static int _wrap_wxWHITE_BRUSH_set(PyObject *val) { | |
864 | ||
865 | PyErr_SetString(PyExc_TypeError,"Variable wxWHITE_BRUSH is read-only."); | |
866 | return 1; | |
867 | } | |
868 | ||
869 | static PyObject *_wrap_wxWHITE_BRUSH_get() { | |
870 | PyObject * pyobj; | |
871 | char ptemp[128]; | |
872 | ||
873 | SWIG_MakePtr(ptemp, (char *) wxWHITE_BRUSH,"_wxBrush_p"); | |
874 | pyobj = PyString_FromString(ptemp); | |
875 | return pyobj; | |
876 | } | |
877 | ||
878 | static int _wrap_wxBLACK_BRUSH_set(PyObject *val) { | |
879 | ||
880 | PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_BRUSH is read-only."); | |
881 | return 1; | |
882 | } | |
883 | ||
884 | static PyObject *_wrap_wxBLACK_BRUSH_get() { | |
885 | PyObject * pyobj; | |
886 | char ptemp[128]; | |
887 | ||
888 | SWIG_MakePtr(ptemp, (char *) wxBLACK_BRUSH,"_wxBrush_p"); | |
889 | pyobj = PyString_FromString(ptemp); | |
890 | return pyobj; | |
891 | } | |
892 | ||
893 | static int _wrap_wxTRANSPARENT_BRUSH_set(PyObject *val) { | |
894 | ||
895 | PyErr_SetString(PyExc_TypeError,"Variable wxTRANSPARENT_BRUSH is read-only."); | |
896 | return 1; | |
897 | } | |
898 | ||
899 | static PyObject *_wrap_wxTRANSPARENT_BRUSH_get() { | |
900 | PyObject * pyobj; | |
901 | char ptemp[128]; | |
902 | ||
903 | SWIG_MakePtr(ptemp, (char *) wxTRANSPARENT_BRUSH,"_wxBrush_p"); | |
904 | pyobj = PyString_FromString(ptemp); | |
905 | return pyobj; | |
906 | } | |
907 | ||
908 | static int _wrap_wxCYAN_BRUSH_set(PyObject *val) { | |
909 | ||
910 | PyErr_SetString(PyExc_TypeError,"Variable wxCYAN_BRUSH is read-only."); | |
911 | return 1; | |
912 | } | |
913 | ||
914 | static PyObject *_wrap_wxCYAN_BRUSH_get() { | |
915 | PyObject * pyobj; | |
916 | char ptemp[128]; | |
917 | ||
918 | SWIG_MakePtr(ptemp, (char *) wxCYAN_BRUSH,"_wxBrush_p"); | |
919 | pyobj = PyString_FromString(ptemp); | |
920 | return pyobj; | |
921 | } | |
922 | ||
923 | static int _wrap_wxRED_BRUSH_set(PyObject *val) { | |
924 | ||
925 | PyErr_SetString(PyExc_TypeError,"Variable wxRED_BRUSH is read-only."); | |
926 | return 1; | |
927 | } | |
928 | ||
929 | static PyObject *_wrap_wxRED_BRUSH_get() { | |
930 | PyObject * pyobj; | |
931 | char ptemp[128]; | |
932 | ||
933 | SWIG_MakePtr(ptemp, (char *) wxRED_BRUSH,"_wxBrush_p"); | |
934 | pyobj = PyString_FromString(ptemp); | |
935 | return pyobj; | |
936 | } | |
937 | ||
938 | static int _wrap_wxGREY_BRUSH_set(PyObject *val) { | |
939 | ||
940 | PyErr_SetString(PyExc_TypeError,"Variable wxGREY_BRUSH is read-only."); | |
941 | return 1; | |
942 | } | |
943 | ||
944 | static PyObject *_wrap_wxGREY_BRUSH_get() { | |
945 | PyObject * pyobj; | |
946 | char ptemp[128]; | |
947 | ||
948 | SWIG_MakePtr(ptemp, (char *) wxGREY_BRUSH,"_wxBrush_p"); | |
949 | pyobj = PyString_FromString(ptemp); | |
950 | return pyobj; | |
951 | } | |
952 | ||
953 | static int _wrap_wxMEDIUM_GREY_BRUSH_set(PyObject *val) { | |
954 | ||
955 | PyErr_SetString(PyExc_TypeError,"Variable wxMEDIUM_GREY_BRUSH is read-only."); | |
956 | return 1; | |
957 | } | |
958 | ||
959 | static PyObject *_wrap_wxMEDIUM_GREY_BRUSH_get() { | |
960 | PyObject * pyobj; | |
961 | char ptemp[128]; | |
962 | ||
963 | SWIG_MakePtr(ptemp, (char *) wxMEDIUM_GREY_BRUSH,"_wxBrush_p"); | |
964 | pyobj = PyString_FromString(ptemp); | |
965 | return pyobj; | |
966 | } | |
967 | ||
968 | static int _wrap_wxLIGHT_GREY_BRUSH_set(PyObject *val) { | |
969 | ||
970 | PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY_BRUSH is read-only."); | |
971 | return 1; | |
972 | } | |
973 | ||
974 | static PyObject *_wrap_wxLIGHT_GREY_BRUSH_get() { | |
975 | PyObject * pyobj; | |
976 | char ptemp[128]; | |
977 | ||
978 | SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY_BRUSH,"_wxBrush_p"); | |
979 | pyobj = PyString_FromString(ptemp); | |
980 | return pyobj; | |
981 | } | |
982 | ||
983 | static int _wrap_wxBLACK_set(PyObject *val) { | |
984 | ||
985 | PyErr_SetString(PyExc_TypeError,"Variable wxBLACK is read-only."); | |
986 | return 1; | |
987 | } | |
988 | ||
989 | static PyObject *_wrap_wxBLACK_get() { | |
990 | PyObject * pyobj; | |
991 | char ptemp[128]; | |
992 | ||
993 | SWIG_MakePtr(ptemp, (char *) wxBLACK,"_wxColour_p"); | |
994 | pyobj = PyString_FromString(ptemp); | |
995 | return pyobj; | |
996 | } | |
997 | ||
998 | static int _wrap_wxWHITE_set(PyObject *val) { | |
999 | ||
1000 | PyErr_SetString(PyExc_TypeError,"Variable wxWHITE is read-only."); | |
1001 | return 1; | |
1002 | } | |
1003 | ||
1004 | static PyObject *_wrap_wxWHITE_get() { | |
1005 | PyObject * pyobj; | |
1006 | char ptemp[128]; | |
1007 | ||
1008 | SWIG_MakePtr(ptemp, (char *) wxWHITE,"_wxColour_p"); | |
1009 | pyobj = PyString_FromString(ptemp); | |
1010 | return pyobj; | |
1011 | } | |
1012 | ||
1013 | static int _wrap_wxRED_set(PyObject *val) { | |
1014 | ||
1015 | PyErr_SetString(PyExc_TypeError,"Variable wxRED is read-only."); | |
1016 | return 1; | |
1017 | } | |
1018 | ||
1019 | static PyObject *_wrap_wxRED_get() { | |
1020 | PyObject * pyobj; | |
1021 | char ptemp[128]; | |
1022 | ||
1023 | SWIG_MakePtr(ptemp, (char *) wxRED,"_wxColour_p"); | |
1024 | pyobj = PyString_FromString(ptemp); | |
1025 | return pyobj; | |
1026 | } | |
1027 | ||
1028 | static int _wrap_wxBLUE_set(PyObject *val) { | |
1029 | ||
1030 | PyErr_SetString(PyExc_TypeError,"Variable wxBLUE is read-only."); | |
1031 | return 1; | |
1032 | } | |
1033 | ||
1034 | static PyObject *_wrap_wxBLUE_get() { | |
1035 | PyObject * pyobj; | |
1036 | char ptemp[128]; | |
1037 | ||
1038 | SWIG_MakePtr(ptemp, (char *) wxBLUE,"_wxColour_p"); | |
1039 | pyobj = PyString_FromString(ptemp); | |
1040 | return pyobj; | |
1041 | } | |
1042 | ||
1043 | static int _wrap_wxGREEN_set(PyObject *val) { | |
1044 | ||
1045 | PyErr_SetString(PyExc_TypeError,"Variable wxGREEN is read-only."); | |
1046 | return 1; | |
1047 | } | |
1048 | ||
1049 | static PyObject *_wrap_wxGREEN_get() { | |
1050 | PyObject * pyobj; | |
1051 | char ptemp[128]; | |
1052 | ||
1053 | SWIG_MakePtr(ptemp, (char *) wxGREEN,"_wxColour_p"); | |
1054 | pyobj = PyString_FromString(ptemp); | |
1055 | return pyobj; | |
1056 | } | |
1057 | ||
1058 | static int _wrap_wxCYAN_set(PyObject *val) { | |
1059 | ||
1060 | PyErr_SetString(PyExc_TypeError,"Variable wxCYAN is read-only."); | |
1061 | return 1; | |
1062 | } | |
1063 | ||
1064 | static PyObject *_wrap_wxCYAN_get() { | |
1065 | PyObject * pyobj; | |
1066 | char ptemp[128]; | |
1067 | ||
1068 | SWIG_MakePtr(ptemp, (char *) wxCYAN,"_wxColour_p"); | |
1069 | pyobj = PyString_FromString(ptemp); | |
1070 | return pyobj; | |
1071 | } | |
1072 | ||
1073 | static int _wrap_wxLIGHT_GREY_set(PyObject *val) { | |
1074 | ||
1075 | PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY is read-only."); | |
1076 | return 1; | |
1077 | } | |
1078 | ||
1079 | static PyObject *_wrap_wxLIGHT_GREY_get() { | |
1080 | PyObject * pyobj; | |
1081 | char ptemp[128]; | |
1082 | ||
1083 | SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY,"_wxColour_p"); | |
1084 | pyobj = PyString_FromString(ptemp); | |
1085 | return pyobj; | |
1086 | } | |
1087 | ||
1088 | static int _wrap_wxSTANDARD_CURSOR_set(PyObject *val) { | |
1089 | ||
1090 | PyErr_SetString(PyExc_TypeError,"Variable wxSTANDARD_CURSOR is read-only."); | |
1091 | return 1; | |
1092 | } | |
1093 | ||
1094 | static PyObject *_wrap_wxSTANDARD_CURSOR_get() { | |
1095 | PyObject * pyobj; | |
1096 | char ptemp[128]; | |
1097 | ||
1098 | SWIG_MakePtr(ptemp, (char *) wxSTANDARD_CURSOR,"_wxCursor_p"); | |
1099 | pyobj = PyString_FromString(ptemp); | |
1100 | return pyobj; | |
1101 | } | |
1102 | ||
1103 | static int _wrap_wxHOURGLASS_CURSOR_set(PyObject *val) { | |
1104 | ||
1105 | PyErr_SetString(PyExc_TypeError,"Variable wxHOURGLASS_CURSOR is read-only."); | |
1106 | return 1; | |
1107 | } | |
1108 | ||
1109 | static PyObject *_wrap_wxHOURGLASS_CURSOR_get() { | |
1110 | PyObject * pyobj; | |
1111 | char ptemp[128]; | |
1112 | ||
1113 | SWIG_MakePtr(ptemp, (char *) wxHOURGLASS_CURSOR,"_wxCursor_p"); | |
1114 | pyobj = PyString_FromString(ptemp); | |
1115 | return pyobj; | |
1116 | } | |
1117 | ||
1118 | static int _wrap_wxCROSS_CURSOR_set(PyObject *val) { | |
1119 | ||
1120 | PyErr_SetString(PyExc_TypeError,"Variable wxCROSS_CURSOR is read-only."); | |
1121 | return 1; | |
1122 | } | |
1123 | ||
1124 | static PyObject *_wrap_wxCROSS_CURSOR_get() { | |
1125 | PyObject * pyobj; | |
1126 | char ptemp[128]; | |
1127 | ||
1128 | SWIG_MakePtr(ptemp, (char *) wxCROSS_CURSOR,"_wxCursor_p"); | |
1129 | pyobj = PyString_FromString(ptemp); | |
1130 | return pyobj; | |
1131 | } | |
1132 | ||
1133 | static int _wrap_wxNullBitmap_set(PyObject *val) { | |
1134 | ||
1135 | PyErr_SetString(PyExc_TypeError,"Variable wxNullBitmap is read-only."); | |
1136 | return 1; | |
1137 | } | |
1138 | ||
1139 | static PyObject *_wrap_wxNullBitmap_get() { | |
1140 | PyObject * pyobj; | |
1141 | char ptemp[128]; | |
1142 | ||
1143 | SWIG_MakePtr(ptemp,(char *) &wxNullBitmap,"_wxBitmap_p"); | |
1144 | pyobj = PyString_FromString(ptemp); | |
1145 | return pyobj; | |
1146 | } | |
1147 | ||
1148 | static int _wrap_wxNullIcon_set(PyObject *val) { | |
1149 | ||
1150 | PyErr_SetString(PyExc_TypeError,"Variable wxNullIcon is read-only."); | |
1151 | return 1; | |
1152 | } | |
1153 | ||
1154 | static PyObject *_wrap_wxNullIcon_get() { | |
1155 | PyObject * pyobj; | |
1156 | char ptemp[128]; | |
1157 | ||
1158 | SWIG_MakePtr(ptemp,(char *) &wxNullIcon,"_wxIcon_p"); | |
1159 | pyobj = PyString_FromString(ptemp); | |
1160 | return pyobj; | |
1161 | } | |
1162 | ||
1163 | static int _wrap_wxNullCursor_set(PyObject *val) { | |
1164 | ||
1165 | PyErr_SetString(PyExc_TypeError,"Variable wxNullCursor is read-only."); | |
1166 | return 1; | |
1167 | } | |
1168 | ||
1169 | static PyObject *_wrap_wxNullCursor_get() { | |
1170 | PyObject * pyobj; | |
1171 | char ptemp[128]; | |
1172 | ||
1173 | SWIG_MakePtr(ptemp,(char *) &wxNullCursor,"_wxCursor_p"); | |
1174 | pyobj = PyString_FromString(ptemp); | |
1175 | return pyobj; | |
1176 | } | |
1177 | ||
1178 | static int _wrap_wxNullPen_set(PyObject *val) { | |
1179 | ||
1180 | PyErr_SetString(PyExc_TypeError,"Variable wxNullPen is read-only."); | |
1181 | return 1; | |
1182 | } | |
1183 | ||
1184 | static PyObject *_wrap_wxNullPen_get() { | |
1185 | PyObject * pyobj; | |
1186 | char ptemp[128]; | |
1187 | ||
1188 | SWIG_MakePtr(ptemp,(char *) &wxNullPen,"_wxPen_p"); | |
1189 | pyobj = PyString_FromString(ptemp); | |
1190 | return pyobj; | |
1191 | } | |
1192 | ||
1193 | static int _wrap_wxNullBrush_set(PyObject *val) { | |
1194 | ||
1195 | PyErr_SetString(PyExc_TypeError,"Variable wxNullBrush is read-only."); | |
1196 | return 1; | |
1197 | } | |
1198 | ||
1199 | static PyObject *_wrap_wxNullBrush_get() { | |
1200 | PyObject * pyobj; | |
1201 | char ptemp[128]; | |
1202 | ||
1203 | SWIG_MakePtr(ptemp,(char *) &wxNullBrush,"_wxBrush_p"); | |
1204 | pyobj = PyString_FromString(ptemp); | |
1205 | return pyobj; | |
1206 | } | |
1207 | ||
1208 | static int _wrap_wxNullPalette_set(PyObject *val) { | |
1209 | ||
1210 | PyErr_SetString(PyExc_TypeError,"Variable wxNullPalette is read-only."); | |
1211 | return 1; | |
1212 | } | |
1213 | ||
1214 | static PyObject *_wrap_wxNullPalette_get() { | |
1215 | PyObject * pyobj; | |
1216 | char ptemp[128]; | |
1217 | ||
1218 | SWIG_MakePtr(ptemp,(char *) &wxNullPalette,"_wxPalette_p"); | |
1219 | pyobj = PyString_FromString(ptemp); | |
1220 | return pyobj; | |
1221 | } | |
1222 | ||
1223 | static int _wrap_wxNullFont_set(PyObject *val) { | |
1224 | ||
1225 | PyErr_SetString(PyExc_TypeError,"Variable wxNullFont is read-only."); | |
1226 | return 1; | |
1227 | } | |
1228 | ||
1229 | static PyObject *_wrap_wxNullFont_get() { | |
1230 | PyObject * pyobj; | |
1231 | char ptemp[128]; | |
1232 | ||
1233 | SWIG_MakePtr(ptemp,(char *) &wxNullFont,"_wxFont_p"); | |
1234 | pyobj = PyString_FromString(ptemp); | |
1235 | return pyobj; | |
1236 | } | |
1237 | ||
1238 | static int _wrap_wxNullColour_set(PyObject *val) { | |
1239 | ||
1240 | PyErr_SetString(PyExc_TypeError,"Variable wxNullColour is read-only."); | |
1241 | return 1; | |
1242 | } | |
1243 | ||
1244 | static PyObject *_wrap_wxNullColour_get() { | |
1245 | PyObject * pyobj; | |
1246 | char ptemp[128]; | |
1247 | ||
1248 | SWIG_MakePtr(ptemp,(char *) &wxNullColour,"_wxColour_p"); | |
1249 | pyobj = PyString_FromString(ptemp); | |
1250 | return pyobj; | |
1251 | } | |
1252 | ||
1253 | static int _wrap_wxTheFontList_set(PyObject *val) { | |
1254 | ||
1255 | PyErr_SetString(PyExc_TypeError,"Variable wxTheFontList is read-only."); | |
1256 | return 1; | |
1257 | } | |
1258 | ||
1259 | static PyObject *_wrap_wxTheFontList_get() { | |
1260 | PyObject * pyobj; | |
1261 | char ptemp[128]; | |
1262 | ||
1263 | SWIG_MakePtr(ptemp, (char *) wxTheFontList,"_wxFontList_p"); | |
1264 | pyobj = PyString_FromString(ptemp); | |
1265 | return pyobj; | |
1266 | } | |
1267 | ||
1268 | static int _wrap_wxThePenList_set(PyObject *val) { | |
1269 | ||
1270 | PyErr_SetString(PyExc_TypeError,"Variable wxThePenList is read-only."); | |
1271 | return 1; | |
1272 | } | |
1273 | ||
1274 | static PyObject *_wrap_wxThePenList_get() { | |
1275 | PyObject * pyobj; | |
1276 | char ptemp[128]; | |
1277 | ||
1278 | SWIG_MakePtr(ptemp, (char *) wxThePenList,"_wxPenList_p"); | |
1279 | pyobj = PyString_FromString(ptemp); | |
1280 | return pyobj; | |
1281 | } | |
1282 | ||
1283 | static int _wrap_wxTheBrushList_set(PyObject *val) { | |
1284 | ||
1285 | PyErr_SetString(PyExc_TypeError,"Variable wxTheBrushList is read-only."); | |
1286 | return 1; | |
1287 | } | |
1288 | ||
1289 | static PyObject *_wrap_wxTheBrushList_get() { | |
1290 | PyObject * pyobj; | |
1291 | char ptemp[128]; | |
1292 | ||
1293 | SWIG_MakePtr(ptemp, (char *) wxTheBrushList,"_wxBrushList_p"); | |
1294 | pyobj = PyString_FromString(ptemp); | |
1295 | return pyobj; | |
1296 | } | |
1297 | ||
1298 | static int _wrap_wxTheColourDatabase_set(PyObject *val) { | |
1299 | ||
1300 | PyErr_SetString(PyExc_TypeError,"Variable wxTheColourDatabase is read-only."); | |
1301 | return 1; | |
1302 | } | |
1303 | ||
1304 | static PyObject *_wrap_wxTheColourDatabase_get() { | |
1305 | PyObject * pyobj; | |
1306 | char ptemp[128]; | |
1307 | ||
1308 | SWIG_MakePtr(ptemp, (char *) wxTheColourDatabase,"_wxColourDatabase_p"); | |
1309 | pyobj = PyString_FromString(ptemp); | |
1310 | return pyobj; | |
1311 | } | |
1312 | ||
1313 | static void *SwigwxGDIObjectTowxObject(void *ptr) { | |
1314 | wxGDIObject *src; | |
1315 | wxObject *dest; | |
1316 | src = (wxGDIObject *) ptr; | |
1317 | dest = (wxObject *) src; | |
1318 | return (void *) dest; | |
1319 | } | |
1320 | ||
1321 | #define new_wxGDIObject() (new wxGDIObject()) | |
1322 | static PyObject *_wrap_new_wxGDIObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1323 | PyObject * _resultobj; | |
1324 | wxGDIObject * _result; | |
1325 | char *_kwnames[] = { NULL }; | |
1326 | char _ptemp[128]; | |
1327 | ||
1328 | self = self; | |
1329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxGDIObject",_kwnames)) | |
1330 | return NULL; | |
1331 | { | |
0e2ff151 | 1332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1333 | _result = (wxGDIObject *)new_wxGDIObject(); |
e6056257 | 1334 | |
0e2ff151 | 1335 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1336 | if (PyErr_Occurred()) return NULL; |
1337 | } if (_result) { | |
1338 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGDIObject_p"); | |
1339 | _resultobj = Py_BuildValue("s",_ptemp); | |
1340 | } else { | |
1341 | Py_INCREF(Py_None); | |
1342 | _resultobj = Py_None; | |
1343 | } | |
1344 | return _resultobj; | |
1345 | } | |
1346 | ||
1347 | #define delete_wxGDIObject(_swigobj) (delete _swigobj) | |
1348 | static PyObject *_wrap_delete_wxGDIObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1349 | PyObject * _resultobj; | |
1350 | wxGDIObject * _arg0; | |
1351 | PyObject * _argo0 = 0; | |
1352 | char *_kwnames[] = { "self", NULL }; | |
1353 | ||
1354 | self = self; | |
1355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxGDIObject",_kwnames,&_argo0)) | |
1356 | return NULL; | |
1357 | if (_argo0) { | |
1358 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1359 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) { | |
1360 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxGDIObject. Expected _wxGDIObject_p."); | |
1361 | return NULL; | |
1362 | } | |
1363 | } | |
1364 | { | |
0e2ff151 | 1365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1366 | delete_wxGDIObject(_arg0); |
e6056257 | 1367 | |
0e2ff151 | 1368 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1369 | if (PyErr_Occurred()) return NULL; |
1370 | } Py_INCREF(Py_None); | |
1371 | _resultobj = Py_None; | |
1372 | return _resultobj; | |
1373 | } | |
1374 | ||
1375 | #define wxGDIObject_GetVisible(_swigobj) (_swigobj->GetVisible()) | |
1376 | static PyObject *_wrap_wxGDIObject_GetVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1377 | PyObject * _resultobj; | |
1378 | bool _result; | |
1379 | wxGDIObject * _arg0; | |
1380 | PyObject * _argo0 = 0; | |
1381 | char *_kwnames[] = { "self", NULL }; | |
1382 | ||
1383 | self = self; | |
1384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGDIObject_GetVisible",_kwnames,&_argo0)) | |
1385 | return NULL; | |
1386 | if (_argo0) { | |
1387 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1388 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) { | |
1389 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGDIObject_GetVisible. Expected _wxGDIObject_p."); | |
1390 | return NULL; | |
1391 | } | |
1392 | } | |
1393 | { | |
0e2ff151 | 1394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1395 | _result = (bool )wxGDIObject_GetVisible(_arg0); |
e6056257 | 1396 | |
0e2ff151 | 1397 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1398 | if (PyErr_Occurred()) return NULL; |
1399 | } _resultobj = Py_BuildValue("i",_result); | |
1400 | return _resultobj; | |
1401 | } | |
1402 | ||
1403 | #define wxGDIObject_SetVisible(_swigobj,_swigarg0) (_swigobj->SetVisible(_swigarg0)) | |
1404 | static PyObject *_wrap_wxGDIObject_SetVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1405 | PyObject * _resultobj; | |
1406 | wxGDIObject * _arg0; | |
1407 | bool _arg1; | |
1408 | PyObject * _argo0 = 0; | |
1409 | int tempbool1; | |
1410 | char *_kwnames[] = { "self","visible", NULL }; | |
1411 | ||
1412 | self = self; | |
1413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGDIObject_SetVisible",_kwnames,&_argo0,&tempbool1)) | |
1414 | return NULL; | |
1415 | if (_argo0) { | |
1416 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1417 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) { | |
1418 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGDIObject_SetVisible. Expected _wxGDIObject_p."); | |
1419 | return NULL; | |
1420 | } | |
1421 | } | |
1422 | _arg1 = (bool ) tempbool1; | |
1423 | { | |
0e2ff151 | 1424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1425 | wxGDIObject_SetVisible(_arg0,_arg1); |
e6056257 | 1426 | |
0e2ff151 | 1427 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1428 | if (PyErr_Occurred()) return NULL; |
1429 | } Py_INCREF(Py_None); | |
1430 | _resultobj = Py_None; | |
1431 | return _resultobj; | |
1432 | } | |
1433 | ||
1434 | #define wxGDIObject_IsNull(_swigobj) (_swigobj->IsNull()) | |
1435 | static PyObject *_wrap_wxGDIObject_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1436 | PyObject * _resultobj; | |
1437 | bool _result; | |
1438 | wxGDIObject * _arg0; | |
1439 | PyObject * _argo0 = 0; | |
1440 | char *_kwnames[] = { "self", NULL }; | |
1441 | ||
1442 | self = self; | |
1443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGDIObject_IsNull",_kwnames,&_argo0)) | |
1444 | return NULL; | |
1445 | if (_argo0) { | |
1446 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1447 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) { | |
1448 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGDIObject_IsNull. Expected _wxGDIObject_p."); | |
1449 | return NULL; | |
1450 | } | |
1451 | } | |
1452 | { | |
0e2ff151 | 1453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1454 | _result = (bool )wxGDIObject_IsNull(_arg0); |
e6056257 | 1455 | |
0e2ff151 | 1456 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1457 | if (PyErr_Occurred()) return NULL; |
1458 | } _resultobj = Py_BuildValue("i",_result); | |
1459 | return _resultobj; | |
1460 | } | |
1461 | ||
1462 | static void *SwigwxBitmapTowxGDIObject(void *ptr) { | |
1463 | wxBitmap *src; | |
1464 | wxGDIObject *dest; | |
1465 | src = (wxBitmap *) ptr; | |
1466 | dest = (wxGDIObject *) src; | |
1467 | return (void *) dest; | |
1468 | } | |
1469 | ||
1470 | static void *SwigwxBitmapTowxObject(void *ptr) { | |
1471 | wxBitmap *src; | |
1472 | wxObject *dest; | |
1473 | src = (wxBitmap *) ptr; | |
1474 | dest = (wxObject *) src; | |
1475 | return (void *) dest; | |
1476 | } | |
1477 | ||
1478 | #define new_wxBitmap(_swigarg0,_swigarg1) (new wxBitmap(_swigarg0,_swigarg1)) | |
1479 | static PyObject *_wrap_new_wxBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1480 | PyObject * _resultobj; | |
1481 | wxBitmap * _result; | |
1482 | wxString * _arg0; | |
da0ddbd6 | 1483 | wxBitmapType _arg1 = (wxBitmapType ) wxBITMAP_TYPE_ANY; |
e6056257 RD |
1484 | PyObject * _obj0 = 0; |
1485 | char *_kwnames[] = { "name","type", NULL }; | |
1486 | char _ptemp[128]; | |
1487 | ||
1488 | self = self; | |
1489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:new_wxBitmap",_kwnames,&_obj0,&_arg1)) | |
1490 | return NULL; | |
1491 | { | |
6824d4f9 RD |
1492 | _arg0 = wxString_in_helper(_obj0); |
1493 | if (_arg0 == NULL) | |
e6056257 | 1494 | return NULL; |
e6056257 RD |
1495 | } |
1496 | { | |
0e2ff151 | 1497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1498 | _result = (wxBitmap *)new_wxBitmap(*_arg0,_arg1); |
e6056257 | 1499 | |
0e2ff151 | 1500 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1501 | if (PyErr_Occurred()) return NULL; |
1502 | } if (_result) { | |
1503 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
1504 | _resultobj = Py_BuildValue("s",_ptemp); | |
1505 | } else { | |
1506 | Py_INCREF(Py_None); | |
1507 | _resultobj = Py_None; | |
1508 | } | |
1509 | { | |
1510 | if (_obj0) | |
1511 | delete _arg0; | |
1512 | } | |
1513 | return _resultobj; | |
1514 | } | |
1515 | ||
1516 | #define delete_wxBitmap(_swigobj) (delete _swigobj) | |
1517 | static PyObject *_wrap_delete_wxBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1518 | PyObject * _resultobj; | |
1519 | wxBitmap * _arg0; | |
1520 | PyObject * _argo0 = 0; | |
1521 | char *_kwnames[] = { "self", NULL }; | |
1522 | ||
1523 | self = self; | |
1524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxBitmap",_kwnames,&_argo0)) | |
1525 | return NULL; | |
1526 | if (_argo0) { | |
1527 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1528 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1529 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxBitmap. Expected _wxBitmap_p."); | |
1530 | return NULL; | |
1531 | } | |
1532 | } | |
1533 | { | |
0e2ff151 | 1534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1535 | delete_wxBitmap(_arg0); |
e6056257 | 1536 | |
0e2ff151 | 1537 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1538 | if (PyErr_Occurred()) return NULL; |
1539 | } Py_INCREF(Py_None); | |
1540 | _resultobj = Py_None; | |
1541 | return _resultobj; | |
1542 | } | |
1543 | ||
1544 | #define wxBitmap_GetPalette(_swigobj) (_swigobj->GetPalette()) | |
1545 | static PyObject *_wrap_wxBitmap_GetPalette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1546 | PyObject * _resultobj; | |
1547 | wxPalette * _result; | |
1548 | wxBitmap * _arg0; | |
1549 | PyObject * _argo0 = 0; | |
1550 | char *_kwnames[] = { "self", NULL }; | |
1551 | char _ptemp[128]; | |
1552 | ||
1553 | self = self; | |
1554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetPalette",_kwnames,&_argo0)) | |
1555 | return NULL; | |
1556 | if (_argo0) { | |
1557 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1558 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1559 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetPalette. Expected _wxBitmap_p."); | |
1560 | return NULL; | |
1561 | } | |
1562 | } | |
1563 | { | |
0e2ff151 | 1564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1565 | _result = (wxPalette *)wxBitmap_GetPalette(_arg0); |
e6056257 | 1566 | |
0e2ff151 | 1567 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1568 | if (PyErr_Occurred()) return NULL; |
1569 | } if (_result) { | |
1570 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPalette_p"); | |
1571 | _resultobj = Py_BuildValue("s",_ptemp); | |
1572 | } else { | |
1573 | Py_INCREF(Py_None); | |
1574 | _resultobj = Py_None; | |
1575 | } | |
1576 | return _resultobj; | |
1577 | } | |
1578 | ||
1579 | #define wxBitmap_GetMask(_swigobj) (_swigobj->GetMask()) | |
1580 | static PyObject *_wrap_wxBitmap_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1581 | PyObject * _resultobj; | |
1582 | wxMask * _result; | |
1583 | wxBitmap * _arg0; | |
1584 | PyObject * _argo0 = 0; | |
1585 | char *_kwnames[] = { "self", NULL }; | |
1586 | char _ptemp[128]; | |
1587 | ||
1588 | self = self; | |
1589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetMask",_kwnames,&_argo0)) | |
1590 | return NULL; | |
1591 | if (_argo0) { | |
1592 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1593 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1594 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetMask. Expected _wxBitmap_p."); | |
1595 | return NULL; | |
1596 | } | |
1597 | } | |
1598 | { | |
0e2ff151 | 1599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1600 | _result = (wxMask *)wxBitmap_GetMask(_arg0); |
e6056257 | 1601 | |
0e2ff151 | 1602 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1603 | if (PyErr_Occurred()) return NULL; |
1604 | } if (_result) { | |
1605 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p"); | |
1606 | _resultobj = Py_BuildValue("s",_ptemp); | |
1607 | } else { | |
1608 | Py_INCREF(Py_None); | |
1609 | _resultobj = Py_None; | |
1610 | } | |
1611 | return _resultobj; | |
1612 | } | |
1613 | ||
1614 | #define wxBitmap_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1)) | |
1615 | static PyObject *_wrap_wxBitmap_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1616 | PyObject * _resultobj; | |
1617 | bool _result; | |
1618 | wxBitmap * _arg0; | |
1619 | wxString * _arg1; | |
da0ddbd6 | 1620 | wxBitmapType _arg2 = (wxBitmapType ) wxBITMAP_TYPE_ANY; |
e6056257 RD |
1621 | PyObject * _argo0 = 0; |
1622 | PyObject * _obj1 = 0; | |
1623 | char *_kwnames[] = { "self","name","type", NULL }; | |
1624 | ||
1625 | self = self; | |
1626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxBitmap_LoadFile",_kwnames,&_argo0,&_obj1,&_arg2)) | |
1627 | return NULL; | |
1628 | if (_argo0) { | |
1629 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1630 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1631 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_LoadFile. Expected _wxBitmap_p."); | |
1632 | return NULL; | |
1633 | } | |
1634 | } | |
1635 | { | |
6824d4f9 RD |
1636 | _arg1 = wxString_in_helper(_obj1); |
1637 | if (_arg1 == NULL) | |
e6056257 | 1638 | return NULL; |
e6056257 RD |
1639 | } |
1640 | { | |
0e2ff151 | 1641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1642 | _result = (bool )wxBitmap_LoadFile(_arg0,*_arg1,_arg2); |
e6056257 | 1643 | |
0e2ff151 | 1644 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1645 | if (PyErr_Occurred()) return NULL; |
1646 | } _resultobj = Py_BuildValue("i",_result); | |
1647 | { | |
1648 | if (_obj1) | |
1649 | delete _arg1; | |
1650 | } | |
1651 | return _resultobj; | |
1652 | } | |
1653 | ||
1654 | #define wxBitmap_SaveFile(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SaveFile(_swigarg0,_swigarg1,_swigarg2)) | |
1655 | static PyObject *_wrap_wxBitmap_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1656 | PyObject * _resultobj; | |
1657 | bool _result; | |
1658 | wxBitmap * _arg0; | |
1659 | wxString * _arg1; | |
1660 | wxBitmapType _arg2; | |
1661 | wxPalette * _arg3 = (wxPalette *) NULL; | |
1662 | PyObject * _argo0 = 0; | |
1663 | PyObject * _obj1 = 0; | |
1664 | PyObject * _argo3 = 0; | |
1665 | char *_kwnames[] = { "self","name","type","palette", NULL }; | |
1666 | ||
1667 | self = self; | |
1668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|O:wxBitmap_SaveFile",_kwnames,&_argo0,&_obj1,&_arg2,&_argo3)) | |
1669 | return NULL; | |
1670 | if (_argo0) { | |
1671 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1672 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1673 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SaveFile. Expected _wxBitmap_p."); | |
1674 | return NULL; | |
1675 | } | |
1676 | } | |
1677 | { | |
6824d4f9 RD |
1678 | _arg1 = wxString_in_helper(_obj1); |
1679 | if (_arg1 == NULL) | |
e6056257 | 1680 | return NULL; |
e6056257 RD |
1681 | } |
1682 | if (_argo3) { | |
1683 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
1684 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxPalette_p")) { | |
1685 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxBitmap_SaveFile. Expected _wxPalette_p."); | |
1686 | return NULL; | |
1687 | } | |
1688 | } | |
1689 | { | |
0e2ff151 | 1690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1691 | _result = (bool )wxBitmap_SaveFile(_arg0,*_arg1,_arg2,_arg3); |
e6056257 | 1692 | |
0e2ff151 | 1693 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1694 | if (PyErr_Occurred()) return NULL; |
1695 | } _resultobj = Py_BuildValue("i",_result); | |
1696 | { | |
1697 | if (_obj1) | |
1698 | delete _arg1; | |
1699 | } | |
1700 | return _resultobj; | |
1701 | } | |
1702 | ||
1703 | #define wxBitmap_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0)) | |
1704 | static PyObject *_wrap_wxBitmap_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1705 | PyObject * _resultobj; | |
1706 | wxBitmap * _arg0; | |
1707 | wxMask * _arg1; | |
1708 | PyObject * _argo0 = 0; | |
1709 | PyObject * _argo1 = 0; | |
1710 | char *_kwnames[] = { "self","mask", NULL }; | |
1711 | ||
1712 | self = self; | |
1713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_SetMask",_kwnames,&_argo0,&_argo1)) | |
1714 | return NULL; | |
1715 | if (_argo0) { | |
1716 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1717 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1718 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetMask. Expected _wxBitmap_p."); | |
1719 | return NULL; | |
1720 | } | |
1721 | } | |
1722 | if (_argo1) { | |
1723 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1724 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMask_p")) { | |
1725 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_SetMask. Expected _wxMask_p."); | |
1726 | return NULL; | |
1727 | } | |
1728 | } | |
1729 | { | |
0e2ff151 | 1730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1731 | wxBitmap_SetMask(_arg0,_arg1); |
e6056257 | 1732 | |
0e2ff151 | 1733 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1734 | if (PyErr_Occurred()) return NULL; |
1735 | } Py_INCREF(Py_None); | |
1736 | _resultobj = Py_None; | |
1737 | return _resultobj; | |
1738 | } | |
1739 | ||
1740 | #define wxBitmap_Ok(_swigobj) (_swigobj->Ok()) | |
1741 | static PyObject *_wrap_wxBitmap_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1742 | PyObject * _resultobj; | |
1743 | bool _result; | |
1744 | wxBitmap * _arg0; | |
1745 | PyObject * _argo0 = 0; | |
1746 | char *_kwnames[] = { "self", NULL }; | |
1747 | ||
1748 | self = self; | |
1749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_Ok",_kwnames,&_argo0)) | |
1750 | return NULL; | |
1751 | if (_argo0) { | |
1752 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1753 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1754 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_Ok. Expected _wxBitmap_p."); | |
1755 | return NULL; | |
1756 | } | |
1757 | } | |
1758 | { | |
0e2ff151 | 1759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1760 | _result = (bool )wxBitmap_Ok(_arg0); |
e6056257 | 1761 | |
0e2ff151 | 1762 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1763 | if (PyErr_Occurred()) return NULL; |
1764 | } _resultobj = Py_BuildValue("i",_result); | |
1765 | return _resultobj; | |
1766 | } | |
1767 | ||
1768 | #define wxBitmap_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
1769 | static PyObject *_wrap_wxBitmap_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1770 | PyObject * _resultobj; | |
1771 | int _result; | |
1772 | wxBitmap * _arg0; | |
1773 | PyObject * _argo0 = 0; | |
1774 | char *_kwnames[] = { "self", NULL }; | |
1775 | ||
1776 | self = self; | |
1777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetWidth",_kwnames,&_argo0)) | |
1778 | return NULL; | |
1779 | if (_argo0) { | |
1780 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1781 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1782 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetWidth. Expected _wxBitmap_p."); | |
1783 | return NULL; | |
1784 | } | |
1785 | } | |
1786 | { | |
0e2ff151 | 1787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1788 | _result = (int )wxBitmap_GetWidth(_arg0); |
e6056257 | 1789 | |
0e2ff151 | 1790 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1791 | if (PyErr_Occurred()) return NULL; |
1792 | } _resultobj = Py_BuildValue("i",_result); | |
1793 | return _resultobj; | |
1794 | } | |
1795 | ||
1796 | #define wxBitmap_GetHeight(_swigobj) (_swigobj->GetHeight()) | |
1797 | static PyObject *_wrap_wxBitmap_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1798 | PyObject * _resultobj; | |
1799 | int _result; | |
1800 | wxBitmap * _arg0; | |
1801 | PyObject * _argo0 = 0; | |
1802 | char *_kwnames[] = { "self", NULL }; | |
1803 | ||
1804 | self = self; | |
1805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetHeight",_kwnames,&_argo0)) | |
1806 | return NULL; | |
1807 | if (_argo0) { | |
1808 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1809 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1810 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetHeight. Expected _wxBitmap_p."); | |
1811 | return NULL; | |
1812 | } | |
1813 | } | |
1814 | { | |
0e2ff151 | 1815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1816 | _result = (int )wxBitmap_GetHeight(_arg0); |
e6056257 | 1817 | |
0e2ff151 | 1818 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1819 | if (PyErr_Occurred()) return NULL; |
1820 | } _resultobj = Py_BuildValue("i",_result); | |
1821 | return _resultobj; | |
1822 | } | |
1823 | ||
1824 | #define wxBitmap_GetDepth(_swigobj) (_swigobj->GetDepth()) | |
1825 | static PyObject *_wrap_wxBitmap_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1826 | PyObject * _resultobj; | |
1827 | int _result; | |
1828 | wxBitmap * _arg0; | |
1829 | PyObject * _argo0 = 0; | |
1830 | char *_kwnames[] = { "self", NULL }; | |
1831 | ||
1832 | self = self; | |
1833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetDepth",_kwnames,&_argo0)) | |
1834 | return NULL; | |
1835 | if (_argo0) { | |
1836 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1837 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1838 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetDepth. Expected _wxBitmap_p."); | |
1839 | return NULL; | |
1840 | } | |
1841 | } | |
1842 | { | |
0e2ff151 | 1843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1844 | _result = (int )wxBitmap_GetDepth(_arg0); |
e6056257 | 1845 | |
0e2ff151 | 1846 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1847 | if (PyErr_Occurred()) return NULL; |
1848 | } _resultobj = Py_BuildValue("i",_result); | |
1849 | return _resultobj; | |
1850 | } | |
1851 | ||
1852 | #define wxBitmap_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0)) | |
1853 | static PyObject *_wrap_wxBitmap_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1854 | PyObject * _resultobj; | |
1855 | wxBitmap * _arg0; | |
1856 | int _arg1; | |
1857 | PyObject * _argo0 = 0; | |
1858 | char *_kwnames[] = { "self","w", NULL }; | |
1859 | ||
1860 | self = self; | |
1861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetWidth",_kwnames,&_argo0,&_arg1)) | |
1862 | return NULL; | |
1863 | if (_argo0) { | |
1864 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1865 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1866 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetWidth. Expected _wxBitmap_p."); | |
1867 | return NULL; | |
1868 | } | |
1869 | } | |
1870 | { | |
0e2ff151 | 1871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1872 | wxBitmap_SetWidth(_arg0,_arg1); |
e6056257 | 1873 | |
0e2ff151 | 1874 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1875 | if (PyErr_Occurred()) return NULL; |
1876 | } Py_INCREF(Py_None); | |
1877 | _resultobj = Py_None; | |
1878 | return _resultobj; | |
1879 | } | |
1880 | ||
1881 | #define wxBitmap_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0)) | |
1882 | static PyObject *_wrap_wxBitmap_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1883 | PyObject * _resultobj; | |
1884 | wxBitmap * _arg0; | |
1885 | int _arg1; | |
1886 | PyObject * _argo0 = 0; | |
1887 | char *_kwnames[] = { "self","h", NULL }; | |
1888 | ||
1889 | self = self; | |
1890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetHeight",_kwnames,&_argo0,&_arg1)) | |
1891 | return NULL; | |
1892 | if (_argo0) { | |
1893 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1894 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1895 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetHeight. Expected _wxBitmap_p."); | |
1896 | return NULL; | |
1897 | } | |
1898 | } | |
1899 | { | |
0e2ff151 | 1900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1901 | wxBitmap_SetHeight(_arg0,_arg1); |
e6056257 | 1902 | |
0e2ff151 | 1903 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1904 | if (PyErr_Occurred()) return NULL; |
1905 | } Py_INCREF(Py_None); | |
1906 | _resultobj = Py_None; | |
1907 | return _resultobj; | |
1908 | } | |
1909 | ||
1910 | #define wxBitmap_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0)) | |
1911 | static PyObject *_wrap_wxBitmap_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1912 | PyObject * _resultobj; | |
1913 | wxBitmap * _arg0; | |
1914 | int _arg1; | |
1915 | PyObject * _argo0 = 0; | |
1916 | char *_kwnames[] = { "self","d", NULL }; | |
1917 | ||
1918 | self = self; | |
1919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetDepth",_kwnames,&_argo0,&_arg1)) | |
1920 | return NULL; | |
1921 | if (_argo0) { | |
1922 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1923 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1924 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetDepth. Expected _wxBitmap_p."); | |
1925 | return NULL; | |
1926 | } | |
1927 | } | |
1928 | { | |
0e2ff151 | 1929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1930 | wxBitmap_SetDepth(_arg0,_arg1); |
e6056257 | 1931 | |
0e2ff151 | 1932 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1933 | if (PyErr_Occurred()) return NULL; |
1934 | } Py_INCREF(Py_None); | |
1935 | _resultobj = Py_None; | |
1936 | return _resultobj; | |
1937 | } | |
1938 | ||
1939 | #define wxBitmap_GetSubBitmap(_swigobj,_swigarg0) (_swigobj->GetSubBitmap(_swigarg0)) | |
1940 | static PyObject *_wrap_wxBitmap_GetSubBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1941 | PyObject * _resultobj; | |
1942 | wxBitmap * _result; | |
1943 | wxBitmap * _arg0; | |
1944 | wxRect * _arg1; | |
1945 | PyObject * _argo0 = 0; | |
1946 | wxRect temp; | |
1947 | PyObject * _obj1 = 0; | |
1948 | char *_kwnames[] = { "self","rect", NULL }; | |
1949 | char _ptemp[128]; | |
1950 | ||
1951 | self = self; | |
1952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_GetSubBitmap",_kwnames,&_argo0,&_obj1)) | |
1953 | return NULL; | |
1954 | if (_argo0) { | |
1955 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1956 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1957 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetSubBitmap. Expected _wxBitmap_p."); | |
1958 | return NULL; | |
1959 | } | |
1960 | } | |
1961 | { | |
1962 | _arg1 = &temp; | |
1963 | if (! wxRect_helper(_obj1, &_arg1)) | |
1964 | return NULL; | |
1965 | } | |
1966 | { | |
0e2ff151 | 1967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 1968 | _result = new wxBitmap (wxBitmap_GetSubBitmap(_arg0,*_arg1)); |
e6056257 | 1969 | |
0e2ff151 | 1970 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1971 | if (PyErr_Occurred()) return NULL; |
1972 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); | |
1973 | _resultobj = Py_BuildValue("s",_ptemp); | |
1974 | return _resultobj; | |
1975 | } | |
1976 | ||
1977 | #define wxBitmap_CopyFromIcon(_swigobj,_swigarg0) (_swigobj->CopyFromIcon(_swigarg0)) | |
1978 | static PyObject *_wrap_wxBitmap_CopyFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1979 | PyObject * _resultobj; | |
1980 | bool _result; | |
1981 | wxBitmap * _arg0; | |
1982 | wxIcon * _arg1; | |
1983 | PyObject * _argo0 = 0; | |
1984 | PyObject * _argo1 = 0; | |
1985 | char *_kwnames[] = { "self","icon", NULL }; | |
1986 | ||
1987 | self = self; | |
1988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_CopyFromIcon",_kwnames,&_argo0,&_argo1)) | |
1989 | return NULL; | |
1990 | if (_argo0) { | |
1991 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1992 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1993 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_CopyFromIcon. Expected _wxBitmap_p."); | |
1994 | return NULL; | |
1995 | } | |
1996 | } | |
1997 | if (_argo1) { | |
1998 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1999 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) { | |
2000 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_CopyFromIcon. Expected _wxIcon_p."); | |
2001 | return NULL; | |
2002 | } | |
2003 | } | |
2004 | { | |
0e2ff151 | 2005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 2006 | _result = (bool )wxBitmap_CopyFromIcon(_arg0,*_arg1); |
e6056257 | 2007 | |
0e2ff151 | 2008 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2009 | if (PyErr_Occurred()) return NULL; |
2010 | } _resultobj = Py_BuildValue("i",_result); | |
2011 | return _resultobj; | |
2012 | } | |
2013 | ||
2014 | static void *SwigwxMaskTowxObject(void *ptr) { | |
2015 | wxMask *src; | |
2016 | wxObject *dest; | |
2017 | src = (wxMask *) ptr; | |
2018 | dest = (wxObject *) src; | |
2019 | return (void *) dest; | |
2020 | } | |
2021 | ||
2022 | #define new_wxMask(_swigarg0) (new wxMask(_swigarg0)) | |
2023 | static PyObject *_wrap_new_wxMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2024 | PyObject * _resultobj; | |
2025 | wxMask * _result; | |
2026 | wxBitmap * _arg0; | |
2027 | PyObject * _argo0 = 0; | |
2028 | char *_kwnames[] = { "bitmap", NULL }; | |
2029 | char _ptemp[128]; | |
2030 | ||
2031 | self = self; | |
2032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxMask",_kwnames,&_argo0)) | |
2033 | return NULL; | |
2034 | if (_argo0) { | |
2035 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2036 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
2037 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMask. Expected _wxBitmap_p."); | |
2038 | return NULL; | |
2039 | } | |
2040 | } | |
2041 | { | |
0e2ff151 | 2042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 2043 | _result = (wxMask *)new_wxMask(*_arg0); |
e6056257 | 2044 | |
0e2ff151 | 2045 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2046 | if (PyErr_Occurred()) return NULL; |
2047 | } if (_result) { | |
2048 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p"); | |
2049 | _resultobj = Py_BuildValue("s",_ptemp); | |
2050 | } else { | |
2051 | Py_INCREF(Py_None); | |
2052 | _resultobj = Py_None; | |
2053 | } | |
2054 | return _resultobj; | |
2055 | } | |
2056 | ||
2057 | static void wxMask_Destroy(wxMask *self) { delete self; } | |
2058 | static PyObject *_wrap_wxMask_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2059 | PyObject * _resultobj; | |
2060 | wxMask * _arg0; | |
2061 | PyObject * _argo0 = 0; | |
2062 | char *_kwnames[] = { "self", NULL }; | |
2063 | ||
2064 | self = self; | |
2065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMask_Destroy",_kwnames,&_argo0)) | |
2066 | return NULL; | |
2067 | if (_argo0) { | |
2068 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2069 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMask_p")) { | |
2070 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMask_Destroy. Expected _wxMask_p."); | |
2071 | return NULL; | |
2072 | } | |
2073 | } | |
2074 | { | |
0e2ff151 | 2075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 2076 | wxMask_Destroy(_arg0); |
e6056257 | 2077 | |
0e2ff151 | 2078 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2079 | if (PyErr_Occurred()) return NULL; |
2080 | } Py_INCREF(Py_None); | |
2081 | _resultobj = Py_None; | |
2082 | return _resultobj; | |
2083 | } | |
2084 | ||
2085 | static void *SwigwxIconTowxGDIObject(void *ptr) { | |
2086 | wxIcon *src; | |
2087 | wxGDIObject *dest; | |
2088 | src = (wxIcon *) ptr; | |
2089 | dest = (wxGDIObject *) src; | |
2090 | return (void *) dest; | |
2091 | } | |
2092 | ||
2093 | static void *SwigwxIconTowxObject(void *ptr) { | |
2094 | wxIcon *src; | |
2095 | wxObject *dest; | |
2096 | src = (wxIcon *) ptr; | |
2097 | dest = (wxObject *) src; | |
2098 | return (void *) dest; | |
2099 | } | |
2100 | ||
2101 | #define new_wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
2102 | static PyObject *_wrap_new_wxIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2103 | PyObject * _resultobj; | |
2104 | wxIcon * _result; | |
2105 | wxString * _arg0; | |
2106 | long _arg1; | |
2107 | int _arg2 = (int ) -1; | |
2108 | int _arg3 = (int ) -1; | |
2109 | PyObject * _obj0 = 0; | |
2110 | char *_kwnames[] = { "name","flags","desiredWidth","desiredHeight", NULL }; | |
2111 | char _ptemp[128]; | |
2112 | ||
2113 | self = self; | |
2114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|ii:new_wxIcon",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3)) | |
2115 | return NULL; | |
2116 | { | |
6824d4f9 RD |
2117 | _arg0 = wxString_in_helper(_obj0); |
2118 | if (_arg0 == NULL) | |
e6056257 | 2119 | return NULL; |
e6056257 RD |
2120 | } |
2121 | { | |
0e2ff151 | 2122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 2123 | _result = (wxIcon *)new_wxIcon(*_arg0,_arg1,_arg2,_arg3); |
e6056257 | 2124 | |
0e2ff151 | 2125 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2126 | if (PyErr_Occurred()) return NULL; |
2127 | } if (_result) { | |
2128 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p"); | |
2129 | _resultobj = Py_BuildValue("s",_ptemp); | |
2130 | } else { | |
2131 | Py_INCREF(Py_None); | |
2132 | _resultobj = Py_None; | |
2133 | } | |
2134 | { | |
2135 | if (_obj0) | |
2136 | delete _arg0; | |
2137 | } | |
2138 | return _resultobj; | |
2139 | } | |
2140 | ||
2141 | #define delete_wxIcon(_swigobj) (delete _swigobj) | |
2142 | static PyObject *_wrap_delete_wxIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2143 | PyObject * _resultobj; | |
2144 | wxIcon * _arg0; | |
2145 | PyObject * _argo0 = 0; | |
2146 | char *_kwnames[] = { "self", NULL }; | |
2147 | ||
2148 | self = self; | |
2149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxIcon",_kwnames,&_argo0)) | |
2150 | return NULL; | |
2151 | if (_argo0) { | |
2152 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2153 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2154 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxIcon. Expected _wxIcon_p."); | |
2155 | return NULL; | |
2156 | } | |
2157 | } | |
2158 | { | |
0e2ff151 | 2159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 2160 | delete_wxIcon(_arg0); |
e6056257 | 2161 | |
0e2ff151 | 2162 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2163 | if (PyErr_Occurred()) return NULL; |
2164 | } Py_INCREF(Py_None); | |
2165 | _resultobj = Py_None; | |
2166 | return _resultobj; | |
2167 | } | |
2168 | ||
e6056257 RD |
2169 | #define wxIcon_Ok(_swigobj) (_swigobj->Ok()) |
2170 | static PyObject *_wrap_wxIcon_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2171 | PyObject * _resultobj; | |
2172 | bool _result; | |
2173 | wxIcon * _arg0; | |
2174 | PyObject * _argo0 = 0; | |
2175 | char *_kwnames[] = { "self", NULL }; | |
2176 | ||
2177 | self = self; | |
2178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_Ok",_kwnames,&_argo0)) | |
2179 | return NULL; | |
2180 | if (_argo0) { | |
2181 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2182 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2183 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_Ok. Expected _wxIcon_p."); | |
2184 | return NULL; | |
2185 | } | |
2186 | } | |
2187 | { | |
0e2ff151 | 2188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 2189 | _result = (bool )wxIcon_Ok(_arg0); |
e6056257 | 2190 | |
0e2ff151 | 2191 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2192 | if (PyErr_Occurred()) return NULL; |
2193 | } _resultobj = Py_BuildValue("i",_result); | |
2194 | return _resultobj; | |
2195 | } | |
2196 | ||
2197 | #define wxIcon_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
2198 | static PyObject *_wrap_wxIcon_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2199 | PyObject * _resultobj; | |
2200 | int _result; | |
2201 | wxIcon * _arg0; | |
2202 | PyObject * _argo0 = 0; | |
2203 | char *_kwnames[] = { "self", NULL }; | |
2204 | ||
2205 | self = self; | |
2206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetWidth",_kwnames,&_argo0)) | |
2207 | return NULL; | |
2208 | if (_argo0) { | |
2209 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2210 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2211 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetWidth. Expected _wxIcon_p."); | |
2212 | return NULL; | |
2213 | } | |
2214 | } | |
2215 | { | |
0e2ff151 | 2216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 2217 | _result = (int )wxIcon_GetWidth(_arg0); |
e6056257 | 2218 | |
0e2ff151 | 2219 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2220 | if (PyErr_Occurred()) return NULL; |
2221 | } _resultobj = Py_BuildValue("i",_result); | |
2222 | return _resultobj; | |
2223 | } | |
2224 | ||
2225 | #define wxIcon_GetHeight(_swigobj) (_swigobj->GetHeight()) | |
2226 | static PyObject *_wrap_wxIcon_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2227 | PyObject * _resultobj; | |
2228 | int _result; | |
2229 | wxIcon * _arg0; | |
2230 | PyObject * _argo0 = 0; | |
2231 | char *_kwnames[] = { "self", NULL }; | |
2232 | ||
2233 | self = self; | |
2234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetHeight",_kwnames,&_argo0)) | |
2235 | return NULL; | |
2236 | if (_argo0) { | |
2237 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2238 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2239 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetHeight. Expected _wxIcon_p."); | |
2240 | return NULL; | |
2241 | } | |
2242 | } | |
2243 | { | |
0e2ff151 | 2244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 2245 | _result = (int )wxIcon_GetHeight(_arg0); |
e6056257 | 2246 | |
0e2ff151 | 2247 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2248 | if (PyErr_Occurred()) return NULL; |
2249 | } _resultobj = Py_BuildValue("i",_result); | |
2250 | return _resultobj; | |
2251 | } | |
2252 | ||
2253 | #define wxIcon_GetDepth(_swigobj) (_swigobj->GetDepth()) | |
2254 | static PyObject *_wrap_wxIcon_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2255 | PyObject * _resultobj; | |
2256 | int _result; | |
2257 | wxIcon * _arg0; | |
2258 | PyObject * _argo0 = 0; | |
2259 | char *_kwnames[] = { "self", NULL }; | |
2260 | ||
2261 | self = self; | |
2262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetDepth",_kwnames,&_argo0)) | |
2263 | return NULL; | |
2264 | if (_argo0) { | |
2265 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2266 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2267 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetDepth. Expected _wxIcon_p."); | |
2268 | return NULL; | |
2269 | } | |
2270 | } | |
2271 | { | |
0e2ff151 | 2272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 2273 | _result = (int )wxIcon_GetDepth(_arg0); |
e6056257 | 2274 | |
0e2ff151 | 2275 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2276 | if (PyErr_Occurred()) return NULL; |
2277 | } _resultobj = Py_BuildValue("i",_result); | |
2278 | return _resultobj; | |
2279 | } | |
2280 | ||
2281 | #define wxIcon_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0)) | |
2282 | static PyObject *_wrap_wxIcon_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2283 | PyObject * _resultobj; | |
2284 | wxIcon * _arg0; | |
2285 | int _arg1; | |
2286 | PyObject * _argo0 = 0; | |
2287 | char *_kwnames[] = { "self","w", NULL }; | |
2288 | ||
2289 | self = self; | |
2290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetWidth",_kwnames,&_argo0,&_arg1)) | |
2291 | return NULL; | |
2292 | if (_argo0) { | |
2293 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2294 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2295 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetWidth. Expected _wxIcon_p."); | |
2296 | return NULL; | |
2297 | } | |
2298 | } | |
2299 | { | |
0e2ff151 | 2300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 2301 | wxIcon_SetWidth(_arg0,_arg1); |
e6056257 | 2302 | |
0e2ff151 | 2303 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2304 | if (PyErr_Occurred()) return NULL; |
2305 | } Py_INCREF(Py_None); | |
2306 | _resultobj = Py_None; | |
2307 | return _resultobj; | |
2308 | } | |
2309 | ||
2310 | #define wxIcon_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0)) | |
2311 | static PyObject *_wrap_wxIcon_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2312 | PyObject * _resultobj; | |
2313 | wxIcon * _arg0; | |
2314 | int _arg1; | |
2315 | PyObject * _argo0 = 0; | |
2316 | char *_kwnames[] = { "self","h", NULL }; | |
2317 | ||
2318 | self = self; | |
2319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetHeight",_kwnames,&_argo0,&_arg1)) | |
2320 | return NULL; | |
2321 | if (_argo0) { | |
2322 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2323 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2324 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetHeight. Expected _wxIcon_p."); | |
2325 | return NULL; | |
2326 | } | |
2327 | } | |
2328 | { | |
0e2ff151 | 2329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 2330 | wxIcon_SetHeight(_arg0,_arg1); |
e6056257 | 2331 | |
0e2ff151 | 2332 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2333 | if (PyErr_Occurred()) return NULL; |
2334 | } Py_INCREF(Py_None); | |
2335 | _resultobj = Py_None; | |
2336 | return _resultobj; | |
2337 | } | |
2338 | ||
2339 | #define wxIcon_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0)) | |
2340 | static PyObject *_wrap_wxIcon_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2341 | PyObject * _resultobj; | |
2342 | wxIcon * _arg0; | |
2343 | int _arg1; | |
2344 | PyObject * _argo0 = 0; | |
2345 | char *_kwnames[] = { "self","d", NULL }; | |
2346 | ||
2347 | self = self; | |
2348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetDepth",_kwnames,&_argo0,&_arg1)) | |
2349 | return NULL; | |
2350 | if (_argo0) { | |
2351 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2352 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2353 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetDepth. Expected _wxIcon_p."); | |
2354 | return NULL; | |
2355 | } | |
2356 | } | |
2357 | { | |
0e2ff151 | 2358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 2359 | wxIcon_SetDepth(_arg0,_arg1); |
e6056257 | 2360 | |
0e2ff151 | 2361 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2362 | if (PyErr_Occurred()) return NULL; |
2363 | } Py_INCREF(Py_None); | |
2364 | _resultobj = Py_None; | |
2365 | return _resultobj; | |
2366 | } | |
2367 | ||
2368 | #define wxIcon_CopyFromBitmap(_swigobj,_swigarg0) (_swigobj->CopyFromBitmap(_swigarg0)) | |
2369 | static PyObject *_wrap_wxIcon_CopyFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2370 | PyObject * _resultobj; | |
2371 | wxIcon * _arg0; | |
2372 | wxBitmap * _arg1; | |
2373 | PyObject * _argo0 = 0; | |
6abe8375 RD |
2374 | PyObject * _argo1 = 0; |
2375 | char *_kwnames[] = { "self","bmp", NULL }; | |
2376 | ||
2377 | self = self; | |
2378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxIcon_CopyFromBitmap",_kwnames,&_argo0,&_argo1)) | |
2379 | return NULL; | |
2380 | if (_argo0) { | |
2381 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2382 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2383 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_CopyFromBitmap. Expected _wxIcon_p."); | |
2384 | return NULL; | |
2385 | } | |
2386 | } | |
2387 | if (_argo1) { | |
2388 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2389 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
2390 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxIcon_CopyFromBitmap. Expected _wxBitmap_p."); | |
2391 | return NULL; | |
2392 | } | |
2393 | } | |
2394 | { | |
2395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6824d4f9 | 2396 | wxIcon_CopyFromBitmap(_arg0,*_arg1); |
6abe8375 RD |
2397 | |
2398 | wxPyEndAllowThreads(__tstate); | |
2399 | if (PyErr_Occurred()) return NULL; | |
2400 | } Py_INCREF(Py_None); | |
2401 | _resultobj = Py_None; | |
2402 | return _resultobj; | |
2403 | } | |
2404 | ||
2405 | static void *SwigwxCursorTowxGDIObject(void *ptr) { | |
2406 | wxCursor *src; | |
2407 | wxGDIObject *dest; | |
2408 | src = (wxCursor *) ptr; | |
2409 | dest = (wxGDIObject *) src; | |
2410 | return (void *) dest; | |
2411 | } | |
2412 | ||
2413 | static void *SwigwxCursorTowxObject(void *ptr) { | |
2414 | wxCursor *src; | |
2415 | wxObject *dest; | |
2416 | src = (wxCursor *) ptr; | |
2417 | dest = (wxObject *) src; | |
2418 | return (void *) dest; | |
2419 | } | |
2420 | ||
2421 | #define delete_wxCursor(_swigobj) (delete _swigobj) | |
2422 | static PyObject *_wrap_delete_wxCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2423 | PyObject * _resultobj; | |
2424 | wxCursor * _arg0; | |
2425 | PyObject * _argo0 = 0; | |
2426 | char *_kwnames[] = { "self", NULL }; | |
2427 | ||
2428 | self = self; | |
2429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxCursor",_kwnames,&_argo0)) | |
2430 | return NULL; | |
2431 | if (_argo0) { | |
2432 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2433 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
2434 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxCursor. Expected _wxCursor_p."); | |
2435 | return NULL; | |
2436 | } | |
2437 | } | |
2438 | { | |
2439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6824d4f9 | 2440 | delete_wxCursor(_arg0); |
6abe8375 RD |
2441 | |
2442 | wxPyEndAllowThreads(__tstate); | |
2443 | if (PyErr_Occurred()) return NULL; | |
2444 | } Py_INCREF(Py_None); | |
2445 | _resultobj = Py_None; | |
2446 | return _resultobj; | |
2447 | } | |
2448 | ||
2449 | #define wxCursor_Ok(_swigobj) (_swigobj->Ok()) | |
2450 | static PyObject *_wrap_wxCursor_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2451 | PyObject * _resultobj; | |
2452 | bool _result; | |
2453 | wxCursor * _arg0; | |
2454 | PyObject * _argo0 = 0; | |
2455 | char *_kwnames[] = { "self", NULL }; | |
2456 | ||
2457 | self = self; | |
2458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_Ok",_kwnames,&_argo0)) | |
2459 | return NULL; | |
2460 | if (_argo0) { | |
2461 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2462 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
2463 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_Ok. Expected _wxCursor_p."); | |
2464 | return NULL; | |
2465 | } | |
2466 | } | |
2467 | { | |
2468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6824d4f9 | 2469 | _result = (bool )wxCursor_Ok(_arg0); |
6abe8375 RD |
2470 | |
2471 | wxPyEndAllowThreads(__tstate); | |
2472 | if (PyErr_Occurred()) return NULL; | |
2473 | } _resultobj = Py_BuildValue("i",_result); | |
2474 | return _resultobj; | |
2475 | } | |
2476 | ||
2477 | #define new_wxNativeFontInfo() (new wxNativeFontInfo()) | |
2478 | static PyObject *_wrap_new_wxNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2479 | PyObject * _resultobj; | |
2480 | wxNativeFontInfo * _result; | |
2481 | char *_kwnames[] = { NULL }; | |
2482 | char _ptemp[128]; | |
2483 | ||
2484 | self = self; | |
2485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxNativeFontInfo",_kwnames)) | |
2486 | return NULL; | |
2487 | { | |
2488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6824d4f9 | 2489 | _result = (wxNativeFontInfo *)new_wxNativeFontInfo(); |
6abe8375 RD |
2490 | |
2491 | wxPyEndAllowThreads(__tstate); | |
2492 | if (PyErr_Occurred()) return NULL; | |
2493 | } if (_result) { | |
2494 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxNativeFontInfo_p"); | |
2495 | _resultobj = Py_BuildValue("s",_ptemp); | |
2496 | } else { | |
2497 | Py_INCREF(Py_None); | |
2498 | _resultobj = Py_None; | |
2499 | } | |
2500 | return _resultobj; | |
2501 | } | |
2502 | ||
2503 | #define wxNativeFontInfo_Init(_swigobj) (_swigobj->Init()) | |
2504 | static PyObject *_wrap_wxNativeFontInfo_Init(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2505 | PyObject * _resultobj; | |
2506 | wxNativeFontInfo * _arg0; | |
2507 | PyObject * _argo0 = 0; | |
2508 | char *_kwnames[] = { "self", NULL }; | |
2509 | ||
2510 | self = self; | |
2511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_Init",_kwnames,&_argo0)) | |
2512 | return NULL; | |
2513 | if (_argo0) { | |
2514 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2515 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
2516 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_Init. Expected _wxNativeFontInfo_p."); | |
2517 | return NULL; | |
2518 | } | |
2519 | } | |
2520 | { | |
2521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6824d4f9 | 2522 | wxNativeFontInfo_Init(_arg0); |
6abe8375 RD |
2523 | |
2524 | wxPyEndAllowThreads(__tstate); | |
2525 | if (PyErr_Occurred()) return NULL; | |
2526 | } Py_INCREF(Py_None); | |
2527 | _resultobj = Py_None; | |
2528 | return _resultobj; | |
2529 | } | |
2530 | ||
2531 | #define wxNativeFontInfo_GetPointSize(_swigobj) (_swigobj->GetPointSize()) | |
2532 | static PyObject *_wrap_wxNativeFontInfo_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2533 | PyObject * _resultobj; | |
2534 | int _result; | |
2535 | wxNativeFontInfo * _arg0; | |
2536 | PyObject * _argo0 = 0; | |
2537 | char *_kwnames[] = { "self", NULL }; | |
2538 | ||
2539 | self = self; | |
2540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_GetPointSize",_kwnames,&_argo0)) | |
2541 | return NULL; | |
2542 | if (_argo0) { | |
2543 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2544 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
2545 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_GetPointSize. Expected _wxNativeFontInfo_p."); | |
2546 | return NULL; | |
2547 | } | |
2548 | } | |
2549 | { | |
2550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6824d4f9 | 2551 | _result = (int )wxNativeFontInfo_GetPointSize(_arg0); |
6abe8375 RD |
2552 | |
2553 | wxPyEndAllowThreads(__tstate); | |
2554 | if (PyErr_Occurred()) return NULL; | |
2555 | } _resultobj = Py_BuildValue("i",_result); | |
2556 | return _resultobj; | |
2557 | } | |
2558 | ||
2559 | #define wxNativeFontInfo_GetStyle(_swigobj) (_swigobj->GetStyle()) | |
2560 | static PyObject *_wrap_wxNativeFontInfo_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2561 | PyObject * _resultobj; | |
2562 | wxFontStyle _result; | |
2563 | wxNativeFontInfo * _arg0; | |
2564 | PyObject * _argo0 = 0; | |
2565 | char *_kwnames[] = { "self", NULL }; | |
2566 | ||
2567 | self = self; | |
2568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_GetStyle",_kwnames,&_argo0)) | |
2569 | return NULL; | |
2570 | if (_argo0) { | |
2571 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2572 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
2573 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_GetStyle. Expected _wxNativeFontInfo_p."); | |
2574 | return NULL; | |
2575 | } | |
2576 | } | |
2577 | { | |
2578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6824d4f9 | 2579 | _result = (wxFontStyle )wxNativeFontInfo_GetStyle(_arg0); |
6abe8375 RD |
2580 | |
2581 | wxPyEndAllowThreads(__tstate); | |
2582 | if (PyErr_Occurred()) return NULL; | |
2583 | } _resultobj = Py_BuildValue("i",_result); | |
2584 | return _resultobj; | |
2585 | } | |
2586 | ||
2587 | #define wxNativeFontInfo_GetWeight(_swigobj) (_swigobj->GetWeight()) | |
2588 | static PyObject *_wrap_wxNativeFontInfo_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2589 | PyObject * _resultobj; | |
2590 | wxFontWeight _result; | |
2591 | wxNativeFontInfo * _arg0; | |
2592 | PyObject * _argo0 = 0; | |
2593 | char *_kwnames[] = { "self", NULL }; | |
2594 | ||
2595 | self = self; | |
2596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_GetWeight",_kwnames,&_argo0)) | |
2597 | return NULL; | |
2598 | if (_argo0) { | |
2599 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2600 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
2601 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_GetWeight. Expected _wxNativeFontInfo_p."); | |
2602 | return NULL; | |
2603 | } | |
2604 | } | |
2605 | { | |
2606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6824d4f9 | 2607 | _result = (wxFontWeight )wxNativeFontInfo_GetWeight(_arg0); |
6abe8375 RD |
2608 | |
2609 | wxPyEndAllowThreads(__tstate); | |
2610 | if (PyErr_Occurred()) return NULL; | |
2611 | } _resultobj = Py_BuildValue("i",_result); | |
2612 | return _resultobj; | |
2613 | } | |
2614 | ||
2615 | #define wxNativeFontInfo_GetUnderlined(_swigobj) (_swigobj->GetUnderlined()) | |
2616 | static PyObject *_wrap_wxNativeFontInfo_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2617 | PyObject * _resultobj; | |
2618 | bool _result; | |
2619 | wxNativeFontInfo * _arg0; | |
2620 | PyObject * _argo0 = 0; | |
2621 | char *_kwnames[] = { "self", NULL }; | |
2622 | ||
2623 | self = self; | |
2624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_GetUnderlined",_kwnames,&_argo0)) | |
2625 | return NULL; | |
2626 | if (_argo0) { | |
2627 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2628 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
2629 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_GetUnderlined. Expected _wxNativeFontInfo_p."); | |
2630 | return NULL; | |
2631 | } | |
2632 | } | |
2633 | { | |
2634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6824d4f9 | 2635 | _result = (bool )wxNativeFontInfo_GetUnderlined(_arg0); |
6abe8375 RD |
2636 | |
2637 | wxPyEndAllowThreads(__tstate); | |
2638 | if (PyErr_Occurred()) return NULL; | |
2639 | } _resultobj = Py_BuildValue("i",_result); | |
2640 | return _resultobj; | |
2641 | } | |
2642 | ||
2643 | #define wxNativeFontInfo_GetFaceName(_swigobj) (_swigobj->GetFaceName()) | |
2644 | static PyObject *_wrap_wxNativeFontInfo_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2645 | PyObject * _resultobj; | |
2646 | wxString * _result; | |
2647 | wxNativeFontInfo * _arg0; | |
2648 | PyObject * _argo0 = 0; | |
2649 | char *_kwnames[] = { "self", NULL }; | |
2650 | ||
2651 | self = self; | |
2652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_GetFaceName",_kwnames,&_argo0)) | |
2653 | return NULL; | |
2654 | if (_argo0) { | |
2655 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2656 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
2657 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_GetFaceName. Expected _wxNativeFontInfo_p."); | |
2658 | return NULL; | |
2659 | } | |
2660 | } | |
2661 | { | |
2662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6824d4f9 | 2663 | _result = new wxString (wxNativeFontInfo_GetFaceName(_arg0)); |
6abe8375 RD |
2664 | |
2665 | wxPyEndAllowThreads(__tstate); | |
2666 | if (PyErr_Occurred()) return NULL; | |
2667 | }{ | |
6824d4f9 RD |
2668 | #if wxUSE_UNICODE |
2669 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
2670 | #else | |
6abe8375 | 2671 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
6824d4f9 | 2672 | #endif |
6abe8375 RD |
2673 | } |
2674 | { | |
2675 | delete _result; | |
2676 | } | |
2677 | return _resultobj; | |
2678 | } | |
2679 | ||
2680 | #define wxNativeFontInfo_GetFamily(_swigobj) (_swigobj->GetFamily()) | |
2681 | static PyObject *_wrap_wxNativeFontInfo_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2682 | PyObject * _resultobj; | |
2683 | wxFontFamily _result; | |
2684 | wxNativeFontInfo * _arg0; | |
2685 | PyObject * _argo0 = 0; | |
2686 | char *_kwnames[] = { "self", NULL }; | |
2687 | ||
2688 | self = self; | |
2689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_GetFamily",_kwnames,&_argo0)) | |
2690 | return NULL; | |
2691 | if (_argo0) { | |
2692 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2693 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
2694 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_GetFamily. Expected _wxNativeFontInfo_p."); | |
2695 | return NULL; | |
2696 | } | |
2697 | } | |
2698 | { | |
2699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6824d4f9 | 2700 | _result = (wxFontFamily )wxNativeFontInfo_GetFamily(_arg0); |
6abe8375 RD |
2701 | |
2702 | wxPyEndAllowThreads(__tstate); | |
2703 | if (PyErr_Occurred()) return NULL; | |
2704 | } _resultobj = Py_BuildValue("i",_result); | |
2705 | return _resultobj; | |
2706 | } | |
2707 | ||
2708 | #define wxNativeFontInfo_GetEncoding(_swigobj) (_swigobj->GetEncoding()) | |
2709 | static PyObject *_wrap_wxNativeFontInfo_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2710 | PyObject * _resultobj; | |
2711 | wxFontEncoding _result; | |
2712 | wxNativeFontInfo * _arg0; | |
2713 | PyObject * _argo0 = 0; | |
2714 | char *_kwnames[] = { "self", NULL }; | |
2715 | ||
2716 | self = self; | |
2717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_GetEncoding",_kwnames,&_argo0)) | |
2718 | return NULL; | |
2719 | if (_argo0) { | |
2720 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2721 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
2722 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_GetEncoding. Expected _wxNativeFontInfo_p."); | |
2723 | return NULL; | |
2724 | } | |
2725 | } | |
2726 | { | |
2727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6824d4f9 | 2728 | _result = (wxFontEncoding )wxNativeFontInfo_GetEncoding(_arg0); |
6abe8375 RD |
2729 | |
2730 | wxPyEndAllowThreads(__tstate); | |
2731 | if (PyErr_Occurred()) return NULL; | |
2732 | } _resultobj = Py_BuildValue("i",_result); | |
2733 | return _resultobj; | |
2734 | } | |
2735 | ||
2736 | #define wxNativeFontInfo_SetPointSize(_swigobj,_swigarg0) (_swigobj->SetPointSize(_swigarg0)) | |
2737 | static PyObject *_wrap_wxNativeFontInfo_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2738 | PyObject * _resultobj; | |
2739 | wxNativeFontInfo * _arg0; | |
2740 | int _arg1; | |
2741 | PyObject * _argo0 = 0; | |
2742 | char *_kwnames[] = { "self","pointsize", NULL }; | |
2743 | ||
2744 | self = self; | |
2745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNativeFontInfo_SetPointSize",_kwnames,&_argo0,&_arg1)) | |
2746 | return NULL; | |
2747 | if (_argo0) { | |
2748 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2749 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
2750 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_SetPointSize. Expected _wxNativeFontInfo_p."); | |
2751 | return NULL; | |
2752 | } | |
2753 | } | |
2754 | { | |
2755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6824d4f9 | 2756 | wxNativeFontInfo_SetPointSize(_arg0,_arg1); |
6abe8375 RD |
2757 | |
2758 | wxPyEndAllowThreads(__tstate); | |
2759 | if (PyErr_Occurred()) return NULL; | |
2760 | } Py_INCREF(Py_None); | |
2761 | _resultobj = Py_None; | |
2762 | return _resultobj; | |
2763 | } | |
2764 | ||
2765 | #define wxNativeFontInfo_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0)) | |
2766 | static PyObject *_wrap_wxNativeFontInfo_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2767 | PyObject * _resultobj; | |
2768 | wxNativeFontInfo * _arg0; | |
2769 | wxFontStyle _arg1; | |
2770 | PyObject * _argo0 = 0; | |
2771 | char *_kwnames[] = { "self","style", NULL }; | |
2772 | ||
2773 | self = self; | |
2774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNativeFontInfo_SetStyle",_kwnames,&_argo0,&_arg1)) | |
2775 | return NULL; | |
2776 | if (_argo0) { | |
2777 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2778 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
2779 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_SetStyle. Expected _wxNativeFontInfo_p."); | |
2780 | return NULL; | |
2781 | } | |
2782 | } | |
2783 | { | |
2784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6824d4f9 | 2785 | wxNativeFontInfo_SetStyle(_arg0,_arg1); |
6abe8375 RD |
2786 | |
2787 | wxPyEndAllowThreads(__tstate); | |
2788 | if (PyErr_Occurred()) return NULL; | |
2789 | } Py_INCREF(Py_None); | |
2790 | _resultobj = Py_None; | |
2791 | return _resultobj; | |
2792 | } | |
2793 | ||
2794 | #define wxNativeFontInfo_SetWeight(_swigobj,_swigarg0) (_swigobj->SetWeight(_swigarg0)) | |
2795 | static PyObject *_wrap_wxNativeFontInfo_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2796 | PyObject * _resultobj; | |
2797 | wxNativeFontInfo * _arg0; | |
2798 | wxFontWeight _arg1; | |
2799 | PyObject * _argo0 = 0; | |
2800 | char *_kwnames[] = { "self","weight", NULL }; | |
2801 | ||
2802 | self = self; | |
2803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNativeFontInfo_SetWeight",_kwnames,&_argo0,&_arg1)) | |
2804 | return NULL; | |
2805 | if (_argo0) { | |
2806 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2807 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
2808 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_SetWeight. Expected _wxNativeFontInfo_p."); | |
2809 | return NULL; | |
2810 | } | |
2811 | } | |
2812 | { | |
2813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6824d4f9 | 2814 | wxNativeFontInfo_SetWeight(_arg0,_arg1); |
6abe8375 RD |
2815 | |
2816 | wxPyEndAllowThreads(__tstate); | |
2817 | if (PyErr_Occurred()) return NULL; | |
2818 | } Py_INCREF(Py_None); | |
2819 | _resultobj = Py_None; | |
2820 | return _resultobj; | |
2821 | } | |
2822 | ||
2823 | #define wxNativeFontInfo_SetUnderlined(_swigobj,_swigarg0) (_swigobj->SetUnderlined(_swigarg0)) | |
2824 | static PyObject *_wrap_wxNativeFontInfo_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2825 | PyObject * _resultobj; | |
2826 | wxNativeFontInfo * _arg0; | |
2827 | bool _arg1; | |
2828 | PyObject * _argo0 = 0; | |
2829 | int tempbool1; | |
2830 | char *_kwnames[] = { "self","underlined", NULL }; | |
2831 | ||
2832 | self = self; | |
2833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNativeFontInfo_SetUnderlined",_kwnames,&_argo0,&tempbool1)) | |
2834 | return NULL; | |
2835 | if (_argo0) { | |
2836 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2837 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
2838 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_SetUnderlined. Expected _wxNativeFontInfo_p."); | |
2839 | return NULL; | |
2840 | } | |
2841 | } | |
2842 | _arg1 = (bool ) tempbool1; | |
2843 | { | |
2844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6824d4f9 | 2845 | wxNativeFontInfo_SetUnderlined(_arg0,_arg1); |
6abe8375 RD |
2846 | |
2847 | wxPyEndAllowThreads(__tstate); | |
2848 | if (PyErr_Occurred()) return NULL; | |
2849 | } Py_INCREF(Py_None); | |
2850 | _resultobj = Py_None; | |
2851 | return _resultobj; | |
2852 | } | |
2853 | ||
2854 | #define wxNativeFontInfo_SetFaceName(_swigobj,_swigarg0) (_swigobj->SetFaceName(_swigarg0)) | |
2855 | static PyObject *_wrap_wxNativeFontInfo_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2856 | PyObject * _resultobj; | |
2857 | wxNativeFontInfo * _arg0; | |
2858 | wxString * _arg1; | |
2859 | PyObject * _argo0 = 0; | |
2860 | PyObject * _obj1 = 0; | |
2861 | char *_kwnames[] = { "self","facename", NULL }; | |
e6056257 RD |
2862 | |
2863 | self = self; | |
6abe8375 | 2864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxNativeFontInfo_SetFaceName",_kwnames,&_argo0,&_obj1)) |
e6056257 RD |
2865 | return NULL; |
2866 | if (_argo0) { | |
2867 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6abe8375 RD |
2868 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { |
2869 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_SetFaceName. Expected _wxNativeFontInfo_p."); | |
e6056257 RD |
2870 | return NULL; |
2871 | } | |
2872 | } | |
6abe8375 | 2873 | { |
6824d4f9 RD |
2874 | _arg1 = wxString_in_helper(_obj1); |
2875 | if (_arg1 == NULL) | |
e6056257 | 2876 | return NULL; |
6abe8375 | 2877 | } |
e6056257 | 2878 | { |
0e2ff151 | 2879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 2880 | wxNativeFontInfo_SetFaceName(_arg0,*_arg1); |
e6056257 | 2881 | |
0e2ff151 | 2882 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2883 | if (PyErr_Occurred()) return NULL; |
2884 | } Py_INCREF(Py_None); | |
2885 | _resultobj = Py_None; | |
6abe8375 RD |
2886 | { |
2887 | if (_obj1) | |
2888 | delete _arg1; | |
e6056257 | 2889 | } |
6abe8375 | 2890 | return _resultobj; |
e6056257 RD |
2891 | } |
2892 | ||
6abe8375 RD |
2893 | #define wxNativeFontInfo_SetFamily(_swigobj,_swigarg0) (_swigobj->SetFamily(_swigarg0)) |
2894 | static PyObject *_wrap_wxNativeFontInfo_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { | |
e6056257 | 2895 | PyObject * _resultobj; |
6abe8375 RD |
2896 | wxNativeFontInfo * _arg0; |
2897 | wxFontFamily _arg1; | |
e6056257 | 2898 | PyObject * _argo0 = 0; |
6abe8375 | 2899 | char *_kwnames[] = { "self","family", NULL }; |
e6056257 RD |
2900 | |
2901 | self = self; | |
6abe8375 | 2902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNativeFontInfo_SetFamily",_kwnames,&_argo0,&_arg1)) |
e6056257 RD |
2903 | return NULL; |
2904 | if (_argo0) { | |
2905 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6abe8375 RD |
2906 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { |
2907 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_SetFamily. Expected _wxNativeFontInfo_p."); | |
e6056257 RD |
2908 | return NULL; |
2909 | } | |
2910 | } | |
2911 | { | |
0e2ff151 | 2912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 2913 | wxNativeFontInfo_SetFamily(_arg0,_arg1); |
e6056257 | 2914 | |
0e2ff151 | 2915 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2916 | if (PyErr_Occurred()) return NULL; |
2917 | } Py_INCREF(Py_None); | |
2918 | _resultobj = Py_None; | |
2919 | return _resultobj; | |
2920 | } | |
2921 | ||
6abe8375 RD |
2922 | #define wxNativeFontInfo_SetEncoding(_swigobj,_swigarg0) (_swigobj->SetEncoding(_swigarg0)) |
2923 | static PyObject *_wrap_wxNativeFontInfo_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
e6056257 | 2924 | PyObject * _resultobj; |
6abe8375 RD |
2925 | wxNativeFontInfo * _arg0; |
2926 | wxFontEncoding _arg1; | |
e6056257 | 2927 | PyObject * _argo0 = 0; |
6abe8375 | 2928 | char *_kwnames[] = { "self","encoding", NULL }; |
e6056257 RD |
2929 | |
2930 | self = self; | |
6abe8375 | 2931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNativeFontInfo_SetEncoding",_kwnames,&_argo0,&_arg1)) |
e6056257 RD |
2932 | return NULL; |
2933 | if (_argo0) { | |
2934 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6abe8375 RD |
2935 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { |
2936 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_SetEncoding. Expected _wxNativeFontInfo_p."); | |
e6056257 RD |
2937 | return NULL; |
2938 | } | |
2939 | } | |
2940 | { | |
0e2ff151 | 2941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 2942 | wxNativeFontInfo_SetEncoding(_arg0,_arg1); |
e6056257 | 2943 | |
0e2ff151 | 2944 | wxPyEndAllowThreads(__tstate); |
e6056257 | 2945 | if (PyErr_Occurred()) return NULL; |
6abe8375 RD |
2946 | } Py_INCREF(Py_None); |
2947 | _resultobj = Py_None; | |
e6056257 RD |
2948 | return _resultobj; |
2949 | } | |
2950 | ||
2951 | #define wxNativeFontInfo_FromString(_swigobj,_swigarg0) (_swigobj->FromString(_swigarg0)) | |
2952 | static PyObject *_wrap_wxNativeFontInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2953 | PyObject * _resultobj; | |
2954 | bool _result; | |
2955 | wxNativeFontInfo * _arg0; | |
2956 | wxString * _arg1; | |
2957 | PyObject * _argo0 = 0; | |
2958 | PyObject * _obj1 = 0; | |
2959 | char *_kwnames[] = { "self","s", NULL }; | |
2960 | ||
2961 | self = self; | |
2962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxNativeFontInfo_FromString",_kwnames,&_argo0,&_obj1)) | |
2963 | return NULL; | |
2964 | if (_argo0) { | |
2965 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2966 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
2967 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_FromString. Expected _wxNativeFontInfo_p."); | |
2968 | return NULL; | |
2969 | } | |
2970 | } | |
2971 | { | |
6824d4f9 RD |
2972 | _arg1 = wxString_in_helper(_obj1); |
2973 | if (_arg1 == NULL) | |
e6056257 | 2974 | return NULL; |
e6056257 RD |
2975 | } |
2976 | { | |
0e2ff151 | 2977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 2978 | _result = (bool )wxNativeFontInfo_FromString(_arg0,*_arg1); |
e6056257 | 2979 | |
0e2ff151 | 2980 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2981 | if (PyErr_Occurred()) return NULL; |
2982 | } _resultobj = Py_BuildValue("i",_result); | |
2983 | { | |
2984 | if (_obj1) | |
2985 | delete _arg1; | |
2986 | } | |
2987 | return _resultobj; | |
2988 | } | |
2989 | ||
2990 | #define wxNativeFontInfo_ToString(_swigobj) (_swigobj->ToString()) | |
2991 | static PyObject *_wrap_wxNativeFontInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2992 | PyObject * _resultobj; | |
2993 | wxString * _result; | |
2994 | wxNativeFontInfo * _arg0; | |
2995 | PyObject * _argo0 = 0; | |
2996 | char *_kwnames[] = { "self", NULL }; | |
2997 | ||
2998 | self = self; | |
2999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_ToString",_kwnames,&_argo0)) | |
3000 | return NULL; | |
3001 | if (_argo0) { | |
3002 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3003 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
3004 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_ToString. Expected _wxNativeFontInfo_p."); | |
3005 | return NULL; | |
3006 | } | |
3007 | } | |
3008 | { | |
0e2ff151 | 3009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 3010 | _result = new wxString (wxNativeFontInfo_ToString(_arg0)); |
e6056257 | 3011 | |
0e2ff151 | 3012 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3013 | if (PyErr_Occurred()) return NULL; |
3014 | }{ | |
6824d4f9 RD |
3015 | #if wxUSE_UNICODE |
3016 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
3017 | #else | |
e6056257 | 3018 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
6824d4f9 | 3019 | #endif |
e6056257 RD |
3020 | } |
3021 | { | |
3022 | delete _result; | |
3023 | } | |
3024 | return _resultobj; | |
3025 | } | |
3026 | ||
3027 | static wxString wxNativeFontInfo___str__(wxNativeFontInfo *self) { | |
3028 | return self->ToString(); | |
3029 | } | |
3030 | static PyObject *_wrap_wxNativeFontInfo___str__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3031 | PyObject * _resultobj; | |
3032 | wxString * _result; | |
3033 | wxNativeFontInfo * _arg0; | |
3034 | PyObject * _argo0 = 0; | |
3035 | char *_kwnames[] = { "self", NULL }; | |
3036 | ||
3037 | self = self; | |
3038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo___str__",_kwnames,&_argo0)) | |
3039 | return NULL; | |
3040 | if (_argo0) { | |
3041 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3042 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
3043 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo___str__. Expected _wxNativeFontInfo_p."); | |
3044 | return NULL; | |
3045 | } | |
3046 | } | |
3047 | { | |
0e2ff151 | 3048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 3049 | _result = new wxString (wxNativeFontInfo___str__(_arg0)); |
e6056257 | 3050 | |
0e2ff151 | 3051 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3052 | if (PyErr_Occurred()) return NULL; |
3053 | }{ | |
6824d4f9 RD |
3054 | #if wxUSE_UNICODE |
3055 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
3056 | #else | |
e6056257 | 3057 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
6824d4f9 | 3058 | #endif |
e6056257 RD |
3059 | } |
3060 | { | |
3061 | delete _result; | |
3062 | } | |
3063 | return _resultobj; | |
3064 | } | |
3065 | ||
6abe8375 RD |
3066 | #define wxNativeFontInfo_FromUserString(_swigobj,_swigarg0) (_swigobj->FromUserString(_swigarg0)) |
3067 | static PyObject *_wrap_wxNativeFontInfo_FromUserString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3068 | PyObject * _resultobj; | |
3069 | bool _result; | |
3070 | wxNativeFontInfo * _arg0; | |
3071 | wxString * _arg1; | |
3072 | PyObject * _argo0 = 0; | |
3073 | PyObject * _obj1 = 0; | |
3074 | char *_kwnames[] = { "self","s", NULL }; | |
3075 | ||
3076 | self = self; | |
3077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxNativeFontInfo_FromUserString",_kwnames,&_argo0,&_obj1)) | |
3078 | return NULL; | |
3079 | if (_argo0) { | |
3080 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3081 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
3082 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_FromUserString. Expected _wxNativeFontInfo_p."); | |
3083 | return NULL; | |
3084 | } | |
3085 | } | |
3086 | { | |
6824d4f9 RD |
3087 | _arg1 = wxString_in_helper(_obj1); |
3088 | if (_arg1 == NULL) | |
6abe8375 | 3089 | return NULL; |
6abe8375 RD |
3090 | } |
3091 | { | |
3092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6824d4f9 | 3093 | _result = (bool )wxNativeFontInfo_FromUserString(_arg0,*_arg1); |
6abe8375 RD |
3094 | |
3095 | wxPyEndAllowThreads(__tstate); | |
3096 | if (PyErr_Occurred()) return NULL; | |
3097 | } _resultobj = Py_BuildValue("i",_result); | |
3098 | { | |
3099 | if (_obj1) | |
3100 | delete _arg1; | |
3101 | } | |
3102 | return _resultobj; | |
3103 | } | |
3104 | ||
3105 | #define wxNativeFontInfo_ToUserString(_swigobj) (_swigobj->ToUserString()) | |
3106 | static PyObject *_wrap_wxNativeFontInfo_ToUserString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3107 | PyObject * _resultobj; | |
3108 | wxString * _result; | |
3109 | wxNativeFontInfo * _arg0; | |
3110 | PyObject * _argo0 = 0; | |
3111 | char *_kwnames[] = { "self", NULL }; | |
3112 | ||
3113 | self = self; | |
3114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_ToUserString",_kwnames,&_argo0)) | |
3115 | return NULL; | |
3116 | if (_argo0) { | |
3117 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3118 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
3119 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_ToUserString. Expected _wxNativeFontInfo_p."); | |
3120 | return NULL; | |
3121 | } | |
3122 | } | |
3123 | { | |
3124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6824d4f9 | 3125 | _result = new wxString (wxNativeFontInfo_ToUserString(_arg0)); |
6abe8375 RD |
3126 | |
3127 | wxPyEndAllowThreads(__tstate); | |
3128 | if (PyErr_Occurred()) return NULL; | |
3129 | }{ | |
6824d4f9 RD |
3130 | #if wxUSE_UNICODE |
3131 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
3132 | #else | |
6abe8375 | 3133 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
6824d4f9 | 3134 | #endif |
6abe8375 RD |
3135 | } |
3136 | { | |
3137 | delete _result; | |
3138 | } | |
3139 | return _resultobj; | |
3140 | } | |
3141 | ||
e6056257 RD |
3142 | #define new_wxFontMapper() (new wxFontMapper()) |
3143 | static PyObject *_wrap_new_wxFontMapper(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3144 | PyObject * _resultobj; | |
3145 | wxFontMapper * _result; | |
3146 | char *_kwnames[] = { NULL }; | |
3147 | char _ptemp[128]; | |
3148 | ||
3149 | self = self; | |
3150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxFontMapper",_kwnames)) | |
3151 | return NULL; | |
3152 | { | |
0e2ff151 | 3153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 3154 | _result = (wxFontMapper *)new_wxFontMapper(); |
e6056257 | 3155 | |
0e2ff151 | 3156 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3157 | if (PyErr_Occurred()) return NULL; |
3158 | } if (_result) { | |
3159 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFontMapper_p"); | |
3160 | _resultobj = Py_BuildValue("s",_ptemp); | |
3161 | } else { | |
3162 | Py_INCREF(Py_None); | |
3163 | _resultobj = Py_None; | |
3164 | } | |
3165 | return _resultobj; | |
3166 | } | |
3167 | ||
3168 | #define delete_wxFontMapper(_swigobj) (delete _swigobj) | |
3169 | static PyObject *_wrap_delete_wxFontMapper(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3170 | PyObject * _resultobj; | |
3171 | wxFontMapper * _arg0; | |
3172 | PyObject * _argo0 = 0; | |
3173 | char *_kwnames[] = { "self", NULL }; | |
3174 | ||
3175 | self = self; | |
3176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFontMapper",_kwnames,&_argo0)) | |
3177 | return NULL; | |
3178 | if (_argo0) { | |
3179 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3180 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) { | |
3181 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFontMapper. Expected _wxFontMapper_p."); | |
3182 | return NULL; | |
3183 | } | |
3184 | } | |
3185 | { | |
0e2ff151 | 3186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 3187 | delete_wxFontMapper(_arg0); |
e6056257 | 3188 | |
0e2ff151 | 3189 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3190 | if (PyErr_Occurred()) return NULL; |
3191 | } Py_INCREF(Py_None); | |
3192 | _resultobj = Py_None; | |
3193 | return _resultobj; | |
3194 | } | |
3195 | ||
3196 | static PyObject * wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,const wxString & facename,bool interactive) { | |
3197 | wxFontEncoding alt_enc; | |
3198 | if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive)) | |
3199 | return PyInt_FromLong(alt_enc); | |
3200 | else { | |
3201 | Py_INCREF(Py_None); | |
3202 | return Py_None; | |
3203 | } | |
3204 | } | |
3205 | static PyObject *_wrap_wxFontMapper_GetAltForEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3206 | PyObject * _resultobj; | |
3207 | PyObject * _result; | |
3208 | wxFontMapper * _arg0; | |
3209 | wxFontEncoding _arg1; | |
c3bfa1cb | 3210 | wxString * _arg2 = (wxString *) &wxPyEmptyString; |
e6056257 RD |
3211 | bool _arg3 = (bool ) TRUE; |
3212 | PyObject * _argo0 = 0; | |
3213 | PyObject * _obj2 = 0; | |
3214 | int tempbool3 = (int) TRUE; | |
3215 | char *_kwnames[] = { "self","encoding","facename","interactive", NULL }; | |
3216 | ||
3217 | self = self; | |
3218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|Oi:wxFontMapper_GetAltForEncoding",_kwnames,&_argo0,&_arg1,&_obj2,&tempbool3)) | |
3219 | return NULL; | |
3220 | if (_argo0) { | |
3221 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3222 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) { | |
3223 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_GetAltForEncoding. Expected _wxFontMapper_p."); | |
3224 | return NULL; | |
3225 | } | |
3226 | } | |
3227 | if (_obj2) | |
3228 | { | |
6824d4f9 RD |
3229 | _arg2 = wxString_in_helper(_obj2); |
3230 | if (_arg2 == NULL) | |
e6056257 | 3231 | return NULL; |
e6056257 RD |
3232 | } |
3233 | _arg3 = (bool ) tempbool3; | |
3234 | { | |
0e2ff151 | 3235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 3236 | _result = (PyObject *)wxFontMapper_GetAltForEncoding(_arg0,_arg1,*_arg2,_arg3); |
e6056257 | 3237 | |
0e2ff151 | 3238 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3239 | if (PyErr_Occurred()) return NULL; |
3240 | }{ | |
3241 | _resultobj = _result; | |
3242 | } | |
3243 | { | |
3244 | if (_obj2) | |
3245 | delete _arg2; | |
3246 | } | |
3247 | return _resultobj; | |
3248 | } | |
3249 | ||
3250 | #define wxFontMapper_IsEncodingAvailable(_swigobj,_swigarg0,_swigarg1) (_swigobj->IsEncodingAvailable(_swigarg0,_swigarg1)) | |
3251 | static PyObject *_wrap_wxFontMapper_IsEncodingAvailable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3252 | PyObject * _resultobj; | |
3253 | bool _result; | |
3254 | wxFontMapper * _arg0; | |
3255 | wxFontEncoding _arg1; | |
c3bfa1cb | 3256 | wxString * _arg2 = (wxString *) &wxPyEmptyString; |
e6056257 RD |
3257 | PyObject * _argo0 = 0; |
3258 | PyObject * _obj2 = 0; | |
3259 | char *_kwnames[] = { "self","encoding","facename", NULL }; | |
3260 | ||
3261 | self = self; | |
3262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|O:wxFontMapper_IsEncodingAvailable",_kwnames,&_argo0,&_arg1,&_obj2)) | |
3263 | return NULL; | |
3264 | if (_argo0) { | |
3265 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3266 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) { | |
3267 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_IsEncodingAvailable. Expected _wxFontMapper_p."); | |
3268 | return NULL; | |
3269 | } | |
3270 | } | |
3271 | if (_obj2) | |
3272 | { | |
6824d4f9 RD |
3273 | _arg2 = wxString_in_helper(_obj2); |
3274 | if (_arg2 == NULL) | |
e6056257 | 3275 | return NULL; |
e6056257 RD |
3276 | } |
3277 | { | |
0e2ff151 | 3278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 3279 | _result = (bool )wxFontMapper_IsEncodingAvailable(_arg0,_arg1,*_arg2); |
e6056257 | 3280 | |
0e2ff151 | 3281 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3282 | if (PyErr_Occurred()) return NULL; |
3283 | } _resultobj = Py_BuildValue("i",_result); | |
3284 | { | |
3285 | if (_obj2) | |
3286 | delete _arg2; | |
3287 | } | |
3288 | return _resultobj; | |
3289 | } | |
3290 | ||
3291 | #define wxFontMapper_CharsetToEncoding(_swigobj,_swigarg0,_swigarg1) (_swigobj->CharsetToEncoding(_swigarg0,_swigarg1)) | |
3292 | static PyObject *_wrap_wxFontMapper_CharsetToEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3293 | PyObject * _resultobj; | |
3294 | wxFontEncoding _result; | |
3295 | wxFontMapper * _arg0; | |
3296 | wxString * _arg1; | |
3297 | bool _arg2 = (bool ) TRUE; | |
3298 | PyObject * _argo0 = 0; | |
3299 | PyObject * _obj1 = 0; | |
3300 | int tempbool2 = (int) TRUE; | |
3301 | char *_kwnames[] = { "self","charset","interactive", NULL }; | |
3302 | ||
3303 | self = self; | |
3304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxFontMapper_CharsetToEncoding",_kwnames,&_argo0,&_obj1,&tempbool2)) | |
3305 | return NULL; | |
3306 | if (_argo0) { | |
3307 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3308 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) { | |
3309 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_CharsetToEncoding. Expected _wxFontMapper_p."); | |
3310 | return NULL; | |
3311 | } | |
3312 | } | |
3313 | { | |
6824d4f9 RD |
3314 | _arg1 = wxString_in_helper(_obj1); |
3315 | if (_arg1 == NULL) | |
e6056257 | 3316 | return NULL; |
e6056257 RD |
3317 | } |
3318 | _arg2 = (bool ) tempbool2; | |
3319 | { | |
0e2ff151 | 3320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 3321 | _result = (wxFontEncoding )wxFontMapper_CharsetToEncoding(_arg0,*_arg1,_arg2); |
e6056257 | 3322 | |
0e2ff151 | 3323 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3324 | if (PyErr_Occurred()) return NULL; |
3325 | } _resultobj = Py_BuildValue("i",_result); | |
3326 | { | |
3327 | if (_obj1) | |
3328 | delete _arg1; | |
3329 | } | |
3330 | return _resultobj; | |
3331 | } | |
3332 | ||
3333 | static PyObject *_wrap_wxFontMapper_GetEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3334 | PyObject * _resultobj; | |
3335 | wxString * _result; | |
3336 | wxFontEncoding _arg0; | |
3337 | char *_kwnames[] = { "encoding", NULL }; | |
3338 | ||
3339 | self = self; | |
3340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxFontMapper_GetEncodingName",_kwnames,&_arg0)) | |
3341 | return NULL; | |
3342 | { | |
0e2ff151 | 3343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 3344 | _result = new wxString (wxFontMapper::GetEncodingName(_arg0)); |
e6056257 | 3345 | |
0e2ff151 | 3346 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3347 | if (PyErr_Occurred()) return NULL; |
3348 | }{ | |
6824d4f9 RD |
3349 | #if wxUSE_UNICODE |
3350 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
3351 | #else | |
e6056257 | 3352 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
6824d4f9 | 3353 | #endif |
e6056257 RD |
3354 | } |
3355 | { | |
3356 | delete _result; | |
3357 | } | |
3358 | return _resultobj; | |
3359 | } | |
3360 | ||
3361 | static PyObject *_wrap_wxFontMapper_GetEncodingDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3362 | PyObject * _resultobj; | |
3363 | wxString * _result; | |
3364 | wxFontEncoding _arg0; | |
3365 | char *_kwnames[] = { "encoding", NULL }; | |
3366 | ||
3367 | self = self; | |
3368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxFontMapper_GetEncodingDescription",_kwnames,&_arg0)) | |
3369 | return NULL; | |
3370 | { | |
0e2ff151 | 3371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 3372 | _result = new wxString (wxFontMapper::GetEncodingDescription(_arg0)); |
e6056257 | 3373 | |
0e2ff151 | 3374 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3375 | if (PyErr_Occurred()) return NULL; |
3376 | }{ | |
6824d4f9 RD |
3377 | #if wxUSE_UNICODE |
3378 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
3379 | #else | |
e6056257 | 3380 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
6824d4f9 | 3381 | #endif |
e6056257 RD |
3382 | } |
3383 | { | |
3384 | delete _result; | |
3385 | } | |
3386 | return _resultobj; | |
3387 | } | |
3388 | ||
3389 | #define wxFontMapper_SetDialogParent(_swigobj,_swigarg0) (_swigobj->SetDialogParent(_swigarg0)) | |
3390 | static PyObject *_wrap_wxFontMapper_SetDialogParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3391 | PyObject * _resultobj; | |
3392 | wxFontMapper * _arg0; | |
3393 | wxWindow * _arg1; | |
3394 | PyObject * _argo0 = 0; | |
3395 | PyObject * _argo1 = 0; | |
3396 | char *_kwnames[] = { "self","parent", NULL }; | |
3397 | ||
3398 | self = self; | |
3399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontMapper_SetDialogParent",_kwnames,&_argo0,&_argo1)) | |
3400 | return NULL; | |
3401 | if (_argo0) { | |
3402 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3403 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) { | |
3404 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_SetDialogParent. Expected _wxFontMapper_p."); | |
3405 | return NULL; | |
3406 | } | |
3407 | } | |
3408 | if (_argo1) { | |
3409 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3410 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
3411 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontMapper_SetDialogParent. Expected _wxWindow_p."); | |
3412 | return NULL; | |
3413 | } | |
3414 | } | |
3415 | { | |
0e2ff151 | 3416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 3417 | wxFontMapper_SetDialogParent(_arg0,_arg1); |
e6056257 | 3418 | |
0e2ff151 | 3419 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3420 | if (PyErr_Occurred()) return NULL; |
3421 | } Py_INCREF(Py_None); | |
3422 | _resultobj = Py_None; | |
3423 | return _resultobj; | |
3424 | } | |
3425 | ||
3426 | #define wxFontMapper_SetDialogTitle(_swigobj,_swigarg0) (_swigobj->SetDialogTitle(_swigarg0)) | |
3427 | static PyObject *_wrap_wxFontMapper_SetDialogTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3428 | PyObject * _resultobj; | |
3429 | wxFontMapper * _arg0; | |
3430 | wxString * _arg1; | |
3431 | PyObject * _argo0 = 0; | |
3432 | PyObject * _obj1 = 0; | |
3433 | char *_kwnames[] = { "self","title", NULL }; | |
3434 | ||
3435 | self = self; | |
3436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontMapper_SetDialogTitle",_kwnames,&_argo0,&_obj1)) | |
3437 | return NULL; | |
3438 | if (_argo0) { | |
3439 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3440 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) { | |
3441 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_SetDialogTitle. Expected _wxFontMapper_p."); | |
3442 | return NULL; | |
3443 | } | |
3444 | } | |
3445 | { | |
6824d4f9 RD |
3446 | _arg1 = wxString_in_helper(_obj1); |
3447 | if (_arg1 == NULL) | |
e6056257 | 3448 | return NULL; |
e6056257 RD |
3449 | } |
3450 | { | |
0e2ff151 | 3451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 3452 | wxFontMapper_SetDialogTitle(_arg0,*_arg1); |
e6056257 | 3453 | |
0e2ff151 | 3454 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3455 | if (PyErr_Occurred()) return NULL; |
3456 | } Py_INCREF(Py_None); | |
3457 | _resultobj = Py_None; | |
3458 | { | |
3459 | if (_obj1) | |
3460 | delete _arg1; | |
3461 | } | |
3462 | return _resultobj; | |
3463 | } | |
3464 | ||
3465 | #define wxFontMapper_SetConfig(_swigobj,_swigarg0) (_swigobj->SetConfig(_swigarg0)) | |
3466 | static PyObject *_wrap_wxFontMapper_SetConfig(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3467 | PyObject * _resultobj; | |
3468 | wxFontMapper * _arg0; | |
3469 | wxConfigBase * _arg1; | |
3470 | PyObject * _argo0 = 0; | |
3471 | PyObject * _argo1 = 0; | |
3472 | char *_kwnames[] = { "self","config", NULL }; | |
3473 | ||
3474 | self = self; | |
3475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontMapper_SetConfig",_kwnames,&_argo0,&_argo1)) | |
3476 | return NULL; | |
3477 | if (_argo0) { | |
3478 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3479 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) { | |
3480 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_SetConfig. Expected _wxFontMapper_p."); | |
3481 | return NULL; | |
3482 | } | |
3483 | } | |
3484 | if (_argo1) { | |
3485 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3486 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxConfigBase_p")) { | |
3487 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontMapper_SetConfig. Expected _wxConfigBase_p."); | |
3488 | return NULL; | |
3489 | } | |
3490 | } | |
3491 | { | |
0e2ff151 | 3492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 3493 | wxFontMapper_SetConfig(_arg0,_arg1); |
e6056257 | 3494 | |
0e2ff151 | 3495 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3496 | if (PyErr_Occurred()) return NULL; |
3497 | } Py_INCREF(Py_None); | |
3498 | _resultobj = Py_None; | |
3499 | return _resultobj; | |
3500 | } | |
3501 | ||
3502 | #define wxFontMapper_SetConfigPath(_swigobj,_swigarg0) (_swigobj->SetConfigPath(_swigarg0)) | |
3503 | static PyObject *_wrap_wxFontMapper_SetConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3504 | PyObject * _resultobj; | |
3505 | wxFontMapper * _arg0; | |
3506 | wxString * _arg1; | |
3507 | PyObject * _argo0 = 0; | |
3508 | PyObject * _obj1 = 0; | |
3509 | char *_kwnames[] = { "self","prefix", NULL }; | |
3510 | ||
3511 | self = self; | |
3512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontMapper_SetConfigPath",_kwnames,&_argo0,&_obj1)) | |
3513 | return NULL; | |
3514 | if (_argo0) { | |
3515 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3516 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) { | |
3517 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_SetConfigPath. Expected _wxFontMapper_p."); | |
3518 | return NULL; | |
3519 | } | |
3520 | } | |
3521 | { | |
6824d4f9 RD |
3522 | _arg1 = wxString_in_helper(_obj1); |
3523 | if (_arg1 == NULL) | |
e6056257 | 3524 | return NULL; |
e6056257 RD |
3525 | } |
3526 | { | |
0e2ff151 | 3527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 3528 | wxFontMapper_SetConfigPath(_arg0,*_arg1); |
e6056257 | 3529 | |
0e2ff151 | 3530 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3531 | if (PyErr_Occurred()) return NULL; |
3532 | } Py_INCREF(Py_None); | |
3533 | _resultobj = Py_None; | |
3534 | { | |
3535 | if (_obj1) | |
3536 | delete _arg1; | |
3537 | } | |
3538 | return _resultobj; | |
3539 | } | |
3540 | ||
3541 | static PyObject *_wrap_wxFontMapper_GetDefaultConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3542 | PyObject * _resultobj; | |
c3bfa1cb | 3543 | wxString * _result; |
e6056257 RD |
3544 | char *_kwnames[] = { NULL }; |
3545 | ||
3546 | self = self; | |
3547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxFontMapper_GetDefaultConfigPath",_kwnames)) | |
3548 | return NULL; | |
3549 | { | |
0e2ff151 | 3550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c3bfa1cb | 3551 | _result = new wxString (wxFontMapper::GetDefaultConfigPath()); |
e6056257 | 3552 | |
0e2ff151 | 3553 | wxPyEndAllowThreads(__tstate); |
e6056257 | 3554 | if (PyErr_Occurred()) return NULL; |
c3bfa1cb RD |
3555 | }{ |
3556 | #if wxUSE_UNICODE | |
3557 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
3558 | #else | |
3559 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
3560 | #endif | |
3561 | } | |
3562 | { | |
3563 | delete _result; | |
3564 | } | |
e6056257 RD |
3565 | return _resultobj; |
3566 | } | |
3567 | ||
3568 | static void *SwigwxFontTowxGDIObject(void *ptr) { | |
3569 | wxFont *src; | |
3570 | wxGDIObject *dest; | |
3571 | src = (wxFont *) ptr; | |
3572 | dest = (wxGDIObject *) src; | |
3573 | return (void *) dest; | |
3574 | } | |
3575 | ||
3576 | static void *SwigwxFontTowxObject(void *ptr) { | |
3577 | wxFont *src; | |
3578 | wxObject *dest; | |
3579 | src = (wxFont *) ptr; | |
3580 | dest = (wxObject *) src; | |
3581 | return (void *) dest; | |
3582 | } | |
3583 | ||
3584 | #define new_wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
3585 | static PyObject *_wrap_new_wxFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3586 | PyObject * _resultobj; | |
3587 | wxFont * _result; | |
3588 | int _arg0; | |
3589 | int _arg1; | |
3590 | int _arg2; | |
3591 | int _arg3; | |
3592 | int _arg4 = (int ) FALSE; | |
c3bfa1cb | 3593 | wxString * _arg5 = (wxString *) &wxPyEmptyString; |
e6056257 | 3594 | wxFontEncoding _arg6 = (wxFontEncoding ) (wxFONTENCODING_DEFAULT); |
c3bfa1cb | 3595 | PyObject * _obj5 = 0; |
e6056257 RD |
3596 | char *_kwnames[] = { "pointSize","family","style","weight","underline","faceName","encoding", NULL }; |
3597 | char _ptemp[128]; | |
3598 | ||
3599 | self = self; | |
c3bfa1cb | 3600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"iiii|iOi:new_wxFont",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3,&_arg4,&_obj5,&_arg6)) |
e6056257 | 3601 | return NULL; |
c3bfa1cb RD |
3602 | if (_obj5) |
3603 | { | |
3604 | _arg5 = wxString_in_helper(_obj5); | |
3605 | if (_arg5 == NULL) | |
3606 | return NULL; | |
3607 | } | |
e6056257 | 3608 | { |
0e2ff151 | 3609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c3bfa1cb | 3610 | _result = (wxFont *)new_wxFont(_arg0,_arg1,_arg2,_arg3,_arg4,*_arg5,_arg6); |
e6056257 | 3611 | |
0e2ff151 | 3612 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3613 | if (PyErr_Occurred()) return NULL; |
3614 | } if (_result) { | |
3615 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p"); | |
3616 | _resultobj = Py_BuildValue("s",_ptemp); | |
3617 | } else { | |
3618 | Py_INCREF(Py_None); | |
3619 | _resultobj = Py_None; | |
3620 | } | |
c3bfa1cb RD |
3621 | { |
3622 | if (_obj5) | |
3623 | delete _arg5; | |
3624 | } | |
e6056257 RD |
3625 | return _resultobj; |
3626 | } | |
3627 | ||
3628 | #define new_wxFontFromNativeInfo(_swigarg0) (new wxFont(_swigarg0)) | |
3629 | static PyObject *_wrap_new_wxFontFromNativeInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3630 | PyObject * _resultobj; | |
3631 | wxFont * _result; | |
3632 | wxNativeFontInfo * _arg0; | |
3633 | PyObject * _argo0 = 0; | |
3634 | char *_kwnames[] = { "info", NULL }; | |
3635 | char _ptemp[128]; | |
3636 | ||
3637 | self = self; | |
3638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxFontFromNativeInfo",_kwnames,&_argo0)) | |
3639 | return NULL; | |
3640 | if (_argo0) { | |
3641 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3642 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
3643 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxFontFromNativeInfo. Expected _wxNativeFontInfo_p."); | |
3644 | return NULL; | |
3645 | } | |
3646 | } | |
3647 | { | |
0e2ff151 | 3648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 3649 | _result = (wxFont *)new_wxFontFromNativeInfo(*_arg0); |
e6056257 | 3650 | |
0e2ff151 | 3651 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3652 | if (PyErr_Occurred()) return NULL; |
3653 | } if (_result) { | |
3654 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p"); | |
3655 | _resultobj = Py_BuildValue("s",_ptemp); | |
3656 | } else { | |
3657 | Py_INCREF(Py_None); | |
3658 | _resultobj = Py_None; | |
3659 | } | |
3660 | return _resultobj; | |
3661 | } | |
3662 | ||
3663 | #define delete_wxFont(_swigobj) (delete _swigobj) | |
3664 | static PyObject *_wrap_delete_wxFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3665 | PyObject * _resultobj; | |
3666 | wxFont * _arg0; | |
3667 | PyObject * _argo0 = 0; | |
3668 | char *_kwnames[] = { "self", NULL }; | |
3669 | ||
3670 | self = self; | |
3671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFont",_kwnames,&_argo0)) | |
3672 | return NULL; | |
3673 | if (_argo0) { | |
3674 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3675 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3676 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFont. Expected _wxFont_p."); | |
3677 | return NULL; | |
3678 | } | |
3679 | } | |
3680 | { | |
0e2ff151 | 3681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 3682 | delete_wxFont(_arg0); |
e6056257 | 3683 | |
0e2ff151 | 3684 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3685 | if (PyErr_Occurred()) return NULL; |
3686 | } Py_INCREF(Py_None); | |
3687 | _resultobj = Py_None; | |
3688 | return _resultobj; | |
3689 | } | |
3690 | ||
3691 | #define wxFont_Ok(_swigobj) (_swigobj->Ok()) | |
3692 | static PyObject *_wrap_wxFont_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3693 | PyObject * _resultobj; | |
3694 | bool _result; | |
3695 | wxFont * _arg0; | |
3696 | PyObject * _argo0 = 0; | |
3697 | char *_kwnames[] = { "self", NULL }; | |
3698 | ||
3699 | self = self; | |
3700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_Ok",_kwnames,&_argo0)) | |
3701 | return NULL; | |
3702 | if (_argo0) { | |
3703 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3704 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3705 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_Ok. Expected _wxFont_p."); | |
3706 | return NULL; | |
3707 | } | |
3708 | } | |
3709 | { | |
0e2ff151 | 3710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 3711 | _result = (bool )wxFont_Ok(_arg0); |
e6056257 | 3712 | |
0e2ff151 | 3713 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3714 | if (PyErr_Occurred()) return NULL; |
3715 | } _resultobj = Py_BuildValue("i",_result); | |
3716 | return _resultobj; | |
3717 | } | |
3718 | ||
3719 | #define wxFont_GetPointSize(_swigobj) (_swigobj->GetPointSize()) | |
3720 | static PyObject *_wrap_wxFont_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3721 | PyObject * _resultobj; | |
3722 | int _result; | |
3723 | wxFont * _arg0; | |
3724 | PyObject * _argo0 = 0; | |
3725 | char *_kwnames[] = { "self", NULL }; | |
3726 | ||
3727 | self = self; | |
3728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetPointSize",_kwnames,&_argo0)) | |
3729 | return NULL; | |
3730 | if (_argo0) { | |
3731 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3732 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3733 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetPointSize. Expected _wxFont_p."); | |
3734 | return NULL; | |
3735 | } | |
3736 | } | |
3737 | { | |
0e2ff151 | 3738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 3739 | _result = (int )wxFont_GetPointSize(_arg0); |
e6056257 | 3740 | |
0e2ff151 | 3741 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3742 | if (PyErr_Occurred()) return NULL; |
3743 | } _resultobj = Py_BuildValue("i",_result); | |
3744 | return _resultobj; | |
3745 | } | |
3746 | ||
3747 | #define wxFont_GetFamily(_swigobj) (_swigobj->GetFamily()) | |
3748 | static PyObject *_wrap_wxFont_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3749 | PyObject * _resultobj; | |
3750 | int _result; | |
3751 | wxFont * _arg0; | |
3752 | PyObject * _argo0 = 0; | |
3753 | char *_kwnames[] = { "self", NULL }; | |
3754 | ||
3755 | self = self; | |
3756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetFamily",_kwnames,&_argo0)) | |
3757 | return NULL; | |
3758 | if (_argo0) { | |
3759 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3760 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3761 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFamily. Expected _wxFont_p."); | |
3762 | return NULL; | |
3763 | } | |
3764 | } | |
3765 | { | |
0e2ff151 | 3766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 3767 | _result = (int )wxFont_GetFamily(_arg0); |
e6056257 | 3768 | |
0e2ff151 | 3769 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3770 | if (PyErr_Occurred()) return NULL; |
3771 | } _resultobj = Py_BuildValue("i",_result); | |
3772 | return _resultobj; | |
3773 | } | |
3774 | ||
3775 | #define wxFont_GetStyle(_swigobj) (_swigobj->GetStyle()) | |
3776 | static PyObject *_wrap_wxFont_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3777 | PyObject * _resultobj; | |
3778 | int _result; | |
3779 | wxFont * _arg0; | |
3780 | PyObject * _argo0 = 0; | |
3781 | char *_kwnames[] = { "self", NULL }; | |
3782 | ||
3783 | self = self; | |
3784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetStyle",_kwnames,&_argo0)) | |
3785 | return NULL; | |
3786 | if (_argo0) { | |
3787 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3788 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3789 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetStyle. Expected _wxFont_p."); | |
3790 | return NULL; | |
3791 | } | |
3792 | } | |
3793 | { | |
0e2ff151 | 3794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 3795 | _result = (int )wxFont_GetStyle(_arg0); |
e6056257 | 3796 | |
0e2ff151 | 3797 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3798 | if (PyErr_Occurred()) return NULL; |
3799 | } _resultobj = Py_BuildValue("i",_result); | |
3800 | return _resultobj; | |
3801 | } | |
3802 | ||
3803 | #define wxFont_GetWeight(_swigobj) (_swigobj->GetWeight()) | |
3804 | static PyObject *_wrap_wxFont_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3805 | PyObject * _resultobj; | |
3806 | int _result; | |
3807 | wxFont * _arg0; | |
3808 | PyObject * _argo0 = 0; | |
3809 | char *_kwnames[] = { "self", NULL }; | |
3810 | ||
3811 | self = self; | |
3812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetWeight",_kwnames,&_argo0)) | |
3813 | return NULL; | |
3814 | if (_argo0) { | |
3815 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3816 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3817 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetWeight. Expected _wxFont_p."); | |
3818 | return NULL; | |
3819 | } | |
3820 | } | |
3821 | { | |
0e2ff151 | 3822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 3823 | _result = (int )wxFont_GetWeight(_arg0); |
e6056257 | 3824 | |
0e2ff151 | 3825 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3826 | if (PyErr_Occurred()) return NULL; |
3827 | } _resultobj = Py_BuildValue("i",_result); | |
3828 | return _resultobj; | |
3829 | } | |
3830 | ||
3831 | #define wxFont_GetUnderlined(_swigobj) (_swigobj->GetUnderlined()) | |
3832 | static PyObject *_wrap_wxFont_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3833 | PyObject * _resultobj; | |
3834 | bool _result; | |
3835 | wxFont * _arg0; | |
3836 | PyObject * _argo0 = 0; | |
3837 | char *_kwnames[] = { "self", NULL }; | |
3838 | ||
3839 | self = self; | |
3840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetUnderlined",_kwnames,&_argo0)) | |
3841 | return NULL; | |
3842 | if (_argo0) { | |
3843 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3844 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3845 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetUnderlined. Expected _wxFont_p."); | |
3846 | return NULL; | |
3847 | } | |
3848 | } | |
3849 | { | |
0e2ff151 | 3850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 3851 | _result = (bool )wxFont_GetUnderlined(_arg0); |
e6056257 | 3852 | |
0e2ff151 | 3853 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3854 | if (PyErr_Occurred()) return NULL; |
3855 | } _resultobj = Py_BuildValue("i",_result); | |
3856 | return _resultobj; | |
3857 | } | |
3858 | ||
3859 | #define wxFont_GetFaceName(_swigobj) (_swigobj->GetFaceName()) | |
3860 | static PyObject *_wrap_wxFont_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3861 | PyObject * _resultobj; | |
3862 | wxString * _result; | |
3863 | wxFont * _arg0; | |
3864 | PyObject * _argo0 = 0; | |
3865 | char *_kwnames[] = { "self", NULL }; | |
3866 | ||
3867 | self = self; | |
3868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetFaceName",_kwnames,&_argo0)) | |
3869 | return NULL; | |
3870 | if (_argo0) { | |
3871 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3872 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3873 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFaceName. Expected _wxFont_p."); | |
3874 | return NULL; | |
3875 | } | |
3876 | } | |
3877 | { | |
0e2ff151 | 3878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 3879 | _result = new wxString (wxFont_GetFaceName(_arg0)); |
e6056257 | 3880 | |
0e2ff151 | 3881 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3882 | if (PyErr_Occurred()) return NULL; |
3883 | }{ | |
6824d4f9 RD |
3884 | #if wxUSE_UNICODE |
3885 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
3886 | #else | |
e6056257 | 3887 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
6824d4f9 | 3888 | #endif |
e6056257 RD |
3889 | } |
3890 | { | |
3891 | delete _result; | |
3892 | } | |
3893 | return _resultobj; | |
3894 | } | |
3895 | ||
3896 | #define wxFont_GetEncoding(_swigobj) (_swigobj->GetEncoding()) | |
3897 | static PyObject *_wrap_wxFont_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3898 | PyObject * _resultobj; | |
3899 | wxFontEncoding _result; | |
3900 | wxFont * _arg0; | |
3901 | PyObject * _argo0 = 0; | |
3902 | char *_kwnames[] = { "self", NULL }; | |
3903 | ||
3904 | self = self; | |
3905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetEncoding",_kwnames,&_argo0)) | |
3906 | return NULL; | |
3907 | if (_argo0) { | |
3908 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3909 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3910 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetEncoding. Expected _wxFont_p."); | |
3911 | return NULL; | |
3912 | } | |
3913 | } | |
3914 | { | |
0e2ff151 | 3915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 3916 | _result = (wxFontEncoding )wxFont_GetEncoding(_arg0); |
e6056257 | 3917 | |
0e2ff151 | 3918 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3919 | if (PyErr_Occurred()) return NULL; |
3920 | } _resultobj = Py_BuildValue("i",_result); | |
3921 | return _resultobj; | |
3922 | } | |
3923 | ||
d1e76a37 RD |
3924 | #define wxFont_IsFixedWidth(_swigobj) (_swigobj->IsFixedWidth()) |
3925 | static PyObject *_wrap_wxFont_IsFixedWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3926 | PyObject * _resultobj; | |
3927 | bool _result; | |
3928 | wxFont * _arg0; | |
3929 | PyObject * _argo0 = 0; | |
3930 | char *_kwnames[] = { "self", NULL }; | |
3931 | ||
3932 | self = self; | |
3933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_IsFixedWidth",_kwnames,&_argo0)) | |
3934 | return NULL; | |
3935 | if (_argo0) { | |
3936 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3937 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3938 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_IsFixedWidth. Expected _wxFont_p."); | |
3939 | return NULL; | |
3940 | } | |
3941 | } | |
3942 | { | |
3943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6824d4f9 | 3944 | _result = (bool )wxFont_IsFixedWidth(_arg0); |
d1e76a37 RD |
3945 | |
3946 | wxPyEndAllowThreads(__tstate); | |
3947 | if (PyErr_Occurred()) return NULL; | |
3948 | } _resultobj = Py_BuildValue("i",_result); | |
3949 | return _resultobj; | |
3950 | } | |
3951 | ||
e6056257 RD |
3952 | #define wxFont_GetNativeFontInfo(_swigobj) (_swigobj->GetNativeFontInfo()) |
3953 | static PyObject *_wrap_wxFont_GetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3954 | PyObject * _resultobj; | |
3955 | wxNativeFontInfo * _result; | |
3956 | wxFont * _arg0; | |
3957 | PyObject * _argo0 = 0; | |
3958 | char *_kwnames[] = { "self", NULL }; | |
3959 | char _ptemp[128]; | |
3960 | ||
3961 | self = self; | |
3962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetNativeFontInfo",_kwnames,&_argo0)) | |
3963 | return NULL; | |
3964 | if (_argo0) { | |
3965 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3966 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
3967 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetNativeFontInfo. Expected _wxFont_p."); | |
3968 | return NULL; | |
3969 | } | |
3970 | } | |
3971 | { | |
0e2ff151 | 3972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 3973 | _result = (wxNativeFontInfo *)wxFont_GetNativeFontInfo(_arg0); |
e6056257 | 3974 | |
0e2ff151 | 3975 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3976 | if (PyErr_Occurred()) return NULL; |
3977 | } if (_result) { | |
3978 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxNativeFontInfo_p"); | |
3979 | _resultobj = Py_BuildValue("s",_ptemp); | |
3980 | } else { | |
3981 | Py_INCREF(Py_None); | |
3982 | _resultobj = Py_None; | |
3983 | } | |
3984 | return _resultobj; | |
3985 | } | |
3986 | ||
6abe8375 RD |
3987 | #define wxFont_GetNativeFontInfoDesc(_swigobj) (_swigobj->GetNativeFontInfoDesc()) |
3988 | static PyObject *_wrap_wxFont_GetNativeFontInfoDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3989 | PyObject * _resultobj; | |
3990 | wxString * _result; | |
3991 | wxFont * _arg0; | |
3992 | PyObject * _argo0 = 0; | |
3993 | char *_kwnames[] = { "self", NULL }; | |
3994 | ||
3995 | self = self; | |
3996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetNativeFontInfoDesc",_kwnames,&_argo0)) | |
3997 | return NULL; | |
3998 | if (_argo0) { | |
3999 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4000 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
4001 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetNativeFontInfoDesc. Expected _wxFont_p."); | |
4002 | return NULL; | |
4003 | } | |
4004 | } | |
4005 | { | |
4006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6824d4f9 | 4007 | _result = new wxString (wxFont_GetNativeFontInfoDesc(_arg0)); |
6abe8375 RD |
4008 | |
4009 | wxPyEndAllowThreads(__tstate); | |
4010 | if (PyErr_Occurred()) return NULL; | |
4011 | }{ | |
6824d4f9 RD |
4012 | #if wxUSE_UNICODE |
4013 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
4014 | #else | |
6abe8375 | 4015 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
6824d4f9 | 4016 | #endif |
6abe8375 RD |
4017 | } |
4018 | { | |
4019 | delete _result; | |
4020 | } | |
4021 | return _resultobj; | |
4022 | } | |
4023 | ||
4024 | #define wxFont_GetNativeFontInfoUserDesc(_swigobj) (_swigobj->GetNativeFontInfoUserDesc()) | |
4025 | static PyObject *_wrap_wxFont_GetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4026 | PyObject * _resultobj; | |
4027 | wxString * _result; | |
4028 | wxFont * _arg0; | |
4029 | PyObject * _argo0 = 0; | |
4030 | char *_kwnames[] = { "self", NULL }; | |
4031 | ||
4032 | self = self; | |
4033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetNativeFontInfoUserDesc",_kwnames,&_argo0)) | |
4034 | return NULL; | |
4035 | if (_argo0) { | |
4036 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4037 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
4038 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetNativeFontInfoUserDesc. Expected _wxFont_p."); | |
4039 | return NULL; | |
4040 | } | |
4041 | } | |
4042 | { | |
4043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6824d4f9 | 4044 | _result = new wxString (wxFont_GetNativeFontInfoUserDesc(_arg0)); |
6abe8375 RD |
4045 | |
4046 | wxPyEndAllowThreads(__tstate); | |
4047 | if (PyErr_Occurred()) return NULL; | |
4048 | }{ | |
6824d4f9 RD |
4049 | #if wxUSE_UNICODE |
4050 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
4051 | #else | |
6abe8375 | 4052 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
6824d4f9 | 4053 | #endif |
6abe8375 RD |
4054 | } |
4055 | { | |
4056 | delete _result; | |
4057 | } | |
4058 | return _resultobj; | |
4059 | } | |
4060 | ||
e6056257 RD |
4061 | #define wxFont_SetPointSize(_swigobj,_swigarg0) (_swigobj->SetPointSize(_swigarg0)) |
4062 | static PyObject *_wrap_wxFont_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4063 | PyObject * _resultobj; | |
4064 | wxFont * _arg0; | |
4065 | int _arg1; | |
4066 | PyObject * _argo0 = 0; | |
4067 | char *_kwnames[] = { "self","pointSize", NULL }; | |
4068 | ||
4069 | self = self; | |
4070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetPointSize",_kwnames,&_argo0,&_arg1)) | |
4071 | return NULL; | |
4072 | if (_argo0) { | |
4073 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4074 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
4075 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetPointSize. Expected _wxFont_p."); | |
4076 | return NULL; | |
4077 | } | |
4078 | } | |
4079 | { | |
0e2ff151 | 4080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4081 | wxFont_SetPointSize(_arg0,_arg1); |
e6056257 | 4082 | |
0e2ff151 | 4083 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4084 | if (PyErr_Occurred()) return NULL; |
4085 | } Py_INCREF(Py_None); | |
4086 | _resultobj = Py_None; | |
4087 | return _resultobj; | |
4088 | } | |
4089 | ||
4090 | #define wxFont_SetFamily(_swigobj,_swigarg0) (_swigobj->SetFamily(_swigarg0)) | |
4091 | static PyObject *_wrap_wxFont_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4092 | PyObject * _resultobj; | |
4093 | wxFont * _arg0; | |
4094 | int _arg1; | |
4095 | PyObject * _argo0 = 0; | |
4096 | char *_kwnames[] = { "self","family", NULL }; | |
4097 | ||
4098 | self = self; | |
4099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetFamily",_kwnames,&_argo0,&_arg1)) | |
4100 | return NULL; | |
4101 | if (_argo0) { | |
4102 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4103 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
4104 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetFamily. Expected _wxFont_p."); | |
4105 | return NULL; | |
4106 | } | |
4107 | } | |
4108 | { | |
0e2ff151 | 4109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4110 | wxFont_SetFamily(_arg0,_arg1); |
e6056257 | 4111 | |
0e2ff151 | 4112 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4113 | if (PyErr_Occurred()) return NULL; |
4114 | } Py_INCREF(Py_None); | |
4115 | _resultobj = Py_None; | |
4116 | return _resultobj; | |
4117 | } | |
4118 | ||
4119 | #define wxFont_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0)) | |
4120 | static PyObject *_wrap_wxFont_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4121 | PyObject * _resultobj; | |
4122 | wxFont * _arg0; | |
4123 | int _arg1; | |
4124 | PyObject * _argo0 = 0; | |
4125 | char *_kwnames[] = { "self","style", NULL }; | |
4126 | ||
4127 | self = self; | |
4128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetStyle",_kwnames,&_argo0,&_arg1)) | |
4129 | return NULL; | |
4130 | if (_argo0) { | |
4131 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4132 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
4133 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetStyle. Expected _wxFont_p."); | |
4134 | return NULL; | |
4135 | } | |
4136 | } | |
4137 | { | |
0e2ff151 | 4138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4139 | wxFont_SetStyle(_arg0,_arg1); |
e6056257 | 4140 | |
0e2ff151 | 4141 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4142 | if (PyErr_Occurred()) return NULL; |
4143 | } Py_INCREF(Py_None); | |
4144 | _resultobj = Py_None; | |
4145 | return _resultobj; | |
4146 | } | |
4147 | ||
4148 | #define wxFont_SetWeight(_swigobj,_swigarg0) (_swigobj->SetWeight(_swigarg0)) | |
4149 | static PyObject *_wrap_wxFont_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4150 | PyObject * _resultobj; | |
4151 | wxFont * _arg0; | |
4152 | int _arg1; | |
4153 | PyObject * _argo0 = 0; | |
4154 | char *_kwnames[] = { "self","weight", NULL }; | |
4155 | ||
4156 | self = self; | |
4157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetWeight",_kwnames,&_argo0,&_arg1)) | |
4158 | return NULL; | |
4159 | if (_argo0) { | |
4160 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4161 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
4162 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetWeight. Expected _wxFont_p."); | |
4163 | return NULL; | |
4164 | } | |
4165 | } | |
4166 | { | |
0e2ff151 | 4167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4168 | wxFont_SetWeight(_arg0,_arg1); |
e6056257 | 4169 | |
0e2ff151 | 4170 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4171 | if (PyErr_Occurred()) return NULL; |
4172 | } Py_INCREF(Py_None); | |
4173 | _resultobj = Py_None; | |
4174 | return _resultobj; | |
4175 | } | |
4176 | ||
4177 | #define wxFont_SetFaceName(_swigobj,_swigarg0) (_swigobj->SetFaceName(_swigarg0)) | |
4178 | static PyObject *_wrap_wxFont_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4179 | PyObject * _resultobj; | |
4180 | wxFont * _arg0; | |
4181 | wxString * _arg1; | |
4182 | PyObject * _argo0 = 0; | |
4183 | PyObject * _obj1 = 0; | |
4184 | char *_kwnames[] = { "self","faceName", NULL }; | |
4185 | ||
4186 | self = self; | |
4187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFont_SetFaceName",_kwnames,&_argo0,&_obj1)) | |
4188 | return NULL; | |
4189 | if (_argo0) { | |
4190 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4191 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
4192 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetFaceName. Expected _wxFont_p."); | |
4193 | return NULL; | |
4194 | } | |
4195 | } | |
4196 | { | |
6824d4f9 RD |
4197 | _arg1 = wxString_in_helper(_obj1); |
4198 | if (_arg1 == NULL) | |
e6056257 | 4199 | return NULL; |
e6056257 RD |
4200 | } |
4201 | { | |
0e2ff151 | 4202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4203 | wxFont_SetFaceName(_arg0,*_arg1); |
e6056257 | 4204 | |
0e2ff151 | 4205 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4206 | if (PyErr_Occurred()) return NULL; |
4207 | } Py_INCREF(Py_None); | |
4208 | _resultobj = Py_None; | |
4209 | { | |
4210 | if (_obj1) | |
4211 | delete _arg1; | |
4212 | } | |
4213 | return _resultobj; | |
4214 | } | |
4215 | ||
4216 | #define wxFont_SetUnderlined(_swigobj,_swigarg0) (_swigobj->SetUnderlined(_swigarg0)) | |
4217 | static PyObject *_wrap_wxFont_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4218 | PyObject * _resultobj; | |
4219 | wxFont * _arg0; | |
4220 | bool _arg1; | |
4221 | PyObject * _argo0 = 0; | |
4222 | int tempbool1; | |
4223 | char *_kwnames[] = { "self","underlined", NULL }; | |
4224 | ||
4225 | self = self; | |
4226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetUnderlined",_kwnames,&_argo0,&tempbool1)) | |
4227 | return NULL; | |
4228 | if (_argo0) { | |
4229 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4230 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
4231 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetUnderlined. Expected _wxFont_p."); | |
4232 | return NULL; | |
4233 | } | |
4234 | } | |
4235 | _arg1 = (bool ) tempbool1; | |
4236 | { | |
0e2ff151 | 4237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4238 | wxFont_SetUnderlined(_arg0,_arg1); |
e6056257 | 4239 | |
0e2ff151 | 4240 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4241 | if (PyErr_Occurred()) return NULL; |
4242 | } Py_INCREF(Py_None); | |
4243 | _resultobj = Py_None; | |
4244 | return _resultobj; | |
4245 | } | |
4246 | ||
4247 | #define wxFont_SetEncoding(_swigobj,_swigarg0) (_swigobj->SetEncoding(_swigarg0)) | |
4248 | static PyObject *_wrap_wxFont_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4249 | PyObject * _resultobj; | |
4250 | wxFont * _arg0; | |
4251 | wxFontEncoding _arg1; | |
4252 | PyObject * _argo0 = 0; | |
4253 | char *_kwnames[] = { "self","encoding", NULL }; | |
4254 | ||
4255 | self = self; | |
4256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetEncoding",_kwnames,&_argo0,&_arg1)) | |
4257 | return NULL; | |
4258 | if (_argo0) { | |
4259 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4260 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
4261 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetEncoding. Expected _wxFont_p."); | |
4262 | return NULL; | |
4263 | } | |
4264 | } | |
4265 | { | |
0e2ff151 | 4266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4267 | wxFont_SetEncoding(_arg0,_arg1); |
e6056257 | 4268 | |
0e2ff151 | 4269 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4270 | if (PyErr_Occurred()) return NULL; |
4271 | } Py_INCREF(Py_None); | |
4272 | _resultobj = Py_None; | |
4273 | return _resultobj; | |
4274 | } | |
4275 | ||
4276 | #define wxFont_SetNativeFontInfo(_swigobj,_swigarg0) (_swigobj->SetNativeFontInfo(_swigarg0)) | |
4277 | static PyObject *_wrap_wxFont_SetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4278 | PyObject * _resultobj; | |
4279 | wxFont * _arg0; | |
4280 | wxNativeFontInfo * _arg1; | |
4281 | PyObject * _argo0 = 0; | |
4282 | PyObject * _argo1 = 0; | |
4283 | char *_kwnames[] = { "self","info", NULL }; | |
4284 | ||
4285 | self = self; | |
4286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFont_SetNativeFontInfo",_kwnames,&_argo0,&_argo1)) | |
4287 | return NULL; | |
4288 | if (_argo0) { | |
4289 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4290 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
4291 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetNativeFontInfo. Expected _wxFont_p."); | |
4292 | return NULL; | |
4293 | } | |
4294 | } | |
4295 | if (_argo1) { | |
4296 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4297 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxNativeFontInfo_p")) { | |
4298 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFont_SetNativeFontInfo. Expected _wxNativeFontInfo_p."); | |
4299 | return NULL; | |
4300 | } | |
4301 | } | |
4302 | { | |
0e2ff151 | 4303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4304 | wxFont_SetNativeFontInfo(_arg0,*_arg1); |
e6056257 | 4305 | |
0e2ff151 | 4306 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4307 | if (PyErr_Occurred()) return NULL; |
4308 | } Py_INCREF(Py_None); | |
4309 | _resultobj = Py_None; | |
4310 | return _resultobj; | |
4311 | } | |
4312 | ||
6abe8375 RD |
4313 | #define wxFont_SetNativeFontInfoUserDesc(_swigobj,_swigarg0) (_swigobj->SetNativeFontInfoUserDesc(_swigarg0)) |
4314 | static PyObject *_wrap_wxFont_SetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4315 | PyObject * _resultobj; | |
4316 | wxFont * _arg0; | |
4317 | wxString * _arg1; | |
4318 | PyObject * _argo0 = 0; | |
4319 | PyObject * _obj1 = 0; | |
4320 | char *_kwnames[] = { "self","info", NULL }; | |
4321 | ||
4322 | self = self; | |
4323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFont_SetNativeFontInfoUserDesc",_kwnames,&_argo0,&_obj1)) | |
4324 | return NULL; | |
4325 | if (_argo0) { | |
4326 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4327 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
4328 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetNativeFontInfoUserDesc. Expected _wxFont_p."); | |
4329 | return NULL; | |
4330 | } | |
4331 | } | |
4332 | { | |
6824d4f9 RD |
4333 | _arg1 = wxString_in_helper(_obj1); |
4334 | if (_arg1 == NULL) | |
6abe8375 | 4335 | return NULL; |
6abe8375 RD |
4336 | } |
4337 | { | |
4338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6824d4f9 | 4339 | wxFont_SetNativeFontInfoUserDesc(_arg0,*_arg1); |
6abe8375 RD |
4340 | |
4341 | wxPyEndAllowThreads(__tstate); | |
4342 | if (PyErr_Occurred()) return NULL; | |
4343 | } Py_INCREF(Py_None); | |
4344 | _resultobj = Py_None; | |
4345 | { | |
4346 | if (_obj1) | |
4347 | delete _arg1; | |
4348 | } | |
4349 | return _resultobj; | |
4350 | } | |
4351 | ||
e6056257 RD |
4352 | #define wxFont_GetFamilyString(_swigobj) (_swigobj->GetFamilyString()) |
4353 | static PyObject *_wrap_wxFont_GetFamilyString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4354 | PyObject * _resultobj; | |
4355 | wxString * _result; | |
4356 | wxFont * _arg0; | |
4357 | PyObject * _argo0 = 0; | |
4358 | char *_kwnames[] = { "self", NULL }; | |
4359 | ||
4360 | self = self; | |
4361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetFamilyString",_kwnames,&_argo0)) | |
4362 | return NULL; | |
4363 | if (_argo0) { | |
4364 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4365 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
4366 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFamilyString. Expected _wxFont_p."); | |
4367 | return NULL; | |
4368 | } | |
4369 | } | |
4370 | { | |
0e2ff151 | 4371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4372 | _result = new wxString (wxFont_GetFamilyString(_arg0)); |
e6056257 | 4373 | |
0e2ff151 | 4374 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4375 | if (PyErr_Occurred()) return NULL; |
4376 | }{ | |
6824d4f9 RD |
4377 | #if wxUSE_UNICODE |
4378 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
4379 | #else | |
e6056257 | 4380 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
6824d4f9 | 4381 | #endif |
e6056257 RD |
4382 | } |
4383 | { | |
4384 | delete _result; | |
4385 | } | |
4386 | return _resultobj; | |
4387 | } | |
4388 | ||
4389 | #define wxFont_GetStyleString(_swigobj) (_swigobj->GetStyleString()) | |
4390 | static PyObject *_wrap_wxFont_GetStyleString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4391 | PyObject * _resultobj; | |
4392 | wxString * _result; | |
4393 | wxFont * _arg0; | |
4394 | PyObject * _argo0 = 0; | |
4395 | char *_kwnames[] = { "self", NULL }; | |
4396 | ||
4397 | self = self; | |
4398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetStyleString",_kwnames,&_argo0)) | |
4399 | return NULL; | |
4400 | if (_argo0) { | |
4401 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4402 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
4403 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetStyleString. Expected _wxFont_p."); | |
4404 | return NULL; | |
4405 | } | |
4406 | } | |
4407 | { | |
0e2ff151 | 4408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4409 | _result = new wxString (wxFont_GetStyleString(_arg0)); |
e6056257 | 4410 | |
0e2ff151 | 4411 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4412 | if (PyErr_Occurred()) return NULL; |
4413 | }{ | |
6824d4f9 RD |
4414 | #if wxUSE_UNICODE |
4415 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
4416 | #else | |
e6056257 | 4417 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
6824d4f9 | 4418 | #endif |
e6056257 RD |
4419 | } |
4420 | { | |
4421 | delete _result; | |
4422 | } | |
4423 | return _resultobj; | |
4424 | } | |
4425 | ||
4426 | #define wxFont_GetWeightString(_swigobj) (_swigobj->GetWeightString()) | |
4427 | static PyObject *_wrap_wxFont_GetWeightString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4428 | PyObject * _resultobj; | |
4429 | wxString * _result; | |
4430 | wxFont * _arg0; | |
4431 | PyObject * _argo0 = 0; | |
4432 | char *_kwnames[] = { "self", NULL }; | |
4433 | ||
4434 | self = self; | |
4435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetWeightString",_kwnames,&_argo0)) | |
4436 | return NULL; | |
4437 | if (_argo0) { | |
4438 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4439 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
4440 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetWeightString. Expected _wxFont_p."); | |
4441 | return NULL; | |
4442 | } | |
4443 | } | |
4444 | { | |
0e2ff151 | 4445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4446 | _result = new wxString (wxFont_GetWeightString(_arg0)); |
e6056257 | 4447 | |
0e2ff151 | 4448 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4449 | if (PyErr_Occurred()) return NULL; |
4450 | }{ | |
6824d4f9 RD |
4451 | #if wxUSE_UNICODE |
4452 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
4453 | #else | |
e6056257 | 4454 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
6824d4f9 | 4455 | #endif |
e6056257 RD |
4456 | } |
4457 | { | |
4458 | delete _result; | |
4459 | } | |
4460 | return _resultobj; | |
4461 | } | |
4462 | ||
4463 | static PyObject *_wrap_wxFont_GetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4464 | PyObject * _resultobj; | |
4465 | wxFontEncoding _result; | |
4466 | char *_kwnames[] = { NULL }; | |
4467 | ||
4468 | self = self; | |
4469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxFont_GetDefaultEncoding",_kwnames)) | |
4470 | return NULL; | |
4471 | { | |
0e2ff151 | 4472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4473 | _result = (wxFontEncoding )wxFont::GetDefaultEncoding(); |
e6056257 | 4474 | |
0e2ff151 | 4475 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4476 | if (PyErr_Occurred()) return NULL; |
4477 | } _resultobj = Py_BuildValue("i",_result); | |
4478 | return _resultobj; | |
4479 | } | |
4480 | ||
4481 | static PyObject *_wrap_wxFont_SetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4482 | PyObject * _resultobj; | |
4483 | wxFontEncoding _arg0; | |
4484 | char *_kwnames[] = { "encoding", NULL }; | |
4485 | ||
4486 | self = self; | |
4487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxFont_SetDefaultEncoding",_kwnames,&_arg0)) | |
4488 | return NULL; | |
4489 | { | |
0e2ff151 | 4490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4491 | wxFont::SetDefaultEncoding(_arg0); |
e6056257 | 4492 | |
0e2ff151 | 4493 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4494 | if (PyErr_Occurred()) return NULL; |
4495 | } Py_INCREF(Py_None); | |
4496 | _resultobj = Py_None; | |
4497 | return _resultobj; | |
4498 | } | |
4499 | ||
4500 | static void *SwigwxFontListTowxObject(void *ptr) { | |
4501 | wxFontList *src; | |
4502 | wxObject *dest; | |
4503 | src = (wxFontList *) ptr; | |
4504 | dest = (wxObject *) src; | |
4505 | return (void *) dest; | |
4506 | } | |
4507 | ||
4508 | #define wxFontList_AddFont(_swigobj,_swigarg0) (_swigobj->AddFont(_swigarg0)) | |
4509 | static PyObject *_wrap_wxFontList_AddFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4510 | PyObject * _resultobj; | |
4511 | wxFontList * _arg0; | |
4512 | wxFont * _arg1; | |
4513 | PyObject * _argo0 = 0; | |
4514 | PyObject * _argo1 = 0; | |
4515 | char *_kwnames[] = { "self","font", NULL }; | |
4516 | ||
4517 | self = self; | |
4518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontList_AddFont",_kwnames,&_argo0,&_argo1)) | |
4519 | return NULL; | |
4520 | if (_argo0) { | |
4521 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4522 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) { | |
4523 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_AddFont. Expected _wxFontList_p."); | |
4524 | return NULL; | |
4525 | } | |
4526 | } | |
4527 | if (_argo1) { | |
4528 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4529 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
4530 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontList_AddFont. Expected _wxFont_p."); | |
4531 | return NULL; | |
4532 | } | |
4533 | } | |
4534 | { | |
0e2ff151 | 4535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4536 | wxFontList_AddFont(_arg0,_arg1); |
e6056257 | 4537 | |
0e2ff151 | 4538 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4539 | if (PyErr_Occurred()) return NULL; |
4540 | } Py_INCREF(Py_None); | |
4541 | _resultobj = Py_None; | |
4542 | return _resultobj; | |
4543 | } | |
4544 | ||
4545 | #define wxFontList_FindOrCreateFont(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->FindOrCreateFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
4546 | static PyObject *_wrap_wxFontList_FindOrCreateFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4547 | PyObject * _resultobj; | |
4548 | wxFont * _result; | |
4549 | wxFontList * _arg0; | |
4550 | int _arg1; | |
4551 | int _arg2; | |
4552 | int _arg3; | |
4553 | int _arg4; | |
4554 | bool _arg5 = (bool ) FALSE; | |
c3bfa1cb | 4555 | wxString * _arg6 = (wxString *) &wxPyEmptyString; |
e6056257 RD |
4556 | wxFontEncoding _arg7 = (wxFontEncoding ) (wxFONTENCODING_DEFAULT); |
4557 | PyObject * _argo0 = 0; | |
4558 | int tempbool5 = (int) FALSE; | |
c3bfa1cb | 4559 | PyObject * _obj6 = 0; |
e6056257 RD |
4560 | char *_kwnames[] = { "self","point_size","family","style","weight","underline","facename","encoding", NULL }; |
4561 | char _ptemp[128]; | |
4562 | ||
4563 | self = self; | |
c3bfa1cb | 4564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|iOi:wxFontList_FindOrCreateFont",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&tempbool5,&_obj6,&_arg7)) |
e6056257 RD |
4565 | return NULL; |
4566 | if (_argo0) { | |
4567 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4568 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) { | |
4569 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_FindOrCreateFont. Expected _wxFontList_p."); | |
4570 | return NULL; | |
4571 | } | |
4572 | } | |
4573 | _arg5 = (bool ) tempbool5; | |
c3bfa1cb RD |
4574 | if (_obj6) |
4575 | { | |
4576 | _arg6 = wxString_in_helper(_obj6); | |
4577 | if (_arg6 == NULL) | |
4578 | return NULL; | |
4579 | } | |
e6056257 | 4580 | { |
0e2ff151 | 4581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c3bfa1cb | 4582 | _result = (wxFont *)wxFontList_FindOrCreateFont(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,*_arg6,_arg7); |
e6056257 | 4583 | |
0e2ff151 | 4584 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4585 | if (PyErr_Occurred()) return NULL; |
4586 | } if (_result) { | |
4587 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p"); | |
4588 | _resultobj = Py_BuildValue("s",_ptemp); | |
4589 | } else { | |
4590 | Py_INCREF(Py_None); | |
4591 | _resultobj = Py_None; | |
4592 | } | |
c3bfa1cb RD |
4593 | { |
4594 | if (_obj6) | |
4595 | delete _arg6; | |
4596 | } | |
e6056257 RD |
4597 | return _resultobj; |
4598 | } | |
4599 | ||
4600 | #define wxFontList_RemoveFont(_swigobj,_swigarg0) (_swigobj->RemoveFont(_swigarg0)) | |
4601 | static PyObject *_wrap_wxFontList_RemoveFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4602 | PyObject * _resultobj; | |
4603 | wxFontList * _arg0; | |
4604 | wxFont * _arg1; | |
4605 | PyObject * _argo0 = 0; | |
4606 | PyObject * _argo1 = 0; | |
4607 | char *_kwnames[] = { "self","font", NULL }; | |
4608 | ||
4609 | self = self; | |
4610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontList_RemoveFont",_kwnames,&_argo0,&_argo1)) | |
4611 | return NULL; | |
4612 | if (_argo0) { | |
4613 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4614 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) { | |
4615 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_RemoveFont. Expected _wxFontList_p."); | |
4616 | return NULL; | |
4617 | } | |
4618 | } | |
4619 | if (_argo1) { | |
4620 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4621 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
4622 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontList_RemoveFont. Expected _wxFont_p."); | |
4623 | return NULL; | |
4624 | } | |
4625 | } | |
4626 | { | |
0e2ff151 | 4627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4628 | wxFontList_RemoveFont(_arg0,_arg1); |
e6056257 | 4629 | |
0e2ff151 | 4630 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4631 | if (PyErr_Occurred()) return NULL; |
4632 | } Py_INCREF(Py_None); | |
4633 | _resultobj = Py_None; | |
4634 | return _resultobj; | |
4635 | } | |
4636 | ||
00360d46 RD |
4637 | #define wxFontList_GetCount(_swigobj) (_swigobj->GetCount()) |
4638 | static PyObject *_wrap_wxFontList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4639 | PyObject * _resultobj; | |
4640 | int _result; | |
4641 | wxFontList * _arg0; | |
4642 | PyObject * _argo0 = 0; | |
4643 | char *_kwnames[] = { "self", NULL }; | |
4644 | ||
4645 | self = self; | |
4646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFontList_GetCount",_kwnames,&_argo0)) | |
4647 | return NULL; | |
4648 | if (_argo0) { | |
4649 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4650 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) { | |
4651 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_GetCount. Expected _wxFontList_p."); | |
4652 | return NULL; | |
4653 | } | |
4654 | } | |
4655 | { | |
0e2ff151 | 4656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4657 | _result = (int )wxFontList_GetCount(_arg0); |
00360d46 | 4658 | |
0e2ff151 | 4659 | wxPyEndAllowThreads(__tstate); |
00360d46 RD |
4660 | if (PyErr_Occurred()) return NULL; |
4661 | } _resultobj = Py_BuildValue("i",_result); | |
4662 | return _resultobj; | |
4663 | } | |
4664 | ||
e6056257 RD |
4665 | static void *SwigwxColourTowxObject(void *ptr) { |
4666 | wxColour *src; | |
4667 | wxObject *dest; | |
4668 | src = (wxColour *) ptr; | |
4669 | dest = (wxObject *) src; | |
4670 | return (void *) dest; | |
4671 | } | |
4672 | ||
4673 | #define new_wxColour(_swigarg0,_swigarg1,_swigarg2) (new wxColour(_swigarg0,_swigarg1,_swigarg2)) | |
4674 | static PyObject *_wrap_new_wxColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4675 | PyObject * _resultobj; | |
4676 | wxColour * _result; | |
4677 | unsigned char _arg0 = (unsigned char ) 0; | |
4678 | unsigned char _arg1 = (unsigned char ) 0; | |
4679 | unsigned char _arg2 = (unsigned char ) 0; | |
4680 | char *_kwnames[] = { "red","green","blue", NULL }; | |
4681 | char _ptemp[128]; | |
4682 | ||
4683 | self = self; | |
4684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|bbb:new_wxColour",_kwnames,&_arg0,&_arg1,&_arg2)) | |
4685 | return NULL; | |
4686 | { | |
0e2ff151 | 4687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4688 | _result = (wxColour *)new_wxColour(_arg0,_arg1,_arg2); |
e6056257 | 4689 | |
0e2ff151 | 4690 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4691 | if (PyErr_Occurred()) return NULL; |
4692 | } if (_result) { | |
4693 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
4694 | _resultobj = Py_BuildValue("s",_ptemp); | |
4695 | } else { | |
4696 | Py_INCREF(Py_None); | |
4697 | _resultobj = Py_None; | |
4698 | } | |
4699 | return _resultobj; | |
4700 | } | |
4701 | ||
4702 | #define delete_wxColour(_swigobj) (delete _swigobj) | |
4703 | static PyObject *_wrap_delete_wxColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4704 | PyObject * _resultobj; | |
4705 | wxColour * _arg0; | |
4706 | wxColour temp; | |
4707 | PyObject * _obj0 = 0; | |
4708 | char *_kwnames[] = { "self", NULL }; | |
4709 | ||
4710 | self = self; | |
4711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxColour",_kwnames,&_obj0)) | |
4712 | return NULL; | |
4713 | { | |
4714 | _arg0 = &temp; | |
4715 | if (! wxColour_helper(_obj0, &_arg0)) | |
4716 | return NULL; | |
4717 | } | |
4718 | { | |
0e2ff151 | 4719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4720 | delete_wxColour(_arg0); |
e6056257 | 4721 | |
0e2ff151 | 4722 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4723 | if (PyErr_Occurred()) return NULL; |
4724 | } Py_INCREF(Py_None); | |
4725 | _resultobj = Py_None; | |
4726 | return _resultobj; | |
4727 | } | |
4728 | ||
4729 | #define wxColour_Red(_swigobj) (_swigobj->Red()) | |
4730 | static PyObject *_wrap_wxColour_Red(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4731 | PyObject * _resultobj; | |
4732 | unsigned char _result; | |
4733 | wxColour * _arg0; | |
4734 | wxColour temp; | |
4735 | PyObject * _obj0 = 0; | |
4736 | char *_kwnames[] = { "self", NULL }; | |
4737 | ||
4738 | self = self; | |
4739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Red",_kwnames,&_obj0)) | |
4740 | return NULL; | |
4741 | { | |
4742 | _arg0 = &temp; | |
4743 | if (! wxColour_helper(_obj0, &_arg0)) | |
4744 | return NULL; | |
4745 | } | |
4746 | { | |
0e2ff151 | 4747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4748 | _result = (unsigned char )wxColour_Red(_arg0); |
e6056257 | 4749 | |
0e2ff151 | 4750 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4751 | if (PyErr_Occurred()) return NULL; |
4752 | } _resultobj = Py_BuildValue("b",_result); | |
4753 | return _resultobj; | |
4754 | } | |
4755 | ||
4756 | #define wxColour_Green(_swigobj) (_swigobj->Green()) | |
4757 | static PyObject *_wrap_wxColour_Green(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4758 | PyObject * _resultobj; | |
4759 | unsigned char _result; | |
4760 | wxColour * _arg0; | |
4761 | wxColour temp; | |
4762 | PyObject * _obj0 = 0; | |
4763 | char *_kwnames[] = { "self", NULL }; | |
4764 | ||
4765 | self = self; | |
4766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Green",_kwnames,&_obj0)) | |
4767 | return NULL; | |
4768 | { | |
4769 | _arg0 = &temp; | |
4770 | if (! wxColour_helper(_obj0, &_arg0)) | |
4771 | return NULL; | |
4772 | } | |
4773 | { | |
0e2ff151 | 4774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4775 | _result = (unsigned char )wxColour_Green(_arg0); |
e6056257 | 4776 | |
0e2ff151 | 4777 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4778 | if (PyErr_Occurred()) return NULL; |
4779 | } _resultobj = Py_BuildValue("b",_result); | |
4780 | return _resultobj; | |
4781 | } | |
4782 | ||
4783 | #define wxColour_Blue(_swigobj) (_swigobj->Blue()) | |
4784 | static PyObject *_wrap_wxColour_Blue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4785 | PyObject * _resultobj; | |
4786 | unsigned char _result; | |
4787 | wxColour * _arg0; | |
4788 | wxColour temp; | |
4789 | PyObject * _obj0 = 0; | |
4790 | char *_kwnames[] = { "self", NULL }; | |
4791 | ||
4792 | self = self; | |
4793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Blue",_kwnames,&_obj0)) | |
4794 | return NULL; | |
4795 | { | |
4796 | _arg0 = &temp; | |
4797 | if (! wxColour_helper(_obj0, &_arg0)) | |
4798 | return NULL; | |
4799 | } | |
4800 | { | |
0e2ff151 | 4801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4802 | _result = (unsigned char )wxColour_Blue(_arg0); |
e6056257 | 4803 | |
0e2ff151 | 4804 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4805 | if (PyErr_Occurred()) return NULL; |
4806 | } _resultobj = Py_BuildValue("b",_result); | |
4807 | return _resultobj; | |
4808 | } | |
4809 | ||
4810 | #define wxColour_Ok(_swigobj) (_swigobj->Ok()) | |
4811 | static PyObject *_wrap_wxColour_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4812 | PyObject * _resultobj; | |
4813 | bool _result; | |
4814 | wxColour * _arg0; | |
4815 | wxColour temp; | |
4816 | PyObject * _obj0 = 0; | |
4817 | char *_kwnames[] = { "self", NULL }; | |
4818 | ||
4819 | self = self; | |
4820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Ok",_kwnames,&_obj0)) | |
4821 | return NULL; | |
4822 | { | |
4823 | _arg0 = &temp; | |
4824 | if (! wxColour_helper(_obj0, &_arg0)) | |
4825 | return NULL; | |
4826 | } | |
4827 | { | |
0e2ff151 | 4828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4829 | _result = (bool )wxColour_Ok(_arg0); |
e6056257 | 4830 | |
0e2ff151 | 4831 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4832 | if (PyErr_Occurred()) return NULL; |
4833 | } _resultobj = Py_BuildValue("i",_result); | |
4834 | return _resultobj; | |
4835 | } | |
4836 | ||
4837 | #define wxColour_Set(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Set(_swigarg0,_swigarg1,_swigarg2)) | |
4838 | static PyObject *_wrap_wxColour_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4839 | PyObject * _resultobj; | |
4840 | wxColour * _arg0; | |
4841 | unsigned char _arg1; | |
4842 | unsigned char _arg2; | |
4843 | unsigned char _arg3; | |
4844 | wxColour temp; | |
4845 | PyObject * _obj0 = 0; | |
4846 | char *_kwnames[] = { "self","red","green","blue", NULL }; | |
4847 | ||
4848 | self = self; | |
4849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Obbb:wxColour_Set",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3)) | |
4850 | return NULL; | |
4851 | { | |
4852 | _arg0 = &temp; | |
4853 | if (! wxColour_helper(_obj0, &_arg0)) | |
4854 | return NULL; | |
4855 | } | |
4856 | { | |
0e2ff151 | 4857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4858 | wxColour_Set(_arg0,_arg1,_arg2,_arg3); |
e6056257 | 4859 | |
0e2ff151 | 4860 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4861 | if (PyErr_Occurred()) return NULL; |
4862 | } Py_INCREF(Py_None); | |
4863 | _resultobj = Py_None; | |
4864 | return _resultobj; | |
4865 | } | |
4866 | ||
4867 | static PyObject * wxColour_Get(wxColour *self) { | |
4868 | PyObject* rv = PyTuple_New(3); | |
4869 | PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red())); | |
4870 | PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green())); | |
4871 | PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue())); | |
4872 | return rv; | |
4873 | } | |
4874 | static PyObject *_wrap_wxColour_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4875 | PyObject * _resultobj; | |
4876 | PyObject * _result; | |
4877 | wxColour * _arg0; | |
4878 | wxColour temp; | |
4879 | PyObject * _obj0 = 0; | |
4880 | char *_kwnames[] = { "self", NULL }; | |
4881 | ||
4882 | self = self; | |
4883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Get",_kwnames,&_obj0)) | |
4884 | return NULL; | |
4885 | { | |
4886 | _arg0 = &temp; | |
4887 | if (! wxColour_helper(_obj0, &_arg0)) | |
4888 | return NULL; | |
4889 | } | |
4890 | { | |
0e2ff151 | 4891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4892 | _result = (PyObject *)wxColour_Get(_arg0); |
e6056257 | 4893 | |
0e2ff151 | 4894 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4895 | if (PyErr_Occurred()) return NULL; |
4896 | }{ | |
4897 | _resultobj = _result; | |
4898 | } | |
4899 | return _resultobj; | |
4900 | } | |
4901 | ||
4902 | static void *SwigwxColourDatabaseTowxObject(void *ptr) { | |
4903 | wxColourDatabase *src; | |
4904 | wxObject *dest; | |
4905 | src = (wxColourDatabase *) ptr; | |
4906 | dest = (wxObject *) src; | |
4907 | return (void *) dest; | |
4908 | } | |
4909 | ||
4910 | #define wxColourDatabase_FindColour(_swigobj,_swigarg0) (_swigobj->FindColour(_swigarg0)) | |
4911 | static PyObject *_wrap_wxColourDatabase_FindColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4912 | PyObject * _resultobj; | |
4913 | wxColour * _result; | |
4914 | wxColourDatabase * _arg0; | |
4915 | wxString * _arg1; | |
4916 | PyObject * _argo0 = 0; | |
4917 | PyObject * _obj1 = 0; | |
4918 | char *_kwnames[] = { "self","colour", NULL }; | |
4919 | char _ptemp[128]; | |
4920 | ||
4921 | self = self; | |
4922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxColourDatabase_FindColour",_kwnames,&_argo0,&_obj1)) | |
4923 | return NULL; | |
4924 | if (_argo0) { | |
4925 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4926 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) { | |
4927 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_FindColour. Expected _wxColourDatabase_p."); | |
4928 | return NULL; | |
4929 | } | |
4930 | } | |
4931 | { | |
6824d4f9 RD |
4932 | _arg1 = wxString_in_helper(_obj1); |
4933 | if (_arg1 == NULL) | |
e6056257 | 4934 | return NULL; |
e6056257 RD |
4935 | } |
4936 | { | |
0e2ff151 | 4937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4938 | _result = (wxColour *)wxColourDatabase_FindColour(_arg0,*_arg1); |
e6056257 | 4939 | |
0e2ff151 | 4940 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4941 | if (PyErr_Occurred()) return NULL; |
4942 | } if (_result) { | |
4943 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
4944 | _resultobj = Py_BuildValue("s",_ptemp); | |
4945 | } else { | |
4946 | Py_INCREF(Py_None); | |
4947 | _resultobj = Py_None; | |
4948 | } | |
4949 | { | |
4950 | if (_obj1) | |
4951 | delete _arg1; | |
4952 | } | |
4953 | return _resultobj; | |
4954 | } | |
4955 | ||
4956 | #define wxColourDatabase_FindName(_swigobj,_swigarg0) (_swigobj->FindName(_swigarg0)) | |
4957 | static PyObject *_wrap_wxColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4958 | PyObject * _resultobj; | |
4959 | wxString * _result; | |
4960 | wxColourDatabase * _arg0; | |
4961 | wxColour * _arg1; | |
4962 | PyObject * _argo0 = 0; | |
4963 | wxColour temp; | |
4964 | PyObject * _obj1 = 0; | |
4965 | char *_kwnames[] = { "self","colour", NULL }; | |
4966 | ||
4967 | self = self; | |
4968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxColourDatabase_FindName",_kwnames,&_argo0,&_obj1)) | |
4969 | return NULL; | |
4970 | if (_argo0) { | |
4971 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4972 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) { | |
4973 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_FindName. Expected _wxColourDatabase_p."); | |
4974 | return NULL; | |
4975 | } | |
4976 | } | |
4977 | { | |
4978 | _arg1 = &temp; | |
4979 | if (! wxColour_helper(_obj1, &_arg1)) | |
4980 | return NULL; | |
4981 | } | |
4982 | { | |
0e2ff151 | 4983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 4984 | _result = new wxString (wxColourDatabase_FindName(_arg0,*_arg1)); |
e6056257 | 4985 | |
0e2ff151 | 4986 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4987 | if (PyErr_Occurred()) return NULL; |
4988 | }{ | |
6824d4f9 RD |
4989 | #if wxUSE_UNICODE |
4990 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
4991 | #else | |
e6056257 | 4992 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
6824d4f9 | 4993 | #endif |
e6056257 RD |
4994 | } |
4995 | { | |
4996 | delete _result; | |
4997 | } | |
4998 | return _resultobj; | |
4999 | } | |
5000 | ||
5001 | static void wxColourDatabase_Append(wxColourDatabase *self,const wxString & name,int red,int green,int blue) { | |
a341e32e RD |
5002 | // first see if the name is already there |
5003 | wxString cName = name; | |
5004 | cName.MakeUpper(); | |
5005 | wxString cName2 = cName; | |
c3bfa1cb | 5006 | if ( !cName2.Replace(wxT("GRAY"), wxT("GREY")) ) |
a341e32e RD |
5007 | cName2.clear(); |
5008 | ||
5009 | wxNode *node = self->First(); | |
5010 | while ( node ) { | |
5011 | const wxChar *key = node->GetKeyString(); | |
5012 | if ( cName == key || cName2 == key ) { | |
5013 | wxColour* c = (wxColour *)node->Data(); | |
5014 | c->Set(red, green, blue); | |
5015 | return; | |
5016 | } | |
5017 | node = node->Next(); | |
5018 | } | |
5019 | ||
5020 | // otherwise append the new colour | |
e6056257 RD |
5021 | self->Append(name.c_str(), new wxColour(red, green, blue)); |
5022 | } | |
5023 | static PyObject *_wrap_wxColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5024 | PyObject * _resultobj; | |
5025 | wxColourDatabase * _arg0; | |
5026 | wxString * _arg1; | |
5027 | int _arg2; | |
5028 | int _arg3; | |
5029 | int _arg4; | |
5030 | PyObject * _argo0 = 0; | |
5031 | PyObject * _obj1 = 0; | |
5032 | char *_kwnames[] = { "self","name","red","green","blue", NULL }; | |
5033 | ||
5034 | self = self; | |
5035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiii:wxColourDatabase_Append",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_arg4)) | |
5036 | return NULL; | |
5037 | if (_argo0) { | |
5038 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5039 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) { | |
5040 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_Append. Expected _wxColourDatabase_p."); | |
5041 | return NULL; | |
5042 | } | |
5043 | } | |
5044 | { | |
6824d4f9 RD |
5045 | _arg1 = wxString_in_helper(_obj1); |
5046 | if (_arg1 == NULL) | |
e6056257 | 5047 | return NULL; |
e6056257 RD |
5048 | } |
5049 | { | |
0e2ff151 | 5050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 5051 | wxColourDatabase_Append(_arg0,*_arg1,_arg2,_arg3,_arg4); |
e6056257 | 5052 | |
0e2ff151 | 5053 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5054 | if (PyErr_Occurred()) return NULL; |
5055 | } Py_INCREF(Py_None); | |
5056 | _resultobj = Py_None; | |
5057 | { | |
5058 | if (_obj1) | |
5059 | delete _arg1; | |
5060 | } | |
5061 | return _resultobj; | |
5062 | } | |
5063 | ||
5064 | static void *SwigwxPenTowxGDIObject(void *ptr) { | |
5065 | wxPen *src; | |
5066 | wxGDIObject *dest; | |
5067 | src = (wxPen *) ptr; | |
5068 | dest = (wxGDIObject *) src; | |
5069 | return (void *) dest; | |
5070 | } | |
5071 | ||
5072 | static void *SwigwxPenTowxObject(void *ptr) { | |
5073 | wxPen *src; | |
5074 | wxObject *dest; | |
5075 | src = (wxPen *) ptr; | |
5076 | dest = (wxObject *) src; | |
5077 | return (void *) dest; | |
5078 | } | |
5079 | ||
5080 | #define new_wxPen(_swigarg0,_swigarg1,_swigarg2) (new wxPen(_swigarg0,_swigarg1,_swigarg2)) | |
5081 | static PyObject *_wrap_new_wxPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5082 | PyObject * _resultobj; | |
5083 | wxPen * _result; | |
5084 | wxColour * _arg0; | |
5085 | int _arg1 = (int ) 1; | |
5086 | int _arg2 = (int ) wxSOLID; | |
5087 | wxColour temp; | |
5088 | PyObject * _obj0 = 0; | |
5089 | char *_kwnames[] = { "colour","width","style", NULL }; | |
5090 | char _ptemp[128]; | |
5091 | ||
5092 | self = self; | |
5093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:new_wxPen",_kwnames,&_obj0,&_arg1,&_arg2)) | |
5094 | return NULL; | |
5095 | { | |
5096 | _arg0 = &temp; | |
5097 | if (! wxColour_helper(_obj0, &_arg0)) | |
5098 | return NULL; | |
5099 | } | |
5100 | { | |
0e2ff151 | 5101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 5102 | _result = (wxPen *)new_wxPen(*_arg0,_arg1,_arg2); |
e6056257 | 5103 | |
0e2ff151 | 5104 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5105 | if (PyErr_Occurred()) return NULL; |
5106 | } if (_result) { | |
5107 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPen_p"); | |
5108 | _resultobj = Py_BuildValue("s",_ptemp); | |
5109 | } else { | |
5110 | Py_INCREF(Py_None); | |
5111 | _resultobj = Py_None; | |
5112 | } | |
5113 | return _resultobj; | |
5114 | } | |
5115 | ||
5116 | #define delete_wxPen(_swigobj) (delete _swigobj) | |
5117 | static PyObject *_wrap_delete_wxPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5118 | PyObject * _resultobj; | |
5119 | wxPen * _arg0; | |
5120 | PyObject * _argo0 = 0; | |
5121 | char *_kwnames[] = { "self", NULL }; | |
5122 | ||
5123 | self = self; | |
5124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPen",_kwnames,&_argo0)) | |
5125 | return NULL; | |
5126 | if (_argo0) { | |
5127 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5128 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
5129 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPen. Expected _wxPen_p."); | |
5130 | return NULL; | |
5131 | } | |
5132 | } | |
5133 | { | |
0e2ff151 | 5134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 5135 | delete_wxPen(_arg0); |
e6056257 | 5136 | |
0e2ff151 | 5137 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5138 | if (PyErr_Occurred()) return NULL; |
5139 | } Py_INCREF(Py_None); | |
5140 | _resultobj = Py_None; | |
5141 | return _resultobj; | |
5142 | } | |
5143 | ||
5144 | #define wxPen_GetCap(_swigobj) (_swigobj->GetCap()) | |
5145 | static PyObject *_wrap_wxPen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5146 | PyObject * _resultobj; | |
5147 | int _result; | |
5148 | wxPen * _arg0; | |
5149 | PyObject * _argo0 = 0; | |
5150 | char *_kwnames[] = { "self", NULL }; | |
5151 | ||
5152 | self = self; | |
5153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetCap",_kwnames,&_argo0)) | |
5154 | return NULL; | |
5155 | if (_argo0) { | |
5156 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5157 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
5158 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetCap. Expected _wxPen_p."); | |
5159 | return NULL; | |
5160 | } | |
5161 | } | |
5162 | { | |
0e2ff151 | 5163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 5164 | _result = (int )wxPen_GetCap(_arg0); |
e6056257 | 5165 | |
0e2ff151 | 5166 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5167 | if (PyErr_Occurred()) return NULL; |
5168 | } _resultobj = Py_BuildValue("i",_result); | |
5169 | return _resultobj; | |
5170 | } | |
5171 | ||
5172 | #define wxPen_GetColour(_swigobj) (_swigobj->GetColour()) | |
5173 | static PyObject *_wrap_wxPen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5174 | PyObject * _resultobj; | |
5175 | wxColour * _result; | |
5176 | wxPen * _arg0; | |
5177 | PyObject * _argo0 = 0; | |
5178 | char *_kwnames[] = { "self", NULL }; | |
5179 | char _ptemp[128]; | |
5180 | ||
5181 | self = self; | |
5182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetColour",_kwnames,&_argo0)) | |
5183 | return NULL; | |
5184 | if (_argo0) { | |
5185 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5186 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
5187 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetColour. Expected _wxPen_p."); | |
5188 | return NULL; | |
5189 | } | |
5190 | } | |
5191 | { | |
0e2ff151 | 5192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 5193 | _result = new wxColour (wxPen_GetColour(_arg0)); |
e6056257 | 5194 | |
0e2ff151 | 5195 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5196 | if (PyErr_Occurred()) return NULL; |
5197 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
5198 | _resultobj = Py_BuildValue("s",_ptemp); | |
5199 | return _resultobj; | |
5200 | } | |
5201 | ||
5202 | #define wxPen_GetJoin(_swigobj) (_swigobj->GetJoin()) | |
5203 | static PyObject *_wrap_wxPen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5204 | PyObject * _resultobj; | |
5205 | int _result; | |
5206 | wxPen * _arg0; | |
5207 | PyObject * _argo0 = 0; | |
5208 | char *_kwnames[] = { "self", NULL }; | |
5209 | ||
5210 | self = self; | |
5211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetJoin",_kwnames,&_argo0)) | |
5212 | return NULL; | |
5213 | if (_argo0) { | |
5214 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5215 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
5216 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetJoin. Expected _wxPen_p."); | |
5217 | return NULL; | |
5218 | } | |
5219 | } | |
5220 | { | |
0e2ff151 | 5221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 5222 | _result = (int )wxPen_GetJoin(_arg0); |
e6056257 | 5223 | |
0e2ff151 | 5224 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5225 | if (PyErr_Occurred()) return NULL; |
5226 | } _resultobj = Py_BuildValue("i",_result); | |
5227 | return _resultobj; | |
5228 | } | |
5229 | ||
5230 | #define wxPen_GetStyle(_swigobj) (_swigobj->GetStyle()) | |
5231 | static PyObject *_wrap_wxPen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5232 | PyObject * _resultobj; | |
5233 | int _result; | |
5234 | wxPen * _arg0; | |
5235 | PyObject * _argo0 = 0; | |
5236 | char *_kwnames[] = { "self", NULL }; | |
5237 | ||
5238 | self = self; | |
5239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetStyle",_kwnames,&_argo0)) | |
5240 | return NULL; | |
5241 | if (_argo0) { | |
5242 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5243 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
5244 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetStyle. Expected _wxPen_p."); | |
5245 | return NULL; | |
5246 | } | |
5247 | } | |
5248 | { | |
0e2ff151 | 5249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 5250 | _result = (int )wxPen_GetStyle(_arg0); |
e6056257 | 5251 | |
0e2ff151 | 5252 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5253 | if (PyErr_Occurred()) return NULL; |
5254 | } _resultobj = Py_BuildValue("i",_result); | |
5255 | return _resultobj; | |
5256 | } | |
5257 | ||
5258 | #define wxPen_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
5259 | static PyObject *_wrap_wxPen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5260 | PyObject * _resultobj; | |
5261 | int _result; | |
5262 | wxPen * _arg0; | |
5263 | PyObject * _argo0 = 0; | |
5264 | char *_kwnames[] = { "self", NULL }; | |
5265 | ||
5266 | self = self; | |
5267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetWidth",_kwnames,&_argo0)) | |
5268 | return NULL; | |
5269 | if (_argo0) { | |
5270 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5271 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
5272 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetWidth. Expected _wxPen_p."); | |
5273 | return NULL; | |
5274 | } | |
5275 | } | |
5276 | { | |
0e2ff151 | 5277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 5278 | _result = (int )wxPen_GetWidth(_arg0); |
e6056257 | 5279 | |
0e2ff151 | 5280 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5281 | if (PyErr_Occurred()) return NULL; |
5282 | } _resultobj = Py_BuildValue("i",_result); | |
5283 | return _resultobj; | |
5284 | } | |
5285 | ||
5286 | #define wxPen_Ok(_swigobj) (_swigobj->Ok()) | |
5287 | static PyObject *_wrap_wxPen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5288 | PyObject * _resultobj; | |
5289 | bool _result; | |
5290 | wxPen * _arg0; | |
5291 | PyObject * _argo0 = 0; | |
5292 | char *_kwnames[] = { "self", NULL }; | |
5293 | ||
5294 | self = self; | |
5295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_Ok",_kwnames,&_argo0)) | |
5296 | return NULL; | |
5297 | if (_argo0) { | |
5298 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5299 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
5300 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_Ok. Expected _wxPen_p."); | |
5301 | return NULL; | |
5302 | } | |
5303 | } | |
5304 | { | |
0e2ff151 | 5305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 5306 | _result = (bool )wxPen_Ok(_arg0); |
e6056257 | 5307 | |
0e2ff151 | 5308 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5309 | if (PyErr_Occurred()) return NULL; |
5310 | } _resultobj = Py_BuildValue("i",_result); | |
5311 | return _resultobj; | |
5312 | } | |
5313 | ||
5314 | #define wxPen_SetCap(_swigobj,_swigarg0) (_swigobj->SetCap(_swigarg0)) | |
5315 | static PyObject *_wrap_wxPen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5316 | PyObject * _resultobj; | |
5317 | wxPen * _arg0; | |
5318 | int _arg1; | |
5319 | PyObject * _argo0 = 0; | |
5320 | char *_kwnames[] = { "self","cap_style", NULL }; | |
5321 | ||
5322 | self = self; | |
5323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetCap",_kwnames,&_argo0,&_arg1)) | |
5324 | return NULL; | |
5325 | if (_argo0) { | |
5326 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5327 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
5328 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetCap. Expected _wxPen_p."); | |
5329 | return NULL; | |
5330 | } | |
5331 | } | |
5332 | { | |
0e2ff151 | 5333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 5334 | wxPen_SetCap(_arg0,_arg1); |
e6056257 | 5335 | |
0e2ff151 | 5336 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5337 | if (PyErr_Occurred()) return NULL; |
5338 | } Py_INCREF(Py_None); | |
5339 | _resultobj = Py_None; | |
5340 | return _resultobj; | |
5341 | } | |
5342 | ||
5343 | #define wxPen_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0)) | |
5344 | static PyObject *_wrap_wxPen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5345 | PyObject * _resultobj; | |
5346 | wxPen * _arg0; | |
5347 | wxColour * _arg1; | |
5348 | PyObject * _argo0 = 0; | |
5349 | wxColour temp; | |
5350 | PyObject * _obj1 = 0; | |
5351 | char *_kwnames[] = { "self","colour", NULL }; | |
5352 | ||
5353 | self = self; | |
5354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_SetColour",_kwnames,&_argo0,&_obj1)) | |
5355 | return NULL; | |
5356 | if (_argo0) { | |
5357 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5358 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
5359 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetColour. Expected _wxPen_p."); | |
5360 | return NULL; | |
5361 | } | |
5362 | } | |
5363 | { | |
5364 | _arg1 = &temp; | |
5365 | if (! wxColour_helper(_obj1, &_arg1)) | |
5366 | return NULL; | |
5367 | } | |
5368 | { | |
0e2ff151 | 5369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 5370 | wxPen_SetColour(_arg0,*_arg1); |
e6056257 | 5371 | |
0e2ff151 | 5372 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5373 | if (PyErr_Occurred()) return NULL; |
5374 | } Py_INCREF(Py_None); | |
5375 | _resultobj = Py_None; | |
5376 | return _resultobj; | |
5377 | } | |
5378 | ||
5379 | #define wxPen_SetJoin(_swigobj,_swigarg0) (_swigobj->SetJoin(_swigarg0)) | |
5380 | static PyObject *_wrap_wxPen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5381 | PyObject * _resultobj; | |
5382 | wxPen * _arg0; | |
5383 | int _arg1; | |
5384 | PyObject * _argo0 = 0; | |
5385 | char *_kwnames[] = { "self","join_style", NULL }; | |
5386 | ||
5387 | self = self; | |
5388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetJoin",_kwnames,&_argo0,&_arg1)) | |
5389 | return NULL; | |
5390 | if (_argo0) { | |
5391 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5392 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
5393 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetJoin. Expected _wxPen_p."); | |
5394 | return NULL; | |
5395 | } | |
5396 | } | |
5397 | { | |
0e2ff151 | 5398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 5399 | wxPen_SetJoin(_arg0,_arg1); |
e6056257 | 5400 | |
0e2ff151 | 5401 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5402 | if (PyErr_Occurred()) return NULL; |
5403 | } Py_INCREF(Py_None); | |
5404 | _resultobj = Py_None; | |
5405 | return _resultobj; | |
5406 | } | |
5407 | ||
5408 | #define wxPen_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0)) | |
5409 | static PyObject *_wrap_wxPen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5410 | PyObject * _resultobj; | |
5411 | wxPen * _arg0; | |
5412 | int _arg1; | |
5413 | PyObject * _argo0 = 0; | |
5414 | char *_kwnames[] = { "self","style", NULL }; | |
5415 | ||
5416 | self = self; | |
5417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetStyle",_kwnames,&_argo0,&_arg1)) | |
5418 | return NULL; | |
5419 | if (_argo0) { | |
5420 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5421 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
5422 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetStyle. Expected _wxPen_p."); | |
5423 | return NULL; | |
5424 | } | |
5425 | } | |
5426 | { | |
0e2ff151 | 5427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 5428 | wxPen_SetStyle(_arg0,_arg1); |
e6056257 | 5429 | |
0e2ff151 | 5430 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5431 | if (PyErr_Occurred()) return NULL; |
5432 | } Py_INCREF(Py_None); | |
5433 | _resultobj = Py_None; | |
5434 | return _resultobj; | |
5435 | } | |
5436 | ||
5437 | #define wxPen_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0)) | |
5438 | static PyObject *_wrap_wxPen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5439 | PyObject * _resultobj; | |
5440 | wxPen * _arg0; | |
5441 | int _arg1; | |
5442 | PyObject * _argo0 = 0; | |
5443 | char *_kwnames[] = { "self","width", NULL }; | |
5444 | ||
5445 | self = self; | |
5446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetWidth",_kwnames,&_argo0,&_arg1)) | |
5447 | return NULL; | |
5448 | if (_argo0) { | |
5449 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5450 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
5451 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetWidth. Expected _wxPen_p."); | |
5452 | return NULL; | |
5453 | } | |
5454 | } | |
5455 | { | |
0e2ff151 | 5456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 5457 | wxPen_SetWidth(_arg0,_arg1); |
e6056257 | 5458 | |
0e2ff151 | 5459 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5460 | if (PyErr_Occurred()) return NULL; |
5461 | } Py_INCREF(Py_None); | |
5462 | _resultobj = Py_None; | |
5463 | return _resultobj; | |
5464 | } | |
5465 | ||
5466 | #define wxPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1)) | |
5467 | static PyObject *_wrap_wxPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5468 | PyObject * _resultobj; | |
5469 | wxPen * _arg0; | |
5470 | int _arg1; | |
5471 | wxDash * _arg2; | |
5472 | PyObject * _argo0 = 0; | |
5473 | PyObject * _obj2 = 0; | |
5474 | char *_kwnames[] = { "self","choices", NULL }; | |
5475 | ||
5476 | self = self; | |
5477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_SetDashes",_kwnames,&_argo0,&_obj2)) | |
5478 | return NULL; | |
5479 | if (_argo0) { | |
5480 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5481 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
5482 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetDashes. Expected _wxPen_p."); | |
5483 | return NULL; | |
5484 | } | |
5485 | } | |
5486 | if (_obj2) | |
5487 | { | |
5488 | _arg2 = (wxDash*)byte_LIST_helper(_obj2); | |
5489 | if (_arg2 == NULL) { | |
5490 | return NULL; | |
5491 | } | |
5492 | } | |
5493 | { | |
5494 | if (_obj2) { | |
5495 | _arg1 = PyList_Size(_obj2); | |
5496 | } | |
5497 | else { | |
5498 | _arg1 = 0; | |
5499 | } | |
5500 | } | |
5501 | { | |
0e2ff151 | 5502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 5503 | wxPen_SetDashes(_arg0,_arg1,_arg2); |
e6056257 | 5504 | |
0e2ff151 | 5505 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5506 | if (PyErr_Occurred()) return NULL; |
5507 | } Py_INCREF(Py_None); | |
5508 | _resultobj = Py_None; | |
5509 | { | |
5510 | delete [] _arg2; | |
5511 | } | |
5512 | return _resultobj; | |
5513 | } | |
5514 | ||
5515 | static void *SwigwxPyPenTowxPen(void *ptr) { | |
5516 | wxPyPen *src; | |
5517 | wxPen *dest; | |
5518 | src = (wxPyPen *) ptr; | |
5519 | dest = (wxPen *) src; | |
5520 | return (void *) dest; | |
5521 | } | |
5522 | ||
5523 | static void *SwigwxPyPenTowxGDIObject(void *ptr) { | |
5524 | wxPyPen *src; | |
5525 | wxGDIObject *dest; | |
5526 | src = (wxPyPen *) ptr; | |
5527 | dest = (wxGDIObject *) src; | |
5528 | return (void *) dest; | |
5529 | } | |
5530 | ||
5531 | static void *SwigwxPyPenTowxObject(void *ptr) { | |
5532 | wxPyPen *src; | |
5533 | wxObject *dest; | |
5534 | src = (wxPyPen *) ptr; | |
5535 | dest = (wxObject *) src; | |
5536 | return (void *) dest; | |
5537 | } | |
5538 | ||
5539 | #define new_wxPyPen(_swigarg0,_swigarg1,_swigarg2) (new wxPyPen(_swigarg0,_swigarg1,_swigarg2)) | |
5540 | static PyObject *_wrap_new_wxPyPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5541 | PyObject * _resultobj; | |
5542 | wxPyPen * _result; | |
5543 | wxColour * _arg0; | |
5544 | int _arg1 = (int ) 1; | |
5545 | int _arg2 = (int ) wxSOLID; | |
5546 | wxColour temp; | |
5547 | PyObject * _obj0 = 0; | |
5548 | char *_kwnames[] = { "colour","width","style", NULL }; | |
5549 | char _ptemp[128]; | |
5550 | ||
5551 | self = self; | |
5552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:new_wxPyPen",_kwnames,&_obj0,&_arg1,&_arg2)) | |
5553 | return NULL; | |
5554 | { | |
5555 | _arg0 = &temp; | |
5556 | if (! wxColour_helper(_obj0, &_arg0)) | |
5557 | return NULL; | |
5558 | } | |
5559 | { | |
0e2ff151 | 5560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 5561 | _result = (wxPyPen *)new_wxPyPen(*_arg0,_arg1,_arg2); |
e6056257 | 5562 | |
0e2ff151 | 5563 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5564 | if (PyErr_Occurred()) return NULL; |
5565 | } if (_result) { | |
5566 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyPen_p"); | |
5567 | _resultobj = Py_BuildValue("s",_ptemp); | |
5568 | } else { | |
5569 | Py_INCREF(Py_None); | |
5570 | _resultobj = Py_None; | |
5571 | } | |
5572 | return _resultobj; | |
5573 | } | |
5574 | ||
5575 | #define delete_wxPyPen(_swigobj) (delete _swigobj) | |
5576 | static PyObject *_wrap_delete_wxPyPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5577 | PyObject * _resultobj; | |
5578 | wxPyPen * _arg0; | |
5579 | PyObject * _argo0 = 0; | |
5580 | char *_kwnames[] = { "self", NULL }; | |
5581 | ||
5582 | self = self; | |
5583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPyPen",_kwnames,&_argo0)) | |
5584 | return NULL; | |
5585 | if (_argo0) { | |
5586 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5587 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPen_p")) { | |
5588 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPyPen. Expected _wxPyPen_p."); | |
5589 | return NULL; | |
5590 | } | |
5591 | } | |
5592 | { | |
0e2ff151 | 5593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 5594 | delete_wxPyPen(_arg0); |
e6056257 | 5595 | |
0e2ff151 | 5596 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5597 | if (PyErr_Occurred()) return NULL; |
5598 | } Py_INCREF(Py_None); | |
5599 | _resultobj = Py_None; | |
5600 | return _resultobj; | |
5601 | } | |
5602 | ||
5603 | #define wxPyPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1)) | |
5604 | static PyObject *_wrap_wxPyPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5605 | PyObject * _resultobj; | |
5606 | wxPyPen * _arg0; | |
5607 | int _arg1; | |
5608 | wxDash * _arg2; | |
5609 | PyObject * _argo0 = 0; | |
5610 | PyObject * _obj2 = 0; | |
5611 | char *_kwnames[] = { "self","choices", NULL }; | |
5612 | ||
5613 | self = self; | |
5614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyPen_SetDashes",_kwnames,&_argo0,&_obj2)) | |
5615 | return NULL; | |
5616 | if (_argo0) { | |
5617 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5618 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPen_p")) { | |
5619 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyPen_SetDashes. Expected _wxPyPen_p."); | |
5620 | return NULL; | |
5621 | } | |
5622 | } | |
5623 | if (_obj2) | |
5624 | { | |
5625 | _arg2 = (wxDash*)byte_LIST_helper(_obj2); | |
5626 | if (_arg2 == NULL) { | |
5627 | return NULL; | |
5628 | } | |
5629 | } | |
5630 | { | |
5631 | if (_obj2) { | |
5632 | _arg1 = PyList_Size(_obj2); | |
5633 | } | |
5634 | else { | |
5635 | _arg1 = 0; | |
5636 | } | |
5637 | } | |
5638 | { | |
0e2ff151 | 5639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 5640 | wxPyPen_SetDashes(_arg0,_arg1,_arg2); |
e6056257 | 5641 | |
0e2ff151 | 5642 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5643 | if (PyErr_Occurred()) return NULL; |
5644 | } Py_INCREF(Py_None); | |
5645 | _resultobj = Py_None; | |
5646 | { | |
5647 | delete [] _arg2; | |
5648 | } | |
5649 | return _resultobj; | |
5650 | } | |
5651 | ||
5652 | static void *SwigwxPenListTowxObject(void *ptr) { | |
5653 | wxPenList *src; | |
5654 | wxObject *dest; | |
5655 | src = (wxPenList *) ptr; | |
5656 | dest = (wxObject *) src; | |
5657 | return (void *) dest; | |
5658 | } | |
5659 | ||
5660 | #define wxPenList_AddPen(_swigobj,_swigarg0) (_swigobj->AddPen(_swigarg0)) | |
5661 | static PyObject *_wrap_wxPenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5662 | PyObject * _resultobj; | |
5663 | wxPenList * _arg0; | |
5664 | wxPen * _arg1; | |
5665 | PyObject * _argo0 = 0; | |
5666 | PyObject * _argo1 = 0; | |
5667 | char *_kwnames[] = { "self","pen", NULL }; | |
5668 | ||
5669 | self = self; | |
5670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPenList_AddPen",_kwnames,&_argo0,&_argo1)) | |
5671 | return NULL; | |
5672 | if (_argo0) { | |
5673 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5674 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) { | |
5675 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_AddPen. Expected _wxPenList_p."); | |
5676 | return NULL; | |
5677 | } | |
5678 | } | |
5679 | if (_argo1) { | |
5680 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5681 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) { | |
5682 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPenList_AddPen. Expected _wxPen_p."); | |
5683 | return NULL; | |
5684 | } | |
5685 | } | |
5686 | { | |
0e2ff151 | 5687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 5688 | wxPenList_AddPen(_arg0,_arg1); |
e6056257 | 5689 | |
0e2ff151 | 5690 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5691 | if (PyErr_Occurred()) return NULL; |
5692 | } Py_INCREF(Py_None); | |
5693 | _resultobj = Py_None; | |
5694 | return _resultobj; | |
5695 | } | |
5696 | ||
5697 | #define wxPenList_FindOrCreatePen(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindOrCreatePen(_swigarg0,_swigarg1,_swigarg2)) | |
5698 | static PyObject *_wrap_wxPenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5699 | PyObject * _resultobj; | |
5700 | wxPen * _result; | |
5701 | wxPenList * _arg0; | |
5702 | wxColour * _arg1; | |
5703 | int _arg2; | |
5704 | int _arg3; | |
5705 | PyObject * _argo0 = 0; | |
5706 | wxColour temp; | |
5707 | PyObject * _obj1 = 0; | |
5708 | char *_kwnames[] = { "self","colour","width","style", NULL }; | |
5709 | char _ptemp[128]; | |
5710 | ||
5711 | self = self; | |
5712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii:wxPenList_FindOrCreatePen",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3)) | |
5713 | return NULL; | |
5714 | if (_argo0) { | |
5715 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5716 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) { | |
5717 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_FindOrCreatePen. Expected _wxPenList_p."); | |
5718 | return NULL; | |
5719 | } | |
5720 | } | |
5721 | { | |
5722 | _arg1 = &temp; | |
5723 | if (! wxColour_helper(_obj1, &_arg1)) | |
5724 | return NULL; | |
5725 | } | |
5726 | { | |
0e2ff151 | 5727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 5728 | _result = (wxPen *)wxPenList_FindOrCreatePen(_arg0,*_arg1,_arg2,_arg3); |
e6056257 | 5729 | |
0e2ff151 | 5730 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5731 | if (PyErr_Occurred()) return NULL; |
5732 | } if (_result) { | |
5733 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPen_p"); | |
5734 | _resultobj = Py_BuildValue("s",_ptemp); | |
5735 | } else { | |
5736 | Py_INCREF(Py_None); | |
5737 | _resultobj = Py_None; | |
5738 | } | |
5739 | return _resultobj; | |
5740 | } | |
5741 | ||
5742 | #define wxPenList_RemovePen(_swigobj,_swigarg0) (_swigobj->RemovePen(_swigarg0)) | |
5743 | static PyObject *_wrap_wxPenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5744 | PyObject * _resultobj; | |
5745 | wxPenList * _arg0; | |
5746 | wxPen * _arg1; | |
5747 | PyObject * _argo0 = 0; | |
5748 | PyObject * _argo1 = 0; | |
5749 | char *_kwnames[] = { "self","pen", NULL }; | |
5750 | ||
5751 | self = self; | |
5752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPenList_RemovePen",_kwnames,&_argo0,&_argo1)) | |
5753 | return NULL; | |
5754 | if (_argo0) { | |
5755 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5756 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) { | |
5757 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_RemovePen. Expected _wxPenList_p."); | |
5758 | return NULL; | |
5759 | } | |
5760 | } | |
5761 | if (_argo1) { | |
5762 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5763 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) { | |
5764 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPenList_RemovePen. Expected _wxPen_p."); | |
5765 | return NULL; | |
5766 | } | |
5767 | } | |
5768 | { | |
0e2ff151 | 5769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 5770 | wxPenList_RemovePen(_arg0,_arg1); |
e6056257 | 5771 | |
0e2ff151 | 5772 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5773 | if (PyErr_Occurred()) return NULL; |
5774 | } Py_INCREF(Py_None); | |
5775 | _resultobj = Py_None; | |
5776 | return _resultobj; | |
5777 | } | |
5778 | ||
00360d46 RD |
5779 | #define wxPenList_GetCount(_swigobj) (_swigobj->GetCount()) |
5780 | static PyObject *_wrap_wxPenList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5781 | PyObject * _resultobj; | |
5782 | int _result; | |
5783 | wxPenList * _arg0; | |
5784 | PyObject * _argo0 = 0; | |
5785 | char *_kwnames[] = { "self", NULL }; | |
5786 | ||
5787 | self = self; | |
5788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPenList_GetCount",_kwnames,&_argo0)) | |
5789 | return NULL; | |
5790 | if (_argo0) { | |
5791 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5792 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) { | |
5793 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_GetCount. Expected _wxPenList_p."); | |
5794 | return NULL; | |
5795 | } | |
5796 | } | |
5797 | { | |
0e2ff151 | 5798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 5799 | _result = (int )wxPenList_GetCount(_arg0); |
00360d46 | 5800 | |
0e2ff151 | 5801 | wxPyEndAllowThreads(__tstate); |
00360d46 RD |
5802 | if (PyErr_Occurred()) return NULL; |
5803 | } _resultobj = Py_BuildValue("i",_result); | |
5804 | return _resultobj; | |
5805 | } | |
5806 | ||
e6056257 RD |
5807 | static void *SwigwxBrushTowxGDIObject(void *ptr) { |
5808 | wxBrush *src; | |
5809 | wxGDIObject *dest; | |
5810 | src = (wxBrush *) ptr; | |
5811 | dest = (wxGDIObject *) src; | |
5812 | return (void *) dest; | |
5813 | } | |
5814 | ||
5815 | static void *SwigwxBrushTowxObject(void *ptr) { | |
5816 | wxBrush *src; | |
5817 | wxObject *dest; | |
5818 | src = (wxBrush *) ptr; | |
5819 | dest = (wxObject *) src; | |
5820 | return (void *) dest; | |
5821 | } | |
5822 | ||
5823 | #define new_wxBrush(_swigarg0,_swigarg1) (new wxBrush(_swigarg0,_swigarg1)) | |
5824 | static PyObject *_wrap_new_wxBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5825 | PyObject * _resultobj; | |
5826 | wxBrush * _result; | |
5827 | wxColour * _arg0; | |
5828 | int _arg1 = (int ) wxSOLID; | |
5829 | wxColour temp; | |
5830 | PyObject * _obj0 = 0; | |
5831 | char *_kwnames[] = { "colour","style", NULL }; | |
5832 | char _ptemp[128]; | |
5833 | ||
5834 | self = self; | |
5835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:new_wxBrush",_kwnames,&_obj0,&_arg1)) | |
5836 | return NULL; | |
5837 | { | |
5838 | _arg0 = &temp; | |
5839 | if (! wxColour_helper(_obj0, &_arg0)) | |
5840 | return NULL; | |
5841 | } | |
5842 | { | |
0e2ff151 | 5843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 5844 | _result = (wxBrush *)new_wxBrush(*_arg0,_arg1); |
e6056257 | 5845 | |
0e2ff151 | 5846 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5847 | if (PyErr_Occurred()) return NULL; |
5848 | } if (_result) { | |
5849 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p"); | |
5850 | _resultobj = Py_BuildValue("s",_ptemp); | |
5851 | } else { | |
5852 | Py_INCREF(Py_None); | |
5853 | _resultobj = Py_None; | |
5854 | } | |
5855 | return _resultobj; | |
5856 | } | |
5857 | ||
5858 | #define delete_wxBrush(_swigobj) (delete _swigobj) | |
5859 | static PyObject *_wrap_delete_wxBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5860 | PyObject * _resultobj; | |
5861 | wxBrush * _arg0; | |
5862 | PyObject * _argo0 = 0; | |
5863 | char *_kwnames[] = { "self", NULL }; | |
5864 | ||
5865 | self = self; | |
5866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxBrush",_kwnames,&_argo0)) | |
5867 | return NULL; | |
5868 | if (_argo0) { | |
5869 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5870 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
5871 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxBrush. Expected _wxBrush_p."); | |
5872 | return NULL; | |
5873 | } | |
5874 | } | |
5875 | { | |
0e2ff151 | 5876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 5877 | delete_wxBrush(_arg0); |
e6056257 | 5878 | |
0e2ff151 | 5879 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5880 | if (PyErr_Occurred()) return NULL; |
5881 | } Py_INCREF(Py_None); | |
5882 | _resultobj = Py_None; | |
5883 | return _resultobj; | |
5884 | } | |
5885 | ||
5886 | #define wxBrush_GetColour(_swigobj) (_swigobj->GetColour()) | |
5887 | static PyObject *_wrap_wxBrush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5888 | PyObject * _resultobj; | |
5889 | wxColour * _result; | |
5890 | wxBrush * _arg0; | |
5891 | PyObject * _argo0 = 0; | |
5892 | char *_kwnames[] = { "self", NULL }; | |
5893 | char _ptemp[128]; | |
5894 | ||
5895 | self = self; | |
5896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetColour",_kwnames,&_argo0)) | |
5897 | return NULL; | |
5898 | if (_argo0) { | |
5899 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5900 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
5901 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetColour. Expected _wxBrush_p."); | |
5902 | return NULL; | |
5903 | } | |
5904 | } | |
5905 | { | |
0e2ff151 | 5906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 5907 | _result = new wxColour (wxBrush_GetColour(_arg0)); |
e6056257 | 5908 | |
0e2ff151 | 5909 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5910 | if (PyErr_Occurred()) return NULL; |
5911 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
5912 | _resultobj = Py_BuildValue("s",_ptemp); | |
5913 | return _resultobj; | |
5914 | } | |
5915 | ||
5916 | #define wxBrush_GetStipple(_swigobj) (_swigobj->GetStipple()) | |
5917 | static PyObject *_wrap_wxBrush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5918 | PyObject * _resultobj; | |
5919 | wxBitmap * _result; | |
5920 | wxBrush * _arg0; | |
5921 | PyObject * _argo0 = 0; | |
5922 | char *_kwnames[] = { "self", NULL }; | |
5923 | char _ptemp[128]; | |
5924 | ||
5925 | self = self; | |
5926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetStipple",_kwnames,&_argo0)) | |
5927 | return NULL; | |
5928 | if (_argo0) { | |
5929 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5930 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
5931 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetStipple. Expected _wxBrush_p."); | |
5932 | return NULL; | |
5933 | } | |
5934 | } | |
5935 | { | |
0e2ff151 | 5936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 5937 | _result = (wxBitmap *)wxBrush_GetStipple(_arg0); |
e6056257 | 5938 | |
0e2ff151 | 5939 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5940 | if (PyErr_Occurred()) return NULL; |
5941 | } if (_result) { | |
5942 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
5943 | _resultobj = Py_BuildValue("s",_ptemp); | |
5944 | } else { | |
5945 | Py_INCREF(Py_None); | |
5946 | _resultobj = Py_None; | |
5947 | } | |
5948 | return _resultobj; | |
5949 | } | |
5950 | ||
5951 | #define wxBrush_GetStyle(_swigobj) (_swigobj->GetStyle()) | |
5952 | static PyObject *_wrap_wxBrush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5953 | PyObject * _resultobj; | |
5954 | int _result; | |
5955 | wxBrush * _arg0; | |
5956 | PyObject * _argo0 = 0; | |
5957 | char *_kwnames[] = { "self", NULL }; | |
5958 | ||
5959 | self = self; | |
5960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetStyle",_kwnames,&_argo0)) | |
5961 | return NULL; | |
5962 | if (_argo0) { | |
5963 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5964 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
5965 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetStyle. Expected _wxBrush_p."); | |
5966 | return NULL; | |
5967 | } | |
5968 | } | |
5969 | { | |
0e2ff151 | 5970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 5971 | _result = (int )wxBrush_GetStyle(_arg0); |
e6056257 | 5972 | |
0e2ff151 | 5973 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
5974 | if (PyErr_Occurred()) return NULL; |
5975 | } _resultobj = Py_BuildValue("i",_result); | |
5976 | return _resultobj; | |
5977 | } | |
5978 | ||
5979 | #define wxBrush_Ok(_swigobj) (_swigobj->Ok()) | |
5980 | static PyObject *_wrap_wxBrush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5981 | PyObject * _resultobj; | |
5982 | bool _result; | |
5983 | wxBrush * _arg0; | |
5984 | PyObject * _argo0 = 0; | |
5985 | char *_kwnames[] = { "self", NULL }; | |
5986 | ||
5987 | self = self; | |
5988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_Ok",_kwnames,&_argo0)) | |
5989 | return NULL; | |
5990 | if (_argo0) { | |
5991 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5992 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
5993 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_Ok. Expected _wxBrush_p."); | |
5994 | return NULL; | |
5995 | } | |
5996 | } | |
5997 | { | |
0e2ff151 | 5998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 5999 | _result = (bool )wxBrush_Ok(_arg0); |
e6056257 | 6000 | |
0e2ff151 | 6001 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6002 | if (PyErr_Occurred()) return NULL; |
6003 | } _resultobj = Py_BuildValue("i",_result); | |
6004 | return _resultobj; | |
6005 | } | |
6006 | ||
6007 | #define wxBrush_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0)) | |
6008 | static PyObject *_wrap_wxBrush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6009 | PyObject * _resultobj; | |
6010 | wxBrush * _arg0; | |
6011 | wxColour * _arg1; | |
6012 | PyObject * _argo0 = 0; | |
6013 | wxColour temp; | |
6014 | PyObject * _obj1 = 0; | |
6015 | char *_kwnames[] = { "self","colour", NULL }; | |
6016 | ||
6017 | self = self; | |
6018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrush_SetColour",_kwnames,&_argo0,&_obj1)) | |
6019 | return NULL; | |
6020 | if (_argo0) { | |
6021 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6022 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
6023 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetColour. Expected _wxBrush_p."); | |
6024 | return NULL; | |
6025 | } | |
6026 | } | |
6027 | { | |
6028 | _arg1 = &temp; | |
6029 | if (! wxColour_helper(_obj1, &_arg1)) | |
6030 | return NULL; | |
6031 | } | |
6032 | { | |
0e2ff151 | 6033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 6034 | wxBrush_SetColour(_arg0,*_arg1); |
e6056257 | 6035 | |
0e2ff151 | 6036 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6037 | if (PyErr_Occurred()) return NULL; |
6038 | } Py_INCREF(Py_None); | |
6039 | _resultobj = Py_None; | |
6040 | return _resultobj; | |
6041 | } | |
6042 | ||
6043 | #define wxBrush_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0)) | |
6044 | static PyObject *_wrap_wxBrush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6045 | PyObject * _resultobj; | |
6046 | wxBrush * _arg0; | |
6047 | wxBitmap * _arg1; | |
6048 | PyObject * _argo0 = 0; | |
6049 | PyObject * _argo1 = 0; | |
6050 | char *_kwnames[] = { "self","bitmap", NULL }; | |
6051 | ||
6052 | self = self; | |
6053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrush_SetStipple",_kwnames,&_argo0,&_argo1)) | |
6054 | return NULL; | |
6055 | if (_argo0) { | |
6056 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6057 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
6058 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetStipple. Expected _wxBrush_p."); | |
6059 | return NULL; | |
6060 | } | |
6061 | } | |
6062 | if (_argo1) { | |
6063 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6064 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
6065 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrush_SetStipple. Expected _wxBitmap_p."); | |
6066 | return NULL; | |
6067 | } | |
6068 | } | |
6069 | { | |
0e2ff151 | 6070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 6071 | wxBrush_SetStipple(_arg0,*_arg1); |
e6056257 | 6072 | |
0e2ff151 | 6073 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6074 | if (PyErr_Occurred()) return NULL; |
6075 | } Py_INCREF(Py_None); | |
6076 | _resultobj = Py_None; | |
6077 | return _resultobj; | |
6078 | } | |
6079 | ||
6080 | #define wxBrush_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0)) | |
6081 | static PyObject *_wrap_wxBrush_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6082 | PyObject * _resultobj; | |
6083 | wxBrush * _arg0; | |
6084 | int _arg1; | |
6085 | PyObject * _argo0 = 0; | |
6086 | char *_kwnames[] = { "self","style", NULL }; | |
6087 | ||
6088 | self = self; | |
6089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBrush_SetStyle",_kwnames,&_argo0,&_arg1)) | |
6090 | return NULL; | |
6091 | if (_argo0) { | |
6092 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6093 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
6094 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetStyle. Expected _wxBrush_p."); | |
6095 | return NULL; | |
6096 | } | |
6097 | } | |
6098 | { | |
0e2ff151 | 6099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 6100 | wxBrush_SetStyle(_arg0,_arg1); |
e6056257 | 6101 | |
0e2ff151 | 6102 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6103 | if (PyErr_Occurred()) return NULL; |
6104 | } Py_INCREF(Py_None); | |
6105 | _resultobj = Py_None; | |
6106 | return _resultobj; | |
6107 | } | |
6108 | ||
6109 | static void *SwigwxBrushListTowxObject(void *ptr) { | |
6110 | wxBrushList *src; | |
6111 | wxObject *dest; | |
6112 | src = (wxBrushList *) ptr; | |
6113 | dest = (wxObject *) src; | |
6114 | return (void *) dest; | |
6115 | } | |
6116 | ||
6117 | #define wxBrushList_AddBrush(_swigobj,_swigarg0) (_swigobj->AddBrush(_swigarg0)) | |
6118 | static PyObject *_wrap_wxBrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6119 | PyObject * _resultobj; | |
6120 | wxBrushList * _arg0; | |
6121 | wxBrush * _arg1; | |
6122 | PyObject * _argo0 = 0; | |
6123 | PyObject * _argo1 = 0; | |
6124 | char *_kwnames[] = { "self","brush", NULL }; | |
6125 | ||
6126 | self = self; | |
6127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrushList_AddBrush",_kwnames,&_argo0,&_argo1)) | |
6128 | return NULL; | |
6129 | if (_argo0) { | |
6130 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6131 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) { | |
6132 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_AddBrush. Expected _wxBrushList_p."); | |
6133 | return NULL; | |
6134 | } | |
6135 | } | |
6136 | if (_argo1) { | |
6137 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6138 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) { | |
6139 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrushList_AddBrush. Expected _wxBrush_p."); | |
6140 | return NULL; | |
6141 | } | |
6142 | } | |
6143 | { | |
0e2ff151 | 6144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 6145 | wxBrushList_AddBrush(_arg0,_arg1); |
e6056257 | 6146 | |
0e2ff151 | 6147 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6148 | if (PyErr_Occurred()) return NULL; |
6149 | } Py_INCREF(Py_None); | |
6150 | _resultobj = Py_None; | |
6151 | return _resultobj; | |
6152 | } | |
6153 | ||
6154 | #define wxBrushList_FindOrCreateBrush(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindOrCreateBrush(_swigarg0,_swigarg1)) | |
6155 | static PyObject *_wrap_wxBrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6156 | PyObject * _resultobj; | |
6157 | wxBrush * _result; | |
6158 | wxBrushList * _arg0; | |
6159 | wxColour * _arg1; | |
6160 | int _arg2; | |
6161 | PyObject * _argo0 = 0; | |
6162 | wxColour temp; | |
6163 | PyObject * _obj1 = 0; | |
6164 | char *_kwnames[] = { "self","colour","style", NULL }; | |
6165 | char _ptemp[128]; | |
6166 | ||
6167 | self = self; | |
6168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxBrushList_FindOrCreateBrush",_kwnames,&_argo0,&_obj1,&_arg2)) | |
6169 | return NULL; | |
6170 | if (_argo0) { | |
6171 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6172 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) { | |
6173 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_FindOrCreateBrush. Expected _wxBrushList_p."); | |
6174 | return NULL; | |
6175 | } | |
6176 | } | |
6177 | { | |
6178 | _arg1 = &temp; | |
6179 | if (! wxColour_helper(_obj1, &_arg1)) | |
6180 | return NULL; | |
6181 | } | |
6182 | { | |
0e2ff151 | 6183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 6184 | _result = (wxBrush *)wxBrushList_FindOrCreateBrush(_arg0,*_arg1,_arg2); |
e6056257 | 6185 | |
0e2ff151 | 6186 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6187 | if (PyErr_Occurred()) return NULL; |
6188 | } if (_result) { | |
6189 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p"); | |
6190 | _resultobj = Py_BuildValue("s",_ptemp); | |
6191 | } else { | |
6192 | Py_INCREF(Py_None); | |
6193 | _resultobj = Py_None; | |
6194 | } | |
6195 | return _resultobj; | |
6196 | } | |
6197 | ||
6198 | #define wxBrushList_RemoveBrush(_swigobj,_swigarg0) (_swigobj->RemoveBrush(_swigarg0)) | |
6199 | static PyObject *_wrap_wxBrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6200 | PyObject * _resultobj; | |
6201 | wxBrushList * _arg0; | |
6202 | wxBrush * _arg1; | |
6203 | PyObject * _argo0 = 0; | |
6204 | PyObject * _argo1 = 0; | |
6205 | char *_kwnames[] = { "self","brush", NULL }; | |
6206 | ||
6207 | self = self; | |
6208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrushList_RemoveBrush",_kwnames,&_argo0,&_argo1)) | |
6209 | return NULL; | |
6210 | if (_argo0) { | |
6211 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6212 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) { | |
6213 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_RemoveBrush. Expected _wxBrushList_p."); | |
6214 | return NULL; | |
6215 | } | |
6216 | } | |
6217 | if (_argo1) { | |
6218 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6219 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) { | |
6220 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrushList_RemoveBrush. Expected _wxBrush_p."); | |
6221 | return NULL; | |
6222 | } | |
6223 | } | |
6224 | { | |
0e2ff151 | 6225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 6226 | wxBrushList_RemoveBrush(_arg0,_arg1); |
e6056257 | 6227 | |
0e2ff151 | 6228 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6229 | if (PyErr_Occurred()) return NULL; |
6230 | } Py_INCREF(Py_None); | |
6231 | _resultobj = Py_None; | |
6232 | return _resultobj; | |
6233 | } | |
6234 | ||
00360d46 RD |
6235 | #define wxBrushList_GetCount(_swigobj) (_swigobj->GetCount()) |
6236 | static PyObject *_wrap_wxBrushList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6237 | PyObject * _resultobj; | |
6238 | int _result; | |
6239 | wxBrushList * _arg0; | |
6240 | PyObject * _argo0 = 0; | |
6241 | char *_kwnames[] = { "self", NULL }; | |
6242 | ||
6243 | self = self; | |
6244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrushList_GetCount",_kwnames,&_argo0)) | |
6245 | return NULL; | |
6246 | if (_argo0) { | |
6247 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6248 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) { | |
6249 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_GetCount. Expected _wxBrushList_p."); | |
6250 | return NULL; | |
6251 | } | |
6252 | } | |
6253 | { | |
0e2ff151 | 6254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 6255 | _result = (int )wxBrushList_GetCount(_arg0); |
00360d46 | 6256 | |
0e2ff151 | 6257 | wxPyEndAllowThreads(__tstate); |
00360d46 RD |
6258 | if (PyErr_Occurred()) return NULL; |
6259 | } _resultobj = Py_BuildValue("i",_result); | |
6260 | return _resultobj; | |
6261 | } | |
6262 | ||
e6056257 RD |
6263 | static void *SwigwxDCTowxObject(void *ptr) { |
6264 | wxDC *src; | |
6265 | wxObject *dest; | |
6266 | src = (wxDC *) ptr; | |
6267 | dest = (wxObject *) src; | |
6268 | return (void *) dest; | |
6269 | } | |
6270 | ||
6271 | #define delete_wxDC(_swigobj) (delete _swigobj) | |
6272 | static PyObject *_wrap_delete_wxDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6273 | PyObject * _resultobj; | |
6274 | wxDC * _arg0; | |
6275 | PyObject * _argo0 = 0; | |
6276 | char *_kwnames[] = { "self", NULL }; | |
6277 | ||
6278 | self = self; | |
6279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxDC",_kwnames,&_argo0)) | |
6280 | return NULL; | |
6281 | if (_argo0) { | |
6282 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6283 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6284 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxDC. Expected _wxDC_p."); | |
6285 | return NULL; | |
6286 | } | |
6287 | } | |
6288 | { | |
0e2ff151 | 6289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 6290 | delete_wxDC(_arg0); |
e6056257 | 6291 | |
0e2ff151 | 6292 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6293 | if (PyErr_Occurred()) return NULL; |
6294 | } Py_INCREF(Py_None); | |
6295 | _resultobj = Py_None; | |
6296 | return _resultobj; | |
6297 | } | |
6298 | ||
6299 | #define wxDC_BeginDrawing(_swigobj) (_swigobj->BeginDrawing()) | |
6300 | static PyObject *_wrap_wxDC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6301 | PyObject * _resultobj; | |
6302 | wxDC * _arg0; | |
6303 | PyObject * _argo0 = 0; | |
6304 | char *_kwnames[] = { "self", NULL }; | |
6305 | ||
6306 | self = self; | |
6307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_BeginDrawing",_kwnames,&_argo0)) | |
6308 | return NULL; | |
6309 | if (_argo0) { | |
6310 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6311 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6312 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_BeginDrawing. Expected _wxDC_p."); | |
6313 | return NULL; | |
6314 | } | |
6315 | } | |
6316 | { | |
0e2ff151 | 6317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 6318 | wxDC_BeginDrawing(_arg0); |
e6056257 | 6319 | |
0e2ff151 | 6320 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6321 | if (PyErr_Occurred()) return NULL; |
6322 | } Py_INCREF(Py_None); | |
6323 | _resultobj = Py_None; | |
6324 | return _resultobj; | |
6325 | } | |
6326 | ||
6327 | #define wxDC_Blit(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Blit(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) | |
6328 | static PyObject *_wrap_wxDC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6329 | PyObject * _resultobj; | |
6330 | bool _result; | |
6331 | wxDC * _arg0; | |
6332 | long _arg1; | |
6333 | long _arg2; | |
6334 | long _arg3; | |
6335 | long _arg4; | |
6336 | wxDC * _arg5; | |
6337 | long _arg6; | |
6338 | long _arg7; | |
6339 | int _arg8 = (int ) wxCOPY; | |
6340 | int _arg9 = (int ) FALSE; | |
6341 | PyObject * _argo0 = 0; | |
6342 | PyObject * _argo5 = 0; | |
6343 | char *_kwnames[] = { "self","xdest","ydest","width","height","source","xsrc","ysrc","logicalFunc","useMask", NULL }; | |
6344 | ||
6345 | self = self; | |
6346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllllOll|ii:wxDC_Blit",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_argo5,&_arg6,&_arg7,&_arg8,&_arg9)) | |
6347 | return NULL; | |
6348 | if (_argo0) { | |
6349 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6350 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6351 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Blit. Expected _wxDC_p."); | |
6352 | return NULL; | |
6353 | } | |
6354 | } | |
6355 | if (_argo5) { | |
6356 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
6357 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxDC_p")) { | |
6358 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxDC_Blit. Expected _wxDC_p."); | |
6359 | return NULL; | |
6360 | } | |
6361 | } | |
6362 | { | |
0e2ff151 | 6363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 6364 | _result = (bool )wxDC_Blit(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7,_arg8,_arg9); |
e6056257 | 6365 | |
0e2ff151 | 6366 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6367 | if (PyErr_Occurred()) return NULL; |
6368 | } _resultobj = Py_BuildValue("i",_result); | |
6369 | return _resultobj; | |
6370 | } | |
6371 | ||
6372 | #define wxDC_Clear(_swigobj) (_swigobj->Clear()) | |
6373 | static PyObject *_wrap_wxDC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6374 | PyObject * _resultobj; | |
6375 | wxDC * _arg0; | |
6376 | PyObject * _argo0 = 0; | |
6377 | char *_kwnames[] = { "self", NULL }; | |
6378 | ||
6379 | self = self; | |
6380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_Clear",_kwnames,&_argo0)) | |
6381 | return NULL; | |
6382 | if (_argo0) { | |
6383 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6384 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6385 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Clear. Expected _wxDC_p."); | |
6386 | return NULL; | |
6387 | } | |
6388 | } | |
6389 | { | |
0e2ff151 | 6390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 6391 | wxDC_Clear(_arg0); |
e6056257 | 6392 | |
0e2ff151 | 6393 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6394 | if (PyErr_Occurred()) return NULL; |
6395 | } Py_INCREF(Py_None); | |
6396 | _resultobj = Py_None; | |
6397 | return _resultobj; | |
6398 | } | |
6399 | ||
6400 | #define wxDC_CrossHair(_swigobj,_swigarg0,_swigarg1) (_swigobj->CrossHair(_swigarg0,_swigarg1)) | |
6401 | static PyObject *_wrap_wxDC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6402 | PyObject * _resultobj; | |
6403 | wxDC * _arg0; | |
6404 | long _arg1; | |
6405 | long _arg2; | |
6406 | PyObject * _argo0 = 0; | |
6407 | char *_kwnames[] = { "self","x","y", NULL }; | |
6408 | ||
6409 | self = self; | |
6410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_CrossHair",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6411 | return NULL; | |
6412 | if (_argo0) { | |
6413 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6414 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6415 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CrossHair. Expected _wxDC_p."); | |
6416 | return NULL; | |
6417 | } | |
6418 | } | |
6419 | { | |
0e2ff151 | 6420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 6421 | wxDC_CrossHair(_arg0,_arg1,_arg2); |
e6056257 | 6422 | |
0e2ff151 | 6423 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6424 | if (PyErr_Occurred()) return NULL; |
6425 | } Py_INCREF(Py_None); | |
6426 | _resultobj = Py_None; | |
6427 | return _resultobj; | |
6428 | } | |
6429 | ||
6430 | #define wxDC_DestroyClippingRegion(_swigobj) (_swigobj->DestroyClippingRegion()) | |
6431 | static PyObject *_wrap_wxDC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6432 | PyObject * _resultobj; | |
6433 | wxDC * _arg0; | |
6434 | PyObject * _argo0 = 0; | |
6435 | char *_kwnames[] = { "self", NULL }; | |
6436 | ||
6437 | self = self; | |
6438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_DestroyClippingRegion",_kwnames,&_argo0)) | |
6439 | return NULL; | |
6440 | if (_argo0) { | |
6441 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6442 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6443 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DestroyClippingRegion. Expected _wxDC_p."); | |
6444 | return NULL; | |
6445 | } | |
6446 | } | |
6447 | { | |
0e2ff151 | 6448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 6449 | wxDC_DestroyClippingRegion(_arg0); |
e6056257 | 6450 | |
0e2ff151 | 6451 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6452 | if (PyErr_Occurred()) return NULL; |
6453 | } Py_INCREF(Py_None); | |
6454 | _resultobj = Py_None; | |
6455 | return _resultobj; | |
6456 | } | |
6457 | ||
6458 | #define wxDC_DeviceToLogicalX(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalX(_swigarg0)) | |
6459 | static PyObject *_wrap_wxDC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6460 | PyObject * _resultobj; | |
6461 | long _result; | |
6462 | wxDC * _arg0; | |
6463 | long _arg1; | |
6464 | PyObject * _argo0 = 0; | |
6465 | char *_kwnames[] = { "self","x", NULL }; | |
6466 | ||
6467 | self = self; | |
6468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalX",_kwnames,&_argo0,&_arg1)) | |
6469 | return NULL; | |
6470 | if (_argo0) { | |
6471 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6472 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6473 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalX. Expected _wxDC_p."); | |
6474 | return NULL; | |
6475 | } | |
6476 | } | |
6477 | { | |
0e2ff151 | 6478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 6479 | _result = (long )wxDC_DeviceToLogicalX(_arg0,_arg1); |
e6056257 | 6480 | |
0e2ff151 | 6481 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6482 | if (PyErr_Occurred()) return NULL; |
6483 | } _resultobj = Py_BuildValue("l",_result); | |
6484 | return _resultobj; | |
6485 | } | |
6486 | ||
6487 | #define wxDC_DeviceToLogicalXRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalXRel(_swigarg0)) | |
6488 | static PyObject *_wrap_wxDC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6489 | PyObject * _resultobj; | |
6490 | long _result; | |
6491 | wxDC * _arg0; | |
6492 | long _arg1; | |
6493 | PyObject * _argo0 = 0; | |
6494 | char *_kwnames[] = { "self","x", NULL }; | |
6495 | ||
6496 | self = self; | |
6497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalXRel",_kwnames,&_argo0,&_arg1)) | |
6498 | return NULL; | |
6499 | if (_argo0) { | |
6500 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6501 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6502 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalXRel. Expected _wxDC_p."); | |
6503 | return NULL; | |
6504 | } | |
6505 | } | |
6506 | { | |
0e2ff151 | 6507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 6508 | _result = (long )wxDC_DeviceToLogicalXRel(_arg0,_arg1); |
e6056257 | 6509 | |
0e2ff151 | 6510 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6511 | if (PyErr_Occurred()) return NULL; |
6512 | } _resultobj = Py_BuildValue("l",_result); | |
6513 | return _resultobj; | |
6514 | } | |
6515 | ||
6516 | #define wxDC_DeviceToLogicalY(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalY(_swigarg0)) | |
6517 | static PyObject *_wrap_wxDC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6518 | PyObject * _resultobj; | |
6519 | long _result; | |
6520 | wxDC * _arg0; | |
6521 | long _arg1; | |
6522 | PyObject * _argo0 = 0; | |
6523 | char *_kwnames[] = { "self","y", NULL }; | |
6524 | ||
6525 | self = self; | |
6526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalY",_kwnames,&_argo0,&_arg1)) | |
6527 | return NULL; | |
6528 | if (_argo0) { | |
6529 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6530 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6531 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalY. Expected _wxDC_p."); | |
6532 | return NULL; | |
6533 | } | |
6534 | } | |
6535 | { | |
0e2ff151 | 6536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 6537 | _result = (long )wxDC_DeviceToLogicalY(_arg0,_arg1); |
e6056257 | 6538 | |
0e2ff151 | 6539 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6540 | if (PyErr_Occurred()) return NULL; |
6541 | } _resultobj = Py_BuildValue("l",_result); | |
6542 | return _resultobj; | |
6543 | } | |
6544 | ||
6545 | #define wxDC_DeviceToLogicalYRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalYRel(_swigarg0)) | |
6546 | static PyObject *_wrap_wxDC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6547 | PyObject * _resultobj; | |
6548 | long _result; | |
6549 | wxDC * _arg0; | |
6550 | long _arg1; | |
6551 | PyObject * _argo0 = 0; | |
6552 | char *_kwnames[] = { "self","y", NULL }; | |
6553 | ||
6554 | self = self; | |
6555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalYRel",_kwnames,&_argo0,&_arg1)) | |
6556 | return NULL; | |
6557 | if (_argo0) { | |
6558 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6559 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6560 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalYRel. Expected _wxDC_p."); | |
6561 | return NULL; | |
6562 | } | |
6563 | } | |
6564 | { | |
0e2ff151 | 6565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 6566 | _result = (long )wxDC_DeviceToLogicalYRel(_arg0,_arg1); |
e6056257 | 6567 | |
0e2ff151 | 6568 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6569 | if (PyErr_Occurred()) return NULL; |
6570 | } _resultobj = Py_BuildValue("l",_result); | |
6571 | return _resultobj; | |
6572 | } | |
6573 | ||
6574 | #define wxDC_DrawArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
6575 | static PyObject *_wrap_wxDC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6576 | PyObject * _resultobj; | |
6577 | wxDC * _arg0; | |
6578 | long _arg1; | |
6579 | long _arg2; | |
6580 | long _arg3; | |
6581 | long _arg4; | |
6582 | long _arg5; | |
6583 | long _arg6; | |
6584 | PyObject * _argo0 = 0; | |
6585 | char *_kwnames[] = { "self","x1","y1","x2","y2","xc","yc", NULL }; | |
6586 | ||
6587 | self = self; | |
6588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollllll:wxDC_DrawArc",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6)) | |
6589 | return NULL; | |
6590 | if (_argo0) { | |
6591 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6592 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6593 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawArc. Expected _wxDC_p."); | |
6594 | return NULL; | |
6595 | } | |
6596 | } | |
6597 | { | |
0e2ff151 | 6598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 6599 | wxDC_DrawArc(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); |
e6056257 | 6600 | |
0e2ff151 | 6601 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6602 | if (PyErr_Occurred()) return NULL; |
6603 | } Py_INCREF(Py_None); | |
6604 | _resultobj = Py_None; | |
6605 | return _resultobj; | |
6606 | } | |
6607 | ||
6608 | #define wxDC_DrawCircle(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawCircle(_swigarg0,_swigarg1,_swigarg2)) | |
6609 | static PyObject *_wrap_wxDC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6610 | PyObject * _resultobj; | |
6611 | wxDC * _arg0; | |
6612 | long _arg1; | |
6613 | long _arg2; | |
6614 | long _arg3; | |
6615 | PyObject * _argo0 = 0; | |
6616 | char *_kwnames[] = { "self","x","y","radius", NULL }; | |
6617 | ||
6618 | self = self; | |
6619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Olll:wxDC_DrawCircle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) | |
6620 | return NULL; | |
6621 | if (_argo0) { | |
6622 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6623 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6624 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawCircle. Expected _wxDC_p."); | |
6625 | return NULL; | |
6626 | } | |
6627 | } | |
6628 | { | |
0e2ff151 | 6629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 6630 | wxDC_DrawCircle(_arg0,_arg1,_arg2,_arg3); |
e6056257 | 6631 | |
0e2ff151 | 6632 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6633 | if (PyErr_Occurred()) return NULL; |
6634 | } Py_INCREF(Py_None); | |
6635 | _resultobj = Py_None; | |
6636 | return _resultobj; | |
6637 | } | |
6638 | ||
6639 | #define wxDC_DrawEllipse(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawEllipse(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
6640 | static PyObject *_wrap_wxDC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6641 | PyObject * _resultobj; | |
6642 | wxDC * _arg0; | |
6643 | long _arg1; | |
6644 | long _arg2; | |
6645 | long _arg3; | |
6646 | long _arg4; | |
6647 | PyObject * _argo0 = 0; | |
6648 | char *_kwnames[] = { "self","x","y","width","height", NULL }; | |
6649 | ||
6650 | self = self; | |
6651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawEllipse",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
6652 | return NULL; | |
6653 | if (_argo0) { | |
6654 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6655 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6656 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawEllipse. Expected _wxDC_p."); | |
6657 | return NULL; | |
6658 | } | |
6659 | } | |
6660 | { | |
0e2ff151 | 6661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 6662 | wxDC_DrawEllipse(_arg0,_arg1,_arg2,_arg3,_arg4); |
e6056257 | 6663 | |
0e2ff151 | 6664 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6665 | if (PyErr_Occurred()) return NULL; |
6666 | } Py_INCREF(Py_None); | |
6667 | _resultobj = Py_None; | |
6668 | return _resultobj; | |
6669 | } | |
6670 | ||
6671 | #define wxDC_DrawEllipticArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawEllipticArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
6672 | static PyObject *_wrap_wxDC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6673 | PyObject * _resultobj; | |
6674 | wxDC * _arg0; | |
6675 | long _arg1; | |
6676 | long _arg2; | |
6677 | long _arg3; | |
6678 | long _arg4; | |
6679 | long _arg5; | |
6680 | long _arg6; | |
6681 | PyObject * _argo0 = 0; | |
6682 | char *_kwnames[] = { "self","x","y","width","height","start","end", NULL }; | |
6683 | ||
6684 | self = self; | |
6685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollllll:wxDC_DrawEllipticArc",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6)) | |
6686 | return NULL; | |
6687 | if (_argo0) { | |
6688 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6689 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6690 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawEllipticArc. Expected _wxDC_p."); | |
6691 | return NULL; | |
6692 | } | |
6693 | } | |
6694 | { | |
0e2ff151 | 6695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 6696 | wxDC_DrawEllipticArc(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); |
e6056257 | 6697 | |
0e2ff151 | 6698 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6699 | if (PyErr_Occurred()) return NULL; |
6700 | } Py_INCREF(Py_None); | |
6701 | _resultobj = Py_None; | |
6702 | return _resultobj; | |
6703 | } | |
6704 | ||
6705 | #define wxDC_DrawIcon(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawIcon(_swigarg0,_swigarg1,_swigarg2)) | |
6706 | static PyObject *_wrap_wxDC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6707 | PyObject * _resultobj; | |
6708 | wxDC * _arg0; | |
6709 | wxIcon * _arg1; | |
6710 | long _arg2; | |
6711 | long _arg3; | |
6712 | PyObject * _argo0 = 0; | |
6713 | PyObject * _argo1 = 0; | |
6714 | char *_kwnames[] = { "self","icon","x","y", NULL }; | |
6715 | ||
6716 | self = self; | |
6717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll:wxDC_DrawIcon",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3)) | |
6718 | return NULL; | |
6719 | if (_argo0) { | |
6720 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6721 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6722 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawIcon. Expected _wxDC_p."); | |
6723 | return NULL; | |
6724 | } | |
6725 | } | |
6726 | if (_argo1) { | |
6727 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6728 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) { | |
6729 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_DrawIcon. Expected _wxIcon_p."); | |
6730 | return NULL; | |
6731 | } | |
6732 | } | |
6733 | { | |
0e2ff151 | 6734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 6735 | wxDC_DrawIcon(_arg0,*_arg1,_arg2,_arg3); |
e6056257 | 6736 | |
0e2ff151 | 6737 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6738 | if (PyErr_Occurred()) return NULL; |
6739 | } Py_INCREF(Py_None); | |
6740 | _resultobj = Py_None; | |
6741 | return _resultobj; | |
6742 | } | |
6743 | ||
a341e32e RD |
6744 | #define wxDC_DrawLabel(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLabel(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
6745 | static PyObject *_wrap_wxDC_DrawLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6746 | PyObject * _resultobj; | |
6747 | wxDC * _arg0; | |
6748 | wxString * _arg1; | |
6749 | wxRect * _arg2; | |
6750 | int _arg3 = (int ) wxALIGN_LEFT|wxALIGN_TOP; | |
6751 | int _arg4 = (int ) -1; | |
6752 | PyObject * _argo0 = 0; | |
6753 | PyObject * _obj1 = 0; | |
6754 | wxRect temp; | |
6755 | PyObject * _obj2 = 0; | |
6756 | char *_kwnames[] = { "self","text","rect","alignment","indexAccel", NULL }; | |
6757 | ||
6758 | self = self; | |
6759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|ii:wxDC_DrawLabel",_kwnames,&_argo0,&_obj1,&_obj2,&_arg3,&_arg4)) | |
6760 | return NULL; | |
6761 | if (_argo0) { | |
6762 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6763 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6764 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLabel. Expected _wxDC_p."); | |
6765 | return NULL; | |
6766 | } | |
6767 | } | |
6768 | { | |
6824d4f9 RD |
6769 | _arg1 = wxString_in_helper(_obj1); |
6770 | if (_arg1 == NULL) | |
a341e32e | 6771 | return NULL; |
a341e32e RD |
6772 | } |
6773 | { | |
6774 | _arg2 = &temp; | |
6775 | if (! wxRect_helper(_obj2, &_arg2)) | |
6776 | return NULL; | |
6777 | } | |
6778 | { | |
6779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6824d4f9 | 6780 | wxDC_DrawLabel(_arg0,*_arg1,*_arg2,_arg3,_arg4); |
a341e32e RD |
6781 | |
6782 | wxPyEndAllowThreads(__tstate); | |
6783 | if (PyErr_Occurred()) return NULL; | |
6784 | } Py_INCREF(Py_None); | |
6785 | _resultobj = Py_None; | |
6786 | { | |
6787 | if (_obj1) | |
6788 | delete _arg1; | |
6789 | } | |
6790 | return _resultobj; | |
6791 | } | |
6792 | ||
6793 | static wxRect wxDC_DrawImageLabel(wxDC *self,const wxString & text,const wxBitmap & image,const wxRect & rect,int alignment,int indexAccel) { | |
6794 | wxRect rv; | |
6795 | self->DrawLabel(text, image, rect, alignment, indexAccel, &rv); | |
6796 | return rv; | |
6797 | } | |
6798 | static PyObject *_wrap_wxDC_DrawImageLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6799 | PyObject * _resultobj; | |
6800 | wxRect * _result; | |
6801 | wxDC * _arg0; | |
6802 | wxString * _arg1; | |
6803 | wxBitmap * _arg2; | |
6804 | wxRect * _arg3; | |
6805 | int _arg4 = (int ) wxALIGN_LEFT|wxALIGN_TOP; | |
6806 | int _arg5 = (int ) -1; | |
6807 | PyObject * _argo0 = 0; | |
6808 | PyObject * _obj1 = 0; | |
6809 | PyObject * _argo2 = 0; | |
6810 | wxRect temp; | |
6811 | PyObject * _obj3 = 0; | |
6812 | char *_kwnames[] = { "self","text","image","rect","alignment","indexAccel", NULL }; | |
6813 | char _ptemp[128]; | |
6814 | ||
6815 | self = self; | |
6816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO|ii:wxDC_DrawImageLabel",_kwnames,&_argo0,&_obj1,&_argo2,&_obj3,&_arg4,&_arg5)) | |
6817 | return NULL; | |
6818 | if (_argo0) { | |
6819 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6820 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6821 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawImageLabel. Expected _wxDC_p."); | |
6822 | return NULL; | |
6823 | } | |
6824 | } | |
6825 | { | |
6824d4f9 RD |
6826 | _arg1 = wxString_in_helper(_obj1); |
6827 | if (_arg1 == NULL) | |
a341e32e | 6828 | return NULL; |
a341e32e RD |
6829 | } |
6830 | if (_argo2) { | |
6831 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
6832 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) { | |
6833 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxDC_DrawImageLabel. Expected _wxBitmap_p."); | |
6834 | return NULL; | |
6835 | } | |
6836 | } | |
6837 | { | |
6838 | _arg3 = &temp; | |
6839 | if (! wxRect_helper(_obj3, &_arg3)) | |
6840 | return NULL; | |
6841 | } | |
6842 | { | |
6843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6824d4f9 | 6844 | _result = new wxRect (wxDC_DrawImageLabel(_arg0,*_arg1,*_arg2,*_arg3,_arg4,_arg5)); |
a341e32e RD |
6845 | |
6846 | wxPyEndAllowThreads(__tstate); | |
6847 | if (PyErr_Occurred()) return NULL; | |
6848 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); | |
6849 | _resultobj = Py_BuildValue("s",_ptemp); | |
6850 | { | |
6851 | if (_obj1) | |
6852 | delete _arg1; | |
6853 | } | |
6854 | return _resultobj; | |
6855 | } | |
6856 | ||
e6056257 RD |
6857 | #define wxDC_DrawLine(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
6858 | static PyObject *_wrap_wxDC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6859 | PyObject * _resultobj; | |
6860 | wxDC * _arg0; | |
6861 | long _arg1; | |
6862 | long _arg2; | |
6863 | long _arg3; | |
6864 | long _arg4; | |
6865 | PyObject * _argo0 = 0; | |
6866 | char *_kwnames[] = { "self","x1","y1","x2","y2", NULL }; | |
6867 | ||
6868 | self = self; | |
6869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawLine",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
6870 | return NULL; | |
6871 | if (_argo0) { | |
6872 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6873 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6874 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLine. Expected _wxDC_p."); | |
6875 | return NULL; | |
6876 | } | |
6877 | } | |
6878 | { | |
0e2ff151 | 6879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 6880 | wxDC_DrawLine(_arg0,_arg1,_arg2,_arg3,_arg4); |
e6056257 | 6881 | |
0e2ff151 | 6882 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6883 | if (PyErr_Occurred()) return NULL; |
6884 | } Py_INCREF(Py_None); | |
6885 | _resultobj = Py_None; | |
6886 | return _resultobj; | |
6887 | } | |
6888 | ||
6889 | #define wxDC_DrawLines(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLines(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
6890 | static PyObject *_wrap_wxDC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6891 | PyObject * _resultobj; | |
6892 | wxDC * _arg0; | |
6893 | int _arg1; | |
6894 | wxPoint * _arg2; | |
6895 | long _arg3 = (long ) 0; | |
6896 | long _arg4 = (long ) 0; | |
6897 | PyObject * _argo0 = 0; | |
6898 | int NPOINTS; | |
6899 | PyObject * _obj2 = 0; | |
6900 | char *_kwnames[] = { "self","points","xoffset","yoffset", NULL }; | |
6901 | ||
6902 | self = self; | |
6903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|ll:wxDC_DrawLines",_kwnames,&_argo0,&_obj2,&_arg3,&_arg4)) | |
6904 | return NULL; | |
6905 | if (_argo0) { | |
6906 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6907 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6908 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLines. Expected _wxDC_p."); | |
6909 | return NULL; | |
6910 | } | |
6911 | } | |
6912 | if (_obj2) | |
6913 | { | |
6914 | _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS); | |
6915 | if (_arg2 == NULL) { | |
6916 | return NULL; | |
6917 | } | |
6918 | } | |
6919 | { | |
6920 | _arg1 = NPOINTS; | |
6921 | } | |
6922 | { | |
0e2ff151 | 6923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 6924 | wxDC_DrawLines(_arg0,_arg1,_arg2,_arg3,_arg4); |
e6056257 | 6925 | |
0e2ff151 | 6926 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6927 | if (PyErr_Occurred()) return NULL; |
6928 | } Py_INCREF(Py_None); | |
6929 | _resultobj = Py_None; | |
6930 | { | |
6931 | delete [] _arg2; | |
6932 | } | |
6933 | return _resultobj; | |
6934 | } | |
6935 | ||
6936 | #define wxDC_DrawPolygon(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawPolygon(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
6937 | static PyObject *_wrap_wxDC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6938 | PyObject * _resultobj; | |
6939 | wxDC * _arg0; | |
6940 | int _arg1; | |
6941 | wxPoint * _arg2; | |
6942 | long _arg3 = (long ) 0; | |
6943 | long _arg4 = (long ) 0; | |
6944 | int _arg5 = (int ) wxODDEVEN_RULE; | |
6945 | PyObject * _argo0 = 0; | |
6946 | int NPOINTS; | |
6947 | PyObject * _obj2 = 0; | |
6948 | char *_kwnames[] = { "self","points","xoffset","yoffset","fill_style", NULL }; | |
6949 | ||
6950 | self = self; | |
6951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|lli:wxDC_DrawPolygon",_kwnames,&_argo0,&_obj2,&_arg3,&_arg4,&_arg5)) | |
6952 | return NULL; | |
6953 | if (_argo0) { | |
6954 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6955 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6956 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawPolygon. Expected _wxDC_p."); | |
6957 | return NULL; | |
6958 | } | |
6959 | } | |
6960 | if (_obj2) | |
6961 | { | |
6962 | _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS); | |
6963 | if (_arg2 == NULL) { | |
6964 | return NULL; | |
6965 | } | |
6966 | } | |
6967 | { | |
6968 | _arg1 = NPOINTS; | |
6969 | } | |
6970 | { | |
0e2ff151 | 6971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 6972 | wxDC_DrawPolygon(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); |
e6056257 | 6973 | |
0e2ff151 | 6974 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
6975 | if (PyErr_Occurred()) return NULL; |
6976 | } Py_INCREF(Py_None); | |
6977 | _resultobj = Py_None; | |
6978 | { | |
6979 | delete [] _arg2; | |
6980 | } | |
6981 | return _resultobj; | |
6982 | } | |
6983 | ||
6984 | #define wxDC_DrawPoint(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawPoint(_swigarg0,_swigarg1)) | |
6985 | static PyObject *_wrap_wxDC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6986 | PyObject * _resultobj; | |
6987 | wxDC * _arg0; | |
6988 | long _arg1; | |
6989 | long _arg2; | |
6990 | PyObject * _argo0 = 0; | |
6991 | char *_kwnames[] = { "self","x","y", NULL }; | |
6992 | ||
6993 | self = self; | |
6994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_DrawPoint",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6995 | return NULL; | |
6996 | if (_argo0) { | |
6997 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6998 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6999 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawPoint. Expected _wxDC_p."); | |
7000 | return NULL; | |
7001 | } | |
7002 | } | |
7003 | { | |
0e2ff151 | 7004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 7005 | wxDC_DrawPoint(_arg0,_arg1,_arg2); |
e6056257 | 7006 | |
0e2ff151 | 7007 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7008 | if (PyErr_Occurred()) return NULL; |
7009 | } Py_INCREF(Py_None); | |
7010 | _resultobj = Py_None; | |
7011 | return _resultobj; | |
7012 | } | |
7013 | ||
7014 | #define wxDC_DrawRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
7015 | static PyObject *_wrap_wxDC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7016 | PyObject * _resultobj; | |
7017 | wxDC * _arg0; | |
7018 | long _arg1; | |
7019 | long _arg2; | |
7020 | long _arg3; | |
7021 | long _arg4; | |
7022 | PyObject * _argo0 = 0; | |
7023 | char *_kwnames[] = { "self","x","y","width","height", NULL }; | |
7024 | ||
7025 | self = self; | |
7026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawRectangle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
7027 | return NULL; | |
7028 | if (_argo0) { | |
7029 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7030 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7031 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRectangle. Expected _wxDC_p."); | |
7032 | return NULL; | |
7033 | } | |
7034 | } | |
7035 | { | |
0e2ff151 | 7036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 7037 | wxDC_DrawRectangle(_arg0,_arg1,_arg2,_arg3,_arg4); |
e6056257 | 7038 | |
0e2ff151 | 7039 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7040 | if (PyErr_Occurred()) return NULL; |
7041 | } Py_INCREF(Py_None); | |
7042 | _resultobj = Py_None; | |
7043 | return _resultobj; | |
7044 | } | |
7045 | ||
7046 | #define wxDC_DrawRotatedText(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRotatedText(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
7047 | static PyObject *_wrap_wxDC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7048 | PyObject * _resultobj; | |
7049 | wxDC * _arg0; | |
7050 | wxString * _arg1; | |
7051 | wxCoord _arg2; | |
7052 | wxCoord _arg3; | |
7053 | double _arg4; | |
7054 | PyObject * _argo0 = 0; | |
7055 | PyObject * _obj1 = 0; | |
7056 | char *_kwnames[] = { "self","text","x","y","angle", NULL }; | |
7057 | ||
7058 | self = self; | |
7059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiid:wxDC_DrawRotatedText",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_arg4)) | |
7060 | return NULL; | |
7061 | if (_argo0) { | |
7062 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7063 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7064 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRotatedText. Expected _wxDC_p."); | |
7065 | return NULL; | |
7066 | } | |
7067 | } | |
7068 | { | |
6824d4f9 RD |
7069 | _arg1 = wxString_in_helper(_obj1); |
7070 | if (_arg1 == NULL) | |
e6056257 | 7071 | return NULL; |
e6056257 RD |
7072 | } |
7073 | { | |
0e2ff151 | 7074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 7075 | wxDC_DrawRotatedText(_arg0,*_arg1,_arg2,_arg3,_arg4); |
e6056257 | 7076 | |
0e2ff151 | 7077 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7078 | if (PyErr_Occurred()) return NULL; |
7079 | } Py_INCREF(Py_None); | |
7080 | _resultobj = Py_None; | |
7081 | { | |
7082 | if (_obj1) | |
7083 | delete _arg1; | |
7084 | } | |
7085 | return _resultobj; | |
7086 | } | |
7087 | ||
7088 | #define wxDC_DrawRoundedRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawRoundedRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
7089 | static PyObject *_wrap_wxDC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7090 | PyObject * _resultobj; | |
7091 | wxDC * _arg0; | |
7092 | long _arg1; | |
7093 | long _arg2; | |
7094 | long _arg3; | |
7095 | long _arg4; | |
7096 | long _arg5 = (long ) 20; | |
7097 | PyObject * _argo0 = 0; | |
7098 | char *_kwnames[] = { "self","x","y","width","height","radius", NULL }; | |
7099 | ||
7100 | self = self; | |
7101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll|l:wxDC_DrawRoundedRectangle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5)) | |
7102 | return NULL; | |
7103 | if (_argo0) { | |
7104 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7105 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7106 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRoundedRectangle. Expected _wxDC_p."); | |
7107 | return NULL; | |
7108 | } | |
7109 | } | |
7110 | { | |
0e2ff151 | 7111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 7112 | wxDC_DrawRoundedRectangle(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); |
e6056257 | 7113 | |
0e2ff151 | 7114 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7115 | if (PyErr_Occurred()) return NULL; |
7116 | } Py_INCREF(Py_None); | |
7117 | _resultobj = Py_None; | |
7118 | return _resultobj; | |
7119 | } | |
7120 | ||
7121 | #define wxDC_DrawSpline(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawSpline(_swigarg0,_swigarg1)) | |
7122 | static PyObject *_wrap_wxDC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7123 | PyObject * _resultobj; | |
7124 | wxDC * _arg0; | |
7125 | int _arg1; | |
7126 | wxPoint * _arg2; | |
7127 | PyObject * _argo0 = 0; | |
7128 | int NPOINTS; | |
7129 | PyObject * _obj2 = 0; | |
7130 | char *_kwnames[] = { "self","points", NULL }; | |
7131 | ||
7132 | self = self; | |
7133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_DrawSpline",_kwnames,&_argo0,&_obj2)) | |
7134 | return NULL; | |
7135 | if (_argo0) { | |
7136 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7137 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7138 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawSpline. Expected _wxDC_p."); | |
7139 | return NULL; | |
7140 | } | |
7141 | } | |
7142 | if (_obj2) | |
7143 | { | |
7144 | _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS); | |
7145 | if (_arg2 == NULL) { | |
7146 | return NULL; | |
7147 | } | |
7148 | } | |
7149 | { | |
7150 | _arg1 = NPOINTS; | |
7151 | } | |
7152 | { | |
0e2ff151 | 7153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 7154 | wxDC_DrawSpline(_arg0,_arg1,_arg2); |
e6056257 | 7155 | |
0e2ff151 | 7156 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7157 | if (PyErr_Occurred()) return NULL; |
7158 | } Py_INCREF(Py_None); | |
7159 | _resultobj = Py_None; | |
7160 | { | |
7161 | delete [] _arg2; | |
7162 | } | |
7163 | return _resultobj; | |
7164 | } | |
7165 | ||
7166 | #define wxDC_DrawText(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawText(_swigarg0,_swigarg1,_swigarg2)) | |
7167 | static PyObject *_wrap_wxDC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7168 | PyObject * _resultobj; | |
7169 | wxDC * _arg0; | |
7170 | wxString * _arg1; | |
7171 | long _arg2; | |
7172 | long _arg3; | |
7173 | PyObject * _argo0 = 0; | |
7174 | PyObject * _obj1 = 0; | |
7175 | char *_kwnames[] = { "self","text","x","y", NULL }; | |
7176 | ||
7177 | self = self; | |
7178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll:wxDC_DrawText",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3)) | |
7179 | return NULL; | |
7180 | if (_argo0) { | |
7181 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7182 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7183 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawText. Expected _wxDC_p."); | |
7184 | return NULL; | |
7185 | } | |
7186 | } | |
7187 | { | |
6824d4f9 RD |
7188 | _arg1 = wxString_in_helper(_obj1); |
7189 | if (_arg1 == NULL) | |
e6056257 | 7190 | return NULL; |
e6056257 RD |
7191 | } |
7192 | { | |
0e2ff151 | 7193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 7194 | wxDC_DrawText(_arg0,*_arg1,_arg2,_arg3); |
e6056257 | 7195 | |
0e2ff151 | 7196 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7197 | if (PyErr_Occurred()) return NULL; |
7198 | } Py_INCREF(Py_None); | |
7199 | _resultobj = Py_None; | |
7200 | { | |
7201 | if (_obj1) | |
7202 | delete _arg1; | |
7203 | } | |
7204 | return _resultobj; | |
7205 | } | |
7206 | ||
7207 | #define wxDC_EndDoc(_swigobj) (_swigobj->EndDoc()) | |
7208 | static PyObject *_wrap_wxDC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7209 | PyObject * _resultobj; | |
7210 | wxDC * _arg0; | |
7211 | PyObject * _argo0 = 0; | |
7212 | char *_kwnames[] = { "self", NULL }; | |
7213 | ||
7214 | self = self; | |
7215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndDoc",_kwnames,&_argo0)) | |
7216 | return NULL; | |
7217 | if (_argo0) { | |
7218 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7219 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7220 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndDoc. Expected _wxDC_p."); | |
7221 | return NULL; | |
7222 | } | |
7223 | } | |
7224 | { | |
0e2ff151 | 7225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 7226 | wxDC_EndDoc(_arg0); |
e6056257 | 7227 | |
0e2ff151 | 7228 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7229 | if (PyErr_Occurred()) return NULL; |
7230 | } Py_INCREF(Py_None); | |
7231 | _resultobj = Py_None; | |
7232 | return _resultobj; | |
7233 | } | |
7234 | ||
7235 | #define wxDC_EndDrawing(_swigobj) (_swigobj->EndDrawing()) | |
7236 | static PyObject *_wrap_wxDC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7237 | PyObject * _resultobj; | |
7238 | wxDC * _arg0; | |
7239 | PyObject * _argo0 = 0; | |
7240 | char *_kwnames[] = { "self", NULL }; | |
7241 | ||
7242 | self = self; | |
7243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndDrawing",_kwnames,&_argo0)) | |
7244 | return NULL; | |
7245 | if (_argo0) { | |
7246 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7247 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7248 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndDrawing. Expected _wxDC_p."); | |
7249 | return NULL; | |
7250 | } | |
7251 | } | |
7252 | { | |
0e2ff151 | 7253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 7254 | wxDC_EndDrawing(_arg0); |
e6056257 | 7255 | |
0e2ff151 | 7256 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7257 | if (PyErr_Occurred()) return NULL; |
7258 | } Py_INCREF(Py_None); | |
7259 | _resultobj = Py_None; | |
7260 | return _resultobj; | |
7261 | } | |
7262 | ||
7263 | #define wxDC_EndPage(_swigobj) (_swigobj->EndPage()) | |
7264 | static PyObject *_wrap_wxDC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7265 | PyObject * _resultobj; | |
7266 | wxDC * _arg0; | |
7267 | PyObject * _argo0 = 0; | |
7268 | char *_kwnames[] = { "self", NULL }; | |
7269 | ||
7270 | self = self; | |
7271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndPage",_kwnames,&_argo0)) | |
7272 | return NULL; | |
7273 | if (_argo0) { | |
7274 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7275 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7276 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndPage. Expected _wxDC_p."); | |
7277 | return NULL; | |
7278 | } | |
7279 | } | |
7280 | { | |
0e2ff151 | 7281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 7282 | wxDC_EndPage(_arg0); |
e6056257 | 7283 | |
0e2ff151 | 7284 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7285 | if (PyErr_Occurred()) return NULL; |
7286 | } Py_INCREF(Py_None); | |
7287 | _resultobj = Py_None; | |
7288 | return _resultobj; | |
7289 | } | |
7290 | ||
7291 | #define wxDC_FloodFill(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->FloodFill(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
7292 | static PyObject *_wrap_wxDC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7293 | PyObject * _resultobj; | |
7294 | wxDC * _arg0; | |
7295 | long _arg1; | |
7296 | long _arg2; | |
7297 | wxColour * _arg3; | |
7298 | int _arg4 = (int ) wxFLOOD_SURFACE; | |
7299 | PyObject * _argo0 = 0; | |
7300 | wxColour temp; | |
7301 | PyObject * _obj3 = 0; | |
7302 | char *_kwnames[] = { "self","x","y","colour","style", NULL }; | |
7303 | ||
7304 | self = self; | |
7305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllO|i:wxDC_FloodFill",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_arg4)) | |
7306 | return NULL; | |
7307 | if (_argo0) { | |
7308 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7309 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7310 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_FloodFill. Expected _wxDC_p."); | |
7311 | return NULL; | |
7312 | } | |
7313 | } | |
7314 | { | |
7315 | _arg3 = &temp; | |
7316 | if (! wxColour_helper(_obj3, &_arg3)) | |
7317 | return NULL; | |
7318 | } | |
7319 | { | |
0e2ff151 | 7320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 7321 | wxDC_FloodFill(_arg0,_arg1,_arg2,*_arg3,_arg4); |
e6056257 | 7322 | |
0e2ff151 | 7323 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7324 | if (PyErr_Occurred()) return NULL; |
7325 | } Py_INCREF(Py_None); | |
7326 | _resultobj = Py_None; | |
7327 | return _resultobj; | |
7328 | } | |
7329 | ||
7330 | #define wxDC_GetBackground(_swigobj) (_swigobj->GetBackground()) | |
7331 | static PyObject *_wrap_wxDC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7332 | PyObject * _resultobj; | |
7333 | wxBrush * _result; | |
7334 | wxDC * _arg0; | |
7335 | PyObject * _argo0 = 0; | |
7336 | char *_kwnames[] = { "self", NULL }; | |
7337 | char _ptemp[128]; | |
7338 | ||
7339 | self = self; | |
7340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBackground",_kwnames,&_argo0)) | |
7341 | return NULL; | |
7342 | if (_argo0) { | |
7343 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7344 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7345 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBackground. Expected _wxDC_p."); | |
7346 | return NULL; | |
7347 | } | |
7348 | } | |
7349 | { | |
0e2ff151 | 7350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 7351 | _result = new wxBrush (wxDC_GetBackground(_arg0)); |
e6056257 | 7352 | |
0e2ff151 | 7353 | wxPyEndAllowThreads(__tstate); |
e6056257 | 7354 | if (PyErr_Occurred()) return NULL; |
00360d46 RD |
7355 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBrush_p"); |
7356 | _resultobj = Py_BuildValue("s",_ptemp); | |
e6056257 RD |
7357 | return _resultobj; |
7358 | } | |
7359 | ||
7360 | #define wxDC_GetBrush(_swigobj) (_swigobj->GetBrush()) | |
7361 | static PyObject *_wrap_wxDC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7362 | PyObject * _resultobj; | |
7363 | wxBrush * _result; | |
7364 | wxDC * _arg0; | |
7365 | PyObject * _argo0 = 0; | |
7366 | char *_kwnames[] = { "self", NULL }; | |
7367 | char _ptemp[128]; | |
7368 | ||
7369 | self = self; | |
7370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBrush",_kwnames,&_argo0)) | |
7371 | return NULL; | |
7372 | if (_argo0) { | |
7373 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7374 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7375 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBrush. Expected _wxDC_p."); | |
7376 | return NULL; | |
7377 | } | |
7378 | } | |
7379 | { | |
0e2ff151 | 7380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 7381 | _result = new wxBrush (wxDC_GetBrush(_arg0)); |
e6056257 | 7382 | |
0e2ff151 | 7383 | wxPyEndAllowThreads(__tstate); |
e6056257 | 7384 | if (PyErr_Occurred()) return NULL; |
00360d46 RD |
7385 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBrush_p"); |
7386 | _resultobj = Py_BuildValue("s",_ptemp); | |
e6056257 RD |
7387 | return _resultobj; |
7388 | } | |
7389 | ||
7390 | #define wxDC_GetCharHeight(_swigobj) (_swigobj->GetCharHeight()) | |
7391 | static PyObject *_wrap_wxDC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7392 | PyObject * _resultobj; | |
7393 | long _result; | |
7394 | wxDC * _arg0; | |
7395 | PyObject * _argo0 = 0; | |
7396 | char *_kwnames[] = { "self", NULL }; | |
7397 | ||
7398 | self = self; | |
7399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetCharHeight",_kwnames,&_argo0)) | |
7400 | return NULL; | |
7401 | if (_argo0) { | |
7402 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7403 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7404 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetCharHeight. Expected _wxDC_p."); | |
7405 | return NULL; | |
7406 | } | |
7407 | } | |
7408 | { | |
0e2ff151 | 7409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 7410 | _result = (long )wxDC_GetCharHeight(_arg0); |
e6056257 | 7411 | |
0e2ff151 | 7412 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7413 | if (PyErr_Occurred()) return NULL; |
7414 | } _resultobj = Py_BuildValue("l",_result); | |
7415 | return _resultobj; | |
7416 | } | |
7417 | ||
7418 | #define wxDC_GetCharWidth(_swigobj) (_swigobj->GetCharWidth()) | |
7419 | static PyObject *_wrap_wxDC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7420 | PyObject * _resultobj; | |
7421 | long _result; | |
7422 | wxDC * _arg0; | |
7423 | PyObject * _argo0 = 0; | |
7424 | char *_kwnames[] = { "self", NULL }; | |
7425 | ||
7426 | self = self; | |
7427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetCharWidth",_kwnames,&_argo0)) | |
7428 | return NULL; | |
7429 | if (_argo0) { | |
7430 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7431 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7432 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetCharWidth. Expected _wxDC_p."); | |
7433 | return NULL; | |
7434 | } | |
7435 | } | |
7436 | { | |
0e2ff151 | 7437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 7438 | _result = (long )wxDC_GetCharWidth(_arg0); |
e6056257 | 7439 | |
0e2ff151 | 7440 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7441 | if (PyErr_Occurred()) return NULL; |
7442 | } _resultobj = Py_BuildValue("l",_result); | |
7443 | return _resultobj; | |
7444 | } | |
7445 | ||
7446 | #define wxDC_GetClippingBox(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetClippingBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
7447 | static PyObject *_wrap_wxDC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7448 | PyObject * _resultobj; | |
7449 | wxDC * _arg0; | |
7450 | long * _arg1; | |
7451 | long temp; | |
7452 | long * _arg2; | |
7453 | long temp0; | |
7454 | long * _arg3; | |
7455 | long temp1; | |
7456 | long * _arg4; | |
7457 | long temp2; | |
7458 | PyObject * _argo0 = 0; | |
7459 | char *_kwnames[] = { "self", NULL }; | |
7460 | ||
7461 | self = self; | |
7462 | { | |
7463 | _arg1 = &temp; | |
7464 | } | |
7465 | { | |
7466 | _arg2 = &temp0; | |
7467 | } | |
7468 | { | |
7469 | _arg3 = &temp1; | |
7470 | } | |
7471 | { | |
7472 | _arg4 = &temp2; | |
7473 | } | |
7474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetClippingBox",_kwnames,&_argo0)) | |
7475 | return NULL; | |
7476 | if (_argo0) { | |
7477 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7478 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7479 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetClippingBox. Expected _wxDC_p."); | |
7480 | return NULL; | |
7481 | } | |
7482 | } | |
7483 | { | |
0e2ff151 | 7484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 7485 | wxDC_GetClippingBox(_arg0,_arg1,_arg2,_arg3,_arg4); |
e6056257 | 7486 | |
0e2ff151 | 7487 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7488 | if (PyErr_Occurred()) return NULL; |
7489 | } Py_INCREF(Py_None); | |
7490 | _resultobj = Py_None; | |
7491 | { | |
7492 | PyObject *o; | |
7493 | o = PyInt_FromLong((long) (*_arg1)); | |
7494 | _resultobj = t_output_helper(_resultobj, o); | |
7495 | } | |
7496 | { | |
7497 | PyObject *o; | |
7498 | o = PyInt_FromLong((long) (*_arg2)); | |
7499 | _resultobj = t_output_helper(_resultobj, o); | |
7500 | } | |
7501 | { | |
7502 | PyObject *o; | |
7503 | o = PyInt_FromLong((long) (*_arg3)); | |
7504 | _resultobj = t_output_helper(_resultobj, o); | |
7505 | } | |
7506 | { | |
7507 | PyObject *o; | |
7508 | o = PyInt_FromLong((long) (*_arg4)); | |
7509 | _resultobj = t_output_helper(_resultobj, o); | |
7510 | } | |
7511 | return _resultobj; | |
7512 | } | |
7513 | ||
7514 | #define wxDC_GetFont(_swigobj) (_swigobj->GetFont()) | |
7515 | static PyObject *_wrap_wxDC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7516 | PyObject * _resultobj; | |
7517 | wxFont * _result; | |
7518 | wxDC * _arg0; | |
7519 | PyObject * _argo0 = 0; | |
7520 | char *_kwnames[] = { "self", NULL }; | |
7521 | char _ptemp[128]; | |
7522 | ||
7523 | self = self; | |
7524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetFont",_kwnames,&_argo0)) | |
7525 | return NULL; | |
7526 | if (_argo0) { | |
7527 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7528 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7529 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetFont. Expected _wxDC_p."); | |
7530 | return NULL; | |
7531 | } | |
7532 | } | |
7533 | { | |
0e2ff151 | 7534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 7535 | _result = new wxFont (wxDC_GetFont(_arg0)); |
e6056257 | 7536 | |
0e2ff151 | 7537 | wxPyEndAllowThreads(__tstate); |
e6056257 | 7538 | if (PyErr_Occurred()) return NULL; |
00360d46 RD |
7539 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); |
7540 | _resultobj = Py_BuildValue("s",_ptemp); | |
e6056257 RD |
7541 | return _resultobj; |
7542 | } | |
7543 | ||
7544 | #define wxDC_GetLogicalFunction(_swigobj) (_swigobj->GetLogicalFunction()) | |
7545 | static PyObject *_wrap_wxDC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7546 | PyObject * _resultobj; | |
7547 | int _result; | |
7548 | wxDC * _arg0; | |
7549 | PyObject * _argo0 = 0; | |
7550 | char *_kwnames[] = { "self", NULL }; | |
7551 | ||
7552 | self = self; | |
7553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalFunction",_kwnames,&_argo0)) | |
7554 | return NULL; | |
7555 | if (_argo0) { | |
7556 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7557 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7558 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalFunction. Expected _wxDC_p."); | |
7559 | return NULL; | |
7560 | } | |
7561 | } | |
7562 | { | |
0e2ff151 | 7563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 7564 | _result = (int )wxDC_GetLogicalFunction(_arg0); |
e6056257 | 7565 | |
0e2ff151 | 7566 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7567 | if (PyErr_Occurred()) return NULL; |
7568 | } _resultobj = Py_BuildValue("i",_result); | |
7569 | return _resultobj; | |
7570 | } | |
7571 | ||
7572 | #define wxDC_GetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalScale(_swigarg0,_swigarg1)) | |
7573 | static PyObject *_wrap_wxDC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7574 | PyObject * _resultobj; | |
7575 | wxDC * _arg0; | |
7576 | double * _arg1; | |
7577 | double temp; | |
7578 | double * _arg2; | |
7579 | double temp0; | |
7580 | PyObject * _argo0 = 0; | |
7581 | char *_kwnames[] = { "self", NULL }; | |
7582 | ||
7583 | self = self; | |
7584 | { | |
7585 | _arg1 = &temp; | |
7586 | } | |
7587 | { | |
7588 | _arg2 = &temp0; | |
7589 | } | |
7590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalScale",_kwnames,&_argo0)) | |
7591 | return NULL; | |
7592 | if (_argo0) { | |
7593 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7594 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7595 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalScale. Expected _wxDC_p."); | |
7596 | return NULL; | |
7597 | } | |
7598 | } | |
7599 | { | |
0e2ff151 | 7600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 7601 | wxDC_GetLogicalScale(_arg0,_arg1,_arg2); |
e6056257 | 7602 | |
0e2ff151 | 7603 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7604 | if (PyErr_Occurred()) return NULL; |
7605 | } Py_INCREF(Py_None); | |
7606 | _resultobj = Py_None; | |
7607 | { | |
7608 | PyObject *o; | |
7609 | o = PyFloat_FromDouble((double) (*_arg1)); | |
7610 | _resultobj = t_output_helper(_resultobj, o); | |
7611 | } | |
7612 | { | |
7613 | PyObject *o; | |
7614 | o = PyFloat_FromDouble((double) (*_arg2)); | |
7615 | _resultobj = t_output_helper(_resultobj, o); | |
7616 | } | |
7617 | return _resultobj; | |
7618 | } | |
7619 | ||
7620 | #define wxDC_GetMapMode(_swigobj) (_swigobj->GetMapMode()) | |
7621 | static PyObject *_wrap_wxDC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7622 | PyObject * _resultobj; | |
7623 | int _result; | |
7624 | wxDC * _arg0; | |
7625 | PyObject * _argo0 = 0; | |
7626 | char *_kwnames[] = { "self", NULL }; | |
7627 | ||
7628 | self = self; | |
7629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetMapMode",_kwnames,&_argo0)) | |
7630 | return NULL; | |
7631 | if (_argo0) { | |
7632 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7633 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7634 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetMapMode. Expected _wxDC_p."); | |
7635 | return NULL; | |
7636 | } | |
7637 | } | |
7638 | { | |
0e2ff151 | 7639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 7640 | _result = (int )wxDC_GetMapMode(_arg0); |
e6056257 | 7641 | |
0e2ff151 | 7642 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7643 | if (PyErr_Occurred()) return NULL; |
7644 | } _resultobj = Py_BuildValue("i",_result); | |
7645 | return _resultobj; | |
7646 | } | |
7647 | ||
7648 | #define wxDC_GetOptimization(_swigobj) (_swigobj->GetOptimization()) | |
7649 | static PyObject *_wrap_wxDC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7650 | PyObject * _resultobj; | |
7651 | bool _result; | |
7652 | wxDC * _arg0; | |
7653 | PyObject * _argo0 = 0; | |
7654 | char *_kwnames[] = { "self", NULL }; | |
7655 | ||
7656 | self = self; | |
7657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetOptimization",_kwnames,&_argo0)) | |
7658 | return NULL; | |
7659 | if (_argo0) { | |
7660 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7661 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7662 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetOptimization. Expected _wxDC_p."); | |
7663 | return NULL; | |
7664 | } | |
7665 | } | |
7666 | { | |
0e2ff151 | 7667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 7668 | _result = (bool )wxDC_GetOptimization(_arg0); |
e6056257 | 7669 | |
0e2ff151 | 7670 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7671 | if (PyErr_Occurred()) return NULL; |
7672 | } _resultobj = Py_BuildValue("i",_result); | |
7673 | return _resultobj; | |
7674 | } | |
7675 | ||
7676 | #define wxDC_GetPen(_swigobj) (_swigobj->GetPen()) | |
7677 | static PyObject *_wrap_wxDC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7678 | PyObject * _resultobj; | |
7679 | wxPen * _result; | |
7680 | wxDC * _arg0; | |
7681 | PyObject * _argo0 = 0; | |
7682 | char *_kwnames[] = { "self", NULL }; | |
7683 | char _ptemp[128]; | |
7684 | ||
7685 | self = self; | |
7686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetPen",_kwnames,&_argo0)) | |
7687 | return NULL; | |
7688 | if (_argo0) { | |
7689 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7690 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7691 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPen. Expected _wxDC_p."); | |
7692 | return NULL; | |
7693 | } | |
7694 | } | |
7695 | { | |
0e2ff151 | 7696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 7697 | _result = new wxPen (wxDC_GetPen(_arg0)); |
e6056257 | 7698 | |
0e2ff151 | 7699 | wxPyEndAllowThreads(__tstate); |
e6056257 | 7700 | if (PyErr_Occurred()) return NULL; |
00360d46 RD |
7701 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPen_p"); |
7702 | _resultobj = Py_BuildValue("s",_ptemp); | |
e6056257 RD |
7703 | return _resultobj; |
7704 | } | |
7705 | ||
7706 | static wxColour * wxDC_GetPixel(wxDC *self,long x,long y) { | |
7707 | wxColour* wc = new wxColour(); | |
7708 | self->GetPixel(x, y, wc); | |
7709 | return wc; | |
7710 | } | |
7711 | static PyObject *_wrap_wxDC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7712 | PyObject * _resultobj; | |
7713 | wxColour * _result; | |
7714 | wxDC * _arg0; | |
7715 | long _arg1; | |
7716 | long _arg2; | |
7717 | PyObject * _argo0 = 0; | |
7718 | char *_kwnames[] = { "self","x","y", NULL }; | |
7719 | char _ptemp[128]; | |
7720 | ||
7721 | self = self; | |
7722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_GetPixel",_kwnames,&_argo0,&_arg1,&_arg2)) | |
7723 | return NULL; | |
7724 | if (_argo0) { | |
7725 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7726 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7727 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPixel. Expected _wxDC_p."); | |
7728 | return NULL; | |
7729 | } | |
7730 | } | |
7731 | { | |
0e2ff151 | 7732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 7733 | _result = (wxColour *)wxDC_GetPixel(_arg0,_arg1,_arg2); |
e6056257 | 7734 | |
0e2ff151 | 7735 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7736 | if (PyErr_Occurred()) return NULL; |
7737 | } if (_result) { | |
7738 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
7739 | _resultobj = Py_BuildValue("s",_ptemp); | |
7740 | } else { | |
7741 | Py_INCREF(Py_None); | |
7742 | _resultobj = Py_None; | |
7743 | } | |
7744 | return _resultobj; | |
7745 | } | |
7746 | ||
7747 | #define wxDC_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1)) | |
7748 | static PyObject *_wrap_wxDC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7749 | PyObject * _resultobj; | |
7750 | wxDC * _arg0; | |
7751 | int * _arg1; | |
7752 | int temp; | |
7753 | int * _arg2; | |
7754 | int temp0; | |
7755 | PyObject * _argo0 = 0; | |
7756 | char *_kwnames[] = { "self", NULL }; | |
7757 | ||
7758 | self = self; | |
7759 | { | |
7760 | _arg1 = &temp; | |
7761 | } | |
7762 | { | |
7763 | _arg2 = &temp0; | |
7764 | } | |
7765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSizeTuple",_kwnames,&_argo0)) | |
7766 | return NULL; | |
7767 | if (_argo0) { | |
7768 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7769 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7770 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSizeTuple. Expected _wxDC_p."); | |
7771 | return NULL; | |
7772 | } | |
7773 | } | |
7774 | { | |
0e2ff151 | 7775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 7776 | wxDC_GetSizeTuple(_arg0,_arg1,_arg2); |
e6056257 | 7777 | |
0e2ff151 | 7778 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7779 | if (PyErr_Occurred()) return NULL; |
7780 | } Py_INCREF(Py_None); | |
7781 | _resultobj = Py_None; | |
7782 | { | |
7783 | PyObject *o; | |
7784 | o = PyInt_FromLong((long) (*_arg1)); | |
7785 | _resultobj = t_output_helper(_resultobj, o); | |
7786 | } | |
7787 | { | |
7788 | PyObject *o; | |
7789 | o = PyInt_FromLong((long) (*_arg2)); | |
7790 | _resultobj = t_output_helper(_resultobj, o); | |
7791 | } | |
7792 | return _resultobj; | |
7793 | } | |
7794 | ||
7795 | #define wxDC_GetSize(_swigobj) (_swigobj->GetSize()) | |
7796 | static PyObject *_wrap_wxDC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7797 | PyObject * _resultobj; | |
7798 | wxSize * _result; | |
7799 | wxDC * _arg0; | |
7800 | PyObject * _argo0 = 0; | |
7801 | char *_kwnames[] = { "self", NULL }; | |
7802 | char _ptemp[128]; | |
7803 | ||
7804 | self = self; | |
7805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSize",_kwnames,&_argo0)) | |
7806 | return NULL; | |
7807 | if (_argo0) { | |
7808 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7809 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7810 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSize. Expected _wxDC_p."); | |
7811 | return NULL; | |
7812 | } | |
7813 | } | |
7814 | { | |
0e2ff151 | 7815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 7816 | _result = new wxSize (wxDC_GetSize(_arg0)); |
e6056257 | 7817 | |
0e2ff151 | 7818 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7819 | if (PyErr_Occurred()) return NULL; |
7820 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
7821 | _resultobj = Py_BuildValue("s",_ptemp); | |
7822 | return _resultobj; | |
7823 | } | |
7824 | ||
7825 | #define wxDC_GetSizeMM(_swigobj) (_swigobj->GetSizeMM()) | |
7826 | static PyObject *_wrap_wxDC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7827 | PyObject * _resultobj; | |
7828 | wxSize * _result; | |
7829 | wxDC * _arg0; | |
7830 | PyObject * _argo0 = 0; | |
7831 | char *_kwnames[] = { "self", NULL }; | |
7832 | char _ptemp[128]; | |
7833 | ||
7834 | self = self; | |
7835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSizeMM",_kwnames,&_argo0)) | |
7836 | return NULL; | |
7837 | if (_argo0) { | |
7838 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7839 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7840 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSizeMM. Expected _wxDC_p."); | |
7841 | return NULL; | |
7842 | } | |
7843 | } | |
7844 | { | |
0e2ff151 | 7845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 7846 | _result = new wxSize (wxDC_GetSizeMM(_arg0)); |
e6056257 | 7847 | |
0e2ff151 | 7848 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7849 | if (PyErr_Occurred()) return NULL; |
7850 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
7851 | _resultobj = Py_BuildValue("s",_ptemp); | |
7852 | return _resultobj; | |
7853 | } | |
7854 | ||
7855 | #define wxDC_GetTextBackground(_swigobj) (_swigobj->GetTextBackground()) | |
7856 | static PyObject *_wrap_wxDC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7857 | PyObject * _resultobj; | |
7858 | wxColour * _result; | |
7859 | wxDC * _arg0; | |
7860 | PyObject * _argo0 = 0; | |
7861 | char *_kwnames[] = { "self", NULL }; | |
7862 | char _ptemp[128]; | |
7863 | ||
7864 | self = self; | |
7865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetTextBackground",_kwnames,&_argo0)) | |
7866 | return NULL; | |
7867 | if (_argo0) { | |
7868 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7869 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7870 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextBackground. Expected _wxDC_p."); | |
7871 | return NULL; | |
7872 | } | |
7873 | } | |
7874 | { | |
0e2ff151 | 7875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 7876 | _result = new wxColour (wxDC_GetTextBackground(_arg0)); |
e6056257 | 7877 | |
0e2ff151 | 7878 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7879 | if (PyErr_Occurred()) return NULL; |
7880 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
7881 | _resultobj = Py_BuildValue("s",_ptemp); | |
7882 | return _resultobj; | |
7883 | } | |
7884 | ||
7885 | #define wxDC_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2)) | |
7886 | static PyObject *_wrap_wxDC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7887 | PyObject * _resultobj; | |
7888 | wxDC * _arg0; | |
7889 | wxString * _arg1; | |
7890 | long * _arg2; | |
7891 | long temp; | |
7892 | long * _arg3; | |
7893 | long temp0; | |
7894 | PyObject * _argo0 = 0; | |
7895 | PyObject * _obj1 = 0; | |
7896 | char *_kwnames[] = { "self","string", NULL }; | |
7897 | ||
7898 | self = self; | |
7899 | { | |
7900 | _arg2 = &temp; | |
7901 | } | |
7902 | { | |
7903 | _arg3 = &temp0; | |
7904 | } | |
7905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_GetTextExtent",_kwnames,&_argo0,&_obj1)) | |
7906 | return NULL; | |
7907 | if (_argo0) { | |
7908 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7909 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7910 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextExtent. Expected _wxDC_p."); | |
7911 | return NULL; | |
7912 | } | |
7913 | } | |
7914 | { | |
6824d4f9 RD |
7915 | _arg1 = wxString_in_helper(_obj1); |
7916 | if (_arg1 == NULL) | |
e6056257 | 7917 | return NULL; |
e6056257 RD |
7918 | } |
7919 | { | |
0e2ff151 | 7920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 7921 | wxDC_GetTextExtent(_arg0,*_arg1,_arg2,_arg3); |
e6056257 | 7922 | |
0e2ff151 | 7923 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
7924 | if (PyErr_Occurred()) return NULL; |
7925 | } Py_INCREF(Py_None); | |
7926 | _resultobj = Py_None; | |
7927 | { | |
7928 | PyObject *o; | |
7929 | o = PyInt_FromLong((long) (*_arg2)); | |
7930 | _resultobj = t_output_helper(_resultobj, o); | |
7931 | } | |
7932 | { | |
7933 | PyObject *o; | |
7934 | o = PyInt_FromLong((long) (*_arg3)); | |
7935 | _resultobj = t_output_helper(_resultobj, o); | |
7936 | } | |
7937 | { | |
7938 | if (_obj1) | |
7939 | delete _arg1; | |
7940 | } | |
7941 | return _resultobj; | |
7942 | } | |
7943 | ||
7944 | #define wxDC_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
7945 | static PyObject *_wrap_wxDC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7946 | PyObject * _resultobj; | |
7947 | wxDC * _arg0; | |
7948 | wxString * _arg1; | |
7949 | long * _arg2; | |
7950 | long temp; | |
7951 | long * _arg3; | |
7952 | long temp0; | |
7953 | long * _arg4; | |
7954 | long temp1; | |
7955 | long * _arg5; | |
7956 | long temp2; | |
7957 | wxFont * _arg6 = (wxFont *) NULL; | |
7958 | PyObject * _argo0 = 0; | |
7959 | PyObject * _obj1 = 0; | |
7960 | PyObject * _argo6 = 0; | |
7961 | char *_kwnames[] = { "self","string","font", NULL }; | |
7962 | ||
7963 | self = self; | |
7964 | { | |
7965 | _arg2 = &temp; | |
7966 | } | |
7967 | { | |
7968 | _arg3 = &temp0; | |
7969 | } | |
7970 | { | |
7971 | _arg4 = &temp1; | |
7972 | } | |
7973 | { | |
7974 | _arg5 = &temp2; | |
7975 | } | |
7976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxDC_GetFullTextExtent",_kwnames,&_argo0,&_obj1,&_argo6)) | |
7977 | return NULL; | |
7978 | if (_argo0) { | |
7979 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7980 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7981 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetFullTextExtent. Expected _wxDC_p."); | |
7982 | return NULL; | |
7983 | } | |
7984 | } | |
7985 | { | |
6824d4f9 RD |
7986 | _arg1 = wxString_in_helper(_obj1); |
7987 | if (_arg1 == NULL) | |
e6056257 | 7988 | return NULL; |
e6056257 RD |
7989 | } |
7990 | if (_argo6) { | |
7991 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
7992 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxFont_p")) { | |
7993 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxDC_GetFullTextExtent. Expected _wxFont_p."); | |
7994 | return NULL; | |
7995 | } | |
7996 | } | |
7997 | { | |
0e2ff151 | 7998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 7999 | wxDC_GetFullTextExtent(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); |
e6056257 | 8000 | |
0e2ff151 | 8001 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8002 | if (PyErr_Occurred()) return NULL; |
8003 | } Py_INCREF(Py_None); | |
8004 | _resultobj = Py_None; | |
8005 | { | |
8006 | PyObject *o; | |
8007 | o = PyInt_FromLong((long) (*_arg2)); | |
8008 | _resultobj = t_output_helper(_resultobj, o); | |
8009 | } | |
8010 | { | |
8011 | PyObject *o; | |
8012 | o = PyInt_FromLong((long) (*_arg3)); | |
8013 | _resultobj = t_output_helper(_resultobj, o); | |
8014 | } | |
8015 | { | |
8016 | PyObject *o; | |
8017 | o = PyInt_FromLong((long) (*_arg4)); | |
8018 | _resultobj = t_output_helper(_resultobj, o); | |
8019 | } | |
8020 | { | |
8021 | PyObject *o; | |
8022 | o = PyInt_FromLong((long) (*_arg5)); | |
8023 | _resultobj = t_output_helper(_resultobj, o); | |
8024 | } | |
8025 | { | |
8026 | if (_obj1) | |
8027 | delete _arg1; | |
8028 | } | |
8029 | return _resultobj; | |
8030 | } | |
8031 | ||
8032 | #define wxDC_GetTextForeground(_swigobj) (_swigobj->GetTextForeground()) | |
8033 | static PyObject *_wrap_wxDC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8034 | PyObject * _resultobj; | |
8035 | wxColour * _result; | |
8036 | wxDC * _arg0; | |
8037 | PyObject * _argo0 = 0; | |
8038 | char *_kwnames[] = { "self", NULL }; | |
8039 | char _ptemp[128]; | |
8040 | ||
8041 | self = self; | |
8042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetTextForeground",_kwnames,&_argo0)) | |
8043 | return NULL; | |
8044 | if (_argo0) { | |
8045 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8046 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8047 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextForeground. Expected _wxDC_p."); | |
8048 | return NULL; | |
8049 | } | |
8050 | } | |
8051 | { | |
0e2ff151 | 8052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 8053 | _result = new wxColour (wxDC_GetTextForeground(_arg0)); |
e6056257 | 8054 | |
0e2ff151 | 8055 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8056 | if (PyErr_Occurred()) return NULL; |
8057 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
8058 | _resultobj = Py_BuildValue("s",_ptemp); | |
8059 | return _resultobj; | |
8060 | } | |
8061 | ||
8062 | #define wxDC_GetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetUserScale(_swigarg0,_swigarg1)) | |
8063 | static PyObject *_wrap_wxDC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8064 | PyObject * _resultobj; | |
8065 | wxDC * _arg0; | |
8066 | double * _arg1; | |
8067 | double temp; | |
8068 | double * _arg2; | |
8069 | double temp0; | |
8070 | PyObject * _argo0 = 0; | |
8071 | char *_kwnames[] = { "self", NULL }; | |
8072 | ||
8073 | self = self; | |
8074 | { | |
8075 | _arg1 = &temp; | |
8076 | } | |
8077 | { | |
8078 | _arg2 = &temp0; | |
8079 | } | |
8080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetUserScale",_kwnames,&_argo0)) | |
8081 | return NULL; | |
8082 | if (_argo0) { | |
8083 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8084 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8085 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetUserScale. Expected _wxDC_p."); | |
8086 | return NULL; | |
8087 | } | |
8088 | } | |
8089 | { | |
0e2ff151 | 8090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 8091 | wxDC_GetUserScale(_arg0,_arg1,_arg2); |
e6056257 | 8092 | |
0e2ff151 | 8093 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8094 | if (PyErr_Occurred()) return NULL; |
8095 | } Py_INCREF(Py_None); | |
8096 | _resultobj = Py_None; | |
8097 | { | |
8098 | PyObject *o; | |
8099 | o = PyFloat_FromDouble((double) (*_arg1)); | |
8100 | _resultobj = t_output_helper(_resultobj, o); | |
8101 | } | |
8102 | { | |
8103 | PyObject *o; | |
8104 | o = PyFloat_FromDouble((double) (*_arg2)); | |
8105 | _resultobj = t_output_helper(_resultobj, o); | |
8106 | } | |
8107 | return _resultobj; | |
8108 | } | |
8109 | ||
8110 | #define wxDC_LogicalToDeviceX(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceX(_swigarg0)) | |
8111 | static PyObject *_wrap_wxDC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8112 | PyObject * _resultobj; | |
8113 | long _result; | |
8114 | wxDC * _arg0; | |
8115 | long _arg1; | |
8116 | PyObject * _argo0 = 0; | |
8117 | char *_kwnames[] = { "self","x", NULL }; | |
8118 | ||
8119 | self = self; | |
8120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceX",_kwnames,&_argo0,&_arg1)) | |
8121 | return NULL; | |
8122 | if (_argo0) { | |
8123 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8124 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8125 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceX. Expected _wxDC_p."); | |
8126 | return NULL; | |
8127 | } | |
8128 | } | |
8129 | { | |
0e2ff151 | 8130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 8131 | _result = (long )wxDC_LogicalToDeviceX(_arg0,_arg1); |
e6056257 | 8132 | |
0e2ff151 | 8133 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8134 | if (PyErr_Occurred()) return NULL; |
8135 | } _resultobj = Py_BuildValue("l",_result); | |
8136 | return _resultobj; | |
8137 | } | |
8138 | ||
8139 | #define wxDC_LogicalToDeviceXRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceXRel(_swigarg0)) | |
8140 | static PyObject *_wrap_wxDC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8141 | PyObject * _resultobj; | |
8142 | long _result; | |
8143 | wxDC * _arg0; | |
8144 | long _arg1; | |
8145 | PyObject * _argo0 = 0; | |
8146 | char *_kwnames[] = { "self","x", NULL }; | |
8147 | ||
8148 | self = self; | |
8149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceXRel",_kwnames,&_argo0,&_arg1)) | |
8150 | return NULL; | |
8151 | if (_argo0) { | |
8152 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8153 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8154 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceXRel. Expected _wxDC_p."); | |
8155 | return NULL; | |
8156 | } | |
8157 | } | |
8158 | { | |
0e2ff151 | 8159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 8160 | _result = (long )wxDC_LogicalToDeviceXRel(_arg0,_arg1); |
e6056257 | 8161 | |
0e2ff151 | 8162 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8163 | if (PyErr_Occurred()) return NULL; |
8164 | } _resultobj = Py_BuildValue("l",_result); | |
8165 | return _resultobj; | |
8166 | } | |
8167 | ||
8168 | #define wxDC_LogicalToDeviceY(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceY(_swigarg0)) | |
8169 | static PyObject *_wrap_wxDC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8170 | PyObject * _resultobj; | |
8171 | long _result; | |
8172 | wxDC * _arg0; | |
8173 | long _arg1; | |
8174 | PyObject * _argo0 = 0; | |
8175 | char *_kwnames[] = { "self","y", NULL }; | |
8176 | ||
8177 | self = self; | |
8178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceY",_kwnames,&_argo0,&_arg1)) | |
8179 | return NULL; | |
8180 | if (_argo0) { | |
8181 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8182 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8183 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceY. Expected _wxDC_p."); | |
8184 | return NULL; | |
8185 | } | |
8186 | } | |
8187 | { | |
0e2ff151 | 8188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 8189 | _result = (long )wxDC_LogicalToDeviceY(_arg0,_arg1); |
e6056257 | 8190 | |
0e2ff151 | 8191 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8192 | if (PyErr_Occurred()) return NULL; |
8193 | } _resultobj = Py_BuildValue("l",_result); | |
8194 | return _resultobj; | |
8195 | } | |
8196 | ||
8197 | #define wxDC_LogicalToDeviceYRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceYRel(_swigarg0)) | |
8198 | static PyObject *_wrap_wxDC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8199 | PyObject * _resultobj; | |
8200 | long _result; | |
8201 | wxDC * _arg0; | |
8202 | long _arg1; | |
8203 | PyObject * _argo0 = 0; | |
8204 | char *_kwnames[] = { "self","y", NULL }; | |
8205 | ||
8206 | self = self; | |
8207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceYRel",_kwnames,&_argo0,&_arg1)) | |
8208 | return NULL; | |
8209 | if (_argo0) { | |
8210 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8211 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8212 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceYRel. Expected _wxDC_p."); | |
8213 | return NULL; | |
8214 | } | |
8215 | } | |
8216 | { | |
0e2ff151 | 8217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 8218 | _result = (long )wxDC_LogicalToDeviceYRel(_arg0,_arg1); |
e6056257 | 8219 | |
0e2ff151 | 8220 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8221 | if (PyErr_Occurred()) return NULL; |
8222 | } _resultobj = Py_BuildValue("l",_result); | |
8223 | return _resultobj; | |
8224 | } | |
8225 | ||
8226 | #define wxDC_MaxX(_swigobj) (_swigobj->MaxX()) | |
8227 | static PyObject *_wrap_wxDC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8228 | PyObject * _resultobj; | |
8229 | long _result; | |
8230 | wxDC * _arg0; | |
8231 | PyObject * _argo0 = 0; | |
8232 | char *_kwnames[] = { "self", NULL }; | |
8233 | ||
8234 | self = self; | |
8235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MaxX",_kwnames,&_argo0)) | |
8236 | return NULL; | |
8237 | if (_argo0) { | |
8238 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8239 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8240 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MaxX. Expected _wxDC_p."); | |
8241 | return NULL; | |
8242 | } | |
8243 | } | |
8244 | { | |
0e2ff151 | 8245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 8246 | _result = (long )wxDC_MaxX(_arg0); |
e6056257 | 8247 | |
0e2ff151 | 8248 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8249 | if (PyErr_Occurred()) return NULL; |
8250 | } _resultobj = Py_BuildValue("l",_result); | |
8251 | return _resultobj; | |
8252 | } | |
8253 | ||
8254 | #define wxDC_MaxY(_swigobj) (_swigobj->MaxY()) | |
8255 | static PyObject *_wrap_wxDC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8256 | PyObject * _resultobj; | |
8257 | long _result; | |
8258 | wxDC * _arg0; | |
8259 | PyObject * _argo0 = 0; | |
8260 | char *_kwnames[] = { "self", NULL }; | |
8261 | ||
8262 | self = self; | |
8263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MaxY",_kwnames,&_argo0)) | |
8264 | return NULL; | |
8265 | if (_argo0) { | |
8266 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8267 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8268 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MaxY. Expected _wxDC_p."); | |
8269 | return NULL; | |
8270 | } | |
8271 | } | |
8272 | { | |
0e2ff151 | 8273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 8274 | _result = (long )wxDC_MaxY(_arg0); |
e6056257 | 8275 | |
0e2ff151 | 8276 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8277 | if (PyErr_Occurred()) return NULL; |
8278 | } _resultobj = Py_BuildValue("l",_result); | |
8279 | return _resultobj; | |
8280 | } | |
8281 | ||
8282 | #define wxDC_MinX(_swigobj) (_swigobj->MinX()) | |
8283 | static PyObject *_wrap_wxDC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8284 | PyObject * _resultobj; | |
8285 | long _result; | |
8286 | wxDC * _arg0; | |
8287 | PyObject * _argo0 = 0; | |
8288 | char *_kwnames[] = { "self", NULL }; | |
8289 | ||
8290 | self = self; | |
8291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MinX",_kwnames,&_argo0)) | |
8292 | return NULL; | |
8293 | if (_argo0) { | |
8294 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8295 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8296 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MinX. Expected _wxDC_p."); | |
8297 | return NULL; | |
8298 | } | |
8299 | } | |
8300 | { | |
0e2ff151 | 8301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 8302 | _result = (long )wxDC_MinX(_arg0); |
e6056257 | 8303 | |
0e2ff151 | 8304 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8305 | if (PyErr_Occurred()) return NULL; |
8306 | } _resultobj = Py_BuildValue("l",_result); | |
8307 | return _resultobj; | |
8308 | } | |
8309 | ||
8310 | #define wxDC_MinY(_swigobj) (_swigobj->MinY()) | |
8311 | static PyObject *_wrap_wxDC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8312 | PyObject * _resultobj; | |
8313 | long _result; | |
8314 | wxDC * _arg0; | |
8315 | PyObject * _argo0 = 0; | |
8316 | char *_kwnames[] = { "self", NULL }; | |
8317 | ||
8318 | self = self; | |
8319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MinY",_kwnames,&_argo0)) | |
8320 | return NULL; | |
8321 | if (_argo0) { | |
8322 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8323 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8324 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MinY. Expected _wxDC_p."); | |
8325 | return NULL; | |
8326 | } | |
8327 | } | |
8328 | { | |
0e2ff151 | 8329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 8330 | _result = (long )wxDC_MinY(_arg0); |
e6056257 | 8331 | |
0e2ff151 | 8332 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8333 | if (PyErr_Occurred()) return NULL; |
8334 | } _resultobj = Py_BuildValue("l",_result); | |
8335 | return _resultobj; | |
8336 | } | |
8337 | ||
8338 | #define wxDC_Ok(_swigobj) (_swigobj->Ok()) | |
8339 | static PyObject *_wrap_wxDC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8340 | PyObject * _resultobj; | |
8341 | bool _result; | |
8342 | wxDC * _arg0; | |
8343 | PyObject * _argo0 = 0; | |
8344 | char *_kwnames[] = { "self", NULL }; | |
8345 | ||
8346 | self = self; | |
8347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_Ok",_kwnames,&_argo0)) | |
8348 | return NULL; | |
8349 | if (_argo0) { | |
8350 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8351 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8352 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Ok. Expected _wxDC_p."); | |
8353 | return NULL; | |
8354 | } | |
8355 | } | |
8356 | { | |
0e2ff151 | 8357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 8358 | _result = (bool )wxDC_Ok(_arg0); |
e6056257 | 8359 | |
0e2ff151 | 8360 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8361 | if (PyErr_Occurred()) return NULL; |
8362 | } _resultobj = Py_BuildValue("i",_result); | |
8363 | return _resultobj; | |
8364 | } | |
8365 | ||
8366 | #define wxDC_SetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDeviceOrigin(_swigarg0,_swigarg1)) | |
8367 | static PyObject *_wrap_wxDC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8368 | PyObject * _resultobj; | |
8369 | wxDC * _arg0; | |
8370 | long _arg1; | |
8371 | long _arg2; | |
8372 | PyObject * _argo0 = 0; | |
8373 | char *_kwnames[] = { "self","x","y", NULL }; | |
8374 | ||
8375 | self = self; | |
8376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_SetDeviceOrigin",_kwnames,&_argo0,&_arg1,&_arg2)) | |
8377 | return NULL; | |
8378 | if (_argo0) { | |
8379 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8380 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8381 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetDeviceOrigin. Expected _wxDC_p."); | |
8382 | return NULL; | |
8383 | } | |
8384 | } | |
8385 | { | |
0e2ff151 | 8386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 8387 | wxDC_SetDeviceOrigin(_arg0,_arg1,_arg2); |
e6056257 | 8388 | |
0e2ff151 | 8389 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8390 | if (PyErr_Occurred()) return NULL; |
8391 | } Py_INCREF(Py_None); | |
8392 | _resultobj = Py_None; | |
8393 | return _resultobj; | |
8394 | } | |
8395 | ||
8396 | #define wxDC_SetBackground(_swigobj,_swigarg0) (_swigobj->SetBackground(_swigarg0)) | |
8397 | static PyObject *_wrap_wxDC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8398 | PyObject * _resultobj; | |
8399 | wxDC * _arg0; | |
8400 | wxBrush * _arg1; | |
8401 | PyObject * _argo0 = 0; | |
8402 | PyObject * _argo1 = 0; | |
8403 | char *_kwnames[] = { "self","brush", NULL }; | |
8404 | ||
8405 | self = self; | |
8406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetBackground",_kwnames,&_argo0,&_argo1)) | |
8407 | return NULL; | |
8408 | if (_argo0) { | |
8409 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8410 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8411 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBackground. Expected _wxDC_p."); | |
8412 | return NULL; | |
8413 | } | |
8414 | } | |
8415 | if (_argo1) { | |
8416 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8417 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) { | |
8418 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetBackground. Expected _wxBrush_p."); | |
8419 | return NULL; | |
8420 | } | |
8421 | } | |
8422 | { | |
0e2ff151 | 8423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 8424 | wxDC_SetBackground(_arg0,*_arg1); |
e6056257 | 8425 | |
0e2ff151 | 8426 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8427 | if (PyErr_Occurred()) return NULL; |
8428 | } Py_INCREF(Py_None); | |
8429 | _resultobj = Py_None; | |
8430 | return _resultobj; | |
8431 | } | |
8432 | ||
8433 | #define wxDC_SetBackgroundMode(_swigobj,_swigarg0) (_swigobj->SetBackgroundMode(_swigarg0)) | |
8434 | static PyObject *_wrap_wxDC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8435 | PyObject * _resultobj; | |
8436 | wxDC * _arg0; | |
8437 | int _arg1; | |
8438 | PyObject * _argo0 = 0; | |
8439 | char *_kwnames[] = { "self","mode", NULL }; | |
8440 | ||
8441 | self = self; | |
8442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetBackgroundMode",_kwnames,&_argo0,&_arg1)) | |
8443 | return NULL; | |
8444 | if (_argo0) { | |
8445 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8446 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8447 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBackgroundMode. Expected _wxDC_p."); | |
8448 | return NULL; | |
8449 | } | |
8450 | } | |
8451 | { | |
0e2ff151 | 8452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 8453 | wxDC_SetBackgroundMode(_arg0,_arg1); |
e6056257 | 8454 | |
0e2ff151 | 8455 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8456 | if (PyErr_Occurred()) return NULL; |
8457 | } Py_INCREF(Py_None); | |
8458 | _resultobj = Py_None; | |
8459 | return _resultobj; | |
8460 | } | |
8461 | ||
8462 | #define wxDC_SetClippingRegion(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetClippingRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
8463 | static PyObject *_wrap_wxDC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8464 | PyObject * _resultobj; | |
8465 | wxDC * _arg0; | |
8466 | long _arg1; | |
8467 | long _arg2; | |
8468 | long _arg3; | |
8469 | long _arg4; | |
8470 | PyObject * _argo0 = 0; | |
8471 | char *_kwnames[] = { "self","x","y","width","height", NULL }; | |
8472 | ||
8473 | self = self; | |
8474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_SetClippingRegion",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
8475 | return NULL; | |
8476 | if (_argo0) { | |
8477 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8478 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8479 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetClippingRegion. Expected _wxDC_p."); | |
8480 | return NULL; | |
8481 | } | |
8482 | } | |
8483 | { | |
0e2ff151 | 8484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 8485 | wxDC_SetClippingRegion(_arg0,_arg1,_arg2,_arg3,_arg4); |
e6056257 | 8486 | |
0e2ff151 | 8487 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8488 | if (PyErr_Occurred()) return NULL; |
8489 | } Py_INCREF(Py_None); | |
8490 | _resultobj = Py_None; | |
8491 | return _resultobj; | |
8492 | } | |
8493 | ||
8494 | #define wxDC_SetClippingRegionAsRegion(_swigobj,_swigarg0) (_swigobj->SetClippingRegion(_swigarg0)) | |
8495 | static PyObject *_wrap_wxDC_SetClippingRegionAsRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8496 | PyObject * _resultobj; | |
8497 | wxDC * _arg0; | |
8498 | wxRegion * _arg1; | |
8499 | PyObject * _argo0 = 0; | |
8500 | PyObject * _argo1 = 0; | |
8501 | char *_kwnames[] = { "self","region", NULL }; | |
8502 | ||
8503 | self = self; | |
8504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetClippingRegionAsRegion",_kwnames,&_argo0,&_argo1)) | |
8505 | return NULL; | |
8506 | if (_argo0) { | |
8507 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8508 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8509 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetClippingRegionAsRegion. Expected _wxDC_p."); | |
8510 | return NULL; | |
8511 | } | |
8512 | } | |
8513 | if (_argo1) { | |
8514 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8515 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) { | |
8516 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetClippingRegionAsRegion. Expected _wxRegion_p."); | |
8517 | return NULL; | |
8518 | } | |
8519 | } | |
8520 | { | |
0e2ff151 | 8521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 8522 | wxDC_SetClippingRegionAsRegion(_arg0,*_arg1); |
e6056257 | 8523 | |
0e2ff151 | 8524 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8525 | if (PyErr_Occurred()) return NULL; |
8526 | } Py_INCREF(Py_None); | |
8527 | _resultobj = Py_None; | |
8528 | return _resultobj; | |
8529 | } | |
8530 | ||
8531 | #define wxDC_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0)) | |
8532 | static PyObject *_wrap_wxDC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8533 | PyObject * _resultobj; | |
8534 | wxDC * _arg0; | |
8535 | wxPalette * _arg1; | |
8536 | PyObject * _argo0 = 0; | |
8537 | PyObject * _argo1 = 0; | |
8538 | char *_kwnames[] = { "self","colourMap", NULL }; | |
8539 | ||
8540 | self = self; | |
8541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetPalette",_kwnames,&_argo0,&_argo1)) | |
8542 | return NULL; | |
8543 | if (_argo0) { | |
8544 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8545 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8546 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetPalette. Expected _wxDC_p."); | |
8547 | return NULL; | |
8548 | } | |
8549 | } | |
8550 | if (_argo1) { | |
8551 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8552 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPalette_p")) { | |
8553 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetPalette. Expected _wxPalette_p."); | |
8554 | return NULL; | |
8555 | } | |
8556 | } | |
8557 | { | |
0e2ff151 | 8558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 8559 | wxDC_SetPalette(_arg0,*_arg1); |
e6056257 | 8560 | |
0e2ff151 | 8561 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8562 | if (PyErr_Occurred()) return NULL; |
8563 | } Py_INCREF(Py_None); | |
8564 | _resultobj = Py_None; | |
8565 | return _resultobj; | |
8566 | } | |
8567 | ||
8568 | #define wxDC_SetBrush(_swigobj,_swigarg0) (_swigobj->SetBrush(_swigarg0)) | |
8569 | static PyObject *_wrap_wxDC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8570 | PyObject * _resultobj; | |
8571 | wxDC * _arg0; | |
8572 | wxBrush * _arg1; | |
8573 | PyObject * _argo0 = 0; | |
8574 | PyObject * _argo1 = 0; | |
8575 | char *_kwnames[] = { "self","brush", NULL }; | |
8576 | ||
8577 | self = self; | |
8578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetBrush",_kwnames,&_argo0,&_argo1)) | |
8579 | return NULL; | |
8580 | if (_argo0) { | |
8581 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8582 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8583 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBrush. Expected _wxDC_p."); | |
8584 | return NULL; | |
8585 | } | |
8586 | } | |
8587 | if (_argo1) { | |
8588 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8589 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) { | |
8590 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetBrush. Expected _wxBrush_p."); | |
8591 | return NULL; | |
8592 | } | |
8593 | } | |
8594 | { | |
0e2ff151 | 8595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 8596 | wxDC_SetBrush(_arg0,*_arg1); |
e6056257 | 8597 | |
0e2ff151 | 8598 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8599 | if (PyErr_Occurred()) return NULL; |
8600 | } Py_INCREF(Py_None); | |
8601 | _resultobj = Py_None; | |
8602 | return _resultobj; | |
8603 | } | |
8604 | ||
8605 | #define wxDC_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) | |
8606 | static PyObject *_wrap_wxDC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8607 | PyObject * _resultobj; | |
8608 | wxDC * _arg0; | |
8609 | wxFont * _arg1; | |
8610 | PyObject * _argo0 = 0; | |
8611 | PyObject * _argo1 = 0; | |
8612 | char *_kwnames[] = { "self","font", NULL }; | |
8613 | ||
8614 | self = self; | |
8615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetFont",_kwnames,&_argo0,&_argo1)) | |
8616 | return NULL; | |
8617 | if (_argo0) { | |
8618 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8619 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8620 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetFont. Expected _wxDC_p."); | |
8621 | return NULL; | |
8622 | } | |
8623 | } | |
8624 | if (_argo1) { | |
8625 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8626 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
8627 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetFont. Expected _wxFont_p."); | |
8628 | return NULL; | |
8629 | } | |
8630 | } | |
8631 | { | |
0e2ff151 | 8632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 8633 | wxDC_SetFont(_arg0,*_arg1); |
e6056257 | 8634 | |
0e2ff151 | 8635 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8636 | if (PyErr_Occurred()) return NULL; |
8637 | } Py_INCREF(Py_None); | |
8638 | _resultobj = Py_None; | |
8639 | return _resultobj; | |
8640 | } | |
8641 | ||
8642 | #define wxDC_SetLogicalFunction(_swigobj,_swigarg0) (_swigobj->SetLogicalFunction(_swigarg0)) | |
8643 | static PyObject *_wrap_wxDC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8644 | PyObject * _resultobj; | |
8645 | wxDC * _arg0; | |
8646 | int _arg1; | |
8647 | PyObject * _argo0 = 0; | |
8648 | char *_kwnames[] = { "self","function", NULL }; | |
8649 | ||
8650 | self = self; | |
8651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetLogicalFunction",_kwnames,&_argo0,&_arg1)) | |
8652 | return NULL; | |
8653 | if (_argo0) { | |
8654 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8655 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8656 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalFunction. Expected _wxDC_p."); | |
8657 | return NULL; | |
8658 | } | |
8659 | } | |
8660 | { | |
0e2ff151 | 8661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 8662 | wxDC_SetLogicalFunction(_arg0,_arg1); |
e6056257 | 8663 | |
0e2ff151 | 8664 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8665 | if (PyErr_Occurred()) return NULL; |
8666 | } Py_INCREF(Py_None); | |
8667 | _resultobj = Py_None; | |
8668 | return _resultobj; | |
8669 | } | |
8670 | ||
8671 | #define wxDC_SetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalScale(_swigarg0,_swigarg1)) | |
8672 | static PyObject *_wrap_wxDC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8673 | PyObject * _resultobj; | |
8674 | wxDC * _arg0; | |
8675 | double _arg1; | |
8676 | double _arg2; | |
8677 | PyObject * _argo0 = 0; | |
8678 | char *_kwnames[] = { "self","x","y", NULL }; | |
8679 | ||
8680 | self = self; | |
8681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxDC_SetLogicalScale",_kwnames,&_argo0,&_arg1,&_arg2)) | |
8682 | return NULL; | |
8683 | if (_argo0) { | |
8684 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8685 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8686 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalScale. Expected _wxDC_p."); | |
8687 | return NULL; | |
8688 | } | |
8689 | } | |
8690 | { | |
0e2ff151 | 8691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 8692 | wxDC_SetLogicalScale(_arg0,_arg1,_arg2); |
e6056257 | 8693 | |
0e2ff151 | 8694 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8695 | if (PyErr_Occurred()) return NULL; |
8696 | } Py_INCREF(Py_None); | |
8697 | _resultobj = Py_None; | |
8698 | return _resultobj; | |
8699 | } | |
8700 | ||
8701 | #define wxDC_SetMapMode(_swigobj,_swigarg0) (_swigobj->SetMapMode(_swigarg0)) | |
8702 | static PyObject *_wrap_wxDC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8703 | PyObject * _resultobj; | |
8704 | wxDC * _arg0; | |
8705 | int _arg1; | |
8706 | PyObject * _argo0 = 0; | |
8707 | char *_kwnames[] = { "self","mode", NULL }; | |
8708 | ||
8709 | self = self; | |
8710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetMapMode",_kwnames,&_argo0,&_arg1)) | |
8711 | return NULL; | |
8712 | if (_argo0) { | |
8713 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8714 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8715 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetMapMode. Expected _wxDC_p."); | |
8716 | return NULL; | |
8717 | } | |
8718 | } | |
8719 | { | |
0e2ff151 | 8720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 8721 | wxDC_SetMapMode(_arg0,_arg1); |
e6056257 | 8722 | |
0e2ff151 | 8723 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8724 | if (PyErr_Occurred()) return NULL; |
8725 | } Py_INCREF(Py_None); | |
8726 | _resultobj = Py_None; | |
8727 | return _resultobj; | |
8728 | } | |
8729 | ||
8730 | #define wxDC_SetOptimization(_swigobj,_swigarg0) (_swigobj->SetOptimization(_swigarg0)) | |
8731 | static PyObject *_wrap_wxDC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8732 | PyObject * _resultobj; | |
8733 | wxDC * _arg0; | |
8734 | bool _arg1; | |
8735 | PyObject * _argo0 = 0; | |
8736 | int tempbool1; | |
8737 | char *_kwnames[] = { "self","optimize", NULL }; | |
8738 | ||
8739 | self = self; | |
8740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetOptimization",_kwnames,&_argo0,&tempbool1)) | |
8741 | return NULL; | |
8742 | if (_argo0) { | |
8743 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8744 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8745 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetOptimization. Expected _wxDC_p."); | |
8746 | return NULL; | |
8747 | } | |
8748 | } | |
8749 | _arg1 = (bool ) tempbool1; | |
8750 | { | |
0e2ff151 | 8751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 8752 | wxDC_SetOptimization(_arg0,_arg1); |
e6056257 | 8753 | |
0e2ff151 | 8754 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8755 | if (PyErr_Occurred()) return NULL; |
8756 | } Py_INCREF(Py_None); | |
8757 | _resultobj = Py_None; | |
8758 | return _resultobj; | |
8759 | } | |
8760 | ||
8761 | #define wxDC_SetPen(_swigobj,_swigarg0) (_swigobj->SetPen(_swigarg0)) | |
8762 | static PyObject *_wrap_wxDC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8763 | PyObject * _resultobj; | |
8764 | wxDC * _arg0; | |
8765 | wxPen * _arg1; | |
8766 | PyObject * _argo0 = 0; | |
8767 | PyObject * _argo1 = 0; | |
8768 | char *_kwnames[] = { "self","pen", NULL }; | |
8769 | ||
8770 | self = self; | |
8771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetPen",_kwnames,&_argo0,&_argo1)) | |
8772 | return NULL; | |
8773 | if (_argo0) { | |
8774 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8775 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8776 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetPen. Expected _wxDC_p."); | |
8777 | return NULL; | |
8778 | } | |
8779 | } | |
8780 | if (_argo1) { | |
8781 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8782 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) { | |
8783 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetPen. Expected _wxPen_p."); | |
8784 | return NULL; | |
8785 | } | |
8786 | } | |
8787 | { | |
0e2ff151 | 8788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 8789 | wxDC_SetPen(_arg0,*_arg1); |
e6056257 | 8790 | |
0e2ff151 | 8791 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8792 | if (PyErr_Occurred()) return NULL; |
8793 | } Py_INCREF(Py_None); | |
8794 | _resultobj = Py_None; | |
8795 | return _resultobj; | |
8796 | } | |
8797 | ||
8798 | #define wxDC_SetTextBackground(_swigobj,_swigarg0) (_swigobj->SetTextBackground(_swigarg0)) | |
8799 | static PyObject *_wrap_wxDC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8800 | PyObject * _resultobj; | |
8801 | wxDC * _arg0; | |
8802 | wxColour * _arg1; | |
8803 | PyObject * _argo0 = 0; | |
8804 | wxColour temp; | |
8805 | PyObject * _obj1 = 0; | |
8806 | char *_kwnames[] = { "self","colour", NULL }; | |
8807 | ||
8808 | self = self; | |
8809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetTextBackground",_kwnames,&_argo0,&_obj1)) | |
8810 | return NULL; | |
8811 | if (_argo0) { | |
8812 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8813 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8814 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetTextBackground. Expected _wxDC_p."); | |
8815 | return NULL; | |
8816 | } | |
8817 | } | |
8818 | { | |
8819 | _arg1 = &temp; | |
8820 | if (! wxColour_helper(_obj1, &_arg1)) | |
8821 | return NULL; | |
8822 | } | |
8823 | { | |
0e2ff151 | 8824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 8825 | wxDC_SetTextBackground(_arg0,*_arg1); |
e6056257 | 8826 | |
0e2ff151 | 8827 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8828 | if (PyErr_Occurred()) return NULL; |
8829 | } Py_INCREF(Py_None); | |
8830 | _resultobj = Py_None; | |
8831 | return _resultobj; | |
8832 | } | |
8833 | ||
8834 | #define wxDC_SetTextForeground(_swigobj,_swigarg0) (_swigobj->SetTextForeground(_swigarg0)) | |
8835 | static PyObject *_wrap_wxDC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8836 | PyObject * _resultobj; | |
8837 | wxDC * _arg0; | |
8838 | wxColour * _arg1; | |
8839 | PyObject * _argo0 = 0; | |
8840 | wxColour temp; | |
8841 | PyObject * _obj1 = 0; | |
8842 | char *_kwnames[] = { "self","colour", NULL }; | |
8843 | ||
8844 | self = self; | |
8845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetTextForeground",_kwnames,&_argo0,&_obj1)) | |
8846 | return NULL; | |
8847 | if (_argo0) { | |
8848 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8849 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8850 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetTextForeground. Expected _wxDC_p."); | |
8851 | return NULL; | |
8852 | } | |
8853 | } | |
8854 | { | |
8855 | _arg1 = &temp; | |
8856 | if (! wxColour_helper(_obj1, &_arg1)) | |
8857 | return NULL; | |
8858 | } | |
8859 | { | |
0e2ff151 | 8860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 8861 | wxDC_SetTextForeground(_arg0,*_arg1); |
e6056257 | 8862 | |
0e2ff151 | 8863 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8864 | if (PyErr_Occurred()) return NULL; |
8865 | } Py_INCREF(Py_None); | |
8866 | _resultobj = Py_None; | |
8867 | return _resultobj; | |
8868 | } | |
8869 | ||
8870 | #define wxDC_SetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetUserScale(_swigarg0,_swigarg1)) | |
8871 | static PyObject *_wrap_wxDC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8872 | PyObject * _resultobj; | |
8873 | wxDC * _arg0; | |
8874 | double _arg1; | |
8875 | double _arg2; | |
8876 | PyObject * _argo0 = 0; | |
8877 | char *_kwnames[] = { "self","x_scale","y_scale", NULL }; | |
8878 | ||
8879 | self = self; | |
8880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxDC_SetUserScale",_kwnames,&_argo0,&_arg1,&_arg2)) | |
8881 | return NULL; | |
8882 | if (_argo0) { | |
8883 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8884 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8885 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetUserScale. Expected _wxDC_p."); | |
8886 | return NULL; | |
8887 | } | |
8888 | } | |
8889 | { | |
0e2ff151 | 8890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 8891 | wxDC_SetUserScale(_arg0,_arg1,_arg2); |
e6056257 | 8892 | |
0e2ff151 | 8893 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8894 | if (PyErr_Occurred()) return NULL; |
8895 | } Py_INCREF(Py_None); | |
8896 | _resultobj = Py_None; | |
8897 | return _resultobj; | |
8898 | } | |
8899 | ||
8900 | #define wxDC_StartDoc(_swigobj,_swigarg0) (_swigobj->StartDoc(_swigarg0)) | |
8901 | static PyObject *_wrap_wxDC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8902 | PyObject * _resultobj; | |
8903 | bool _result; | |
8904 | wxDC * _arg0; | |
8905 | wxString * _arg1; | |
8906 | PyObject * _argo0 = 0; | |
8907 | PyObject * _obj1 = 0; | |
8908 | char *_kwnames[] = { "self","message", NULL }; | |
8909 | ||
8910 | self = self; | |
8911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_StartDoc",_kwnames,&_argo0,&_obj1)) | |
8912 | return NULL; | |
8913 | if (_argo0) { | |
8914 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8915 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8916 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_StartDoc. Expected _wxDC_p."); | |
8917 | return NULL; | |
8918 | } | |
8919 | } | |
8920 | { | |
6824d4f9 RD |
8921 | _arg1 = wxString_in_helper(_obj1); |
8922 | if (_arg1 == NULL) | |
e6056257 | 8923 | return NULL; |
e6056257 RD |
8924 | } |
8925 | { | |
0e2ff151 | 8926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 8927 | _result = (bool )wxDC_StartDoc(_arg0,*_arg1); |
e6056257 | 8928 | |
0e2ff151 | 8929 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8930 | if (PyErr_Occurred()) return NULL; |
8931 | } _resultobj = Py_BuildValue("i",_result); | |
8932 | { | |
8933 | if (_obj1) | |
8934 | delete _arg1; | |
8935 | } | |
8936 | return _resultobj; | |
8937 | } | |
8938 | ||
8939 | #define wxDC_StartPage(_swigobj) (_swigobj->StartPage()) | |
8940 | static PyObject *_wrap_wxDC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8941 | PyObject * _resultobj; | |
8942 | wxDC * _arg0; | |
8943 | PyObject * _argo0 = 0; | |
8944 | char *_kwnames[] = { "self", NULL }; | |
8945 | ||
8946 | self = self; | |
8947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_StartPage",_kwnames,&_argo0)) | |
8948 | return NULL; | |
8949 | if (_argo0) { | |
8950 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8951 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8952 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_StartPage. Expected _wxDC_p."); | |
8953 | return NULL; | |
8954 | } | |
8955 | } | |
8956 | { | |
0e2ff151 | 8957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 8958 | wxDC_StartPage(_arg0); |
e6056257 | 8959 | |
0e2ff151 | 8960 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
8961 | if (PyErr_Occurred()) return NULL; |
8962 | } Py_INCREF(Py_None); | |
8963 | _resultobj = Py_None; | |
8964 | return _resultobj; | |
8965 | } | |
8966 | ||
8967 | #define wxDC_DrawBitmap(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
8968 | static PyObject *_wrap_wxDC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8969 | PyObject * _resultobj; | |
8970 | wxDC * _arg0; | |
8971 | wxBitmap * _arg1; | |
8972 | long _arg2; | |
8973 | long _arg3; | |
8974 | int _arg4 = (int ) FALSE; | |
8975 | PyObject * _argo0 = 0; | |
8976 | PyObject * _argo1 = 0; | |
8977 | char *_kwnames[] = { "self","bitmap","x","y","useMask", NULL }; | |
8978 | ||
8979 | self = self; | |
8980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll|i:wxDC_DrawBitmap",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_arg4)) | |
8981 | return NULL; | |
8982 | if (_argo0) { | |
8983 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8984 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8985 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawBitmap. Expected _wxDC_p."); | |
8986 | return NULL; | |
8987 | } | |
8988 | } | |
8989 | if (_argo1) { | |
8990 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8991 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
8992 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_DrawBitmap. Expected _wxBitmap_p."); | |
8993 | return NULL; | |
8994 | } | |
8995 | } | |
8996 | { | |
0e2ff151 | 8997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 8998 | wxDC_DrawBitmap(_arg0,*_arg1,_arg2,_arg3,_arg4); |
e6056257 | 8999 | |
0e2ff151 | 9000 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9001 | if (PyErr_Occurred()) return NULL; |
9002 | } Py_INCREF(Py_None); | |
9003 | _resultobj = Py_None; | |
9004 | return _resultobj; | |
9005 | } | |
9006 | ||
9007 | #define wxDC_CanDrawBitmap(_swigobj) (_swigobj->CanDrawBitmap()) | |
9008 | static PyObject *_wrap_wxDC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9009 | PyObject * _resultobj; | |
9010 | bool _result; | |
9011 | wxDC * _arg0; | |
9012 | PyObject * _argo0 = 0; | |
9013 | char *_kwnames[] = { "self", NULL }; | |
9014 | ||
9015 | self = self; | |
9016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_CanDrawBitmap",_kwnames,&_argo0)) | |
9017 | return NULL; | |
9018 | if (_argo0) { | |
9019 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9020 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9021 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CanDrawBitmap. Expected _wxDC_p."); | |
9022 | return NULL; | |
9023 | } | |
9024 | } | |
9025 | { | |
0e2ff151 | 9026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 9027 | _result = (bool )wxDC_CanDrawBitmap(_arg0); |
e6056257 | 9028 | |
0e2ff151 | 9029 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9030 | if (PyErr_Occurred()) return NULL; |
9031 | } _resultobj = Py_BuildValue("i",_result); | |
9032 | return _resultobj; | |
9033 | } | |
9034 | ||
9035 | #define wxDC_CanGetTextExtent(_swigobj) (_swigobj->CanGetTextExtent()) | |
9036 | static PyObject *_wrap_wxDC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9037 | PyObject * _resultobj; | |
9038 | bool _result; | |
9039 | wxDC * _arg0; | |
9040 | PyObject * _argo0 = 0; | |
9041 | char *_kwnames[] = { "self", NULL }; | |
9042 | ||
9043 | self = self; | |
9044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_CanGetTextExtent",_kwnames,&_argo0)) | |
9045 | return NULL; | |
9046 | if (_argo0) { | |
9047 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9048 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9049 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CanGetTextExtent. Expected _wxDC_p."); | |
9050 | return NULL; | |
9051 | } | |
9052 | } | |
9053 | { | |
0e2ff151 | 9054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 9055 | _result = (bool )wxDC_CanGetTextExtent(_arg0); |
e6056257 | 9056 | |
0e2ff151 | 9057 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9058 | if (PyErr_Occurred()) return NULL; |
9059 | } _resultobj = Py_BuildValue("i",_result); | |
9060 | return _resultobj; | |
9061 | } | |
9062 | ||
9063 | #define wxDC_GetDepth(_swigobj) (_swigobj->GetDepth()) | |
9064 | static PyObject *_wrap_wxDC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9065 | PyObject * _resultobj; | |
9066 | int _result; | |
9067 | wxDC * _arg0; | |
9068 | PyObject * _argo0 = 0; | |
9069 | char *_kwnames[] = { "self", NULL }; | |
9070 | ||
9071 | self = self; | |
9072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetDepth",_kwnames,&_argo0)) | |
9073 | return NULL; | |
9074 | if (_argo0) { | |
9075 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9076 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9077 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetDepth. Expected _wxDC_p."); | |
9078 | return NULL; | |
9079 | } | |
9080 | } | |
9081 | { | |
0e2ff151 | 9082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 9083 | _result = (int )wxDC_GetDepth(_arg0); |
e6056257 | 9084 | |
0e2ff151 | 9085 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9086 | if (PyErr_Occurred()) return NULL; |
9087 | } _resultobj = Py_BuildValue("i",_result); | |
9088 | return _resultobj; | |
9089 | } | |
9090 | ||
9091 | #define wxDC_GetPPI(_swigobj) (_swigobj->GetPPI()) | |
9092 | static PyObject *_wrap_wxDC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9093 | PyObject * _resultobj; | |
9094 | wxSize * _result; | |
9095 | wxDC * _arg0; | |
9096 | PyObject * _argo0 = 0; | |
9097 | char *_kwnames[] = { "self", NULL }; | |
9098 | char _ptemp[128]; | |
9099 | ||
9100 | self = self; | |
9101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetPPI",_kwnames,&_argo0)) | |
9102 | return NULL; | |
9103 | if (_argo0) { | |
9104 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9105 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9106 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPPI. Expected _wxDC_p."); | |
9107 | return NULL; | |
9108 | } | |
9109 | } | |
9110 | { | |
0e2ff151 | 9111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 9112 | _result = new wxSize (wxDC_GetPPI(_arg0)); |
e6056257 | 9113 | |
0e2ff151 | 9114 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9115 | if (PyErr_Occurred()) return NULL; |
9116 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
9117 | _resultobj = Py_BuildValue("s",_ptemp); | |
9118 | return _resultobj; | |
9119 | } | |
9120 | ||
9121 | #define wxDC_GetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalOrigin(_swigarg0,_swigarg1)) | |
9122 | static PyObject *_wrap_wxDC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9123 | PyObject * _resultobj; | |
9124 | wxDC * _arg0; | |
9125 | int * _arg1; | |
9126 | int temp; | |
9127 | int * _arg2; | |
9128 | int temp0; | |
9129 | PyObject * _argo0 = 0; | |
9130 | char *_kwnames[] = { "self", NULL }; | |
9131 | ||
9132 | self = self; | |
9133 | { | |
9134 | _arg1 = &temp; | |
9135 | } | |
9136 | { | |
9137 | _arg2 = &temp0; | |
9138 | } | |
9139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalOrigin",_kwnames,&_argo0)) | |
9140 | return NULL; | |
9141 | if (_argo0) { | |
9142 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9143 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9144 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalOrigin. Expected _wxDC_p."); | |
9145 | return NULL; | |
9146 | } | |
9147 | } | |
9148 | { | |
0e2ff151 | 9149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 9150 | wxDC_GetLogicalOrigin(_arg0,_arg1,_arg2); |
e6056257 | 9151 | |
0e2ff151 | 9152 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9153 | if (PyErr_Occurred()) return NULL; |
9154 | } Py_INCREF(Py_None); | |
9155 | _resultobj = Py_None; | |
9156 | { | |
9157 | PyObject *o; | |
9158 | o = PyInt_FromLong((long) (*_arg1)); | |
9159 | _resultobj = t_output_helper(_resultobj, o); | |
9160 | } | |
9161 | { | |
9162 | PyObject *o; | |
9163 | o = PyInt_FromLong((long) (*_arg2)); | |
9164 | _resultobj = t_output_helper(_resultobj, o); | |
9165 | } | |
9166 | return _resultobj; | |
9167 | } | |
9168 | ||
9169 | #define wxDC_SetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalOrigin(_swigarg0,_swigarg1)) | |
9170 | static PyObject *_wrap_wxDC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9171 | PyObject * _resultobj; | |
9172 | wxDC * _arg0; | |
9173 | int _arg1; | |
9174 | int _arg2; | |
9175 | PyObject * _argo0 = 0; | |
9176 | char *_kwnames[] = { "self","x","y", NULL }; | |
9177 | ||
9178 | self = self; | |
9179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_SetLogicalOrigin",_kwnames,&_argo0,&_arg1,&_arg2)) | |
9180 | return NULL; | |
9181 | if (_argo0) { | |
9182 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9183 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9184 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalOrigin. Expected _wxDC_p."); | |
9185 | return NULL; | |
9186 | } | |
9187 | } | |
9188 | { | |
0e2ff151 | 9189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 9190 | wxDC_SetLogicalOrigin(_arg0,_arg1,_arg2); |
e6056257 | 9191 | |
0e2ff151 | 9192 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9193 | if (PyErr_Occurred()) return NULL; |
9194 | } Py_INCREF(Py_None); | |
9195 | _resultobj = Py_None; | |
9196 | return _resultobj; | |
9197 | } | |
9198 | ||
9199 | #define wxDC_GetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetDeviceOrigin(_swigarg0,_swigarg1)) | |
9200 | static PyObject *_wrap_wxDC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9201 | PyObject * _resultobj; | |
9202 | wxDC * _arg0; | |
9203 | int * _arg1; | |
9204 | int temp; | |
9205 | int * _arg2; | |
9206 | int temp0; | |
9207 | PyObject * _argo0 = 0; | |
9208 | char *_kwnames[] = { "self", NULL }; | |
9209 | ||
9210 | self = self; | |
9211 | { | |
9212 | _arg1 = &temp; | |
9213 | } | |
9214 | { | |
9215 | _arg2 = &temp0; | |
9216 | } | |
9217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetDeviceOrigin",_kwnames,&_argo0)) | |
9218 | return NULL; | |
9219 | if (_argo0) { | |
9220 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9221 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9222 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetDeviceOrigin. Expected _wxDC_p."); | |
9223 | return NULL; | |
9224 | } | |
9225 | } | |
9226 | { | |
0e2ff151 | 9227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 9228 | wxDC_GetDeviceOrigin(_arg0,_arg1,_arg2); |
e6056257 | 9229 | |
0e2ff151 | 9230 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9231 | if (PyErr_Occurred()) return NULL; |
9232 | } Py_INCREF(Py_None); | |
9233 | _resultobj = Py_None; | |
9234 | { | |
9235 | PyObject *o; | |
9236 | o = PyInt_FromLong((long) (*_arg1)); | |
9237 | _resultobj = t_output_helper(_resultobj, o); | |
9238 | } | |
9239 | { | |
9240 | PyObject *o; | |
9241 | o = PyInt_FromLong((long) (*_arg2)); | |
9242 | _resultobj = t_output_helper(_resultobj, o); | |
9243 | } | |
9244 | return _resultobj; | |
9245 | } | |
9246 | ||
9247 | #define wxDC_SetAxisOrientation(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetAxisOrientation(_swigarg0,_swigarg1)) | |
9248 | static PyObject *_wrap_wxDC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9249 | PyObject * _resultobj; | |
9250 | wxDC * _arg0; | |
9251 | bool _arg1; | |
9252 | bool _arg2; | |
9253 | PyObject * _argo0 = 0; | |
9254 | int tempbool1; | |
9255 | int tempbool2; | |
9256 | char *_kwnames[] = { "self","xLeftRight","yBottomUp", NULL }; | |
9257 | ||
9258 | self = self; | |
9259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_SetAxisOrientation",_kwnames,&_argo0,&tempbool1,&tempbool2)) | |
9260 | return NULL; | |
9261 | if (_argo0) { | |
9262 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9263 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9264 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetAxisOrientation. Expected _wxDC_p."); | |
9265 | return NULL; | |
9266 | } | |
9267 | } | |
9268 | _arg1 = (bool ) tempbool1; | |
9269 | _arg2 = (bool ) tempbool2; | |
9270 | { | |
0e2ff151 | 9271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 9272 | wxDC_SetAxisOrientation(_arg0,_arg1,_arg2); |
e6056257 | 9273 | |
0e2ff151 | 9274 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9275 | if (PyErr_Occurred()) return NULL; |
9276 | } Py_INCREF(Py_None); | |
9277 | _resultobj = Py_None; | |
9278 | return _resultobj; | |
9279 | } | |
9280 | ||
9281 | #define wxDC_CalcBoundingBox(_swigobj,_swigarg0,_swigarg1) (_swigobj->CalcBoundingBox(_swigarg0,_swigarg1)) | |
9282 | static PyObject *_wrap_wxDC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9283 | PyObject * _resultobj; | |
9284 | wxDC * _arg0; | |
9285 | int _arg1; | |
9286 | int _arg2; | |
9287 | PyObject * _argo0 = 0; | |
9288 | char *_kwnames[] = { "self","x","y", NULL }; | |
9289 | ||
9290 | self = self; | |
9291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_CalcBoundingBox",_kwnames,&_argo0,&_arg1,&_arg2)) | |
9292 | return NULL; | |
9293 | if (_argo0) { | |
9294 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9295 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9296 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CalcBoundingBox. Expected _wxDC_p."); | |
9297 | return NULL; | |
9298 | } | |
9299 | } | |
9300 | { | |
0e2ff151 | 9301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 9302 | wxDC_CalcBoundingBox(_arg0,_arg1,_arg2); |
e6056257 | 9303 | |
0e2ff151 | 9304 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9305 | if (PyErr_Occurred()) return NULL; |
9306 | } Py_INCREF(Py_None); | |
9307 | _resultobj = Py_None; | |
9308 | return _resultobj; | |
9309 | } | |
9310 | ||
9311 | #define wxDC_ResetBoundingBox(_swigobj) (_swigobj->ResetBoundingBox()) | |
9312 | static PyObject *_wrap_wxDC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9313 | PyObject * _resultobj; | |
9314 | wxDC * _arg0; | |
9315 | PyObject * _argo0 = 0; | |
9316 | char *_kwnames[] = { "self", NULL }; | |
9317 | ||
9318 | self = self; | |
9319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_ResetBoundingBox",_kwnames,&_argo0)) | |
9320 | return NULL; | |
9321 | if (_argo0) { | |
9322 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9323 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9324 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_ResetBoundingBox. Expected _wxDC_p."); | |
9325 | return NULL; | |
9326 | } | |
9327 | } | |
9328 | { | |
0e2ff151 | 9329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 9330 | wxDC_ResetBoundingBox(_arg0); |
e6056257 | 9331 | |
0e2ff151 | 9332 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9333 | if (PyErr_Occurred()) return NULL; |
9334 | } Py_INCREF(Py_None); | |
9335 | _resultobj = Py_None; | |
9336 | return _resultobj; | |
9337 | } | |
9338 | ||
9339 | static PyObject *_wrap_wxDC_GetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9340 | PyObject * _resultobj; | |
9341 | wxDC * _arg0; | |
9342 | int * _arg1; | |
9343 | int temp; | |
9344 | int * _arg2; | |
9345 | int temp0; | |
9346 | int * _arg3; | |
9347 | int temp1; | |
9348 | int * _arg4; | |
9349 | int temp2; | |
9350 | PyObject * _argo0 = 0; | |
9351 | char *_kwnames[] = { "self", NULL }; | |
9352 | ||
9353 | self = self; | |
9354 | { | |
9355 | _arg1 = &temp; | |
9356 | } | |
9357 | { | |
9358 | _arg2 = &temp0; | |
9359 | } | |
9360 | { | |
9361 | _arg3 = &temp1; | |
9362 | } | |
9363 | { | |
9364 | _arg4 = &temp2; | |
9365 | } | |
9366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBoundingBox",_kwnames,&_argo0)) | |
9367 | return NULL; | |
9368 | if (_argo0) { | |
9369 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9370 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9371 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBoundingBox. Expected _wxDC_p."); | |
9372 | return NULL; | |
9373 | } | |
9374 | } | |
9375 | { | |
0e2ff151 | 9376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 9377 | wxDC_GetBoundingBox(_arg0,_arg1,_arg2,_arg3,_arg4); |
e6056257 | 9378 | |
0e2ff151 | 9379 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9380 | if (PyErr_Occurred()) return NULL; |
9381 | } Py_INCREF(Py_None); | |
9382 | _resultobj = Py_None; | |
9383 | { | |
9384 | PyObject *o; | |
9385 | o = PyInt_FromLong((long) (*_arg1)); | |
9386 | _resultobj = t_output_helper(_resultobj, o); | |
9387 | } | |
9388 | { | |
9389 | PyObject *o; | |
9390 | o = PyInt_FromLong((long) (*_arg2)); | |
9391 | _resultobj = t_output_helper(_resultobj, o); | |
9392 | } | |
9393 | { | |
9394 | PyObject *o; | |
9395 | o = PyInt_FromLong((long) (*_arg3)); | |
9396 | _resultobj = t_output_helper(_resultobj, o); | |
9397 | } | |
9398 | { | |
9399 | PyObject *o; | |
9400 | o = PyInt_FromLong((long) (*_arg4)); | |
9401 | _resultobj = t_output_helper(_resultobj, o); | |
9402 | } | |
9403 | return _resultobj; | |
9404 | } | |
9405 | ||
9406 | static PyObject * wxDC__DrawPointList(wxDC *self,PyObject * pyPoints,PyObject * pyPens) { | |
9407 | bool isFastSeq = PyList_Check(pyPoints) || PyTuple_Check(pyPoints); | |
9408 | bool isFastPens = PyList_Check(pyPens) || PyTuple_Check(pyPens); | |
9409 | int numObjs = 0; | |
9410 | int numPens = 0; | |
9411 | wxPen* pen; | |
9412 | PyObject* obj; | |
9413 | int x1, y1; | |
9414 | int i = 0; | |
9415 | ||
9416 | if (!PySequence_Check(pyPoints)) { | |
9417 | goto err0; | |
9418 | } | |
9419 | if (!PySequence_Check(pyPens)) { | |
9420 | goto err1; | |
9421 | } | |
9422 | numObjs = PySequence_Length(pyPoints); | |
9423 | numPens = PySequence_Length(pyPens); | |
9424 | ||
9425 | for (i = 0; i < numObjs; i++) { | |
9426 | // Use a new pen? | |
9427 | if (i < numPens) { | |
9428 | if (isFastPens) { | |
9429 | obj = PySequence_Fast_GET_ITEM(pyPens, i); | |
9430 | } | |
9431 | else { | |
9432 | obj = PySequence_GetItem(pyPens, i); | |
9433 | } | |
9434 | if (SWIG_GetPtrObj(obj, (void **) &pen, "_wxPen_p")) { | |
9435 | if (!isFastPens) | |
9436 | Py_DECREF(obj); | |
9437 | goto err1; | |
9438 | } | |
9439 | ||
9440 | self->SetPen(*pen); | |
9441 | if (!isFastPens) | |
9442 | Py_DECREF(obj); | |
9443 | } | |
9444 | ||
9445 | // Get the point coordinants | |
9446 | if (isFastSeq) { | |
9447 | obj = PySequence_Fast_GET_ITEM(pyPoints, i); | |
9448 | } | |
9449 | else { | |
9450 | obj = PySequence_GetItem(pyPoints, i); | |
9451 | } | |
9452 | if (! _2int_seq_helper(obj, &x1, &y1)) { | |
9453 | if (!isFastPens) | |
9454 | Py_DECREF(obj); | |
9455 | goto err0; | |
9456 | } | |
9457 | ||
9458 | // Now draw the point | |
9459 | self->DrawPoint(x1, y1); | |
9460 | ||
9461 | if (!isFastSeq) | |
9462 | Py_DECREF(obj); | |
9463 | } | |
9464 | ||
9465 | Py_INCREF(Py_None); | |
9466 | return Py_None; | |
9467 | ||
9468 | err1: | |
9469 | PyErr_SetString(PyExc_TypeError, "Expected a sequence of wxPens"); | |
9470 | return NULL; | |
9471 | err0: | |
9472 | PyErr_SetString(PyExc_TypeError, "Expected a sequence of (x,y) sequences."); | |
9473 | return NULL; | |
9474 | } | |
9475 | static PyObject *_wrap_wxDC__DrawPointList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9476 | PyObject * _resultobj; | |
9477 | PyObject * _result; | |
9478 | wxDC * _arg0; | |
9479 | PyObject * _arg1; | |
9480 | PyObject * _arg2; | |
9481 | PyObject * _argo0 = 0; | |
9482 | PyObject * _obj1 = 0; | |
9483 | PyObject * _obj2 = 0; | |
9484 | char *_kwnames[] = { "self","pyPoints","pyPens", NULL }; | |
9485 | ||
9486 | self = self; | |
9487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxDC__DrawPointList",_kwnames,&_argo0,&_obj1,&_obj2)) | |
9488 | return NULL; | |
9489 | if (_argo0) { | |
9490 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9491 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9492 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC__DrawPointList. Expected _wxDC_p."); | |
9493 | return NULL; | |
9494 | } | |
9495 | } | |
9496 | { | |
9497 | _arg1 = _obj1; | |
9498 | } | |
9499 | { | |
9500 | _arg2 = _obj2; | |
9501 | } | |
9502 | { | |
0e2ff151 | 9503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 9504 | _result = (PyObject *)wxDC__DrawPointList(_arg0,_arg1,_arg2); |
e6056257 | 9505 | |
0e2ff151 | 9506 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9507 | if (PyErr_Occurred()) return NULL; |
9508 | }{ | |
9509 | _resultobj = _result; | |
9510 | } | |
9511 | return _resultobj; | |
9512 | } | |
9513 | ||
9514 | static PyObject * wxDC__DrawLineList(wxDC *self,PyObject * pyLines,PyObject * pyPens) { | |
9515 | bool isFastSeq = PyList_Check(pyLines) || PyTuple_Check(pyLines); | |
9516 | bool isFastPens = PyList_Check(pyPens) || PyTuple_Check(pyPens); | |
9517 | int numObjs = 0; | |
9518 | int numPens = 0; | |
9519 | wxPen* pen; | |
9520 | PyObject* obj; | |
9521 | int x1, y1, x2, y2; | |
9522 | int i = 0; | |
9523 | ||
9524 | if (!PySequence_Check(pyLines)) { | |
9525 | goto err0; | |
9526 | } | |
9527 | if (!PySequence_Check(pyPens)) { | |
9528 | goto err1; | |
9529 | } | |
9530 | numObjs = PySequence_Length(pyLines); | |
9531 | numPens = PySequence_Length(pyPens); | |
9532 | ||
9533 | for (i = 0; i < numObjs; i++) { | |
9534 | // Use a new pen? | |
9535 | if (i < numPens) { | |
9536 | if (isFastPens) { | |
9537 | obj = PySequence_Fast_GET_ITEM(pyPens, i); | |
9538 | } | |
9539 | else { | |
9540 | obj = PySequence_GetItem(pyPens, i); | |
9541 | } | |
9542 | if (SWIG_GetPtrObj(obj, (void **) &pen, "_wxPen_p")) { | |
9543 | if (!isFastPens) | |
9544 | Py_DECREF(obj); | |
9545 | goto err1; | |
9546 | } | |
9547 | ||
9548 | self->SetPen(*pen); | |
9549 | if (!isFastPens) | |
9550 | Py_DECREF(obj); | |
9551 | } | |
9552 | ||
9553 | // Get the line coordinants | |
9554 | if (isFastSeq) { | |
9555 | obj = PySequence_Fast_GET_ITEM(pyLines, i); | |
9556 | } | |
9557 | else { | |
9558 | obj = PySequence_GetItem(pyLines, i); | |
9559 | } | |
9560 | if (! _4int_seq_helper(obj, &x1, &y1, &x2, &y2)) { | |
9561 | if (!isFastPens) | |
9562 | Py_DECREF(obj); | |
9563 | goto err0; | |
9564 | } | |
9565 | ||
9566 | // Now draw the line | |
9567 | self->DrawLine(x1, y1, x2, y2); | |
9568 | ||
9569 | if (!isFastSeq) | |
9570 | Py_DECREF(obj); | |
9571 | } | |
9572 | ||
9573 | Py_INCREF(Py_None); | |
9574 | return Py_None; | |
9575 | ||
9576 | err1: | |
9577 | PyErr_SetString(PyExc_TypeError, "Expected a sequence of wxPens"); | |
9578 | return NULL; | |
9579 | err0: | |
9580 | PyErr_SetString(PyExc_TypeError, "Expected a sequence of (x1,y1, x2,y2) sequences."); | |
9581 | return NULL; | |
9582 | } | |
9583 | static PyObject *_wrap_wxDC__DrawLineList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9584 | PyObject * _resultobj; | |
9585 | PyObject * _result; | |
9586 | wxDC * _arg0; | |
9587 | PyObject * _arg1; | |
9588 | PyObject * _arg2; | |
9589 | PyObject * _argo0 = 0; | |
9590 | PyObject * _obj1 = 0; | |
9591 | PyObject * _obj2 = 0; | |
9592 | char *_kwnames[] = { "self","pyLines","pyPens", NULL }; | |
9593 | ||
9594 | self = self; | |
9595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxDC__DrawLineList",_kwnames,&_argo0,&_obj1,&_obj2)) | |
9596 | return NULL; | |
9597 | if (_argo0) { | |
9598 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9599 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9600 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC__DrawLineList. Expected _wxDC_p."); | |
9601 | return NULL; | |
9602 | } | |
9603 | } | |
9604 | { | |
9605 | _arg1 = _obj1; | |
9606 | } | |
9607 | { | |
9608 | _arg2 = _obj2; | |
9609 | } | |
9610 | { | |
0e2ff151 | 9611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 9612 | _result = (PyObject *)wxDC__DrawLineList(_arg0,_arg1,_arg2); |
e6056257 | 9613 | |
0e2ff151 | 9614 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9615 | if (PyErr_Occurred()) return NULL; |
9616 | }{ | |
9617 | _resultobj = _result; | |
9618 | } | |
9619 | return _resultobj; | |
9620 | } | |
9621 | ||
9622 | static void *SwigwxMemoryDCTowxDC(void *ptr) { | |
9623 | wxMemoryDC *src; | |
9624 | wxDC *dest; | |
9625 | src = (wxMemoryDC *) ptr; | |
9626 | dest = (wxDC *) src; | |
9627 | return (void *) dest; | |
9628 | } | |
9629 | ||
9630 | static void *SwigwxMemoryDCTowxObject(void *ptr) { | |
9631 | wxMemoryDC *src; | |
9632 | wxObject *dest; | |
9633 | src = (wxMemoryDC *) ptr; | |
9634 | dest = (wxObject *) src; | |
9635 | return (void *) dest; | |
9636 | } | |
9637 | ||
9638 | #define new_wxMemoryDC() (new wxMemoryDC()) | |
9639 | static PyObject *_wrap_new_wxMemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9640 | PyObject * _resultobj; | |
9641 | wxMemoryDC * _result; | |
9642 | char *_kwnames[] = { NULL }; | |
9643 | char _ptemp[128]; | |
9644 | ||
9645 | self = self; | |
9646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxMemoryDC",_kwnames)) | |
9647 | return NULL; | |
9648 | { | |
0e2ff151 | 9649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 9650 | _result = (wxMemoryDC *)new_wxMemoryDC(); |
e6056257 | 9651 | |
0e2ff151 | 9652 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9653 | if (PyErr_Occurred()) return NULL; |
9654 | } if (_result) { | |
9655 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMemoryDC_p"); | |
9656 | _resultobj = Py_BuildValue("s",_ptemp); | |
9657 | } else { | |
9658 | Py_INCREF(Py_None); | |
9659 | _resultobj = Py_None; | |
9660 | } | |
9661 | return _resultobj; | |
9662 | } | |
9663 | ||
9664 | #define wxMemoryDC_SelectObject(_swigobj,_swigarg0) (_swigobj->SelectObject(_swigarg0)) | |
9665 | static PyObject *_wrap_wxMemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9666 | PyObject * _resultobj; | |
9667 | wxMemoryDC * _arg0; | |
9668 | wxBitmap * _arg1; | |
9669 | PyObject * _argo0 = 0; | |
9670 | PyObject * _argo1 = 0; | |
9671 | char *_kwnames[] = { "self","bitmap", NULL }; | |
9672 | ||
9673 | self = self; | |
9674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMemoryDC_SelectObject",_kwnames,&_argo0,&_argo1)) | |
9675 | return NULL; | |
9676 | if (_argo0) { | |
9677 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9678 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMemoryDC_p")) { | |
9679 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMemoryDC_SelectObject. Expected _wxMemoryDC_p."); | |
9680 | return NULL; | |
9681 | } | |
9682 | } | |
9683 | if (_argo1) { | |
9684 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9685 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
9686 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMemoryDC_SelectObject. Expected _wxBitmap_p."); | |
9687 | return NULL; | |
9688 | } | |
9689 | } | |
9690 | { | |
0e2ff151 | 9691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 9692 | wxMemoryDC_SelectObject(_arg0,*_arg1); |
e6056257 | 9693 | |
0e2ff151 | 9694 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9695 | if (PyErr_Occurred()) return NULL; |
9696 | } Py_INCREF(Py_None); | |
9697 | _resultobj = Py_None; | |
9698 | return _resultobj; | |
9699 | } | |
9700 | ||
c3bfa1cb RD |
9701 | static void *SwigwxBufferedDCTowxMemoryDC(void *ptr) { |
9702 | wxBufferedDC *src; | |
9703 | wxMemoryDC *dest; | |
9704 | src = (wxBufferedDC *) ptr; | |
9705 | dest = (wxMemoryDC *) src; | |
9706 | return (void *) dest; | |
9707 | } | |
9708 | ||
9709 | static void *SwigwxBufferedDCTowxDC(void *ptr) { | |
9710 | wxBufferedDC *src; | |
9711 | wxDC *dest; | |
9712 | src = (wxBufferedDC *) ptr; | |
9713 | dest = (wxDC *) src; | |
9714 | return (void *) dest; | |
9715 | } | |
9716 | ||
9717 | static void *SwigwxBufferedDCTowxObject(void *ptr) { | |
9718 | wxBufferedDC *src; | |
9719 | wxObject *dest; | |
9720 | src = (wxBufferedDC *) ptr; | |
9721 | dest = (wxObject *) src; | |
9722 | return (void *) dest; | |
9723 | } | |
9724 | ||
9725 | #define new_wxBufferedDC(_swigarg0,_swigarg1) (new wxBufferedDC(_swigarg0,_swigarg1)) | |
9726 | static PyObject *_wrap_new_wxBufferedDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9727 | PyObject * _resultobj; | |
9728 | wxBufferedDC * _result; | |
9729 | wxDC * _arg0; | |
9730 | wxBitmap * _arg1; | |
9731 | PyObject * _argo0 = 0; | |
9732 | PyObject * _argo1 = 0; | |
9733 | char *_kwnames[] = { "dc","buffer", NULL }; | |
9734 | char _ptemp[128]; | |
9735 | ||
9736 | self = self; | |
9737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:new_wxBufferedDC",_kwnames,&_argo0,&_argo1)) | |
9738 | return NULL; | |
9739 | if (_argo0) { | |
9740 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9741 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9742 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxBufferedDC. Expected _wxDC_p."); | |
9743 | return NULL; | |
9744 | } | |
9745 | } | |
9746 | if (_argo1) { | |
9747 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9748 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
9749 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxBufferedDC. Expected _wxBitmap_p."); | |
9750 | return NULL; | |
9751 | } | |
9752 | } | |
9753 | { | |
9754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9755 | _result = (wxBufferedDC *)new_wxBufferedDC(_arg0,*_arg1); | |
9756 | ||
9757 | wxPyEndAllowThreads(__tstate); | |
9758 | if (PyErr_Occurred()) return NULL; | |
9759 | } if (_result) { | |
9760 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBufferedDC_p"); | |
9761 | _resultobj = Py_BuildValue("s",_ptemp); | |
9762 | } else { | |
9763 | Py_INCREF(Py_None); | |
9764 | _resultobj = Py_None; | |
9765 | } | |
9766 | return _resultobj; | |
9767 | } | |
9768 | ||
9769 | #define new_wxBufferedDCInternalBuffer(_swigarg0,_swigarg1) (new wxBufferedDC(_swigarg0,_swigarg1)) | |
9770 | static PyObject *_wrap_new_wxBufferedDCInternalBuffer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9771 | PyObject * _resultobj; | |
9772 | wxBufferedDC * _result; | |
9773 | wxDC * _arg0; | |
9774 | wxSize * _arg1; | |
9775 | PyObject * _argo0 = 0; | |
9776 | wxSize temp; | |
9777 | PyObject * _obj1 = 0; | |
9778 | char *_kwnames[] = { "dc","area", NULL }; | |
9779 | char _ptemp[128]; | |
9780 | ||
9781 | self = self; | |
9782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:new_wxBufferedDCInternalBuffer",_kwnames,&_argo0,&_obj1)) | |
9783 | return NULL; | |
9784 | if (_argo0) { | |
9785 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9786 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9787 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxBufferedDCInternalBuffer. Expected _wxDC_p."); | |
9788 | return NULL; | |
9789 | } | |
9790 | } | |
9791 | { | |
9792 | _arg1 = &temp; | |
9793 | if (! wxSize_helper(_obj1, &_arg1)) | |
9794 | return NULL; | |
9795 | } | |
9796 | { | |
9797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9798 | _result = (wxBufferedDC *)new_wxBufferedDCInternalBuffer(_arg0,*_arg1); | |
9799 | ||
9800 | wxPyEndAllowThreads(__tstate); | |
9801 | if (PyErr_Occurred()) return NULL; | |
9802 | } if (_result) { | |
9803 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBufferedDC_p"); | |
9804 | _resultobj = Py_BuildValue("s",_ptemp); | |
9805 | } else { | |
9806 | Py_INCREF(Py_None); | |
9807 | _resultobj = Py_None; | |
9808 | } | |
9809 | return _resultobj; | |
9810 | } | |
9811 | ||
9812 | static void *SwigwxBufferedPaintDCTowxBufferedDC(void *ptr) { | |
9813 | wxBufferedPaintDC *src; | |
9814 | wxBufferedDC *dest; | |
9815 | src = (wxBufferedPaintDC *) ptr; | |
9816 | dest = (wxBufferedDC *) src; | |
9817 | return (void *) dest; | |
9818 | } | |
9819 | ||
9820 | static void *SwigwxBufferedPaintDCTowxMemoryDC(void *ptr) { | |
9821 | wxBufferedPaintDC *src; | |
9822 | wxMemoryDC *dest; | |
9823 | src = (wxBufferedPaintDC *) ptr; | |
9824 | dest = (wxMemoryDC *) src; | |
9825 | return (void *) dest; | |
9826 | } | |
9827 | ||
9828 | static void *SwigwxBufferedPaintDCTowxDC(void *ptr) { | |
9829 | wxBufferedPaintDC *src; | |
9830 | wxDC *dest; | |
9831 | src = (wxBufferedPaintDC *) ptr; | |
9832 | dest = (wxDC *) src; | |
9833 | return (void *) dest; | |
9834 | } | |
9835 | ||
9836 | static void *SwigwxBufferedPaintDCTowxObject(void *ptr) { | |
9837 | wxBufferedPaintDC *src; | |
9838 | wxObject *dest; | |
9839 | src = (wxBufferedPaintDC *) ptr; | |
9840 | dest = (wxObject *) src; | |
9841 | return (void *) dest; | |
9842 | } | |
9843 | ||
9844 | #define new_wxBufferedPaintDC(_swigarg0,_swigarg1) (new wxBufferedPaintDC(_swigarg0,_swigarg1)) | |
9845 | static PyObject *_wrap_new_wxBufferedPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9846 | PyObject * _resultobj; | |
9847 | wxBufferedPaintDC * _result; | |
9848 | wxWindow * _arg0; | |
9849 | wxBitmap * _arg1 = (wxBitmap *) &wxNullBitmap; | |
9850 | PyObject * _argo0 = 0; | |
9851 | PyObject * _argo1 = 0; | |
9852 | char *_kwnames[] = { "window","buffer", NULL }; | |
9853 | char _ptemp[128]; | |
9854 | ||
9855 | self = self; | |
9856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:new_wxBufferedPaintDC",_kwnames,&_argo0,&_argo1)) | |
9857 | return NULL; | |
9858 | if (_argo0) { | |
9859 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9860 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
9861 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxBufferedPaintDC. Expected _wxWindow_p."); | |
9862 | return NULL; | |
9863 | } | |
9864 | } | |
9865 | if (_argo1) { | |
9866 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9867 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
9868 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxBufferedPaintDC. Expected _wxBitmap_p."); | |
9869 | return NULL; | |
9870 | } | |
9871 | } | |
9872 | { | |
9873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9874 | _result = (wxBufferedPaintDC *)new_wxBufferedPaintDC(_arg0,*_arg1); | |
9875 | ||
9876 | wxPyEndAllowThreads(__tstate); | |
9877 | if (PyErr_Occurred()) return NULL; | |
9878 | } if (_result) { | |
9879 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBufferedPaintDC_p"); | |
9880 | _resultobj = Py_BuildValue("s",_ptemp); | |
9881 | } else { | |
9882 | Py_INCREF(Py_None); | |
9883 | _resultobj = Py_None; | |
9884 | } | |
9885 | return _resultobj; | |
9886 | } | |
9887 | ||
e6056257 RD |
9888 | static void *SwigwxScreenDCTowxDC(void *ptr) { |
9889 | wxScreenDC *src; | |
9890 | wxDC *dest; | |
9891 | src = (wxScreenDC *) ptr; | |
9892 | dest = (wxDC *) src; | |
9893 | return (void *) dest; | |
9894 | } | |
9895 | ||
9896 | static void *SwigwxScreenDCTowxObject(void *ptr) { | |
9897 | wxScreenDC *src; | |
9898 | wxObject *dest; | |
9899 | src = (wxScreenDC *) ptr; | |
9900 | dest = (wxObject *) src; | |
9901 | return (void *) dest; | |
9902 | } | |
9903 | ||
9904 | #define new_wxScreenDC() (new wxScreenDC()) | |
9905 | static PyObject *_wrap_new_wxScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9906 | PyObject * _resultobj; | |
9907 | wxScreenDC * _result; | |
9908 | char *_kwnames[] = { NULL }; | |
9909 | char _ptemp[128]; | |
9910 | ||
9911 | self = self; | |
9912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxScreenDC",_kwnames)) | |
9913 | return NULL; | |
9914 | { | |
0e2ff151 | 9915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 9916 | _result = (wxScreenDC *)new_wxScreenDC(); |
e6056257 | 9917 | |
0e2ff151 | 9918 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9919 | if (PyErr_Occurred()) return NULL; |
9920 | } if (_result) { | |
9921 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScreenDC_p"); | |
9922 | _resultobj = Py_BuildValue("s",_ptemp); | |
9923 | } else { | |
9924 | Py_INCREF(Py_None); | |
9925 | _resultobj = Py_None; | |
9926 | } | |
9927 | return _resultobj; | |
9928 | } | |
9929 | ||
9930 | #define wxScreenDC_StartDrawingOnTopWin(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0)) | |
9931 | static PyObject *_wrap_wxScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9932 | PyObject * _resultobj; | |
9933 | bool _result; | |
9934 | wxScreenDC * _arg0; | |
9935 | wxWindow * _arg1; | |
9936 | PyObject * _argo0 = 0; | |
9937 | PyObject * _argo1 = 0; | |
9938 | char *_kwnames[] = { "self","window", NULL }; | |
9939 | ||
9940 | self = self; | |
9941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScreenDC_StartDrawingOnTopWin",_kwnames,&_argo0,&_argo1)) | |
9942 | return NULL; | |
9943 | if (_argo0) { | |
9944 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9945 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) { | |
9946 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_StartDrawingOnTopWin. Expected _wxScreenDC_p."); | |
9947 | return NULL; | |
9948 | } | |
9949 | } | |
9950 | if (_argo1) { | |
9951 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9952 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
9953 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScreenDC_StartDrawingOnTopWin. Expected _wxWindow_p."); | |
9954 | return NULL; | |
9955 | } | |
9956 | } | |
9957 | { | |
0e2ff151 | 9958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 9959 | _result = (bool )wxScreenDC_StartDrawingOnTopWin(_arg0,_arg1); |
e6056257 | 9960 | |
0e2ff151 | 9961 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9962 | if (PyErr_Occurred()) return NULL; |
9963 | } _resultobj = Py_BuildValue("i",_result); | |
9964 | return _resultobj; | |
9965 | } | |
9966 | ||
9967 | #define wxScreenDC_StartDrawingOnTop(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0)) | |
9968 | static PyObject *_wrap_wxScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9969 | PyObject * _resultobj; | |
9970 | bool _result; | |
9971 | wxScreenDC * _arg0; | |
9972 | wxRect * _arg1 = (wxRect *) NULL; | |
9973 | PyObject * _argo0 = 0; | |
9974 | wxRect temp; | |
9975 | PyObject * _obj1 = 0; | |
9976 | char *_kwnames[] = { "self","rect", NULL }; | |
9977 | ||
9978 | self = self; | |
9979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxScreenDC_StartDrawingOnTop",_kwnames,&_argo0,&_obj1)) | |
9980 | return NULL; | |
9981 | if (_argo0) { | |
9982 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9983 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) { | |
9984 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_StartDrawingOnTop. Expected _wxScreenDC_p."); | |
9985 | return NULL; | |
9986 | } | |
9987 | } | |
9988 | if (_obj1) | |
9989 | { | |
9990 | _arg1 = &temp; | |
9991 | if (! wxRect_helper(_obj1, &_arg1)) | |
9992 | return NULL; | |
9993 | } | |
9994 | { | |
0e2ff151 | 9995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 9996 | _result = (bool )wxScreenDC_StartDrawingOnTop(_arg0,_arg1); |
e6056257 | 9997 | |
0e2ff151 | 9998 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
9999 | if (PyErr_Occurred()) return NULL; |
10000 | } _resultobj = Py_BuildValue("i",_result); | |
10001 | return _resultobj; | |
10002 | } | |
10003 | ||
10004 | #define wxScreenDC_EndDrawingOnTop(_swigobj) (_swigobj->EndDrawingOnTop()) | |
10005 | static PyObject *_wrap_wxScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10006 | PyObject * _resultobj; | |
10007 | bool _result; | |
10008 | wxScreenDC * _arg0; | |
10009 | PyObject * _argo0 = 0; | |
10010 | char *_kwnames[] = { "self", NULL }; | |
10011 | ||
10012 | self = self; | |
10013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScreenDC_EndDrawingOnTop",_kwnames,&_argo0)) | |
10014 | return NULL; | |
10015 | if (_argo0) { | |
10016 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10017 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) { | |
10018 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_EndDrawingOnTop. Expected _wxScreenDC_p."); | |
10019 | return NULL; | |
10020 | } | |
10021 | } | |
10022 | { | |
0e2ff151 | 10023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 10024 | _result = (bool )wxScreenDC_EndDrawingOnTop(_arg0); |
e6056257 | 10025 | |
0e2ff151 | 10026 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
10027 | if (PyErr_Occurred()) return NULL; |
10028 | } _resultobj = Py_BuildValue("i",_result); | |
10029 | return _resultobj; | |
10030 | } | |
10031 | ||
10032 | static void *SwigwxClientDCTowxDC(void *ptr) { | |
10033 | wxClientDC *src; | |
10034 | wxDC *dest; | |
10035 | src = (wxClientDC *) ptr; | |
10036 | dest = (wxDC *) src; | |
10037 | return (void *) dest; | |
10038 | } | |
10039 | ||
10040 | static void *SwigwxClientDCTowxObject(void *ptr) { | |
10041 | wxClientDC *src; | |
10042 | wxObject *dest; | |
10043 | src = (wxClientDC *) ptr; | |
10044 | dest = (wxObject *) src; | |
10045 | return (void *) dest; | |
10046 | } | |
10047 | ||
10048 | #define new_wxClientDC(_swigarg0) (new wxClientDC(_swigarg0)) | |
10049 | static PyObject *_wrap_new_wxClientDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10050 | PyObject * _resultobj; | |
10051 | wxClientDC * _result; | |
10052 | wxWindow * _arg0; | |
10053 | PyObject * _argo0 = 0; | |
10054 | char *_kwnames[] = { "win", NULL }; | |
10055 | char _ptemp[128]; | |
10056 | ||
10057 | self = self; | |
10058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxClientDC",_kwnames,&_argo0)) | |
10059 | return NULL; | |
10060 | if (_argo0) { | |
10061 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10062 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
10063 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxClientDC. Expected _wxWindow_p."); | |
10064 | return NULL; | |
10065 | } | |
10066 | } | |
10067 | { | |
0e2ff151 | 10068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 10069 | _result = (wxClientDC *)new_wxClientDC(_arg0); |
e6056257 | 10070 | |
0e2ff151 | 10071 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
10072 | if (PyErr_Occurred()) return NULL; |
10073 | } if (_result) { | |
10074 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxClientDC_p"); | |
10075 | _resultobj = Py_BuildValue("s",_ptemp); | |
10076 | } else { | |
10077 | Py_INCREF(Py_None); | |
10078 | _resultobj = Py_None; | |
10079 | } | |
10080 | return _resultobj; | |
10081 | } | |
10082 | ||
10083 | static void *SwigwxPaintDCTowxDC(void *ptr) { | |
10084 | wxPaintDC *src; | |
10085 | wxDC *dest; | |
10086 | src = (wxPaintDC *) ptr; | |
10087 | dest = (wxDC *) src; | |
10088 | return (void *) dest; | |
10089 | } | |
10090 | ||
10091 | static void *SwigwxPaintDCTowxObject(void *ptr) { | |
10092 | wxPaintDC *src; | |
10093 | wxObject *dest; | |
10094 | src = (wxPaintDC *) ptr; | |
10095 | dest = (wxObject *) src; | |
10096 | return (void *) dest; | |
10097 | } | |
10098 | ||
10099 | #define new_wxPaintDC(_swigarg0) (new wxPaintDC(_swigarg0)) | |
10100 | static PyObject *_wrap_new_wxPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10101 | PyObject * _resultobj; | |
10102 | wxPaintDC * _result; | |
10103 | wxWindow * _arg0; | |
10104 | PyObject * _argo0 = 0; | |
10105 | char *_kwnames[] = { "win", NULL }; | |
10106 | char _ptemp[128]; | |
10107 | ||
10108 | self = self; | |
10109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxPaintDC",_kwnames,&_argo0)) | |
10110 | return NULL; | |
10111 | if (_argo0) { | |
10112 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10113 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
10114 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPaintDC. Expected _wxWindow_p."); | |
10115 | return NULL; | |
10116 | } | |
10117 | } | |
10118 | { | |
0e2ff151 | 10119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 10120 | _result = (wxPaintDC *)new_wxPaintDC(_arg0); |
e6056257 | 10121 | |
0e2ff151 | 10122 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
10123 | if (PyErr_Occurred()) return NULL; |
10124 | } if (_result) { | |
10125 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPaintDC_p"); | |
10126 | _resultobj = Py_BuildValue("s",_ptemp); | |
10127 | } else { | |
10128 | Py_INCREF(Py_None); | |
10129 | _resultobj = Py_None; | |
10130 | } | |
10131 | return _resultobj; | |
10132 | } | |
10133 | ||
10134 | static void *SwigwxWindowDCTowxDC(void *ptr) { | |
10135 | wxWindowDC *src; | |
10136 | wxDC *dest; | |
10137 | src = (wxWindowDC *) ptr; | |
10138 | dest = (wxDC *) src; | |
10139 | return (void *) dest; | |
10140 | } | |
10141 | ||
10142 | static void *SwigwxWindowDCTowxObject(void *ptr) { | |
10143 | wxWindowDC *src; | |
10144 | wxObject *dest; | |
10145 | src = (wxWindowDC *) ptr; | |
10146 | dest = (wxObject *) src; | |
10147 | return (void *) dest; | |
10148 | } | |
10149 | ||
10150 | #define new_wxWindowDC(_swigarg0) (new wxWindowDC(_swigarg0)) | |
10151 | static PyObject *_wrap_new_wxWindowDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10152 | PyObject * _resultobj; | |
10153 | wxWindowDC * _result; | |
10154 | wxWindow * _arg0; | |
10155 | PyObject * _argo0 = 0; | |
10156 | char *_kwnames[] = { "win", NULL }; | |
10157 | char _ptemp[128]; | |
10158 | ||
10159 | self = self; | |
10160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxWindowDC",_kwnames,&_argo0)) | |
10161 | return NULL; | |
10162 | if (_argo0) { | |
10163 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10164 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
10165 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxWindowDC. Expected _wxWindow_p."); | |
10166 | return NULL; | |
10167 | } | |
10168 | } | |
10169 | { | |
0e2ff151 | 10170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 10171 | _result = (wxWindowDC *)new_wxWindowDC(_arg0); |
e6056257 | 10172 | |
0e2ff151 | 10173 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
10174 | if (PyErr_Occurred()) return NULL; |
10175 | } if (_result) { | |
10176 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindowDC_p"); | |
10177 | _resultobj = Py_BuildValue("s",_ptemp); | |
10178 | } else { | |
10179 | Py_INCREF(Py_None); | |
10180 | _resultobj = Py_None; | |
10181 | } | |
10182 | return _resultobj; | |
10183 | } | |
10184 | ||
e6056257 RD |
10185 | static void *SwigwxPaletteTowxGDIObject(void *ptr) { |
10186 | wxPalette *src; | |
10187 | wxGDIObject *dest; | |
10188 | src = (wxPalette *) ptr; | |
10189 | dest = (wxGDIObject *) src; | |
10190 | return (void *) dest; | |
10191 | } | |
10192 | ||
10193 | static void *SwigwxPaletteTowxObject(void *ptr) { | |
10194 | wxPalette *src; | |
10195 | wxObject *dest; | |
10196 | src = (wxPalette *) ptr; | |
10197 | dest = (wxObject *) src; | |
10198 | return (void *) dest; | |
10199 | } | |
10200 | ||
10201 | #define new_wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
10202 | static PyObject *_wrap_new_wxPalette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10203 | PyObject * _resultobj; | |
10204 | wxPalette * _result; | |
10205 | int _arg0; | |
10206 | byte * _arg1; | |
10207 | byte * _arg2; | |
10208 | byte * _arg3; | |
10209 | PyObject * _obj1 = 0; | |
10210 | PyObject * _obj2 = 0; | |
10211 | PyObject * _obj3 = 0; | |
10212 | char *_kwnames[] = { "choices","choices","choices", NULL }; | |
10213 | char _ptemp[128]; | |
10214 | ||
10215 | self = self; | |
10216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:new_wxPalette",_kwnames,&_obj1,&_obj2,&_obj3)) | |
10217 | return NULL; | |
10218 | { | |
10219 | _arg1 = byte_LIST_helper(_obj1); | |
10220 | if (_arg1 == NULL) { | |
10221 | return NULL; | |
10222 | } | |
10223 | } | |
10224 | { | |
10225 | _arg2 = byte_LIST_helper(_obj2); | |
10226 | if (_arg2 == NULL) { | |
10227 | return NULL; | |
10228 | } | |
10229 | } | |
10230 | if (_obj3) | |
10231 | { | |
10232 | _arg3 = byte_LIST_helper(_obj3); | |
10233 | if (_arg3 == NULL) { | |
10234 | return NULL; | |
10235 | } | |
10236 | } | |
10237 | { | |
10238 | if (_obj1) { | |
10239 | _arg0 = PyList_Size(_obj1); | |
10240 | } | |
10241 | else { | |
10242 | _arg0 = 0; | |
10243 | } | |
10244 | } | |
10245 | { | |
0e2ff151 | 10246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 10247 | _result = (wxPalette *)new_wxPalette(_arg0,_arg1,_arg2,_arg3); |
e6056257 | 10248 | |
0e2ff151 | 10249 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
10250 | if (PyErr_Occurred()) return NULL; |
10251 | } if (_result) { | |
10252 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPalette_p"); | |
10253 | _resultobj = Py_BuildValue("s",_ptemp); | |
10254 | } else { | |
10255 | Py_INCREF(Py_None); | |
10256 | _resultobj = Py_None; | |
10257 | } | |
10258 | { | |
10259 | delete [] _arg1; | |
10260 | } | |
10261 | { | |
10262 | delete [] _arg2; | |
10263 | } | |
10264 | { | |
10265 | delete [] _arg3; | |
10266 | } | |
10267 | return _resultobj; | |
10268 | } | |
10269 | ||
10270 | #define delete_wxPalette(_swigobj) (delete _swigobj) | |
10271 | static PyObject *_wrap_delete_wxPalette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10272 | PyObject * _resultobj; | |
10273 | wxPalette * _arg0; | |
10274 | PyObject * _argo0 = 0; | |
10275 | char *_kwnames[] = { "self", NULL }; | |
10276 | ||
10277 | self = self; | |
10278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPalette",_kwnames,&_argo0)) | |
10279 | return NULL; | |
10280 | if (_argo0) { | |
10281 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10282 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) { | |
10283 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPalette. Expected _wxPalette_p."); | |
10284 | return NULL; | |
10285 | } | |
10286 | } | |
10287 | { | |
0e2ff151 | 10288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 10289 | delete_wxPalette(_arg0); |
e6056257 | 10290 | |
0e2ff151 | 10291 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
10292 | if (PyErr_Occurred()) return NULL; |
10293 | } Py_INCREF(Py_None); | |
10294 | _resultobj = Py_None; | |
10295 | return _resultobj; | |
10296 | } | |
10297 | ||
10298 | #define wxPalette_GetPixel(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetPixel(_swigarg0,_swigarg1,_swigarg2)) | |
10299 | static PyObject *_wrap_wxPalette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10300 | PyObject * _resultobj; | |
10301 | int _result; | |
10302 | wxPalette * _arg0; | |
10303 | byte _arg1; | |
10304 | byte _arg2; | |
10305 | byte _arg3; | |
10306 | PyObject * _argo0 = 0; | |
10307 | char *_kwnames[] = { "self","red","green","blue", NULL }; | |
10308 | ||
10309 | self = self; | |
10310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Obbb:wxPalette_GetPixel",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) | |
10311 | return NULL; | |
10312 | if (_argo0) { | |
10313 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10314 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) { | |
10315 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_GetPixel. Expected _wxPalette_p."); | |
10316 | return NULL; | |
10317 | } | |
10318 | } | |
10319 | { | |
0e2ff151 | 10320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 10321 | _result = (int )wxPalette_GetPixel(_arg0,_arg1,_arg2,_arg3); |
e6056257 | 10322 | |
0e2ff151 | 10323 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
10324 | if (PyErr_Occurred()) return NULL; |
10325 | } _resultobj = Py_BuildValue("i",_result); | |
10326 | return _resultobj; | |
10327 | } | |
10328 | ||
10329 | #define wxPalette_GetRGB(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetRGB(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
10330 | static PyObject *_wrap_wxPalette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10331 | PyObject * _resultobj; | |
10332 | bool _result; | |
10333 | wxPalette * _arg0; | |
10334 | int _arg1; | |
10335 | byte * _arg2; | |
a341e32e | 10336 | int temp; |
e6056257 | 10337 | byte * _arg3; |
a341e32e | 10338 | int temp0; |
e6056257 | 10339 | byte * _arg4; |
a341e32e | 10340 | int temp1; |
e6056257 | 10341 | PyObject * _argo0 = 0; |
a341e32e | 10342 | char *_kwnames[] = { "self","pixel", NULL }; |
e6056257 RD |
10343 | |
10344 | self = self; | |
a341e32e RD |
10345 | { |
10346 | _arg2 = (byte*)&temp; | |
10347 | } | |
10348 | { | |
10349 | _arg3 = (byte*)&temp0; | |
10350 | } | |
10351 | { | |
10352 | _arg4 = (byte*)&temp1; | |
10353 | } | |
10354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPalette_GetRGB",_kwnames,&_argo0,&_arg1)) | |
e6056257 RD |
10355 | return NULL; |
10356 | if (_argo0) { | |
10357 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10358 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) { | |
10359 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_GetRGB. Expected _wxPalette_p."); | |
10360 | return NULL; | |
10361 | } | |
10362 | } | |
e6056257 | 10363 | { |
0e2ff151 | 10364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 10365 | _result = (bool )wxPalette_GetRGB(_arg0,_arg1,_arg2,_arg3,_arg4); |
e6056257 | 10366 | |
0e2ff151 | 10367 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
10368 | if (PyErr_Occurred()) return NULL; |
10369 | } _resultobj = Py_BuildValue("i",_result); | |
a341e32e RD |
10370 | { |
10371 | PyObject *o; | |
10372 | o = PyInt_FromLong((long) (*_arg2)); | |
10373 | _resultobj = t_output_helper(_resultobj, o); | |
10374 | } | |
10375 | { | |
10376 | PyObject *o; | |
10377 | o = PyInt_FromLong((long) (*_arg3)); | |
10378 | _resultobj = t_output_helper(_resultobj, o); | |
10379 | } | |
10380 | { | |
10381 | PyObject *o; | |
10382 | o = PyInt_FromLong((long) (*_arg4)); | |
10383 | _resultobj = t_output_helper(_resultobj, o); | |
10384 | } | |
e6056257 RD |
10385 | return _resultobj; |
10386 | } | |
10387 | ||
10388 | #define wxPalette_Ok(_swigobj) (_swigobj->Ok()) | |
10389 | static PyObject *_wrap_wxPalette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10390 | PyObject * _resultobj; | |
10391 | bool _result; | |
10392 | wxPalette * _arg0; | |
10393 | PyObject * _argo0 = 0; | |
10394 | char *_kwnames[] = { "self", NULL }; | |
10395 | ||
10396 | self = self; | |
10397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPalette_Ok",_kwnames,&_argo0)) | |
10398 | return NULL; | |
10399 | if (_argo0) { | |
10400 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10401 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) { | |
10402 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_Ok. Expected _wxPalette_p."); | |
10403 | return NULL; | |
10404 | } | |
10405 | } | |
10406 | { | |
0e2ff151 | 10407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 10408 | _result = (bool )wxPalette_Ok(_arg0); |
e6056257 | 10409 | |
0e2ff151 | 10410 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
10411 | if (PyErr_Occurred()) return NULL; |
10412 | } _resultobj = Py_BuildValue("i",_result); | |
10413 | return _resultobj; | |
10414 | } | |
10415 | ||
10416 | static void *SwigwxImageListTowxObject(void *ptr) { | |
10417 | wxImageList *src; | |
10418 | wxObject *dest; | |
10419 | src = (wxImageList *) ptr; | |
10420 | dest = (wxObject *) src; | |
10421 | return (void *) dest; | |
10422 | } | |
10423 | ||
10424 | #define new_wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
10425 | static PyObject *_wrap_new_wxImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10426 | PyObject * _resultobj; | |
10427 | wxImageList * _result; | |
10428 | int _arg0; | |
10429 | int _arg1; | |
10430 | int _arg2 = (int ) TRUE; | |
10431 | int _arg3 = (int ) 1; | |
10432 | char *_kwnames[] = { "width","height","mask","initialCount", NULL }; | |
10433 | char _ptemp[128]; | |
10434 | ||
10435 | self = self; | |
10436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"ii|ii:new_wxImageList",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3)) | |
10437 | return NULL; | |
10438 | { | |
0e2ff151 | 10439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 10440 | _result = (wxImageList *)new_wxImageList(_arg0,_arg1,_arg2,_arg3); |
e6056257 | 10441 | |
0e2ff151 | 10442 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
10443 | if (PyErr_Occurred()) return NULL; |
10444 | } if (_result) { | |
10445 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxImageList_p"); | |
10446 | _resultobj = Py_BuildValue("s",_ptemp); | |
10447 | } else { | |
10448 | Py_INCREF(Py_None); | |
10449 | _resultobj = Py_None; | |
10450 | } | |
10451 | return _resultobj; | |
10452 | } | |
10453 | ||
10454 | #define delete_wxImageList(_swigobj) (delete _swigobj) | |
10455 | static PyObject *_wrap_delete_wxImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10456 | PyObject * _resultobj; | |
10457 | wxImageList * _arg0; | |
10458 | PyObject * _argo0 = 0; | |
10459 | char *_kwnames[] = { "self", NULL }; | |
10460 | ||
10461 | self = self; | |
10462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxImageList",_kwnames,&_argo0)) | |
10463 | return NULL; | |
10464 | if (_argo0) { | |
10465 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10466 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
10467 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxImageList. Expected _wxImageList_p."); | |
10468 | return NULL; | |
10469 | } | |
10470 | } | |
10471 | { | |
0e2ff151 | 10472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 10473 | delete_wxImageList(_arg0); |
e6056257 | 10474 | |
0e2ff151 | 10475 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
10476 | if (PyErr_Occurred()) return NULL; |
10477 | } Py_INCREF(Py_None); | |
10478 | _resultobj = Py_None; | |
10479 | return _resultobj; | |
10480 | } | |
10481 | ||
10482 | #define wxImageList_Add(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1)) | |
10483 | static PyObject *_wrap_wxImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10484 | PyObject * _resultobj; | |
10485 | int _result; | |
10486 | wxImageList * _arg0; | |
10487 | wxBitmap * _arg1; | |
10488 | wxBitmap * _arg2 = (wxBitmap *) &wxNullBitmap; | |
10489 | PyObject * _argo0 = 0; | |
10490 | PyObject * _argo1 = 0; | |
10491 | PyObject * _argo2 = 0; | |
10492 | char *_kwnames[] = { "self","bitmap","mask", NULL }; | |
10493 | ||
10494 | self = self; | |
10495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxImageList_Add",_kwnames,&_argo0,&_argo1,&_argo2)) | |
10496 | return NULL; | |
10497 | if (_argo0) { | |
10498 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10499 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
10500 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Add. Expected _wxImageList_p."); | |
10501 | return NULL; | |
10502 | } | |
10503 | } | |
10504 | if (_argo1) { | |
10505 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10506 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
10507 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_Add. Expected _wxBitmap_p."); | |
10508 | return NULL; | |
10509 | } | |
10510 | } | |
10511 | if (_argo2) { | |
10512 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
10513 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) { | |
10514 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Add. Expected _wxBitmap_p."); | |
10515 | return NULL; | |
10516 | } | |
10517 | } | |
10518 | { | |
0e2ff151 | 10519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 10520 | _result = (int )wxImageList_Add(_arg0,*_arg1,*_arg2); |
e6056257 | 10521 | |
0e2ff151 | 10522 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
10523 | if (PyErr_Occurred()) return NULL; |
10524 | } _resultobj = Py_BuildValue("i",_result); | |
10525 | return _resultobj; | |
10526 | } | |
10527 | ||
10528 | #define wxImageList_AddWithColourMask(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1)) | |
10529 | static PyObject *_wrap_wxImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10530 | PyObject * _resultobj; | |
10531 | int _result; | |
10532 | wxImageList * _arg0; | |
10533 | wxBitmap * _arg1; | |
10534 | wxColour * _arg2; | |
10535 | PyObject * _argo0 = 0; | |
10536 | PyObject * _argo1 = 0; | |
10537 | wxColour temp; | |
10538 | PyObject * _obj2 = 0; | |
10539 | char *_kwnames[] = { "self","bitmap","maskColour", NULL }; | |
10540 | ||
10541 | self = self; | |
10542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxImageList_AddWithColourMask",_kwnames,&_argo0,&_argo1,&_obj2)) | |
10543 | return NULL; | |
10544 | if (_argo0) { | |
10545 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10546 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
10547 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_AddWithColourMask. Expected _wxImageList_p."); | |
10548 | return NULL; | |
10549 | } | |
10550 | } | |
10551 | if (_argo1) { | |
10552 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10553 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
10554 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_AddWithColourMask. Expected _wxBitmap_p."); | |
10555 | return NULL; | |
10556 | } | |
10557 | } | |
10558 | { | |
10559 | _arg2 = &temp; | |
10560 | if (! wxColour_helper(_obj2, &_arg2)) | |
10561 | return NULL; | |
10562 | } | |
10563 | { | |
0e2ff151 | 10564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 10565 | _result = (int )wxImageList_AddWithColourMask(_arg0,*_arg1,*_arg2); |
e6056257 | 10566 | |
0e2ff151 | 10567 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
10568 | if (PyErr_Occurred()) return NULL; |
10569 | } _resultobj = Py_BuildValue("i",_result); | |
10570 | return _resultobj; | |
10571 | } | |
10572 | ||
10573 | #define wxImageList_AddIcon(_swigobj,_swigarg0) (_swigobj->Add(_swigarg0)) | |
10574 | static PyObject *_wrap_wxImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10575 | PyObject * _resultobj; | |
10576 | int _result; | |
10577 | wxImageList * _arg0; | |
10578 | wxIcon * _arg1; | |
10579 | PyObject * _argo0 = 0; | |
10580 | PyObject * _argo1 = 0; | |
10581 | char *_kwnames[] = { "self","icon", NULL }; | |
10582 | ||
10583 | self = self; | |
10584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxImageList_AddIcon",_kwnames,&_argo0,&_argo1)) | |
10585 | return NULL; | |
10586 | if (_argo0) { | |
10587 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10588 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
10589 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_AddIcon. Expected _wxImageList_p."); | |
10590 | return NULL; | |
10591 | } | |
10592 | } | |
10593 | if (_argo1) { | |
10594 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10595 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) { | |
10596 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_AddIcon. Expected _wxIcon_p."); | |
10597 | return NULL; | |
10598 | } | |
10599 | } | |
10600 | { | |
0e2ff151 | 10601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 10602 | _result = (int )wxImageList_AddIcon(_arg0,*_arg1); |
e6056257 | 10603 | |
0e2ff151 | 10604 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
10605 | if (PyErr_Occurred()) return NULL; |
10606 | } _resultobj = Py_BuildValue("i",_result); | |
10607 | return _resultobj; | |
10608 | } | |
10609 | ||
10610 | #define wxImageList_Replace(_swigobj,_swigarg0,_swigarg1) (_swigobj->Replace(_swigarg0,_swigarg1)) | |
10611 | static PyObject *_wrap_wxImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10612 | PyObject * _resultobj; | |
10613 | bool _result; | |
10614 | wxImageList * _arg0; | |
10615 | int _arg1; | |
10616 | wxBitmap * _arg2; | |
10617 | PyObject * _argo0 = 0; | |
10618 | PyObject * _argo2 = 0; | |
10619 | char *_kwnames[] = { "self","index","bitmap", NULL }; | |
10620 | ||
10621 | self = self; | |
10622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxImageList_Replace",_kwnames,&_argo0,&_arg1,&_argo2)) | |
10623 | return NULL; | |
10624 | if (_argo0) { | |
10625 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10626 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
10627 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Replace. Expected _wxImageList_p."); | |
10628 | return NULL; | |
10629 | } | |
10630 | } | |
10631 | if (_argo2) { | |
10632 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
10633 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) { | |
10634 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Replace. Expected _wxBitmap_p."); | |
10635 | return NULL; | |
10636 | } | |
10637 | } | |
10638 | { | |
0e2ff151 | 10639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 10640 | _result = (bool )wxImageList_Replace(_arg0,_arg1,*_arg2); |
e6056257 | 10641 | |
0e2ff151 | 10642 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
10643 | if (PyErr_Occurred()) return NULL; |
10644 | } _resultobj = Py_BuildValue("i",_result); | |
10645 | return _resultobj; | |
10646 | } | |
10647 | ||
10648 | #define wxImageList_Draw(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Draw(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
10649 | static PyObject *_wrap_wxImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10650 | PyObject * _resultobj; | |
10651 | bool _result; | |
10652 | wxImageList * _arg0; | |
10653 | int _arg1; | |
10654 | wxDC * _arg2; | |
10655 | int _arg3; | |
10656 | int _arg4; | |
10657 | int _arg5 = (int ) (wxIMAGELIST_DRAW_NORMAL); | |
10658 | bool _arg6 = (bool ) FALSE; | |
10659 | PyObject * _argo0 = 0; | |
10660 | PyObject * _argo2 = 0; | |
10661 | int tempbool6 = (int) FALSE; | |
10662 | char *_kwnames[] = { "self","index","dc","x","x","flags","solidBackground", NULL }; | |
10663 | ||
10664 | self = self; | |
10665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOii|ii:wxImageList_Draw",_kwnames,&_argo0,&_arg1,&_argo2,&_arg3,&_arg4,&_arg5,&tempbool6)) | |
10666 | return NULL; | |
10667 | if (_argo0) { | |
10668 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10669 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
10670 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Draw. Expected _wxImageList_p."); | |
10671 | return NULL; | |
10672 | } | |
10673 | } | |
10674 | if (_argo2) { | |
10675 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
10676 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxDC_p")) { | |
10677 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Draw. Expected _wxDC_p."); | |
10678 | return NULL; | |
10679 | } | |
10680 | } | |
10681 | _arg6 = (bool ) tempbool6; | |
10682 | { | |
0e2ff151 | 10683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 10684 | _result = (bool )wxImageList_Draw(_arg0,_arg1,*_arg2,_arg3,_arg4,_arg5,_arg6); |
e6056257 | 10685 | |
0e2ff151 | 10686 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
10687 | if (PyErr_Occurred()) return NULL; |
10688 | } _resultobj = Py_BuildValue("i",_result); | |
10689 | return _resultobj; | |
10690 | } | |
10691 | ||
10692 | #define wxImageList_GetImageCount(_swigobj) (_swigobj->GetImageCount()) | |
10693 | static PyObject *_wrap_wxImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10694 | PyObject * _resultobj; | |
10695 | int _result; | |
10696 | wxImageList * _arg0; | |
10697 | PyObject * _argo0 = 0; | |
10698 | char *_kwnames[] = { "self", NULL }; | |
10699 | ||
10700 | self = self; | |
10701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageList_GetImageCount",_kwnames,&_argo0)) | |
10702 | return NULL; | |
10703 | if (_argo0) { | |
10704 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10705 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
10706 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_GetImageCount. Expected _wxImageList_p."); | |
10707 | return NULL; | |
10708 | } | |
10709 | } | |
10710 | { | |
0e2ff151 | 10711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 10712 | _result = (int )wxImageList_GetImageCount(_arg0); |
e6056257 | 10713 | |
0e2ff151 | 10714 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
10715 | if (PyErr_Occurred()) return NULL; |
10716 | } _resultobj = Py_BuildValue("i",_result); | |
10717 | return _resultobj; | |
10718 | } | |
10719 | ||
10720 | #define wxImageList_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) | |
10721 | static PyObject *_wrap_wxImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10722 | PyObject * _resultobj; | |
10723 | bool _result; | |
10724 | wxImageList * _arg0; | |
10725 | int _arg1; | |
10726 | PyObject * _argo0 = 0; | |
10727 | char *_kwnames[] = { "self","index", NULL }; | |
10728 | ||
10729 | self = self; | |
10730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxImageList_Remove",_kwnames,&_argo0,&_arg1)) | |
10731 | return NULL; | |
10732 | if (_argo0) { | |
10733 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10734 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
10735 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Remove. Expected _wxImageList_p."); | |
10736 | return NULL; | |
10737 | } | |
10738 | } | |
10739 | { | |
0e2ff151 | 10740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 10741 | _result = (bool )wxImageList_Remove(_arg0,_arg1); |
e6056257 | 10742 | |
0e2ff151 | 10743 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
10744 | if (PyErr_Occurred()) return NULL; |
10745 | } _resultobj = Py_BuildValue("i",_result); | |
10746 | return _resultobj; | |
10747 | } | |
10748 | ||
10749 | #define wxImageList_RemoveAll(_swigobj) (_swigobj->RemoveAll()) | |
10750 | static PyObject *_wrap_wxImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10751 | PyObject * _resultobj; | |
10752 | bool _result; | |
10753 | wxImageList * _arg0; | |
10754 | PyObject * _argo0 = 0; | |
10755 | char *_kwnames[] = { "self", NULL }; | |
10756 | ||
10757 | self = self; | |
10758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageList_RemoveAll",_kwnames,&_argo0)) | |
10759 | return NULL; | |
10760 | if (_argo0) { | |
10761 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10762 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
10763 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_RemoveAll. Expected _wxImageList_p."); | |
10764 | return NULL; | |
10765 | } | |
10766 | } | |
10767 | { | |
0e2ff151 | 10768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 10769 | _result = (bool )wxImageList_RemoveAll(_arg0); |
e6056257 | 10770 | |
0e2ff151 | 10771 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
10772 | if (PyErr_Occurred()) return NULL; |
10773 | } _resultobj = Py_BuildValue("i",_result); | |
10774 | return _resultobj; | |
10775 | } | |
10776 | ||
10777 | #define wxImageList_GetSize(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetSize(_swigarg0,_swigarg1,_swigarg2)) | |
10778 | static PyObject *_wrap_wxImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10779 | PyObject * _resultobj; | |
10780 | wxImageList * _arg0; | |
10781 | int _arg1; | |
10782 | int * _arg2; | |
10783 | int temp; | |
10784 | int * _arg3; | |
10785 | int temp0; | |
10786 | PyObject * _argo0 = 0; | |
10787 | char *_kwnames[] = { "self","index", NULL }; | |
10788 | ||
10789 | self = self; | |
10790 | { | |
10791 | _arg2 = &temp; | |
10792 | } | |
10793 | { | |
10794 | _arg3 = &temp0; | |
10795 | } | |
10796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxImageList_GetSize",_kwnames,&_argo0,&_arg1)) | |
10797 | return NULL; | |
10798 | if (_argo0) { | |
10799 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10800 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
10801 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_GetSize. Expected _wxImageList_p."); | |
10802 | return NULL; | |
10803 | } | |
10804 | } | |
10805 | { | |
0e2ff151 | 10806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 10807 | wxImageList_GetSize(_arg0,_arg1,*_arg2,*_arg3); |
e6056257 | 10808 | |
0e2ff151 | 10809 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
10810 | if (PyErr_Occurred()) return NULL; |
10811 | } Py_INCREF(Py_None); | |
10812 | _resultobj = Py_None; | |
10813 | { | |
10814 | PyObject *o; | |
10815 | o = PyInt_FromLong((long) (*_arg2)); | |
10816 | _resultobj = t_output_helper(_resultobj, o); | |
10817 | } | |
10818 | { | |
10819 | PyObject *o; | |
10820 | o = PyInt_FromLong((long) (*_arg3)); | |
10821 | _resultobj = t_output_helper(_resultobj, o); | |
10822 | } | |
10823 | return _resultobj; | |
10824 | } | |
10825 | ||
10826 | static void *SwigwxRegionTowxGDIObject(void *ptr) { | |
10827 | wxRegion *src; | |
10828 | wxGDIObject *dest; | |
10829 | src = (wxRegion *) ptr; | |
10830 | dest = (wxGDIObject *) src; | |
10831 | return (void *) dest; | |
10832 | } | |
10833 | ||
10834 | static void *SwigwxRegionTowxObject(void *ptr) { | |
10835 | wxRegion *src; | |
10836 | wxObject *dest; | |
10837 | src = (wxRegion *) ptr; | |
10838 | dest = (wxObject *) src; | |
10839 | return (void *) dest; | |
10840 | } | |
10841 | ||
10842 | #define new_wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
10843 | static PyObject *_wrap_new_wxRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10844 | PyObject * _resultobj; | |
10845 | wxRegion * _result; | |
10846 | long _arg0 = (long ) 0; | |
10847 | long _arg1 = (long ) 0; | |
10848 | long _arg2 = (long ) 0; | |
10849 | long _arg3 = (long ) 0; | |
10850 | char *_kwnames[] = { "x","y","width","height", NULL }; | |
10851 | char _ptemp[128]; | |
10852 | ||
10853 | self = self; | |
10854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|llll:new_wxRegion",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3)) | |
10855 | return NULL; | |
10856 | { | |
0e2ff151 | 10857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 10858 | _result = (wxRegion *)new_wxRegion(_arg0,_arg1,_arg2,_arg3); |
e6056257 | 10859 | |
0e2ff151 | 10860 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
10861 | if (PyErr_Occurred()) return NULL; |
10862 | } if (_result) { | |
10863 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRegion_p"); | |
10864 | _resultobj = Py_BuildValue("s",_ptemp); | |
10865 | } else { | |
10866 | Py_INCREF(Py_None); | |
10867 | _resultobj = Py_None; | |
10868 | } | |
10869 | return _resultobj; | |
10870 | } | |
10871 | ||
10872 | #define delete_wxRegion(_swigobj) (delete _swigobj) | |
10873 | static PyObject *_wrap_delete_wxRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10874 | PyObject * _resultobj; | |
10875 | wxRegion * _arg0; | |
10876 | PyObject * _argo0 = 0; | |
10877 | char *_kwnames[] = { "self", NULL }; | |
10878 | ||
10879 | self = self; | |
10880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxRegion",_kwnames,&_argo0)) | |
10881 | return NULL; | |
10882 | if (_argo0) { | |
10883 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10884 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10885 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxRegion. Expected _wxRegion_p."); | |
10886 | return NULL; | |
10887 | } | |
10888 | } | |
10889 | { | |
0e2ff151 | 10890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 10891 | delete_wxRegion(_arg0); |
e6056257 | 10892 | |
0e2ff151 | 10893 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
10894 | if (PyErr_Occurred()) return NULL; |
10895 | } Py_INCREF(Py_None); | |
10896 | _resultobj = Py_None; | |
10897 | return _resultobj; | |
10898 | } | |
10899 | ||
10900 | #define wxRegion_Clear(_swigobj) (_swigobj->Clear()) | |
10901 | static PyObject *_wrap_wxRegion_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10902 | PyObject * _resultobj; | |
10903 | wxRegion * _arg0; | |
10904 | PyObject * _argo0 = 0; | |
10905 | char *_kwnames[] = { "self", NULL }; | |
10906 | ||
10907 | self = self; | |
10908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_Clear",_kwnames,&_argo0)) | |
10909 | return NULL; | |
10910 | if (_argo0) { | |
10911 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10912 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10913 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Clear. Expected _wxRegion_p."); | |
10914 | return NULL; | |
10915 | } | |
10916 | } | |
10917 | { | |
0e2ff151 | 10918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 10919 | wxRegion_Clear(_arg0); |
e6056257 | 10920 | |
0e2ff151 | 10921 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
10922 | if (PyErr_Occurred()) return NULL; |
10923 | } Py_INCREF(Py_None); | |
10924 | _resultobj = Py_None; | |
10925 | return _resultobj; | |
10926 | } | |
10927 | ||
10928 | #define wxRegion_Contains(_swigobj,_swigarg0,_swigarg1) (_swigobj->Contains(_swigarg0,_swigarg1)) | |
10929 | static PyObject *_wrap_wxRegion_Contains(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10930 | PyObject * _resultobj; | |
10931 | wxRegionContain _result; | |
10932 | wxRegion * _arg0; | |
10933 | long _arg1; | |
10934 | long _arg2; | |
10935 | PyObject * _argo0 = 0; | |
10936 | char *_kwnames[] = { "self","x","y", NULL }; | |
10937 | ||
10938 | self = self; | |
10939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxRegion_Contains",_kwnames,&_argo0,&_arg1,&_arg2)) | |
10940 | return NULL; | |
10941 | if (_argo0) { | |
10942 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10943 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10944 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Contains. Expected _wxRegion_p."); | |
10945 | return NULL; | |
10946 | } | |
10947 | } | |
10948 | { | |
0e2ff151 | 10949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 10950 | _result = (wxRegionContain )wxRegion_Contains(_arg0,_arg1,_arg2); |
e6056257 | 10951 | |
0e2ff151 | 10952 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
10953 | if (PyErr_Occurred()) return NULL; |
10954 | } _resultobj = Py_BuildValue("i",_result); | |
10955 | return _resultobj; | |
10956 | } | |
10957 | ||
10958 | #define wxRegion_ContainsPoint(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0)) | |
10959 | static PyObject *_wrap_wxRegion_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10960 | PyObject * _resultobj; | |
10961 | wxRegionContain _result; | |
10962 | wxRegion * _arg0; | |
10963 | wxPoint * _arg1; | |
10964 | PyObject * _argo0 = 0; | |
10965 | wxPoint temp; | |
10966 | PyObject * _obj1 = 0; | |
10967 | char *_kwnames[] = { "self","pt", NULL }; | |
10968 | ||
10969 | self = self; | |
10970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_ContainsPoint",_kwnames,&_argo0,&_obj1)) | |
10971 | return NULL; | |
10972 | if (_argo0) { | |
10973 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10974 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10975 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsPoint. Expected _wxRegion_p."); | |
10976 | return NULL; | |
10977 | } | |
10978 | } | |
10979 | { | |
10980 | _arg1 = &temp; | |
10981 | if (! wxPoint_helper(_obj1, &_arg1)) | |
10982 | return NULL; | |
10983 | } | |
10984 | { | |
0e2ff151 | 10985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 10986 | _result = (wxRegionContain )wxRegion_ContainsPoint(_arg0,*_arg1); |
e6056257 | 10987 | |
0e2ff151 | 10988 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
10989 | if (PyErr_Occurred()) return NULL; |
10990 | } _resultobj = Py_BuildValue("i",_result); | |
10991 | return _resultobj; | |
10992 | } | |
10993 | ||
10994 | #define wxRegion_ContainsRect(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0)) | |
10995 | static PyObject *_wrap_wxRegion_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10996 | PyObject * _resultobj; | |
10997 | wxRegionContain _result; | |
10998 | wxRegion * _arg0; | |
10999 | wxRect * _arg1; | |
11000 | PyObject * _argo0 = 0; | |
11001 | wxRect temp; | |
11002 | PyObject * _obj1 = 0; | |
11003 | char *_kwnames[] = { "self","rect", NULL }; | |
11004 | ||
11005 | self = self; | |
11006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_ContainsRect",_kwnames,&_argo0,&_obj1)) | |
11007 | return NULL; | |
11008 | if (_argo0) { | |
11009 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11010 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
11011 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsRect. Expected _wxRegion_p."); | |
11012 | return NULL; | |
11013 | } | |
11014 | } | |
11015 | { | |
11016 | _arg1 = &temp; | |
11017 | if (! wxRect_helper(_obj1, &_arg1)) | |
11018 | return NULL; | |
11019 | } | |
11020 | { | |
0e2ff151 | 11021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 11022 | _result = (wxRegionContain )wxRegion_ContainsRect(_arg0,*_arg1); |
e6056257 | 11023 | |
0e2ff151 | 11024 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
11025 | if (PyErr_Occurred()) return NULL; |
11026 | } _resultobj = Py_BuildValue("i",_result); | |
11027 | return _resultobj; | |
11028 | } | |
11029 | ||
11030 | #define wxRegion_ContainsRectDim(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Contains(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
11031 | static PyObject *_wrap_wxRegion_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11032 | PyObject * _resultobj; | |
11033 | wxRegionContain _result; | |
11034 | wxRegion * _arg0; | |
11035 | long _arg1; | |
11036 | long _arg2; | |
11037 | long _arg3; | |
11038 | long _arg4; | |
11039 | PyObject * _argo0 = 0; | |
11040 | char *_kwnames[] = { "self","x","y","w","h", NULL }; | |
11041 | ||
11042 | self = self; | |
11043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_ContainsRectDim",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
11044 | return NULL; | |
11045 | if (_argo0) { | |
11046 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11047 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
11048 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsRectDim. Expected _wxRegion_p."); | |
11049 | return NULL; | |
11050 | } | |
11051 | } | |
11052 | { | |
0e2ff151 | 11053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 11054 | _result = (wxRegionContain )wxRegion_ContainsRectDim(_arg0,_arg1,_arg2,_arg3,_arg4); |
e6056257 | 11055 | |
0e2ff151 | 11056 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
11057 | if (PyErr_Occurred()) return NULL; |
11058 | } _resultobj = Py_BuildValue("i",_result); | |
11059 | return _resultobj; | |
11060 | } | |
11061 | ||
11062 | #define wxRegion_GetBox(_swigobj) (_swigobj->GetBox()) | |
11063 | static PyObject *_wrap_wxRegion_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11064 | PyObject * _resultobj; | |
11065 | wxRect * _result; | |
11066 | wxRegion * _arg0; | |
11067 | PyObject * _argo0 = 0; | |
11068 | char *_kwnames[] = { "self", NULL }; | |
11069 | char _ptemp[128]; | |
11070 | ||
11071 | self = self; | |
11072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_GetBox",_kwnames,&_argo0)) | |
11073 | return NULL; | |
11074 | if (_argo0) { | |
11075 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11076 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
11077 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_GetBox. Expected _wxRegion_p."); | |
11078 | return NULL; | |
11079 | } | |
11080 | } | |
11081 | { | |
0e2ff151 | 11082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 11083 | _result = new wxRect (wxRegion_GetBox(_arg0)); |
e6056257 | 11084 | |
0e2ff151 | 11085 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
11086 | if (PyErr_Occurred()) return NULL; |
11087 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); | |
11088 | _resultobj = Py_BuildValue("s",_ptemp); | |
11089 | return _resultobj; | |
11090 | } | |
11091 | ||
11092 | #define wxRegion_Intersect(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Intersect(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
11093 | static PyObject *_wrap_wxRegion_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11094 | PyObject * _resultobj; | |
11095 | bool _result; | |
11096 | wxRegion * _arg0; | |
11097 | long _arg1; | |
11098 | long _arg2; | |
11099 | long _arg3; | |
11100 | long _arg4; | |
11101 | PyObject * _argo0 = 0; | |
11102 | char *_kwnames[] = { "self","x","y","width","height", NULL }; | |
11103 | ||
11104 | self = self; | |
11105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Intersect",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
11106 | return NULL; | |
11107 | if (_argo0) { | |
11108 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11109 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
11110 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Intersect. Expected _wxRegion_p."); | |
11111 | return NULL; | |
11112 | } | |
11113 | } | |
11114 | { | |
0e2ff151 | 11115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 11116 | _result = (bool )wxRegion_Intersect(_arg0,_arg1,_arg2,_arg3,_arg4); |
e6056257 | 11117 | |
0e2ff151 | 11118 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
11119 | if (PyErr_Occurred()) return NULL; |
11120 | } _resultobj = Py_BuildValue("i",_result); | |
11121 | return _resultobj; | |
11122 | } | |
11123 | ||
11124 | #define wxRegion_IntersectRect(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0)) | |
11125 | static PyObject *_wrap_wxRegion_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11126 | PyObject * _resultobj; | |
11127 | bool _result; | |
11128 | wxRegion * _arg0; | |
11129 | wxRect * _arg1; | |
11130 | PyObject * _argo0 = 0; | |
11131 | wxRect temp; | |
11132 | PyObject * _obj1 = 0; | |
11133 | char *_kwnames[] = { "self","rect", NULL }; | |
11134 | ||
11135 | self = self; | |
11136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_IntersectRect",_kwnames,&_argo0,&_obj1)) | |
11137 | return NULL; | |
11138 | if (_argo0) { | |
11139 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11140 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
11141 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IntersectRect. Expected _wxRegion_p."); | |
11142 | return NULL; | |
11143 | } | |
11144 | } | |
11145 | { | |
11146 | _arg1 = &temp; | |
11147 | if (! wxRect_helper(_obj1, &_arg1)) | |
11148 | return NULL; | |
11149 | } | |
11150 | { | |
0e2ff151 | 11151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 11152 | _result = (bool )wxRegion_IntersectRect(_arg0,*_arg1); |
e6056257 | 11153 | |
0e2ff151 | 11154 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
11155 | if (PyErr_Occurred()) return NULL; |
11156 | } _resultobj = Py_BuildValue("i",_result); | |
11157 | return _resultobj; | |
11158 | } | |
11159 | ||
11160 | #define wxRegion_IntersectRegion(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0)) | |
11161 | static PyObject *_wrap_wxRegion_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11162 | PyObject * _resultobj; | |
11163 | bool _result; | |
11164 | wxRegion * _arg0; | |
11165 | wxRegion * _arg1; | |
11166 | PyObject * _argo0 = 0; | |
11167 | PyObject * _argo1 = 0; | |
11168 | char *_kwnames[] = { "self","region", NULL }; | |
11169 | ||
11170 | self = self; | |
11171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_IntersectRegion",_kwnames,&_argo0,&_argo1)) | |
11172 | return NULL; | |
11173 | if (_argo0) { | |
11174 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11175 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
11176 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IntersectRegion. Expected _wxRegion_p."); | |
11177 | return NULL; | |
11178 | } | |
11179 | } | |
11180 | if (_argo1) { | |
11181 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
11182 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) { | |
11183 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_IntersectRegion. Expected _wxRegion_p."); | |
11184 | return NULL; | |
11185 | } | |
11186 | } | |
11187 | { | |
0e2ff151 | 11188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 11189 | _result = (bool )wxRegion_IntersectRegion(_arg0,*_arg1); |
e6056257 | 11190 | |
0e2ff151 | 11191 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
11192 | if (PyErr_Occurred()) return NULL; |
11193 | } _resultobj = Py_BuildValue("i",_result); | |
11194 | return _resultobj; | |
11195 | } | |
11196 | ||
11197 | #define wxRegion_IsEmpty(_swigobj) (_swigobj->IsEmpty()) | |
11198 | static PyObject *_wrap_wxRegion_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11199 | PyObject * _resultobj; | |
11200 | bool _result; | |
11201 | wxRegion * _arg0; | |
11202 | PyObject * _argo0 = 0; | |
11203 | char *_kwnames[] = { "self", NULL }; | |
11204 | ||
11205 | self = self; | |
11206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_IsEmpty",_kwnames,&_argo0)) | |
11207 | return NULL; | |
11208 | if (_argo0) { | |
11209 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11210 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
11211 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IsEmpty. Expected _wxRegion_p."); | |
11212 | return NULL; | |
11213 | } | |
11214 | } | |
11215 | { | |
0e2ff151 | 11216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 11217 | _result = (bool )wxRegion_IsEmpty(_arg0); |
e6056257 | 11218 | |
0e2ff151 | 11219 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
11220 | if (PyErr_Occurred()) return NULL; |
11221 | } _resultobj = Py_BuildValue("i",_result); | |
11222 | return _resultobj; | |
11223 | } | |
11224 | ||
11225 | #define wxRegion_Union(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Union(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
11226 | static PyObject *_wrap_wxRegion_Union(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11227 | PyObject * _resultobj; | |
11228 | bool _result; | |
11229 | wxRegion * _arg0; | |
11230 | long _arg1; | |
11231 | long _arg2; | |
11232 | long _arg3; | |
11233 | long _arg4; | |
11234 | PyObject * _argo0 = 0; | |
11235 | char *_kwnames[] = { "self","x","y","width","height", NULL }; | |
11236 | ||
11237 | self = self; | |
11238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Union",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
11239 | return NULL; | |
11240 | if (_argo0) { | |
11241 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11242 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
11243 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Union. Expected _wxRegion_p."); | |
11244 | return NULL; | |
11245 | } | |
11246 | } | |
11247 | { | |
0e2ff151 | 11248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 11249 | _result = (bool )wxRegion_Union(_arg0,_arg1,_arg2,_arg3,_arg4); |
e6056257 | 11250 | |
0e2ff151 | 11251 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
11252 | if (PyErr_Occurred()) return NULL; |
11253 | } _resultobj = Py_BuildValue("i",_result); | |
11254 | return _resultobj; | |
11255 | } | |
11256 | ||
11257 | #define wxRegion_UnionRect(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0)) | |
11258 | static PyObject *_wrap_wxRegion_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11259 | PyObject * _resultobj; | |
11260 | bool _result; | |
11261 | wxRegion * _arg0; | |
11262 | wxRect * _arg1; | |
11263 | PyObject * _argo0 = 0; | |
11264 | wxRect temp; | |
11265 | PyObject * _obj1 = 0; | |
11266 | char *_kwnames[] = { "self","rect", NULL }; | |
11267 | ||
11268 | self = self; | |
11269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_UnionRect",_kwnames,&_argo0,&_obj1)) | |
11270 | return NULL; | |
11271 | if (_argo0) { | |
11272 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11273 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
11274 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_UnionRect. Expected _wxRegion_p."); | |
11275 | return NULL; | |
11276 | } | |
11277 | } | |
11278 | { | |
11279 | _arg1 = &temp; | |
11280 | if (! wxRect_helper(_obj1, &_arg1)) | |
11281 | return NULL; | |
11282 | } | |
11283 | { | |
0e2ff151 | 11284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 11285 | _result = (bool )wxRegion_UnionRect(_arg0,*_arg1); |
e6056257 | 11286 | |
0e2ff151 | 11287 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
11288 | if (PyErr_Occurred()) return NULL; |
11289 | } _resultobj = Py_BuildValue("i",_result); | |
11290 | return _resultobj; | |
11291 | } | |
11292 | ||
11293 | #define wxRegion_UnionRegion(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0)) | |
11294 | static PyObject *_wrap_wxRegion_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11295 | PyObject * _resultobj; | |
11296 | bool _result; | |
11297 | wxRegion * _arg0; | |
11298 | wxRegion * _arg1; | |
11299 | PyObject * _argo0 = 0; | |
11300 | PyObject * _argo1 = 0; | |
11301 | char *_kwnames[] = { "self","region", NULL }; | |
11302 | ||
11303 | self = self; | |
11304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_UnionRegion",_kwnames,&_argo0,&_argo1)) | |
11305 | return NULL; | |
11306 | if (_argo0) { | |
11307 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11308 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
11309 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_UnionRegion. Expected _wxRegion_p."); | |
11310 | return NULL; | |
11311 | } | |
11312 | } | |
11313 | if (_argo1) { | |
11314 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
11315 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) { | |
11316 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_UnionRegion. Expected _wxRegion_p."); | |
11317 | return NULL; | |
11318 | } | |
11319 | } | |
11320 | { | |
0e2ff151 | 11321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 11322 | _result = (bool )wxRegion_UnionRegion(_arg0,*_arg1); |
e6056257 | 11323 | |
0e2ff151 | 11324 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
11325 | if (PyErr_Occurred()) return NULL; |
11326 | } _resultobj = Py_BuildValue("i",_result); | |
11327 | return _resultobj; | |
11328 | } | |
11329 | ||
11330 | #define wxRegion_Subtract(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Subtract(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
11331 | static PyObject *_wrap_wxRegion_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11332 | PyObject * _resultobj; | |
11333 | bool _result; | |
11334 | wxRegion * _arg0; | |
11335 | long _arg1; | |
11336 | long _arg2; | |
11337 | long _arg3; | |
11338 | long _arg4; | |
11339 | PyObject * _argo0 = 0; | |
11340 | char *_kwnames[] = { "self","x","y","width","height", NULL }; | |
11341 | ||
11342 | self = self; | |
11343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Subtract",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
11344 | return NULL; | |
11345 | if (_argo0) { | |
11346 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11347 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
11348 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Subtract. Expected _wxRegion_p."); | |
11349 | return NULL; | |
11350 | } | |
11351 | } | |
11352 | { | |
0e2ff151 | 11353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 11354 | _result = (bool )wxRegion_Subtract(_arg0,_arg1,_arg2,_arg3,_arg4); |
e6056257 | 11355 | |
0e2ff151 | 11356 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
11357 | if (PyErr_Occurred()) return NULL; |
11358 | } _resultobj = Py_BuildValue("i",_result); | |
11359 | return _resultobj; | |
11360 | } | |
11361 | ||
11362 | #define wxRegion_SubtractRect(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0)) | |
11363 | static PyObject *_wrap_wxRegion_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11364 | PyObject * _resultobj; | |
11365 | bool _result; | |
11366 | wxRegion * _arg0; | |
11367 | wxRect * _arg1; | |
11368 | PyObject * _argo0 = 0; | |
11369 | wxRect temp; | |
11370 | PyObject * _obj1 = 0; | |
11371 | char *_kwnames[] = { "self","rect", NULL }; | |
11372 | ||
11373 | self = self; | |
11374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_SubtractRect",_kwnames,&_argo0,&_obj1)) | |
11375 | return NULL; | |
11376 | if (_argo0) { | |
11377 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11378 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
11379 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_SubtractRect. Expected _wxRegion_p."); | |
11380 | return NULL; | |
11381 | } | |
11382 | } | |
11383 | { | |
11384 | _arg1 = &temp; | |
11385 | if (! wxRect_helper(_obj1, &_arg1)) | |
11386 | return NULL; | |
11387 | } | |
11388 | { | |
0e2ff151 | 11389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 11390 | _result = (bool )wxRegion_SubtractRect(_arg0,*_arg1); |
e6056257 | 11391 | |
0e2ff151 | 11392 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
11393 | if (PyErr_Occurred()) return NULL; |
11394 | } _resultobj = Py_BuildValue("i",_result); | |
11395 | return _resultobj; | |
11396 | } | |
11397 | ||
11398 | #define wxRegion_SubtractRegion(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0)) | |
11399 | static PyObject *_wrap_wxRegion_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11400 | PyObject * _resultobj; | |
11401 | bool _result; | |
11402 | wxRegion * _arg0; | |
11403 | wxRegion * _arg1; | |
11404 | PyObject * _argo0 = 0; | |
11405 | PyObject * _argo1 = 0; | |
11406 | char *_kwnames[] = { "self","region", NULL }; | |
11407 | ||
11408 | self = self; | |
11409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_SubtractRegion",_kwnames,&_argo0,&_argo1)) | |
11410 | return NULL; | |
11411 | if (_argo0) { | |
11412 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11413 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
11414 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_SubtractRegion. Expected _wxRegion_p."); | |
11415 | return NULL; | |
11416 | } | |
11417 | } | |
11418 | if (_argo1) { | |
11419 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
11420 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) { | |
11421 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_SubtractRegion. Expected _wxRegion_p."); | |
11422 | return NULL; | |
11423 | } | |
11424 | } | |
11425 | { | |
0e2ff151 | 11426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 11427 | _result = (bool )wxRegion_SubtractRegion(_arg0,*_arg1); |
e6056257 | 11428 | |
0e2ff151 | 11429 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
11430 | if (PyErr_Occurred()) return NULL; |
11431 | } _resultobj = Py_BuildValue("i",_result); | |
11432 | return _resultobj; | |
11433 | } | |
11434 | ||
11435 | #define wxRegion_Xor(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Xor(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
11436 | static PyObject *_wrap_wxRegion_Xor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11437 | PyObject * _resultobj; | |
11438 | bool _result; | |
11439 | wxRegion * _arg0; | |
11440 | long _arg1; | |
11441 | long _arg2; | |
11442 | long _arg3; | |
11443 | long _arg4; | |
11444 | PyObject * _argo0 = 0; | |
11445 | char *_kwnames[] = { "self","x","y","width","height", NULL }; | |
11446 | ||
11447 | self = self; | |
11448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Xor",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
11449 | return NULL; | |
11450 | if (_argo0) { | |
11451 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11452 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
11453 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Xor. Expected _wxRegion_p."); | |
11454 | return NULL; | |
11455 | } | |
11456 | } | |
11457 | { | |
0e2ff151 | 11458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 11459 | _result = (bool )wxRegion_Xor(_arg0,_arg1,_arg2,_arg3,_arg4); |
e6056257 | 11460 | |
0e2ff151 | 11461 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
11462 | if (PyErr_Occurred()) return NULL; |
11463 | } _resultobj = Py_BuildValue("i",_result); | |
11464 | return _resultobj; | |
11465 | } | |
11466 | ||
11467 | #define wxRegion_XorRect(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0)) | |
11468 | static PyObject *_wrap_wxRegion_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11469 | PyObject * _resultobj; | |
11470 | bool _result; | |
11471 | wxRegion * _arg0; | |
11472 | wxRect * _arg1; | |
11473 | PyObject * _argo0 = 0; | |
11474 | wxRect temp; | |
11475 | PyObject * _obj1 = 0; | |
11476 | char *_kwnames[] = { "self","rect", NULL }; | |
11477 | ||
11478 | self = self; | |
11479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_XorRect",_kwnames,&_argo0,&_obj1)) | |
11480 | return NULL; | |
11481 | if (_argo0) { | |
11482 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11483 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
11484 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_XorRect. Expected _wxRegion_p."); | |
11485 | return NULL; | |
11486 | } | |
11487 | } | |
11488 | { | |
11489 | _arg1 = &temp; | |
11490 | if (! wxRect_helper(_obj1, &_arg1)) | |
11491 | return NULL; | |
11492 | } | |
11493 | { | |
0e2ff151 | 11494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 11495 | _result = (bool )wxRegion_XorRect(_arg0,*_arg1); |
e6056257 | 11496 | |
0e2ff151 | 11497 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
11498 | if (PyErr_Occurred()) return NULL; |
11499 | } _resultobj = Py_BuildValue("i",_result); | |
11500 | return _resultobj; | |
11501 | } | |
11502 | ||
11503 | #define wxRegion_XorRegion(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0)) | |
11504 | static PyObject *_wrap_wxRegion_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11505 | PyObject * _resultobj; | |
11506 | bool _result; | |
11507 | wxRegion * _arg0; | |
11508 | wxRegion * _arg1; | |
11509 | PyObject * _argo0 = 0; | |
11510 | PyObject * _argo1 = 0; | |
11511 | char *_kwnames[] = { "self","region", NULL }; | |
11512 | ||
11513 | self = self; | |
11514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_XorRegion",_kwnames,&_argo0,&_argo1)) | |
11515 | return NULL; | |
11516 | if (_argo0) { | |
11517 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11518 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
11519 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_XorRegion. Expected _wxRegion_p."); | |
11520 | return NULL; | |
11521 | } | |
11522 | } | |
11523 | if (_argo1) { | |
11524 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
11525 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) { | |
11526 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_XorRegion. Expected _wxRegion_p."); | |
11527 | return NULL; | |
11528 | } | |
11529 | } | |
11530 | { | |
0e2ff151 | 11531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 11532 | _result = (bool )wxRegion_XorRegion(_arg0,*_arg1); |
e6056257 | 11533 | |
0e2ff151 | 11534 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
11535 | if (PyErr_Occurred()) return NULL; |
11536 | } _resultobj = Py_BuildValue("i",_result); | |
11537 | return _resultobj; | |
11538 | } | |
11539 | ||
11540 | static void *SwigwxRegionIteratorTowxObject(void *ptr) { | |
11541 | wxRegionIterator *src; | |
11542 | wxObject *dest; | |
11543 | src = (wxRegionIterator *) ptr; | |
11544 | dest = (wxObject *) src; | |
11545 | return (void *) dest; | |
11546 | } | |
11547 | ||
11548 | #define new_wxRegionIterator(_swigarg0) (new wxRegionIterator(_swigarg0)) | |
11549 | static PyObject *_wrap_new_wxRegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11550 | PyObject * _resultobj; | |
11551 | wxRegionIterator * _result; | |
11552 | wxRegion * _arg0; | |
11553 | PyObject * _argo0 = 0; | |
11554 | char *_kwnames[] = { "region", NULL }; | |
11555 | char _ptemp[128]; | |
11556 | ||
11557 | self = self; | |
11558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxRegionIterator",_kwnames,&_argo0)) | |
11559 | return NULL; | |
11560 | if (_argo0) { | |
11561 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11562 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
11563 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxRegionIterator. Expected _wxRegion_p."); | |
11564 | return NULL; | |
11565 | } | |
11566 | } | |
11567 | { | |
0e2ff151 | 11568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 11569 | _result = (wxRegionIterator *)new_wxRegionIterator(*_arg0); |
e6056257 | 11570 | |
0e2ff151 | 11571 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
11572 | if (PyErr_Occurred()) return NULL; |
11573 | } if (_result) { | |
11574 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRegionIterator_p"); | |
11575 | _resultobj = Py_BuildValue("s",_ptemp); | |
11576 | } else { | |
11577 | Py_INCREF(Py_None); | |
11578 | _resultobj = Py_None; | |
11579 | } | |
11580 | return _resultobj; | |
11581 | } | |
11582 | ||
11583 | #define delete_wxRegionIterator(_swigobj) (delete _swigobj) | |
11584 | static PyObject *_wrap_delete_wxRegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11585 | PyObject * _resultobj; | |
11586 | wxRegionIterator * _arg0; | |
11587 | PyObject * _argo0 = 0; | |
11588 | char *_kwnames[] = { "self", NULL }; | |
11589 | ||
11590 | self = self; | |
11591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxRegionIterator",_kwnames,&_argo0)) | |
11592 | return NULL; | |
11593 | if (_argo0) { | |
11594 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11595 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
11596 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxRegionIterator. Expected _wxRegionIterator_p."); | |
11597 | return NULL; | |
11598 | } | |
11599 | } | |
11600 | { | |
0e2ff151 | 11601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 11602 | delete_wxRegionIterator(_arg0); |
e6056257 | 11603 | |
0e2ff151 | 11604 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
11605 | if (PyErr_Occurred()) return NULL; |
11606 | } Py_INCREF(Py_None); | |
11607 | _resultobj = Py_None; | |
11608 | return _resultobj; | |
11609 | } | |
11610 | ||
11611 | #define wxRegionIterator_GetX(_swigobj) (_swigobj->GetX()) | |
11612 | static PyObject *_wrap_wxRegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11613 | PyObject * _resultobj; | |
11614 | long _result; | |
11615 | wxRegionIterator * _arg0; | |
11616 | PyObject * _argo0 = 0; | |
11617 | char *_kwnames[] = { "self", NULL }; | |
11618 | ||
11619 | self = self; | |
11620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetX",_kwnames,&_argo0)) | |
11621 | return NULL; | |
11622 | if (_argo0) { | |
11623 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11624 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
11625 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetX. Expected _wxRegionIterator_p."); | |
11626 | return NULL; | |
11627 | } | |
11628 | } | |
11629 | { | |
0e2ff151 | 11630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 11631 | _result = (long )wxRegionIterator_GetX(_arg0); |
e6056257 | 11632 | |
0e2ff151 | 11633 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
11634 | if (PyErr_Occurred()) return NULL; |
11635 | } _resultobj = Py_BuildValue("l",_result); | |
11636 | return _resultobj; | |
11637 | } | |
11638 | ||
11639 | #define wxRegionIterator_GetY(_swigobj) (_swigobj->GetY()) | |
11640 | static PyObject *_wrap_wxRegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11641 | PyObject * _resultobj; | |
11642 | long _result; | |
11643 | wxRegionIterator * _arg0; | |
11644 | PyObject * _argo0 = 0; | |
11645 | char *_kwnames[] = { "self", NULL }; | |
11646 | ||
11647 | self = self; | |
11648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetY",_kwnames,&_argo0)) | |
11649 | return NULL; | |
11650 | if (_argo0) { | |
11651 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11652 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
11653 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetY. Expected _wxRegionIterator_p."); | |
11654 | return NULL; | |
11655 | } | |
11656 | } | |
11657 | { | |
0e2ff151 | 11658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 11659 | _result = (long )wxRegionIterator_GetY(_arg0); |
e6056257 | 11660 | |
0e2ff151 | 11661 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
11662 | if (PyErr_Occurred()) return NULL; |
11663 | } _resultobj = Py_BuildValue("l",_result); | |
11664 | return _resultobj; | |
11665 | } | |
11666 | ||
11667 | #define wxRegionIterator_GetW(_swigobj) (_swigobj->GetW()) | |
11668 | static PyObject *_wrap_wxRegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11669 | PyObject * _resultobj; | |
11670 | long _result; | |
11671 | wxRegionIterator * _arg0; | |
11672 | PyObject * _argo0 = 0; | |
11673 | char *_kwnames[] = { "self", NULL }; | |
11674 | ||
11675 | self = self; | |
11676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetW",_kwnames,&_argo0)) | |
11677 | return NULL; | |
11678 | if (_argo0) { | |
11679 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11680 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
11681 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetW. Expected _wxRegionIterator_p."); | |
11682 | return NULL; | |
11683 | } | |
11684 | } | |
11685 | { | |
0e2ff151 | 11686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 11687 | _result = (long )wxRegionIterator_GetW(_arg0); |
e6056257 | 11688 | |
0e2ff151 | 11689 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
11690 | if (PyErr_Occurred()) return NULL; |
11691 | } _resultobj = Py_BuildValue("l",_result); | |
11692 | return _resultobj; | |
11693 | } | |
11694 | ||
11695 | #define wxRegionIterator_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
11696 | static PyObject *_wrap_wxRegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11697 | PyObject * _resultobj; | |
11698 | long _result; | |
11699 | wxRegionIterator * _arg0; | |
11700 | PyObject * _argo0 = 0; | |
11701 | char *_kwnames[] = { "self", NULL }; | |
11702 | ||
11703 | self = self; | |
11704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetWidth",_kwnames,&_argo0)) | |
11705 | return NULL; | |
11706 | if (_argo0) { | |
11707 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11708 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
11709 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetWidth. Expected _wxRegionIterator_p."); | |
11710 | return NULL; | |
11711 | } | |
11712 | } | |
11713 | { | |
0e2ff151 | 11714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 11715 | _result = (long )wxRegionIterator_GetWidth(_arg0); |
e6056257 | 11716 | |
0e2ff151 | 11717 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
11718 | if (PyErr_Occurred()) return NULL; |
11719 | } _resultobj = Py_BuildValue("l",_result); | |
11720 | return _resultobj; | |
11721 | } | |
11722 | ||
11723 | #define wxRegionIterator_GetH(_swigobj) (_swigobj->GetH()) | |
11724 | static PyObject *_wrap_wxRegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11725 | PyObject * _resultobj; | |
11726 | long _result; | |
11727 | wxRegionIterator * _arg0; | |
11728 | PyObject * _argo0 = 0; | |
11729 | char *_kwnames[] = { "self", NULL }; | |
11730 | ||
11731 | self = self; | |
11732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetH",_kwnames,&_argo0)) | |
11733 | return NULL; | |
11734 | if (_argo0) { | |
11735 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11736 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
11737 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetH. Expected _wxRegionIterator_p."); | |
11738 | return NULL; | |
11739 | } | |
11740 | } | |
11741 | { | |
0e2ff151 | 11742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 11743 | _result = (long )wxRegionIterator_GetH(_arg0); |
e6056257 | 11744 | |
0e2ff151 | 11745 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
11746 | if (PyErr_Occurred()) return NULL; |
11747 | } _resultobj = Py_BuildValue("l",_result); | |
11748 | return _resultobj; | |
11749 | } | |
11750 | ||
11751 | #define wxRegionIterator_GetHeight(_swigobj) (_swigobj->GetHeight()) | |
11752 | static PyObject *_wrap_wxRegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11753 | PyObject * _resultobj; | |
11754 | long _result; | |
11755 | wxRegionIterator * _arg0; | |
11756 | PyObject * _argo0 = 0; | |
11757 | char *_kwnames[] = { "self", NULL }; | |
11758 | ||
11759 | self = self; | |
11760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetHeight",_kwnames,&_argo0)) | |
11761 | return NULL; | |
11762 | if (_argo0) { | |
11763 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11764 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
11765 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetHeight. Expected _wxRegionIterator_p."); | |
11766 | return NULL; | |
11767 | } | |
11768 | } | |
11769 | { | |
0e2ff151 | 11770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 11771 | _result = (long )wxRegionIterator_GetHeight(_arg0); |
e6056257 | 11772 | |
0e2ff151 | 11773 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
11774 | if (PyErr_Occurred()) return NULL; |
11775 | } _resultobj = Py_BuildValue("l",_result); | |
11776 | return _resultobj; | |
11777 | } | |
11778 | ||
11779 | #define wxRegionIterator_GetRect(_swigobj) (_swigobj->GetRect()) | |
11780 | static PyObject *_wrap_wxRegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11781 | PyObject * _resultobj; | |
11782 | wxRect * _result; | |
11783 | wxRegionIterator * _arg0; | |
11784 | PyObject * _argo0 = 0; | |
11785 | char *_kwnames[] = { "self", NULL }; | |
11786 | char _ptemp[128]; | |
11787 | ||
11788 | self = self; | |
11789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetRect",_kwnames,&_argo0)) | |
11790 | return NULL; | |
11791 | if (_argo0) { | |
11792 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11793 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
11794 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetRect. Expected _wxRegionIterator_p."); | |
11795 | return NULL; | |
11796 | } | |
11797 | } | |
11798 | { | |
0e2ff151 | 11799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 11800 | _result = new wxRect (wxRegionIterator_GetRect(_arg0)); |
e6056257 | 11801 | |
0e2ff151 | 11802 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
11803 | if (PyErr_Occurred()) return NULL; |
11804 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); | |
11805 | _resultobj = Py_BuildValue("s",_ptemp); | |
11806 | return _resultobj; | |
11807 | } | |
11808 | ||
11809 | #define wxRegionIterator_HaveRects(_swigobj) (_swigobj->HaveRects()) | |
11810 | static PyObject *_wrap_wxRegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11811 | PyObject * _resultobj; | |
11812 | bool _result; | |
11813 | wxRegionIterator * _arg0; | |
11814 | PyObject * _argo0 = 0; | |
11815 | char *_kwnames[] = { "self", NULL }; | |
11816 | ||
11817 | self = self; | |
11818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_HaveRects",_kwnames,&_argo0)) | |
11819 | return NULL; | |
11820 | if (_argo0) { | |
11821 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11822 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
11823 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_HaveRects. Expected _wxRegionIterator_p."); | |
11824 | return NULL; | |
11825 | } | |
11826 | } | |
11827 | { | |
0e2ff151 | 11828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 11829 | _result = (bool )wxRegionIterator_HaveRects(_arg0); |
e6056257 | 11830 | |
0e2ff151 | 11831 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
11832 | if (PyErr_Occurred()) return NULL; |
11833 | } _resultobj = Py_BuildValue("i",_result); | |
11834 | return _resultobj; | |
11835 | } | |
11836 | ||
11837 | #define wxRegionIterator_Reset(_swigobj) (_swigobj->Reset()) | |
11838 | static PyObject *_wrap_wxRegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11839 | PyObject * _resultobj; | |
11840 | wxRegionIterator * _arg0; | |
11841 | PyObject * _argo0 = 0; | |
11842 | char *_kwnames[] = { "self", NULL }; | |
11843 | ||
11844 | self = self; | |
11845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_Reset",_kwnames,&_argo0)) | |
11846 | return NULL; | |
11847 | if (_argo0) { | |
11848 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11849 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
11850 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_Reset. Expected _wxRegionIterator_p."); | |
11851 | return NULL; | |
11852 | } | |
11853 | } | |
11854 | { | |
0e2ff151 | 11855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 11856 | wxRegionIterator_Reset(_arg0); |
e6056257 | 11857 | |
0e2ff151 | 11858 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
11859 | if (PyErr_Occurred()) return NULL; |
11860 | } Py_INCREF(Py_None); | |
11861 | _resultobj = Py_None; | |
11862 | return _resultobj; | |
11863 | } | |
11864 | ||
11865 | static void wxRegionIterator_Next(wxRegionIterator *self) { | |
11866 | (*self) ++; | |
11867 | } | |
11868 | static PyObject *_wrap_wxRegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11869 | PyObject * _resultobj; | |
11870 | wxRegionIterator * _arg0; | |
11871 | PyObject * _argo0 = 0; | |
11872 | char *_kwnames[] = { "self", NULL }; | |
11873 | ||
11874 | self = self; | |
11875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_Next",_kwnames,&_argo0)) | |
11876 | return NULL; | |
11877 | if (_argo0) { | |
11878 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11879 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
11880 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_Next. Expected _wxRegionIterator_p."); | |
11881 | return NULL; | |
11882 | } | |
11883 | } | |
11884 | { | |
0e2ff151 | 11885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6824d4f9 | 11886 | wxRegionIterator_Next(_arg0); |
e6056257 | 11887 | |
0e2ff151 | 11888 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
11889 | if (PyErr_Occurred()) return NULL; |
11890 | } Py_INCREF(Py_None); | |
11891 | _resultobj = Py_None; | |
11892 | return _resultobj; | |
11893 | } | |
11894 | ||
11895 | static PyMethodDef gdicMethods[] = { | |
11896 | { "wxRegionIterator_Next", (PyCFunction) _wrap_wxRegionIterator_Next, METH_VARARGS | METH_KEYWORDS }, | |
11897 | { "wxRegionIterator_Reset", (PyCFunction) _wrap_wxRegionIterator_Reset, METH_VARARGS | METH_KEYWORDS }, | |
11898 | { "wxRegionIterator_HaveRects", (PyCFunction) _wrap_wxRegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS }, | |
11899 | { "wxRegionIterator_GetRect", (PyCFunction) _wrap_wxRegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
11900 | { "wxRegionIterator_GetHeight", (PyCFunction) _wrap_wxRegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
11901 | { "wxRegionIterator_GetH", (PyCFunction) _wrap_wxRegionIterator_GetH, METH_VARARGS | METH_KEYWORDS }, | |
11902 | { "wxRegionIterator_GetWidth", (PyCFunction) _wrap_wxRegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
11903 | { "wxRegionIterator_GetW", (PyCFunction) _wrap_wxRegionIterator_GetW, METH_VARARGS | METH_KEYWORDS }, | |
11904 | { "wxRegionIterator_GetY", (PyCFunction) _wrap_wxRegionIterator_GetY, METH_VARARGS | METH_KEYWORDS }, | |
11905 | { "wxRegionIterator_GetX", (PyCFunction) _wrap_wxRegionIterator_GetX, METH_VARARGS | METH_KEYWORDS }, | |
11906 | { "delete_wxRegionIterator", (PyCFunction) _wrap_delete_wxRegionIterator, METH_VARARGS | METH_KEYWORDS }, | |
11907 | { "new_wxRegionIterator", (PyCFunction) _wrap_new_wxRegionIterator, METH_VARARGS | METH_KEYWORDS }, | |
11908 | { "wxRegion_XorRegion", (PyCFunction) _wrap_wxRegion_XorRegion, METH_VARARGS | METH_KEYWORDS }, | |
11909 | { "wxRegion_XorRect", (PyCFunction) _wrap_wxRegion_XorRect, METH_VARARGS | METH_KEYWORDS }, | |
11910 | { "wxRegion_Xor", (PyCFunction) _wrap_wxRegion_Xor, METH_VARARGS | METH_KEYWORDS }, | |
11911 | { "wxRegion_SubtractRegion", (PyCFunction) _wrap_wxRegion_SubtractRegion, METH_VARARGS | METH_KEYWORDS }, | |
11912 | { "wxRegion_SubtractRect", (PyCFunction) _wrap_wxRegion_SubtractRect, METH_VARARGS | METH_KEYWORDS }, | |
11913 | { "wxRegion_Subtract", (PyCFunction) _wrap_wxRegion_Subtract, METH_VARARGS | METH_KEYWORDS }, | |
11914 | { "wxRegion_UnionRegion", (PyCFunction) _wrap_wxRegion_UnionRegion, METH_VARARGS | METH_KEYWORDS }, | |
11915 | { "wxRegion_UnionRect", (PyCFunction) _wrap_wxRegion_UnionRect, METH_VARARGS | METH_KEYWORDS }, | |
11916 | { "wxRegion_Union", (PyCFunction) _wrap_wxRegion_Union, METH_VARARGS | METH_KEYWORDS }, | |
11917 | { "wxRegion_IsEmpty", (PyCFunction) _wrap_wxRegion_IsEmpty, METH_VARARGS | METH_KEYWORDS }, | |
11918 | { "wxRegion_IntersectRegion", (PyCFunction) _wrap_wxRegion_IntersectRegion, METH_VARARGS | METH_KEYWORDS }, | |
11919 | { "wxRegion_IntersectRect", (PyCFunction) _wrap_wxRegion_IntersectRect, METH_VARARGS | METH_KEYWORDS }, | |
11920 | { "wxRegion_Intersect", (PyCFunction) _wrap_wxRegion_Intersect, METH_VARARGS | METH_KEYWORDS }, | |
11921 | { "wxRegion_GetBox", (PyCFunction) _wrap_wxRegion_GetBox, METH_VARARGS | METH_KEYWORDS }, | |
11922 | { "wxRegion_ContainsRectDim", (PyCFunction) _wrap_wxRegion_ContainsRectDim, METH_VARARGS | METH_KEYWORDS }, | |
11923 | { "wxRegion_ContainsRect", (PyCFunction) _wrap_wxRegion_ContainsRect, METH_VARARGS | METH_KEYWORDS }, | |
11924 | { "wxRegion_ContainsPoint", (PyCFunction) _wrap_wxRegion_ContainsPoint, METH_VARARGS | METH_KEYWORDS }, | |
11925 | { "wxRegion_Contains", (PyCFunction) _wrap_wxRegion_Contains, METH_VARARGS | METH_KEYWORDS }, | |
11926 | { "wxRegion_Clear", (PyCFunction) _wrap_wxRegion_Clear, METH_VARARGS | METH_KEYWORDS }, | |
11927 | { "delete_wxRegion", (PyCFunction) _wrap_delete_wxRegion, METH_VARARGS | METH_KEYWORDS }, | |
11928 | { "new_wxRegion", (PyCFunction) _wrap_new_wxRegion, METH_VARARGS | METH_KEYWORDS }, | |
11929 | { "wxImageList_GetSize", (PyCFunction) _wrap_wxImageList_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
11930 | { "wxImageList_RemoveAll", (PyCFunction) _wrap_wxImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS }, | |
11931 | { "wxImageList_Remove", (PyCFunction) _wrap_wxImageList_Remove, METH_VARARGS | METH_KEYWORDS }, | |
11932 | { "wxImageList_GetImageCount", (PyCFunction) _wrap_wxImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS }, | |
11933 | { "wxImageList_Draw", (PyCFunction) _wrap_wxImageList_Draw, METH_VARARGS | METH_KEYWORDS }, | |
11934 | { "wxImageList_Replace", (PyCFunction) _wrap_wxImageList_Replace, METH_VARARGS | METH_KEYWORDS }, | |
11935 | { "wxImageList_AddIcon", (PyCFunction) _wrap_wxImageList_AddIcon, METH_VARARGS | METH_KEYWORDS }, | |
11936 | { "wxImageList_AddWithColourMask", (PyCFunction) _wrap_wxImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS }, | |
11937 | { "wxImageList_Add", (PyCFunction) _wrap_wxImageList_Add, METH_VARARGS | METH_KEYWORDS }, | |
11938 | { "delete_wxImageList", (PyCFunction) _wrap_delete_wxImageList, METH_VARARGS | METH_KEYWORDS }, | |
11939 | { "new_wxImageList", (PyCFunction) _wrap_new_wxImageList, METH_VARARGS | METH_KEYWORDS }, | |
11940 | { "wxPalette_Ok", (PyCFunction) _wrap_wxPalette_Ok, METH_VARARGS | METH_KEYWORDS }, | |
11941 | { "wxPalette_GetRGB", (PyCFunction) _wrap_wxPalette_GetRGB, METH_VARARGS | METH_KEYWORDS }, | |
11942 | { "wxPalette_GetPixel", (PyCFunction) _wrap_wxPalette_GetPixel, METH_VARARGS | METH_KEYWORDS }, | |
11943 | { "delete_wxPalette", (PyCFunction) _wrap_delete_wxPalette, METH_VARARGS | METH_KEYWORDS }, | |
11944 | { "new_wxPalette", (PyCFunction) _wrap_new_wxPalette, METH_VARARGS | METH_KEYWORDS }, | |
e6056257 RD |
11945 | { "new_wxWindowDC", (PyCFunction) _wrap_new_wxWindowDC, METH_VARARGS | METH_KEYWORDS }, |
11946 | { "new_wxPaintDC", (PyCFunction) _wrap_new_wxPaintDC, METH_VARARGS | METH_KEYWORDS }, | |
11947 | { "new_wxClientDC", (PyCFunction) _wrap_new_wxClientDC, METH_VARARGS | METH_KEYWORDS }, | |
11948 | { "wxScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_wxScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS }, | |
11949 | { "wxScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_wxScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS }, | |
11950 | { "wxScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_wxScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS }, | |
11951 | { "new_wxScreenDC", (PyCFunction) _wrap_new_wxScreenDC, METH_VARARGS | METH_KEYWORDS }, | |
c3bfa1cb RD |
11952 | { "new_wxBufferedPaintDC", (PyCFunction) _wrap_new_wxBufferedPaintDC, METH_VARARGS | METH_KEYWORDS }, |
11953 | { "new_wxBufferedDCInternalBuffer", (PyCFunction) _wrap_new_wxBufferedDCInternalBuffer, METH_VARARGS | METH_KEYWORDS }, | |
11954 | { "new_wxBufferedDC", (PyCFunction) _wrap_new_wxBufferedDC, METH_VARARGS | METH_KEYWORDS }, | |
e6056257 RD |
11955 | { "wxMemoryDC_SelectObject", (PyCFunction) _wrap_wxMemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS }, |
11956 | { "new_wxMemoryDC", (PyCFunction) _wrap_new_wxMemoryDC, METH_VARARGS | METH_KEYWORDS }, | |
11957 | { "wxDC__DrawLineList", (PyCFunction) _wrap_wxDC__DrawLineList, METH_VARARGS | METH_KEYWORDS }, | |
11958 | { "wxDC__DrawPointList", (PyCFunction) _wrap_wxDC__DrawPointList, METH_VARARGS | METH_KEYWORDS }, | |
11959 | { "wxDC_GetBoundingBox", (PyCFunction) _wrap_wxDC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS }, | |
11960 | { "wxDC_ResetBoundingBox", (PyCFunction) _wrap_wxDC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS }, | |
11961 | { "wxDC_CalcBoundingBox", (PyCFunction) _wrap_wxDC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS }, | |
11962 | { "wxDC_SetAxisOrientation", (PyCFunction) _wrap_wxDC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS }, | |
11963 | { "wxDC_GetDeviceOrigin", (PyCFunction) _wrap_wxDC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS }, | |
11964 | { "wxDC_SetLogicalOrigin", (PyCFunction) _wrap_wxDC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS }, | |
11965 | { "wxDC_GetLogicalOrigin", (PyCFunction) _wrap_wxDC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS }, | |
11966 | { "wxDC_GetPPI", (PyCFunction) _wrap_wxDC_GetPPI, METH_VARARGS | METH_KEYWORDS }, | |
11967 | { "wxDC_GetDepth", (PyCFunction) _wrap_wxDC_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
11968 | { "wxDC_CanGetTextExtent", (PyCFunction) _wrap_wxDC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
11969 | { "wxDC_CanDrawBitmap", (PyCFunction) _wrap_wxDC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS }, | |
11970 | { "wxDC_DrawBitmap", (PyCFunction) _wrap_wxDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS }, | |
11971 | { "wxDC_StartPage", (PyCFunction) _wrap_wxDC_StartPage, METH_VARARGS | METH_KEYWORDS }, | |
11972 | { "wxDC_StartDoc", (PyCFunction) _wrap_wxDC_StartDoc, METH_VARARGS | METH_KEYWORDS }, | |
11973 | { "wxDC_SetUserScale", (PyCFunction) _wrap_wxDC_SetUserScale, METH_VARARGS | METH_KEYWORDS }, | |
11974 | { "wxDC_SetTextForeground", (PyCFunction) _wrap_wxDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS }, | |
11975 | { "wxDC_SetTextBackground", (PyCFunction) _wrap_wxDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS }, | |
11976 | { "wxDC_SetPen", (PyCFunction) _wrap_wxDC_SetPen, METH_VARARGS | METH_KEYWORDS }, | |
11977 | { "wxDC_SetOptimization", (PyCFunction) _wrap_wxDC_SetOptimization, METH_VARARGS | METH_KEYWORDS }, | |
11978 | { "wxDC_SetMapMode", (PyCFunction) _wrap_wxDC_SetMapMode, METH_VARARGS | METH_KEYWORDS }, | |
11979 | { "wxDC_SetLogicalScale", (PyCFunction) _wrap_wxDC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS }, | |
11980 | { "wxDC_SetLogicalFunction", (PyCFunction) _wrap_wxDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS }, | |
11981 | { "wxDC_SetFont", (PyCFunction) _wrap_wxDC_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
11982 | { "wxDC_SetBrush", (PyCFunction) _wrap_wxDC_SetBrush, METH_VARARGS | METH_KEYWORDS }, | |
11983 | { "wxDC_SetPalette", (PyCFunction) _wrap_wxDC_SetPalette, METH_VARARGS | METH_KEYWORDS }, | |
11984 | { "wxDC_SetClippingRegionAsRegion", (PyCFunction) _wrap_wxDC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS }, | |
11985 | { "wxDC_SetClippingRegion", (PyCFunction) _wrap_wxDC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS }, | |
11986 | { "wxDC_SetBackgroundMode", (PyCFunction) _wrap_wxDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS }, | |
11987 | { "wxDC_SetBackground", (PyCFunction) _wrap_wxDC_SetBackground, METH_VARARGS | METH_KEYWORDS }, | |
11988 | { "wxDC_SetDeviceOrigin", (PyCFunction) _wrap_wxDC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS }, | |
11989 | { "wxDC_Ok", (PyCFunction) _wrap_wxDC_Ok, METH_VARARGS | METH_KEYWORDS }, | |
11990 | { "wxDC_MinY", (PyCFunction) _wrap_wxDC_MinY, METH_VARARGS | METH_KEYWORDS }, | |
11991 | { "wxDC_MinX", (PyCFunction) _wrap_wxDC_MinX, METH_VARARGS | METH_KEYWORDS }, | |
11992 | { "wxDC_MaxY", (PyCFunction) _wrap_wxDC_MaxY, METH_VARARGS | METH_KEYWORDS }, | |
11993 | { "wxDC_MaxX", (PyCFunction) _wrap_wxDC_MaxX, METH_VARARGS | METH_KEYWORDS }, | |
11994 | { "wxDC_LogicalToDeviceYRel", (PyCFunction) _wrap_wxDC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS }, | |
11995 | { "wxDC_LogicalToDeviceY", (PyCFunction) _wrap_wxDC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS }, | |
11996 | { "wxDC_LogicalToDeviceXRel", (PyCFunction) _wrap_wxDC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS }, | |
11997 | { "wxDC_LogicalToDeviceX", (PyCFunction) _wrap_wxDC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS }, | |
11998 | { "wxDC_GetUserScale", (PyCFunction) _wrap_wxDC_GetUserScale, METH_VARARGS | METH_KEYWORDS }, | |
11999 | { "wxDC_GetTextForeground", (PyCFunction) _wrap_wxDC_GetTextForeground, METH_VARARGS | METH_KEYWORDS }, | |
12000 | { "wxDC_GetFullTextExtent", (PyCFunction) _wrap_wxDC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
12001 | { "wxDC_GetTextExtent", (PyCFunction) _wrap_wxDC_GetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
12002 | { "wxDC_GetTextBackground", (PyCFunction) _wrap_wxDC_GetTextBackground, METH_VARARGS | METH_KEYWORDS }, | |
12003 | { "wxDC_GetSizeMM", (PyCFunction) _wrap_wxDC_GetSizeMM, METH_VARARGS | METH_KEYWORDS }, | |
12004 | { "wxDC_GetSize", (PyCFunction) _wrap_wxDC_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
12005 | { "wxDC_GetSizeTuple", (PyCFunction) _wrap_wxDC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
12006 | { "wxDC_GetPixel", (PyCFunction) _wrap_wxDC_GetPixel, METH_VARARGS | METH_KEYWORDS }, | |
12007 | { "wxDC_GetPen", (PyCFunction) _wrap_wxDC_GetPen, METH_VARARGS | METH_KEYWORDS }, | |
12008 | { "wxDC_GetOptimization", (PyCFunction) _wrap_wxDC_GetOptimization, METH_VARARGS | METH_KEYWORDS }, | |
12009 | { "wxDC_GetMapMode", (PyCFunction) _wrap_wxDC_GetMapMode, METH_VARARGS | METH_KEYWORDS }, | |
12010 | { "wxDC_GetLogicalScale", (PyCFunction) _wrap_wxDC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS }, | |
12011 | { "wxDC_GetLogicalFunction", (PyCFunction) _wrap_wxDC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS }, | |
12012 | { "wxDC_GetFont", (PyCFunction) _wrap_wxDC_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
12013 | { "wxDC_GetClippingBox", (PyCFunction) _wrap_wxDC_GetClippingBox, METH_VARARGS | METH_KEYWORDS }, | |
12014 | { "wxDC_GetCharWidth", (PyCFunction) _wrap_wxDC_GetCharWidth, METH_VARARGS | METH_KEYWORDS }, | |
12015 | { "wxDC_GetCharHeight", (PyCFunction) _wrap_wxDC_GetCharHeight, METH_VARARGS | METH_KEYWORDS }, | |
12016 | { "wxDC_GetBrush", (PyCFunction) _wrap_wxDC_GetBrush, METH_VARARGS | METH_KEYWORDS }, | |
12017 | { "wxDC_GetBackground", (PyCFunction) _wrap_wxDC_GetBackground, METH_VARARGS | METH_KEYWORDS }, | |
12018 | { "wxDC_FloodFill", (PyCFunction) _wrap_wxDC_FloodFill, METH_VARARGS | METH_KEYWORDS }, | |
12019 | { "wxDC_EndPage", (PyCFunction) _wrap_wxDC_EndPage, METH_VARARGS | METH_KEYWORDS }, | |
12020 | { "wxDC_EndDrawing", (PyCFunction) _wrap_wxDC_EndDrawing, METH_VARARGS | METH_KEYWORDS }, | |
12021 | { "wxDC_EndDoc", (PyCFunction) _wrap_wxDC_EndDoc, METH_VARARGS | METH_KEYWORDS }, | |
12022 | { "wxDC_DrawText", (PyCFunction) _wrap_wxDC_DrawText, METH_VARARGS | METH_KEYWORDS }, | |
12023 | { "wxDC_DrawSpline", (PyCFunction) _wrap_wxDC_DrawSpline, METH_VARARGS | METH_KEYWORDS }, | |
12024 | { "wxDC_DrawRoundedRectangle", (PyCFunction) _wrap_wxDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS }, | |
12025 | { "wxDC_DrawRotatedText", (PyCFunction) _wrap_wxDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS }, | |
12026 | { "wxDC_DrawRectangle", (PyCFunction) _wrap_wxDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS }, | |
12027 | { "wxDC_DrawPoint", (PyCFunction) _wrap_wxDC_DrawPoint, METH_VARARGS | METH_KEYWORDS }, | |
12028 | { "wxDC_DrawPolygon", (PyCFunction) _wrap_wxDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS }, | |
12029 | { "wxDC_DrawLines", (PyCFunction) _wrap_wxDC_DrawLines, METH_VARARGS | METH_KEYWORDS }, | |
12030 | { "wxDC_DrawLine", (PyCFunction) _wrap_wxDC_DrawLine, METH_VARARGS | METH_KEYWORDS }, | |
a341e32e RD |
12031 | { "wxDC_DrawImageLabel", (PyCFunction) _wrap_wxDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS }, |
12032 | { "wxDC_DrawLabel", (PyCFunction) _wrap_wxDC_DrawLabel, METH_VARARGS | METH_KEYWORDS }, | |
e6056257 RD |
12033 | { "wxDC_DrawIcon", (PyCFunction) _wrap_wxDC_DrawIcon, METH_VARARGS | METH_KEYWORDS }, |
12034 | { "wxDC_DrawEllipticArc", (PyCFunction) _wrap_wxDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS }, | |
12035 | { "wxDC_DrawEllipse", (PyCFunction) _wrap_wxDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS }, | |
12036 | { "wxDC_DrawCircle", (PyCFunction) _wrap_wxDC_DrawCircle, METH_VARARGS | METH_KEYWORDS }, | |
12037 | { "wxDC_DrawArc", (PyCFunction) _wrap_wxDC_DrawArc, METH_VARARGS | METH_KEYWORDS }, | |
12038 | { "wxDC_DeviceToLogicalYRel", (PyCFunction) _wrap_wxDC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS }, | |
12039 | { "wxDC_DeviceToLogicalY", (PyCFunction) _wrap_wxDC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS }, | |
12040 | { "wxDC_DeviceToLogicalXRel", (PyCFunction) _wrap_wxDC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS }, | |
12041 | { "wxDC_DeviceToLogicalX", (PyCFunction) _wrap_wxDC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS }, | |
12042 | { "wxDC_DestroyClippingRegion", (PyCFunction) _wrap_wxDC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS }, | |
12043 | { "wxDC_CrossHair", (PyCFunction) _wrap_wxDC_CrossHair, METH_VARARGS | METH_KEYWORDS }, | |
12044 | { "wxDC_Clear", (PyCFunction) _wrap_wxDC_Clear, METH_VARARGS | METH_KEYWORDS }, | |
12045 | { "wxDC_Blit", (PyCFunction) _wrap_wxDC_Blit, METH_VARARGS | METH_KEYWORDS }, | |
12046 | { "wxDC_BeginDrawing", (PyCFunction) _wrap_wxDC_BeginDrawing, METH_VARARGS | METH_KEYWORDS }, | |
12047 | { "delete_wxDC", (PyCFunction) _wrap_delete_wxDC, METH_VARARGS | METH_KEYWORDS }, | |
00360d46 | 12048 | { "wxBrushList_GetCount", (PyCFunction) _wrap_wxBrushList_GetCount, METH_VARARGS | METH_KEYWORDS }, |
e6056257 RD |
12049 | { "wxBrushList_RemoveBrush", (PyCFunction) _wrap_wxBrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS }, |
12050 | { "wxBrushList_FindOrCreateBrush", (PyCFunction) _wrap_wxBrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS }, | |
12051 | { "wxBrushList_AddBrush", (PyCFunction) _wrap_wxBrushList_AddBrush, METH_VARARGS | METH_KEYWORDS }, | |
12052 | { "wxBrush_SetStyle", (PyCFunction) _wrap_wxBrush_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
12053 | { "wxBrush_SetStipple", (PyCFunction) _wrap_wxBrush_SetStipple, METH_VARARGS | METH_KEYWORDS }, | |
12054 | { "wxBrush_SetColour", (PyCFunction) _wrap_wxBrush_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
12055 | { "wxBrush_Ok", (PyCFunction) _wrap_wxBrush_Ok, METH_VARARGS | METH_KEYWORDS }, | |
12056 | { "wxBrush_GetStyle", (PyCFunction) _wrap_wxBrush_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
12057 | { "wxBrush_GetStipple", (PyCFunction) _wrap_wxBrush_GetStipple, METH_VARARGS | METH_KEYWORDS }, | |
12058 | { "wxBrush_GetColour", (PyCFunction) _wrap_wxBrush_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
12059 | { "delete_wxBrush", (PyCFunction) _wrap_delete_wxBrush, METH_VARARGS | METH_KEYWORDS }, | |
12060 | { "new_wxBrush", (PyCFunction) _wrap_new_wxBrush, METH_VARARGS | METH_KEYWORDS }, | |
00360d46 | 12061 | { "wxPenList_GetCount", (PyCFunction) _wrap_wxPenList_GetCount, METH_VARARGS | METH_KEYWORDS }, |
e6056257 RD |
12062 | { "wxPenList_RemovePen", (PyCFunction) _wrap_wxPenList_RemovePen, METH_VARARGS | METH_KEYWORDS }, |
12063 | { "wxPenList_FindOrCreatePen", (PyCFunction) _wrap_wxPenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS }, | |
12064 | { "wxPenList_AddPen", (PyCFunction) _wrap_wxPenList_AddPen, METH_VARARGS | METH_KEYWORDS }, | |
12065 | { "wxPyPen_SetDashes", (PyCFunction) _wrap_wxPyPen_SetDashes, METH_VARARGS | METH_KEYWORDS }, | |
12066 | { "delete_wxPyPen", (PyCFunction) _wrap_delete_wxPyPen, METH_VARARGS | METH_KEYWORDS }, | |
12067 | { "new_wxPyPen", (PyCFunction) _wrap_new_wxPyPen, METH_VARARGS | METH_KEYWORDS }, | |
12068 | { "wxPen_SetDashes", (PyCFunction) _wrap_wxPen_SetDashes, METH_VARARGS | METH_KEYWORDS }, | |
12069 | { "wxPen_SetWidth", (PyCFunction) _wrap_wxPen_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
12070 | { "wxPen_SetStyle", (PyCFunction) _wrap_wxPen_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
12071 | { "wxPen_SetJoin", (PyCFunction) _wrap_wxPen_SetJoin, METH_VARARGS | METH_KEYWORDS }, | |
12072 | { "wxPen_SetColour", (PyCFunction) _wrap_wxPen_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
12073 | { "wxPen_SetCap", (PyCFunction) _wrap_wxPen_SetCap, METH_VARARGS | METH_KEYWORDS }, | |
12074 | { "wxPen_Ok", (PyCFunction) _wrap_wxPen_Ok, METH_VARARGS | METH_KEYWORDS }, | |
12075 | { "wxPen_GetWidth", (PyCFunction) _wrap_wxPen_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
12076 | { "wxPen_GetStyle", (PyCFunction) _wrap_wxPen_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
12077 | { "wxPen_GetJoin", (PyCFunction) _wrap_wxPen_GetJoin, METH_VARARGS | METH_KEYWORDS }, | |
12078 | { "wxPen_GetColour", (PyCFunction) _wrap_wxPen_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
12079 | { "wxPen_GetCap", (PyCFunction) _wrap_wxPen_GetCap, METH_VARARGS | METH_KEYWORDS }, | |
12080 | { "delete_wxPen", (PyCFunction) _wrap_delete_wxPen, METH_VARARGS | METH_KEYWORDS }, | |
12081 | { "new_wxPen", (PyCFunction) _wrap_new_wxPen, METH_VARARGS | METH_KEYWORDS }, | |
12082 | { "wxColourDatabase_Append", (PyCFunction) _wrap_wxColourDatabase_Append, METH_VARARGS | METH_KEYWORDS }, | |
12083 | { "wxColourDatabase_FindName", (PyCFunction) _wrap_wxColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS }, | |
12084 | { "wxColourDatabase_FindColour", (PyCFunction) _wrap_wxColourDatabase_FindColour, METH_VARARGS | METH_KEYWORDS }, | |
12085 | { "wxColour_Get", (PyCFunction) _wrap_wxColour_Get, METH_VARARGS | METH_KEYWORDS }, | |
12086 | { "wxColour_Set", (PyCFunction) _wrap_wxColour_Set, METH_VARARGS | METH_KEYWORDS }, | |
12087 | { "wxColour_Ok", (PyCFunction) _wrap_wxColour_Ok, METH_VARARGS | METH_KEYWORDS }, | |
12088 | { "wxColour_Blue", (PyCFunction) _wrap_wxColour_Blue, METH_VARARGS | METH_KEYWORDS }, | |
12089 | { "wxColour_Green", (PyCFunction) _wrap_wxColour_Green, METH_VARARGS | METH_KEYWORDS }, | |
12090 | { "wxColour_Red", (PyCFunction) _wrap_wxColour_Red, METH_VARARGS | METH_KEYWORDS }, | |
12091 | { "delete_wxColour", (PyCFunction) _wrap_delete_wxColour, METH_VARARGS | METH_KEYWORDS }, | |
12092 | { "new_wxColour", (PyCFunction) _wrap_new_wxColour, METH_VARARGS | METH_KEYWORDS }, | |
00360d46 | 12093 | { "wxFontList_GetCount", (PyCFunction) _wrap_wxFontList_GetCount, METH_VARARGS | METH_KEYWORDS }, |
e6056257 RD |
12094 | { "wxFontList_RemoveFont", (PyCFunction) _wrap_wxFontList_RemoveFont, METH_VARARGS | METH_KEYWORDS }, |
12095 | { "wxFontList_FindOrCreateFont", (PyCFunction) _wrap_wxFontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS }, | |
12096 | { "wxFontList_AddFont", (PyCFunction) _wrap_wxFontList_AddFont, METH_VARARGS | METH_KEYWORDS }, | |
12097 | { "wxFont_SetDefaultEncoding", (PyCFunction) _wrap_wxFont_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS }, | |
12098 | { "wxFont_GetDefaultEncoding", (PyCFunction) _wrap_wxFont_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS }, | |
12099 | { "wxFont_GetWeightString", (PyCFunction) _wrap_wxFont_GetWeightString, METH_VARARGS | METH_KEYWORDS }, | |
12100 | { "wxFont_GetStyleString", (PyCFunction) _wrap_wxFont_GetStyleString, METH_VARARGS | METH_KEYWORDS }, | |
12101 | { "wxFont_GetFamilyString", (PyCFunction) _wrap_wxFont_GetFamilyString, METH_VARARGS | METH_KEYWORDS }, | |
6abe8375 | 12102 | { "wxFont_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_wxFont_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS }, |
e6056257 RD |
12103 | { "wxFont_SetNativeFontInfo", (PyCFunction) _wrap_wxFont_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS }, |
12104 | { "wxFont_SetEncoding", (PyCFunction) _wrap_wxFont_SetEncoding, METH_VARARGS | METH_KEYWORDS }, | |
12105 | { "wxFont_SetUnderlined", (PyCFunction) _wrap_wxFont_SetUnderlined, METH_VARARGS | METH_KEYWORDS }, | |
12106 | { "wxFont_SetFaceName", (PyCFunction) _wrap_wxFont_SetFaceName, METH_VARARGS | METH_KEYWORDS }, | |
12107 | { "wxFont_SetWeight", (PyCFunction) _wrap_wxFont_SetWeight, METH_VARARGS | METH_KEYWORDS }, | |
12108 | { "wxFont_SetStyle", (PyCFunction) _wrap_wxFont_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
12109 | { "wxFont_SetFamily", (PyCFunction) _wrap_wxFont_SetFamily, METH_VARARGS | METH_KEYWORDS }, | |
12110 | { "wxFont_SetPointSize", (PyCFunction) _wrap_wxFont_SetPointSize, METH_VARARGS | METH_KEYWORDS }, | |
6abe8375 RD |
12111 | { "wxFont_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_wxFont_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS }, |
12112 | { "wxFont_GetNativeFontInfoDesc", (PyCFunction) _wrap_wxFont_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS }, | |
e6056257 | 12113 | { "wxFont_GetNativeFontInfo", (PyCFunction) _wrap_wxFont_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS }, |
d1e76a37 | 12114 | { "wxFont_IsFixedWidth", (PyCFunction) _wrap_wxFont_IsFixedWidth, METH_VARARGS | METH_KEYWORDS }, |
e6056257 RD |
12115 | { "wxFont_GetEncoding", (PyCFunction) _wrap_wxFont_GetEncoding, METH_VARARGS | METH_KEYWORDS }, |
12116 | { "wxFont_GetFaceName", (PyCFunction) _wrap_wxFont_GetFaceName, METH_VARARGS | METH_KEYWORDS }, | |
12117 | { "wxFont_GetUnderlined", (PyCFunction) _wrap_wxFont_GetUnderlined, METH_VARARGS | METH_KEYWORDS }, | |
12118 | { "wxFont_GetWeight", (PyCFunction) _wrap_wxFont_GetWeight, METH_VARARGS | METH_KEYWORDS }, | |
12119 | { "wxFont_GetStyle", (PyCFunction) _wrap_wxFont_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
12120 | { "wxFont_GetFamily", (PyCFunction) _wrap_wxFont_GetFamily, METH_VARARGS | METH_KEYWORDS }, | |
12121 | { "wxFont_GetPointSize", (PyCFunction) _wrap_wxFont_GetPointSize, METH_VARARGS | METH_KEYWORDS }, | |
12122 | { "wxFont_Ok", (PyCFunction) _wrap_wxFont_Ok, METH_VARARGS | METH_KEYWORDS }, | |
12123 | { "delete_wxFont", (PyCFunction) _wrap_delete_wxFont, METH_VARARGS | METH_KEYWORDS }, | |
12124 | { "new_wxFontFromNativeInfo", (PyCFunction) _wrap_new_wxFontFromNativeInfo, METH_VARARGS | METH_KEYWORDS }, | |
12125 | { "new_wxFont", (PyCFunction) _wrap_new_wxFont, METH_VARARGS | METH_KEYWORDS }, | |
12126 | { "wxFontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_wxFontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS }, | |
12127 | { "wxFontMapper_SetConfigPath", (PyCFunction) _wrap_wxFontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS }, | |
12128 | { "wxFontMapper_SetConfig", (PyCFunction) _wrap_wxFontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS }, | |
12129 | { "wxFontMapper_SetDialogTitle", (PyCFunction) _wrap_wxFontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS }, | |
12130 | { "wxFontMapper_SetDialogParent", (PyCFunction) _wrap_wxFontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS }, | |
12131 | { "wxFontMapper_GetEncodingDescription", (PyCFunction) _wrap_wxFontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS }, | |
12132 | { "wxFontMapper_GetEncodingName", (PyCFunction) _wrap_wxFontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS }, | |
12133 | { "wxFontMapper_CharsetToEncoding", (PyCFunction) _wrap_wxFontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS }, | |
12134 | { "wxFontMapper_IsEncodingAvailable", (PyCFunction) _wrap_wxFontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS }, | |
12135 | { "wxFontMapper_GetAltForEncoding", (PyCFunction) _wrap_wxFontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS }, | |
12136 | { "delete_wxFontMapper", (PyCFunction) _wrap_delete_wxFontMapper, METH_VARARGS | METH_KEYWORDS }, | |
12137 | { "new_wxFontMapper", (PyCFunction) _wrap_new_wxFontMapper, METH_VARARGS | METH_KEYWORDS }, | |
6abe8375 RD |
12138 | { "wxNativeFontInfo_ToUserString", (PyCFunction) _wrap_wxNativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS }, |
12139 | { "wxNativeFontInfo_FromUserString", (PyCFunction) _wrap_wxNativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS }, | |
e6056257 RD |
12140 | { "wxNativeFontInfo___str__", (PyCFunction) _wrap_wxNativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS }, |
12141 | { "wxNativeFontInfo_ToString", (PyCFunction) _wrap_wxNativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS }, | |
12142 | { "wxNativeFontInfo_FromString", (PyCFunction) _wrap_wxNativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS }, | |
6abe8375 RD |
12143 | { "wxNativeFontInfo_SetEncoding", (PyCFunction) _wrap_wxNativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS }, |
12144 | { "wxNativeFontInfo_SetFamily", (PyCFunction) _wrap_wxNativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS }, | |
12145 | { "wxNativeFontInfo_SetFaceName", (PyCFunction) _wrap_wxNativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS }, | |
12146 | { "wxNativeFontInfo_SetUnderlined", (PyCFunction) _wrap_wxNativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS }, | |
12147 | { "wxNativeFontInfo_SetWeight", (PyCFunction) _wrap_wxNativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS }, | |
12148 | { "wxNativeFontInfo_SetStyle", (PyCFunction) _wrap_wxNativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
12149 | { "wxNativeFontInfo_SetPointSize", (PyCFunction) _wrap_wxNativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS }, | |
12150 | { "wxNativeFontInfo_GetEncoding", (PyCFunction) _wrap_wxNativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS }, | |
12151 | { "wxNativeFontInfo_GetFamily", (PyCFunction) _wrap_wxNativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS }, | |
12152 | { "wxNativeFontInfo_GetFaceName", (PyCFunction) _wrap_wxNativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS }, | |
12153 | { "wxNativeFontInfo_GetUnderlined", (PyCFunction) _wrap_wxNativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS }, | |
12154 | { "wxNativeFontInfo_GetWeight", (PyCFunction) _wrap_wxNativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS }, | |
12155 | { "wxNativeFontInfo_GetStyle", (PyCFunction) _wrap_wxNativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
12156 | { "wxNativeFontInfo_GetPointSize", (PyCFunction) _wrap_wxNativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS }, | |
12157 | { "wxNativeFontInfo_Init", (PyCFunction) _wrap_wxNativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS }, | |
12158 | { "new_wxNativeFontInfo", (PyCFunction) _wrap_new_wxNativeFontInfo, METH_VARARGS | METH_KEYWORDS }, | |
e6056257 RD |
12159 | { "wxCursor_Ok", (PyCFunction) _wrap_wxCursor_Ok, METH_VARARGS | METH_KEYWORDS }, |
12160 | { "delete_wxCursor", (PyCFunction) _wrap_delete_wxCursor, METH_VARARGS | METH_KEYWORDS }, | |
12161 | { "wxIcon_CopyFromBitmap", (PyCFunction) _wrap_wxIcon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS }, | |
12162 | { "wxIcon_SetDepth", (PyCFunction) _wrap_wxIcon_SetDepth, METH_VARARGS | METH_KEYWORDS }, | |
12163 | { "wxIcon_SetHeight", (PyCFunction) _wrap_wxIcon_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
12164 | { "wxIcon_SetWidth", (PyCFunction) _wrap_wxIcon_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
12165 | { "wxIcon_GetDepth", (PyCFunction) _wrap_wxIcon_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
12166 | { "wxIcon_GetHeight", (PyCFunction) _wrap_wxIcon_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
12167 | { "wxIcon_GetWidth", (PyCFunction) _wrap_wxIcon_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
12168 | { "wxIcon_Ok", (PyCFunction) _wrap_wxIcon_Ok, METH_VARARGS | METH_KEYWORDS }, | |
e6056257 RD |
12169 | { "delete_wxIcon", (PyCFunction) _wrap_delete_wxIcon, METH_VARARGS | METH_KEYWORDS }, |
12170 | { "new_wxIcon", (PyCFunction) _wrap_new_wxIcon, METH_VARARGS | METH_KEYWORDS }, | |
12171 | { "wxMask_Destroy", (PyCFunction) _wrap_wxMask_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
12172 | { "new_wxMask", (PyCFunction) _wrap_new_wxMask, METH_VARARGS | METH_KEYWORDS }, | |
12173 | { "wxBitmap_CopyFromIcon", (PyCFunction) _wrap_wxBitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS }, | |
12174 | { "wxBitmap_GetSubBitmap", (PyCFunction) _wrap_wxBitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS }, | |
12175 | { "wxBitmap_SetDepth", (PyCFunction) _wrap_wxBitmap_SetDepth, METH_VARARGS | METH_KEYWORDS }, | |
12176 | { "wxBitmap_SetHeight", (PyCFunction) _wrap_wxBitmap_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
12177 | { "wxBitmap_SetWidth", (PyCFunction) _wrap_wxBitmap_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
12178 | { "wxBitmap_GetDepth", (PyCFunction) _wrap_wxBitmap_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
12179 | { "wxBitmap_GetHeight", (PyCFunction) _wrap_wxBitmap_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
12180 | { "wxBitmap_GetWidth", (PyCFunction) _wrap_wxBitmap_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
12181 | { "wxBitmap_Ok", (PyCFunction) _wrap_wxBitmap_Ok, METH_VARARGS | METH_KEYWORDS }, | |
12182 | { "wxBitmap_SetMask", (PyCFunction) _wrap_wxBitmap_SetMask, METH_VARARGS | METH_KEYWORDS }, | |
12183 | { "wxBitmap_SaveFile", (PyCFunction) _wrap_wxBitmap_SaveFile, METH_VARARGS | METH_KEYWORDS }, | |
12184 | { "wxBitmap_LoadFile", (PyCFunction) _wrap_wxBitmap_LoadFile, METH_VARARGS | METH_KEYWORDS }, | |
12185 | { "wxBitmap_GetMask", (PyCFunction) _wrap_wxBitmap_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
12186 | { "wxBitmap_GetPalette", (PyCFunction) _wrap_wxBitmap_GetPalette, METH_VARARGS | METH_KEYWORDS }, | |
12187 | { "delete_wxBitmap", (PyCFunction) _wrap_delete_wxBitmap, METH_VARARGS | METH_KEYWORDS }, | |
12188 | { "new_wxBitmap", (PyCFunction) _wrap_new_wxBitmap, METH_VARARGS | METH_KEYWORDS }, | |
12189 | { "wxGDIObject_IsNull", (PyCFunction) _wrap_wxGDIObject_IsNull, METH_VARARGS | METH_KEYWORDS }, | |
12190 | { "wxGDIObject_SetVisible", (PyCFunction) _wrap_wxGDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS }, | |
12191 | { "wxGDIObject_GetVisible", (PyCFunction) _wrap_wxGDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS }, | |
12192 | { "delete_wxGDIObject", (PyCFunction) _wrap_delete_wxGDIObject, METH_VARARGS | METH_KEYWORDS }, | |
12193 | { "new_wxGDIObject", (PyCFunction) _wrap_new_wxGDIObject, METH_VARARGS | METH_KEYWORDS }, | |
12194 | { "wxMemoryDCFromDC", (PyCFunction) _wrap_wxMemoryDCFromDC, METH_VARARGS | METH_KEYWORDS }, | |
12195 | { "wxNamedColour", (PyCFunction) _wrap_wxNamedColour, METH_VARARGS | METH_KEYWORDS }, | |
12196 | { "wxStockCursor", (PyCFunction) _wrap_wxStockCursor, METH_VARARGS | METH_KEYWORDS }, | |
da0ddbd6 | 12197 | { "wxIconFromBitmap", (PyCFunction) _wrap_wxIconFromBitmap, METH_VARARGS | METH_KEYWORDS }, |
e6056257 RD |
12198 | { "wxIconFromXPMData", (PyCFunction) _wrap_wxIconFromXPMData, METH_VARARGS | METH_KEYWORDS }, |
12199 | { "wxEmptyIcon", (PyCFunction) _wrap_wxEmptyIcon, METH_VARARGS | METH_KEYWORDS }, | |
12200 | { "wxMaskColour", (PyCFunction) _wrap_wxMaskColour, METH_VARARGS | METH_KEYWORDS }, | |
12201 | { "wxBitmapFromBits", (PyCFunction) _wrap_wxBitmapFromBits, METH_VARARGS | METH_KEYWORDS }, | |
12202 | { "wxBitmapFromIcon", (PyCFunction) _wrap_wxBitmapFromIcon, METH_VARARGS | METH_KEYWORDS }, | |
12203 | { "wxBitmapFromXPMData", (PyCFunction) _wrap_wxBitmapFromXPMData, METH_VARARGS | METH_KEYWORDS }, | |
12204 | { "wxEmptyBitmap", (PyCFunction) _wrap_wxEmptyBitmap, METH_VARARGS | METH_KEYWORDS }, | |
12205 | { NULL, NULL } | |
12206 | }; | |
12207 | #ifdef __cplusplus | |
12208 | } | |
12209 | #endif | |
12210 | /* | |
12211 | * This table is used by the pointer type-checker | |
12212 | */ | |
12213 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
12214 | { "_signed_long","_long",0}, | |
12215 | { "_wxPrintQuality","_wxCoord",0}, | |
12216 | { "_wxPrintQuality","_int",0}, | |
12217 | { "_wxPrintQuality","_signed_int",0}, | |
12218 | { "_wxPrintQuality","_unsigned_int",0}, | |
12219 | { "_wxPrintQuality","_wxWindowID",0}, | |
12220 | { "_wxPrintQuality","_uint",0}, | |
12221 | { "_wxPrintQuality","_EBool",0}, | |
12222 | { "_wxPrintQuality","_size_t",0}, | |
12223 | { "_wxPrintQuality","_time_t",0}, | |
12224 | { "_wxPen","_wxPyPen",SwigwxPyPenTowxPen}, | |
12225 | { "_byte","_unsigned_char",0}, | |
12226 | { "_long","_unsigned_long",0}, | |
12227 | { "_long","_signed_long",0}, | |
12228 | { "_wxGDIObject","_wxRegion",SwigwxRegionTowxGDIObject}, | |
12229 | { "_wxGDIObject","_wxPalette",SwigwxPaletteTowxGDIObject}, | |
12230 | { "_wxGDIObject","_wxBrush",SwigwxBrushTowxGDIObject}, | |
12231 | { "_wxGDIObject","_wxPyPen",SwigwxPyPenTowxGDIObject}, | |
12232 | { "_wxGDIObject","_wxPen",SwigwxPenTowxGDIObject}, | |
12233 | { "_wxGDIObject","_wxFont",SwigwxFontTowxGDIObject}, | |
12234 | { "_wxGDIObject","_wxCursor",SwigwxCursorTowxGDIObject}, | |
12235 | { "_wxGDIObject","_wxIcon",SwigwxIconTowxGDIObject}, | |
12236 | { "_wxGDIObject","_wxBitmap",SwigwxBitmapTowxGDIObject}, | |
e6056257 RD |
12237 | { "_wxDC","_wxWindowDC",SwigwxWindowDCTowxDC}, |
12238 | { "_wxDC","_wxPaintDC",SwigwxPaintDCTowxDC}, | |
12239 | { "_wxDC","_wxClientDC",SwigwxClientDCTowxDC}, | |
12240 | { "_wxDC","_wxScreenDC",SwigwxScreenDCTowxDC}, | |
c3bfa1cb RD |
12241 | { "_wxDC","_wxBufferedPaintDC",SwigwxBufferedPaintDCTowxDC}, |
12242 | { "_wxDC","_wxBufferedDC",SwigwxBufferedDCTowxDC}, | |
e6056257 RD |
12243 | { "_wxDC","_wxMemoryDC",SwigwxMemoryDCTowxDC}, |
12244 | { "_size_t","_wxCoord",0}, | |
12245 | { "_size_t","_wxPrintQuality",0}, | |
12246 | { "_size_t","_time_t",0}, | |
12247 | { "_size_t","_unsigned_int",0}, | |
12248 | { "_size_t","_int",0}, | |
12249 | { "_size_t","_wxWindowID",0}, | |
12250 | { "_size_t","_uint",0}, | |
12251 | { "_uint","_wxCoord",0}, | |
12252 | { "_uint","_wxPrintQuality",0}, | |
12253 | { "_uint","_time_t",0}, | |
12254 | { "_uint","_size_t",0}, | |
12255 | { "_uint","_unsigned_int",0}, | |
12256 | { "_uint","_int",0}, | |
12257 | { "_uint","_wxWindowID",0}, | |
12258 | { "_wxChar","_char",0}, | |
12259 | { "_char","_wxChar",0}, | |
c3bfa1cb | 12260 | { "_wxBufferedDC","_wxBufferedPaintDC",SwigwxBufferedPaintDCTowxBufferedDC}, |
e6056257 RD |
12261 | { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0}, |
12262 | { "_EBool","_wxCoord",0}, | |
12263 | { "_EBool","_wxPrintQuality",0}, | |
12264 | { "_EBool","_signed_int",0}, | |
12265 | { "_EBool","_int",0}, | |
12266 | { "_EBool","_wxWindowID",0}, | |
12267 | { "_unsigned_long","_long",0}, | |
12268 | { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0}, | |
12269 | { "_signed_int","_wxCoord",0}, | |
12270 | { "_signed_int","_wxPrintQuality",0}, | |
12271 | { "_signed_int","_EBool",0}, | |
12272 | { "_signed_int","_wxWindowID",0}, | |
12273 | { "_signed_int","_int",0}, | |
12274 | { "_WXTYPE","_short",0}, | |
12275 | { "_WXTYPE","_signed_short",0}, | |
12276 | { "_WXTYPE","_unsigned_short",0}, | |
12277 | { "_unsigned_short","_WXTYPE",0}, | |
12278 | { "_unsigned_short","_short",0}, | |
12279 | { "_wxObject","_wxRegionIterator",SwigwxRegionIteratorTowxObject}, | |
12280 | { "_wxObject","_wxRegion",SwigwxRegionTowxObject}, | |
12281 | { "_wxObject","_wxImageList",SwigwxImageListTowxObject}, | |
12282 | { "_wxObject","_wxPalette",SwigwxPaletteTowxObject}, | |
e6056257 RD |
12283 | { "_wxObject","_wxWindowDC",SwigwxWindowDCTowxObject}, |
12284 | { "_wxObject","_wxPaintDC",SwigwxPaintDCTowxObject}, | |
12285 | { "_wxObject","_wxClientDC",SwigwxClientDCTowxObject}, | |
12286 | { "_wxObject","_wxScreenDC",SwigwxScreenDCTowxObject}, | |
c3bfa1cb RD |
12287 | { "_wxObject","_wxBufferedPaintDC",SwigwxBufferedPaintDCTowxObject}, |
12288 | { "_wxObject","_wxBufferedDC",SwigwxBufferedDCTowxObject}, | |
e6056257 RD |
12289 | { "_wxObject","_wxMemoryDC",SwigwxMemoryDCTowxObject}, |
12290 | { "_wxObject","_wxDC",SwigwxDCTowxObject}, | |
12291 | { "_wxObject","_wxBrushList",SwigwxBrushListTowxObject}, | |
12292 | { "_wxObject","_wxBrush",SwigwxBrushTowxObject}, | |
12293 | { "_wxObject","_wxPenList",SwigwxPenListTowxObject}, | |
12294 | { "_wxObject","_wxPyPen",SwigwxPyPenTowxObject}, | |
12295 | { "_wxObject","_wxPen",SwigwxPenTowxObject}, | |
12296 | { "_wxObject","_wxColourDatabase",SwigwxColourDatabaseTowxObject}, | |
12297 | { "_wxObject","_wxColour",SwigwxColourTowxObject}, | |
12298 | { "_wxObject","_wxFontList",SwigwxFontListTowxObject}, | |
12299 | { "_wxObject","_wxFont",SwigwxFontTowxObject}, | |
12300 | { "_wxObject","_wxCursor",SwigwxCursorTowxObject}, | |
12301 | { "_wxObject","_wxIcon",SwigwxIconTowxObject}, | |
12302 | { "_wxObject","_wxMask",SwigwxMaskTowxObject}, | |
12303 | { "_wxObject","_wxBitmap",SwigwxBitmapTowxObject}, | |
12304 | { "_wxObject","_wxGDIObject",SwigwxGDIObjectTowxObject}, | |
12305 | { "_signed_short","_WXTYPE",0}, | |
12306 | { "_signed_short","_short",0}, | |
c3bfa1cb RD |
12307 | { "_wxMemoryDC","_wxBufferedPaintDC",SwigwxBufferedPaintDCTowxMemoryDC}, |
12308 | { "_wxMemoryDC","_wxBufferedDC",SwigwxBufferedDCTowxMemoryDC}, | |
e6056257 RD |
12309 | { "_unsigned_char","_byte",0}, |
12310 | { "_unsigned_int","_wxCoord",0}, | |
12311 | { "_unsigned_int","_wxPrintQuality",0}, | |
12312 | { "_unsigned_int","_time_t",0}, | |
12313 | { "_unsigned_int","_size_t",0}, | |
12314 | { "_unsigned_int","_uint",0}, | |
12315 | { "_unsigned_int","_wxWindowID",0}, | |
12316 | { "_unsigned_int","_int",0}, | |
12317 | { "_short","_WXTYPE",0}, | |
12318 | { "_short","_unsigned_short",0}, | |
12319 | { "_short","_signed_short",0}, | |
12320 | { "_wxWindowID","_wxCoord",0}, | |
12321 | { "_wxWindowID","_wxPrintQuality",0}, | |
12322 | { "_wxWindowID","_time_t",0}, | |
12323 | { "_wxWindowID","_size_t",0}, | |
12324 | { "_wxWindowID","_EBool",0}, | |
12325 | { "_wxWindowID","_uint",0}, | |
12326 | { "_wxWindowID","_int",0}, | |
12327 | { "_wxWindowID","_signed_int",0}, | |
12328 | { "_wxWindowID","_unsigned_int",0}, | |
12329 | { "_int","_wxCoord",0}, | |
12330 | { "_int","_wxPrintQuality",0}, | |
12331 | { "_int","_time_t",0}, | |
12332 | { "_int","_size_t",0}, | |
12333 | { "_int","_EBool",0}, | |
12334 | { "_int","_uint",0}, | |
12335 | { "_int","_wxWindowID",0}, | |
12336 | { "_int","_unsigned_int",0}, | |
12337 | { "_int","_signed_int",0}, | |
12338 | { "_time_t","_wxCoord",0}, | |
12339 | { "_time_t","_wxPrintQuality",0}, | |
12340 | { "_time_t","_unsigned_int",0}, | |
12341 | { "_time_t","_int",0}, | |
12342 | { "_time_t","_wxWindowID",0}, | |
12343 | { "_time_t","_uint",0}, | |
12344 | { "_time_t","_size_t",0}, | |
12345 | { "_wxCoord","_int",0}, | |
12346 | { "_wxCoord","_signed_int",0}, | |
12347 | { "_wxCoord","_unsigned_int",0}, | |
12348 | { "_wxCoord","_wxWindowID",0}, | |
12349 | { "_wxCoord","_uint",0}, | |
12350 | { "_wxCoord","_EBool",0}, | |
12351 | { "_wxCoord","_size_t",0}, | |
12352 | { "_wxCoord","_time_t",0}, | |
12353 | { "_wxCoord","_wxPrintQuality",0}, | |
12354 | {0,0,0}}; | |
12355 | ||
12356 | static PyObject *SWIG_globals; | |
12357 | #ifdef __cplusplus | |
12358 | extern "C" | |
12359 | #endif | |
12360 | SWIGEXPORT(void) initgdic() { | |
12361 | PyObject *m, *d; | |
12362 | SWIG_globals = SWIG_newvarlink(); | |
12363 | m = Py_InitModule("gdic", gdicMethods); | |
12364 | d = PyModule_GetDict(m); | |
12365 | PyDict_SetItemString(d,"wxFONTFAMILY_DEFAULT", PyInt_FromLong((long) wxFONTFAMILY_DEFAULT)); | |
12366 | PyDict_SetItemString(d,"wxFONTFAMILY_DECORATIVE", PyInt_FromLong((long) wxFONTFAMILY_DECORATIVE)); | |
12367 | PyDict_SetItemString(d,"wxFONTFAMILY_ROMAN", PyInt_FromLong((long) wxFONTFAMILY_ROMAN)); | |
12368 | PyDict_SetItemString(d,"wxFONTFAMILY_SCRIPT", PyInt_FromLong((long) wxFONTFAMILY_SCRIPT)); | |
12369 | PyDict_SetItemString(d,"wxFONTFAMILY_SWISS", PyInt_FromLong((long) wxFONTFAMILY_SWISS)); | |
12370 | PyDict_SetItemString(d,"wxFONTFAMILY_MODERN", PyInt_FromLong((long) wxFONTFAMILY_MODERN)); | |
12371 | PyDict_SetItemString(d,"wxFONTFAMILY_TELETYPE", PyInt_FromLong((long) wxFONTFAMILY_TELETYPE)); | |
12372 | PyDict_SetItemString(d,"wxFONTFAMILY_MAX", PyInt_FromLong((long) wxFONTFAMILY_MAX)); | |
ca31b3da | 12373 | PyDict_SetItemString(d,"wxFONTFAMILY_UNKNOWN", PyInt_FromLong((long) wxFONTFAMILY_UNKNOWN)); |
e6056257 RD |
12374 | PyDict_SetItemString(d,"wxFONTSTYLE_NORMAL", PyInt_FromLong((long) wxFONTSTYLE_NORMAL)); |
12375 | PyDict_SetItemString(d,"wxFONTSTYLE_ITALIC", PyInt_FromLong((long) wxFONTSTYLE_ITALIC)); | |
12376 | PyDict_SetItemString(d,"wxFONTSTYLE_SLANT", PyInt_FromLong((long) wxFONTSTYLE_SLANT)); | |
12377 | PyDict_SetItemString(d,"wxFONTSTYLE_MAX", PyInt_FromLong((long) wxFONTSTYLE_MAX)); | |
12378 | PyDict_SetItemString(d,"wxFONTWEIGHT_NORMAL", PyInt_FromLong((long) wxFONTWEIGHT_NORMAL)); | |
12379 | PyDict_SetItemString(d,"wxFONTWEIGHT_LIGHT", PyInt_FromLong((long) wxFONTWEIGHT_LIGHT)); | |
12380 | PyDict_SetItemString(d,"wxFONTWEIGHT_BOLD", PyInt_FromLong((long) wxFONTWEIGHT_BOLD)); | |
12381 | PyDict_SetItemString(d,"wxFONTWEIGHT_MAX", PyInt_FromLong((long) wxFONTWEIGHT_MAX)); | |
12382 | PyDict_SetItemString(d,"wxFONTENCODING_SYSTEM", PyInt_FromLong((long) wxFONTENCODING_SYSTEM)); | |
12383 | PyDict_SetItemString(d,"wxFONTENCODING_DEFAULT", PyInt_FromLong((long) wxFONTENCODING_DEFAULT)); | |
12384 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_1", PyInt_FromLong((long) wxFONTENCODING_ISO8859_1)); | |
12385 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_2", PyInt_FromLong((long) wxFONTENCODING_ISO8859_2)); | |
12386 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_3", PyInt_FromLong((long) wxFONTENCODING_ISO8859_3)); | |
12387 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_4", PyInt_FromLong((long) wxFONTENCODING_ISO8859_4)); | |
12388 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_5", PyInt_FromLong((long) wxFONTENCODING_ISO8859_5)); | |
12389 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_6", PyInt_FromLong((long) wxFONTENCODING_ISO8859_6)); | |
12390 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_7", PyInt_FromLong((long) wxFONTENCODING_ISO8859_7)); | |
12391 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_8", PyInt_FromLong((long) wxFONTENCODING_ISO8859_8)); | |
12392 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_9", PyInt_FromLong((long) wxFONTENCODING_ISO8859_9)); | |
12393 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_10", PyInt_FromLong((long) wxFONTENCODING_ISO8859_10)); | |
12394 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_11", PyInt_FromLong((long) wxFONTENCODING_ISO8859_11)); | |
12395 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_12", PyInt_FromLong((long) wxFONTENCODING_ISO8859_12)); | |
12396 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_13", PyInt_FromLong((long) wxFONTENCODING_ISO8859_13)); | |
12397 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_14", PyInt_FromLong((long) wxFONTENCODING_ISO8859_14)); | |
12398 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_15", PyInt_FromLong((long) wxFONTENCODING_ISO8859_15)); | |
12399 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_MAX", PyInt_FromLong((long) wxFONTENCODING_ISO8859_MAX)); | |
12400 | PyDict_SetItemString(d,"wxFONTENCODING_KOI8", PyInt_FromLong((long) wxFONTENCODING_KOI8)); | |
12401 | PyDict_SetItemString(d,"wxFONTENCODING_ALTERNATIVE", PyInt_FromLong((long) wxFONTENCODING_ALTERNATIVE)); | |
12402 | PyDict_SetItemString(d,"wxFONTENCODING_BULGARIAN", PyInt_FromLong((long) wxFONTENCODING_BULGARIAN)); | |
12403 | PyDict_SetItemString(d,"wxFONTENCODING_CP437", PyInt_FromLong((long) wxFONTENCODING_CP437)); | |
12404 | PyDict_SetItemString(d,"wxFONTENCODING_CP850", PyInt_FromLong((long) wxFONTENCODING_CP850)); | |
12405 | PyDict_SetItemString(d,"wxFONTENCODING_CP852", PyInt_FromLong((long) wxFONTENCODING_CP852)); | |
12406 | PyDict_SetItemString(d,"wxFONTENCODING_CP855", PyInt_FromLong((long) wxFONTENCODING_CP855)); | |
12407 | PyDict_SetItemString(d,"wxFONTENCODING_CP866", PyInt_FromLong((long) wxFONTENCODING_CP866)); | |
12408 | PyDict_SetItemString(d,"wxFONTENCODING_CP874", PyInt_FromLong((long) wxFONTENCODING_CP874)); | |
742fc581 RD |
12409 | PyDict_SetItemString(d,"wxFONTENCODING_CP932", PyInt_FromLong((long) wxFONTENCODING_CP932)); |
12410 | PyDict_SetItemString(d,"wxFONTENCODING_CP936", PyInt_FromLong((long) wxFONTENCODING_CP936)); | |
12411 | PyDict_SetItemString(d,"wxFONTENCODING_CP949", PyInt_FromLong((long) wxFONTENCODING_CP949)); | |
12412 | PyDict_SetItemString(d,"wxFONTENCODING_CP950", PyInt_FromLong((long) wxFONTENCODING_CP950)); | |
e6056257 RD |
12413 | PyDict_SetItemString(d,"wxFONTENCODING_CP1250", PyInt_FromLong((long) wxFONTENCODING_CP1250)); |
12414 | PyDict_SetItemString(d,"wxFONTENCODING_CP1251", PyInt_FromLong((long) wxFONTENCODING_CP1251)); | |
12415 | PyDict_SetItemString(d,"wxFONTENCODING_CP1252", PyInt_FromLong((long) wxFONTENCODING_CP1252)); | |
12416 | PyDict_SetItemString(d,"wxFONTENCODING_CP1253", PyInt_FromLong((long) wxFONTENCODING_CP1253)); | |
12417 | PyDict_SetItemString(d,"wxFONTENCODING_CP1254", PyInt_FromLong((long) wxFONTENCODING_CP1254)); | |
12418 | PyDict_SetItemString(d,"wxFONTENCODING_CP1255", PyInt_FromLong((long) wxFONTENCODING_CP1255)); | |
12419 | PyDict_SetItemString(d,"wxFONTENCODING_CP1256", PyInt_FromLong((long) wxFONTENCODING_CP1256)); | |
12420 | PyDict_SetItemString(d,"wxFONTENCODING_CP1257", PyInt_FromLong((long) wxFONTENCODING_CP1257)); | |
12421 | PyDict_SetItemString(d,"wxFONTENCODING_CP12_MAX", PyInt_FromLong((long) wxFONTENCODING_CP12_MAX)); | |
12422 | PyDict_SetItemString(d,"wxFONTENCODING_UTF7", PyInt_FromLong((long) wxFONTENCODING_UTF7)); | |
12423 | PyDict_SetItemString(d,"wxFONTENCODING_UTF8", PyInt_FromLong((long) wxFONTENCODING_UTF8)); | |
12424 | PyDict_SetItemString(d,"wxFONTENCODING_UNICODE", PyInt_FromLong((long) wxFONTENCODING_UNICODE)); | |
12425 | PyDict_SetItemString(d,"wxFONTENCODING_MAX", PyInt_FromLong((long) wxFONTENCODING_MAX)); | |
00360d46 RD |
12426 | PyDict_SetItemString(d,"wxIMAGELIST_DRAW_NORMAL", PyInt_FromLong((long) wxIMAGELIST_DRAW_NORMAL)); |
12427 | PyDict_SetItemString(d,"wxIMAGELIST_DRAW_TRANSPARENT", PyInt_FromLong((long) wxIMAGELIST_DRAW_TRANSPARENT)); | |
12428 | PyDict_SetItemString(d,"wxIMAGELIST_DRAW_SELECTED", PyInt_FromLong((long) wxIMAGELIST_DRAW_SELECTED)); | |
12429 | PyDict_SetItemString(d,"wxIMAGELIST_DRAW_FOCUSED", PyInt_FromLong((long) wxIMAGELIST_DRAW_FOCUSED)); | |
12430 | PyDict_SetItemString(d,"wxIMAGE_LIST_NORMAL", PyInt_FromLong((long) wxIMAGE_LIST_NORMAL)); | |
12431 | PyDict_SetItemString(d,"wxIMAGE_LIST_SMALL", PyInt_FromLong((long) wxIMAGE_LIST_SMALL)); | |
12432 | PyDict_SetItemString(d,"wxIMAGE_LIST_STATE", PyInt_FromLong((long) wxIMAGE_LIST_STATE)); | |
12433 | PyDict_SetItemString(d,"wxOutRegion", PyInt_FromLong((long) wxOutRegion)); | |
12434 | PyDict_SetItemString(d,"wxPartRegion", PyInt_FromLong((long) wxPartRegion)); | |
12435 | PyDict_SetItemString(d,"wxInRegion", PyInt_FromLong((long) wxInRegion)); | |
e6056257 RD |
12436 | PyDict_SetItemString(d,"cvar", SWIG_globals); |
12437 | SWIG_addvarlink(SWIG_globals,"wxNORMAL_FONT",_wrap_wxNORMAL_FONT_get, _wrap_wxNORMAL_FONT_set); | |
12438 | SWIG_addvarlink(SWIG_globals,"wxSMALL_FONT",_wrap_wxSMALL_FONT_get, _wrap_wxSMALL_FONT_set); | |
12439 | SWIG_addvarlink(SWIG_globals,"wxITALIC_FONT",_wrap_wxITALIC_FONT_get, _wrap_wxITALIC_FONT_set); | |
12440 | SWIG_addvarlink(SWIG_globals,"wxSWISS_FONT",_wrap_wxSWISS_FONT_get, _wrap_wxSWISS_FONT_set); | |
12441 | SWIG_addvarlink(SWIG_globals,"wxRED_PEN",_wrap_wxRED_PEN_get, _wrap_wxRED_PEN_set); | |
12442 | SWIG_addvarlink(SWIG_globals,"wxCYAN_PEN",_wrap_wxCYAN_PEN_get, _wrap_wxCYAN_PEN_set); | |
12443 | SWIG_addvarlink(SWIG_globals,"wxGREEN_PEN",_wrap_wxGREEN_PEN_get, _wrap_wxGREEN_PEN_set); | |
12444 | SWIG_addvarlink(SWIG_globals,"wxBLACK_PEN",_wrap_wxBLACK_PEN_get, _wrap_wxBLACK_PEN_set); | |
12445 | SWIG_addvarlink(SWIG_globals,"wxWHITE_PEN",_wrap_wxWHITE_PEN_get, _wrap_wxWHITE_PEN_set); | |
12446 | SWIG_addvarlink(SWIG_globals,"wxTRANSPARENT_PEN",_wrap_wxTRANSPARENT_PEN_get, _wrap_wxTRANSPARENT_PEN_set); | |
12447 | SWIG_addvarlink(SWIG_globals,"wxBLACK_DASHED_PEN",_wrap_wxBLACK_DASHED_PEN_get, _wrap_wxBLACK_DASHED_PEN_set); | |
12448 | SWIG_addvarlink(SWIG_globals,"wxGREY_PEN",_wrap_wxGREY_PEN_get, _wrap_wxGREY_PEN_set); | |
12449 | SWIG_addvarlink(SWIG_globals,"wxMEDIUM_GREY_PEN",_wrap_wxMEDIUM_GREY_PEN_get, _wrap_wxMEDIUM_GREY_PEN_set); | |
12450 | SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY_PEN",_wrap_wxLIGHT_GREY_PEN_get, _wrap_wxLIGHT_GREY_PEN_set); | |
12451 | SWIG_addvarlink(SWIG_globals,"wxBLUE_BRUSH",_wrap_wxBLUE_BRUSH_get, _wrap_wxBLUE_BRUSH_set); | |
12452 | SWIG_addvarlink(SWIG_globals,"wxGREEN_BRUSH",_wrap_wxGREEN_BRUSH_get, _wrap_wxGREEN_BRUSH_set); | |
12453 | SWIG_addvarlink(SWIG_globals,"wxWHITE_BRUSH",_wrap_wxWHITE_BRUSH_get, _wrap_wxWHITE_BRUSH_set); | |
12454 | SWIG_addvarlink(SWIG_globals,"wxBLACK_BRUSH",_wrap_wxBLACK_BRUSH_get, _wrap_wxBLACK_BRUSH_set); | |
12455 | SWIG_addvarlink(SWIG_globals,"wxTRANSPARENT_BRUSH",_wrap_wxTRANSPARENT_BRUSH_get, _wrap_wxTRANSPARENT_BRUSH_set); | |
12456 | SWIG_addvarlink(SWIG_globals,"wxCYAN_BRUSH",_wrap_wxCYAN_BRUSH_get, _wrap_wxCYAN_BRUSH_set); | |
12457 | SWIG_addvarlink(SWIG_globals,"wxRED_BRUSH",_wrap_wxRED_BRUSH_get, _wrap_wxRED_BRUSH_set); | |
12458 | SWIG_addvarlink(SWIG_globals,"wxGREY_BRUSH",_wrap_wxGREY_BRUSH_get, _wrap_wxGREY_BRUSH_set); | |
12459 | SWIG_addvarlink(SWIG_globals,"wxMEDIUM_GREY_BRUSH",_wrap_wxMEDIUM_GREY_BRUSH_get, _wrap_wxMEDIUM_GREY_BRUSH_set); | |
12460 | SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY_BRUSH",_wrap_wxLIGHT_GREY_BRUSH_get, _wrap_wxLIGHT_GREY_BRUSH_set); | |
12461 | SWIG_addvarlink(SWIG_globals,"wxBLACK",_wrap_wxBLACK_get, _wrap_wxBLACK_set); | |
12462 | SWIG_addvarlink(SWIG_globals,"wxWHITE",_wrap_wxWHITE_get, _wrap_wxWHITE_set); | |
12463 | SWIG_addvarlink(SWIG_globals,"wxRED",_wrap_wxRED_get, _wrap_wxRED_set); | |
12464 | SWIG_addvarlink(SWIG_globals,"wxBLUE",_wrap_wxBLUE_get, _wrap_wxBLUE_set); | |
12465 | SWIG_addvarlink(SWIG_globals,"wxGREEN",_wrap_wxGREEN_get, _wrap_wxGREEN_set); | |
12466 | SWIG_addvarlink(SWIG_globals,"wxCYAN",_wrap_wxCYAN_get, _wrap_wxCYAN_set); | |
12467 | SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY",_wrap_wxLIGHT_GREY_get, _wrap_wxLIGHT_GREY_set); | |
12468 | SWIG_addvarlink(SWIG_globals,"wxSTANDARD_CURSOR",_wrap_wxSTANDARD_CURSOR_get, _wrap_wxSTANDARD_CURSOR_set); | |
12469 | SWIG_addvarlink(SWIG_globals,"wxHOURGLASS_CURSOR",_wrap_wxHOURGLASS_CURSOR_get, _wrap_wxHOURGLASS_CURSOR_set); | |
12470 | SWIG_addvarlink(SWIG_globals,"wxCROSS_CURSOR",_wrap_wxCROSS_CURSOR_get, _wrap_wxCROSS_CURSOR_set); | |
12471 | SWIG_addvarlink(SWIG_globals,"wxNullBitmap",_wrap_wxNullBitmap_get, _wrap_wxNullBitmap_set); | |
12472 | SWIG_addvarlink(SWIG_globals,"wxNullIcon",_wrap_wxNullIcon_get, _wrap_wxNullIcon_set); | |
12473 | SWIG_addvarlink(SWIG_globals,"wxNullCursor",_wrap_wxNullCursor_get, _wrap_wxNullCursor_set); | |
12474 | SWIG_addvarlink(SWIG_globals,"wxNullPen",_wrap_wxNullPen_get, _wrap_wxNullPen_set); | |
12475 | SWIG_addvarlink(SWIG_globals,"wxNullBrush",_wrap_wxNullBrush_get, _wrap_wxNullBrush_set); | |
12476 | SWIG_addvarlink(SWIG_globals,"wxNullPalette",_wrap_wxNullPalette_get, _wrap_wxNullPalette_set); | |
12477 | SWIG_addvarlink(SWIG_globals,"wxNullFont",_wrap_wxNullFont_get, _wrap_wxNullFont_set); | |
12478 | SWIG_addvarlink(SWIG_globals,"wxNullColour",_wrap_wxNullColour_get, _wrap_wxNullColour_set); | |
12479 | SWIG_addvarlink(SWIG_globals,"wxTheFontList",_wrap_wxTheFontList_get, _wrap_wxTheFontList_set); | |
12480 | SWIG_addvarlink(SWIG_globals,"wxThePenList",_wrap_wxThePenList_get, _wrap_wxThePenList_set); | |
12481 | SWIG_addvarlink(SWIG_globals,"wxTheBrushList",_wrap_wxTheBrushList_get, _wrap_wxTheBrushList_set); | |
12482 | SWIG_addvarlink(SWIG_globals,"wxTheColourDatabase",_wrap_wxTheColourDatabase_get, _wrap_wxTheColourDatabase_set); | |
e6056257 RD |
12483 | { |
12484 | int i; | |
12485 | for (i = 0; _swig_mapping[i].n1; i++) | |
12486 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
12487 | } | |
12488 | } |