]>
Commit | Line | Data |
---|---|---|
8ab979d7 | 1 | /* |
c368d904 | 2 | * FILE : src/msw/gdi.cpp |
8ab979d7 RD |
3 | * |
4 | * This file was automatically generated by : | |
5 | * Simplified Wrapper and Interface Generator (SWIG) | |
185d7c3e | 6 | * Version 1.1 (Build 883) |
8ab979d7 RD |
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) | |
1d99702e | 27 | # define SWIGEXPORT(a) __declspec(dllexport) a |
8ab979d7 RD |
28 | # else |
29 | # if defined(__BORLANDC__) | |
c368d904 | 30 | # define SWIGEXPORT(a) a _export |
8ab979d7 | 31 | # else |
c368d904 | 32 | # define SWIGEXPORT(a) a |
8ab979d7 RD |
33 | # endif |
34 | # endif | |
35 | #else | |
c368d904 | 36 | # define SWIGEXPORT(a) a |
8ab979d7 RD |
37 | #endif |
38 | ||
c368d904 RD |
39 | #include "Python.h" |
40 | ||
8ab979d7 RD |
41 | #ifdef __cplusplus |
42 | extern "C" { | |
43 | #endif | |
185d7c3e | 44 | |
8ab979d7 RD |
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 *); | |
1d99702e | 48 | extern char *SWIG_GetPtrObj(PyObject *, void **, char *); |
8ab979d7 RD |
49 | extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); |
50 | extern PyObject *SWIG_newvarlink(void); | |
51 | #ifdef __cplusplus | |
52 | } | |
53 | #endif | |
8ab979d7 RD |
54 | #define SWIG_init initgdic |
55 | ||
56 | #define SWIG_name "gdic" | |
57 | ||
58 | #include "helpers.h" | |
af309447 | 59 | #include <wx/imaglist.h> |
6d8b4f8d RD |
60 | #include <wx/fontmap.h> |
61 | #include <wx/fontenc.h> | |
62 | #include <wx/fontmap.h> | |
63 | #include <wx/fontutil.h> | |
8ab979d7 | 64 | |
8ab979d7 RD |
65 | |
66 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
67 | PyObject* o2; | |
68 | PyObject* o3; | |
69 | ||
f3d9dc1d | 70 | if (!target) { |
8ab979d7 | 71 | target = o; |
f3d9dc1d | 72 | } else if (target == Py_None) { |
8ab979d7 RD |
73 | Py_DECREF(Py_None); |
74 | target = o; | |
f3d9dc1d | 75 | } else { |
8ab979d7 RD |
76 | if (!PyTuple_Check(target)) { |
77 | o2 = target; | |
78 | target = PyTuple_New(1); | |
79 | PyTuple_SetItem(target, 0, o2); | |
80 | } | |
f3d9dc1d RD |
81 | o3 = PyTuple_New(1); |
82 | PyTuple_SetItem(o3, 0, o); | |
8ab979d7 RD |
83 | |
84 | o2 = target; | |
f3d9dc1d RD |
85 | target = PySequence_Concat(o2, o3); |
86 | Py_DECREF(o2); | |
8ab979d7 RD |
87 | Py_DECREF(o3); |
88 | } | |
89 | return target; | |
90 | } | |
96bfd053 RD |
91 | // Implementations of some alternate "constructors" |
92 | ||
8ab979d7 RD |
93 | wxBitmap* wxEmptyBitmap(int width, int height, int depth=-1) { |
94 | return new wxBitmap(width, height, depth); | |
95 | } | |
96 | ||
96bfd053 RD |
97 | static char** ConvertListOfStrings(PyObject* listOfStrings) { |
98 | char** cArray = NULL; | |
99 | int count; | |
100 | ||
101 | if (!PyList_Check(listOfStrings)) { | |
102 | PyErr_SetString(PyExc_TypeError, "Expected a list of strings."); | |
103 | return NULL; | |
104 | } | |
105 | count = PyList_Size(listOfStrings); | |
106 | cArray = new char*[count]; | |
107 | ||
108 | for(int x=0; x<count; x++) { | |
109 | // TODO: Need some validation and error checking here | |
110 | cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x)); | |
111 | } | |
112 | return cArray; | |
113 | } | |
114 | ||
d56cebe7 | 115 | |
96bfd053 RD |
116 | wxBitmap* wxBitmapFromXPMData(PyObject* listOfStrings) { |
117 | char** cArray = NULL; | |
118 | wxBitmap* bmp; | |
119 | ||
120 | cArray = ConvertListOfStrings(listOfStrings); | |
121 | if (! cArray) | |
122 | return NULL; | |
123 | bmp = new wxBitmap(cArray); | |
124 | delete [] cArray; | |
125 | return bmp; | |
126 | } | |
127 | ||
128 | ||
129 | wxBitmap* wxBitmapFromIcon(const wxIcon& icon) { | |
130 | return new wxBitmap(icon); | |
131 | } | |
132 | ||
133 | ||
d56cebe7 RD |
134 | wxBitmap* wxBitmapFromBits(char* bits, int width, int height, int depth = 1 ) { |
135 | return new wxBitmap(bits, width, height, depth); | |
136 | } | |
926bb76c | 137 | |
4c9993c3 | 138 | |
d56cebe7 RD |
139 | // #ifdef __WXMSW__ |
140 | // wxBitmap* wxBitmapFromData(PyObject* data, long type, | |
141 | // int width, int height, int depth = 1) { | |
142 | // if (! PyString_Check(data)) { | |
143 | // PyErr_SetString(PyExc_TypeError, "Expected string object"); | |
144 | // return NULL; | |
145 | // } | |
146 | // return new wxBitmap((void*)PyString_AsString(data), type, width, height, depth); | |
147 | // } | |
148 | // #endif | |
8bf5d46e | 149 | |
8ab979d7 RD |
150 | wxMask* wxMaskColour(const wxBitmap& bitmap, const wxColour& colour) { |
151 | return new wxMask(bitmap, colour); | |
96bfd053 RD |
152 | } |
153 | // Implementations of some alternate "constructors" | |
154 | wxIcon* wxEmptyIcon() { | |
155 | return new wxIcon(); | |
156 | } | |
157 | ||
158 | wxIcon* wxIconFromXPMData(PyObject* listOfStrings) { | |
159 | char** cArray = NULL; | |
160 | wxIcon* icon; | |
161 | ||
162 | cArray = ConvertListOfStrings(listOfStrings); | |
163 | if (! cArray) | |
164 | return NULL; | |
165 | icon = new wxIcon(cArray); | |
166 | delete [] cArray; | |
167 | return icon; | |
8ab979d7 | 168 | } |
7248a051 RD |
169 | |
170 | wxIcon* wxIconFromBitmap(const wxBitmap& bmp) { | |
171 | wxIcon* icon = new wxIcon(); | |
172 | icon->CopyFromBitmap(bmp); | |
173 | return icon; | |
174 | } | |
8ab979d7 | 175 | // Alternate 'constructor' |
9c039d08 | 176 | wxCursor* wxPyStockCursor(int id) { |
8ab979d7 RD |
177 | return new wxCursor(id); |
178 | } | |
179 | // Alternate 'constructor' | |
180 | wxColour* wxNamedColour(const wxString& colorName) { | |
181 | return new wxColour(colorName); | |
182 | } | |
ecc08ead RD |
183 | |
184 | class wxPyPen : public wxPen { | |
185 | public: | |
186 | wxPyPen(wxColour& colour, int width=1, int style=wxSOLID) | |
187 | : wxPen(colour, width, style) | |
188 | { m_dash = NULL; } | |
189 | ~wxPyPen() { | |
190 | if (m_dash) | |
181526ac | 191 | delete [] m_dash; |
ecc08ead RD |
192 | } |
193 | ||
194 | void SetDashes(int nb_dashes, const wxDash *dash) { | |
181526ac RD |
195 | if (m_dash) |
196 | delete [] m_dash; | |
ecc08ead | 197 | m_dash = new wxDash[nb_dashes]; |
181526ac | 198 | for (int i=0; i<nb_dashes; i++) { |
ecc08ead | 199 | m_dash[i] = dash[i]; |
181526ac | 200 | } |
ecc08ead RD |
201 | wxPen::SetDashes(nb_dashes, m_dash); |
202 | } | |
203 | ||
204 | private: | |
205 | wxDash* m_dash; | |
206 | }; | |
9d37f964 RD |
207 | |
208 | static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) { | |
209 | *x1 = dc->MinX(); | |
210 | *y1 = dc->MinY(); | |
211 | *x2 = dc->MaxX(); | |
212 | *y2 = dc->MaxY(); | |
213 | } | |
8ab979d7 RD |
214 | // Alternate 'constructor' |
215 | wxMemoryDC* wxMemoryDCFromDC(wxDC* oldDC) { | |
216 | return new wxMemoryDC(oldDC); | |
217 | } | |
af309447 | 218 | |
17c0e08c RD |
219 | #include <wx/metafile.h> |
220 | ||
af309447 | 221 | #if 0 |
8ab979d7 RD |
222 | extern wxFont * wxNORMAL_FONT; |
223 | extern wxFont * wxSMALL_FONT; | |
224 | extern wxFont * wxITALIC_FONT; | |
225 | extern wxFont * wxSWISS_FONT; | |
226 | extern wxPen * wxRED_PEN; | |
227 | extern wxPen * wxCYAN_PEN; | |
228 | extern wxPen * wxGREEN_PEN; | |
229 | extern wxPen * wxBLACK_PEN; | |
230 | extern wxPen * wxWHITE_PEN; | |
231 | extern wxPen * wxTRANSPARENT_PEN; | |
232 | extern wxPen * wxBLACK_DASHED_PEN; | |
233 | extern wxPen * wxGREY_PEN; | |
234 | extern wxPen * wxMEDIUM_GREY_PEN; | |
235 | extern wxPen * wxLIGHT_GREY_PEN; | |
236 | extern wxBrush * wxBLUE_BRUSH; | |
237 | extern wxBrush * wxGREEN_BRUSH; | |
238 | extern wxBrush * wxWHITE_BRUSH; | |
239 | extern wxBrush * wxBLACK_BRUSH; | |
240 | extern wxBrush * wxTRANSPARENT_BRUSH; | |
241 | extern wxBrush * wxCYAN_BRUSH; | |
242 | extern wxBrush * wxRED_BRUSH; | |
243 | extern wxBrush * wxGREY_BRUSH; | |
244 | extern wxBrush * wxMEDIUM_GREY_BRUSH; | |
245 | extern wxBrush * wxLIGHT_GREY_BRUSH; | |
246 | extern wxColour * wxBLACK; | |
247 | extern wxColour * wxWHITE; | |
248 | extern wxColour * wxRED; | |
249 | extern wxColour * wxBLUE; | |
250 | extern wxColour * wxGREEN; | |
251 | extern wxColour * wxCYAN; | |
252 | extern wxColour * wxLIGHT_GREY; | |
253 | extern wxCursor * wxSTANDARD_CURSOR; | |
254 | extern wxCursor * wxHOURGLASS_CURSOR; | |
255 | extern wxCursor * wxCROSS_CURSOR; | |
256 | extern wxBitmap wxNullBitmap; | |
257 | extern wxIcon wxNullIcon; | |
258 | extern wxCursor wxNullCursor; | |
259 | extern wxPen wxNullPen; | |
260 | extern wxBrush wxNullBrush; | |
261 | extern wxPalette wxNullPalette; | |
262 | extern wxFont wxNullFont; | |
263 | extern wxColour wxNullColour; | |
0569df0f RD |
264 | extern wxFontList * wxTheFontList; |
265 | extern wxPenList * wxThePenList; | |
6ee2116b | 266 | extern wxBrushList * wxTheBrushList; |
0569df0f | 267 | extern wxColourDatabase * wxTheColourDatabase; |
af309447 | 268 | |
1d99702e RD |
269 | #endif |
270 | #ifdef __cplusplus | |
271 | extern "C" { | |
af309447 | 272 | #endif |
1afc06c2 | 273 | static PyObject *_wrap_wxEmptyBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
274 | PyObject * _resultobj; |
275 | wxBitmap * _result; | |
276 | int _arg0; | |
277 | int _arg1; | |
1d99702e | 278 | int _arg2 = (int ) -1; |
1afc06c2 | 279 | char *_kwnames[] = { "width","height","depth", NULL }; |
8ab979d7 RD |
280 | char _ptemp[128]; |
281 | ||
282 | self = self; | |
1afc06c2 | 283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"ii|i:wxEmptyBitmap",_kwnames,&_arg0,&_arg1,&_arg2)) |
8ab979d7 | 284 | return NULL; |
cf694132 | 285 | { |
4268f798 | 286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 287 | _result = (wxBitmap *)wxEmptyBitmap(_arg0,_arg1,_arg2); |
cf694132 | 288 | |
4268f798 | 289 | wxPyEndAllowThreads(__tstate); |
493f1553 | 290 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
291 | } if (_result) { |
292 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
293 | _resultobj = Py_BuildValue("s",_ptemp); | |
294 | } else { | |
295 | Py_INCREF(Py_None); | |
296 | _resultobj = Py_None; | |
297 | } | |
8ab979d7 RD |
298 | return _resultobj; |
299 | } | |
300 | ||
96bfd053 RD |
301 | static PyObject *_wrap_wxBitmapFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) { |
302 | PyObject * _resultobj; | |
303 | wxBitmap * _result; | |
304 | PyObject * _arg0; | |
305 | PyObject * _obj0 = 0; | |
306 | char *_kwnames[] = { "listOfStrings", NULL }; | |
307 | char _ptemp[128]; | |
308 | ||
309 | self = self; | |
310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapFromXPMData",_kwnames,&_obj0)) | |
311 | return NULL; | |
312 | { | |
313 | _arg0 = _obj0; | |
314 | } | |
315 | { | |
4268f798 | 316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 317 | _result = (wxBitmap *)wxBitmapFromXPMData(_arg0); |
96bfd053 | 318 | |
4268f798 | 319 | wxPyEndAllowThreads(__tstate); |
493f1553 | 320 | if (PyErr_Occurred()) return NULL; |
96bfd053 RD |
321 | } if (_result) { |
322 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
323 | _resultobj = Py_BuildValue("s",_ptemp); | |
324 | } else { | |
325 | Py_INCREF(Py_None); | |
326 | _resultobj = Py_None; | |
327 | } | |
328 | return _resultobj; | |
329 | } | |
330 | ||
331 | static PyObject *_wrap_wxBitmapFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
332 | PyObject * _resultobj; | |
333 | wxBitmap * _result; | |
334 | wxIcon * _arg0; | |
335 | PyObject * _argo0 = 0; | |
336 | char *_kwnames[] = { "icon", NULL }; | |
337 | char _ptemp[128]; | |
338 | ||
339 | self = self; | |
340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapFromIcon",_kwnames,&_argo0)) | |
341 | return NULL; | |
342 | if (_argo0) { | |
343 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
344 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
345 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapFromIcon. Expected _wxIcon_p."); | |
346 | return NULL; | |
347 | } | |
348 | } | |
349 | { | |
4268f798 | 350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 351 | _result = (wxBitmap *)wxBitmapFromIcon(*_arg0); |
96bfd053 | 352 | |
4268f798 | 353 | wxPyEndAllowThreads(__tstate); |
493f1553 | 354 | if (PyErr_Occurred()) return NULL; |
96bfd053 RD |
355 | } if (_result) { |
356 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
357 | _resultobj = Py_BuildValue("s",_ptemp); | |
358 | } else { | |
359 | Py_INCREF(Py_None); | |
360 | _resultobj = Py_None; | |
361 | } | |
362 | return _resultobj; | |
363 | } | |
364 | ||
d56cebe7 | 365 | static PyObject *_wrap_wxBitmapFromBits(PyObject *self, PyObject *args, PyObject *kwargs) { |
8bf5d46e RD |
366 | PyObject * _resultobj; |
367 | wxBitmap * _result; | |
d56cebe7 RD |
368 | char * _arg0; |
369 | int _arg1; | |
8bf5d46e | 370 | int _arg2; |
d56cebe7 RD |
371 | int _arg3 = (int ) 1; |
372 | char *_kwnames[] = { "bits","width","height","depth", NULL }; | |
8bf5d46e RD |
373 | char _ptemp[128]; |
374 | ||
375 | self = self; | |
d56cebe7 | 376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"sii|i:wxBitmapFromBits",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3)) |
8bf5d46e RD |
377 | return NULL; |
378 | { | |
4268f798 | 379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 380 | _result = (wxBitmap *)wxBitmapFromBits(_arg0,_arg1,_arg2,_arg3); |
8bf5d46e | 381 | |
4268f798 | 382 | wxPyEndAllowThreads(__tstate); |
493f1553 | 383 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
384 | } if (_result) { |
385 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
386 | _resultobj = Py_BuildValue("s",_ptemp); | |
387 | } else { | |
388 | Py_INCREF(Py_None); | |
389 | _resultobj = Py_None; | |
390 | } | |
8bf5d46e RD |
391 | return _resultobj; |
392 | } | |
393 | ||
1afc06c2 | 394 | static PyObject *_wrap_wxMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
395 | PyObject * _resultobj; |
396 | wxMask * _result; | |
397 | wxBitmap * _arg0; | |
398 | wxColour * _arg1; | |
1d99702e | 399 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
400 | wxColour temp; |
401 | PyObject * _obj1 = 0; | |
1afc06c2 | 402 | char *_kwnames[] = { "bitmap","colour", NULL }; |
8ab979d7 RD |
403 | char _ptemp[128]; |
404 | ||
405 | self = self; | |
f6bcfd97 | 406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMaskColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 407 | return NULL; |
1d99702e RD |
408 | if (_argo0) { |
409 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
410 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
8ab979d7 RD |
411 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMaskColour. Expected _wxBitmap_p."); |
412 | return NULL; | |
413 | } | |
414 | } | |
f6bcfd97 BP |
415 | { |
416 | _arg1 = &temp; | |
417 | if (! wxColour_helper(_obj1, &_arg1)) | |
8ab979d7 | 418 | return NULL; |
f6bcfd97 | 419 | } |
cf694132 | 420 | { |
4268f798 | 421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 422 | _result = (wxMask *)wxMaskColour(*_arg0,*_arg1); |
cf694132 | 423 | |
4268f798 | 424 | wxPyEndAllowThreads(__tstate); |
493f1553 | 425 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
426 | } if (_result) { |
427 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p"); | |
428 | _resultobj = Py_BuildValue("s",_ptemp); | |
429 | } else { | |
430 | Py_INCREF(Py_None); | |
431 | _resultobj = Py_None; | |
432 | } | |
8ab979d7 RD |
433 | return _resultobj; |
434 | } | |
435 | ||
96bfd053 RD |
436 | static PyObject *_wrap_wxEmptyIcon(PyObject *self, PyObject *args, PyObject *kwargs) { |
437 | PyObject * _resultobj; | |
438 | wxIcon * _result; | |
439 | char *_kwnames[] = { NULL }; | |
440 | char _ptemp[128]; | |
441 | ||
442 | self = self; | |
443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxEmptyIcon",_kwnames)) | |
444 | return NULL; | |
445 | { | |
4268f798 | 446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 447 | _result = (wxIcon *)wxEmptyIcon(); |
96bfd053 | 448 | |
4268f798 | 449 | wxPyEndAllowThreads(__tstate); |
493f1553 | 450 | if (PyErr_Occurred()) return NULL; |
96bfd053 RD |
451 | } if (_result) { |
452 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p"); | |
453 | _resultobj = Py_BuildValue("s",_ptemp); | |
454 | } else { | |
455 | Py_INCREF(Py_None); | |
456 | _resultobj = Py_None; | |
457 | } | |
458 | return _resultobj; | |
459 | } | |
460 | ||
461 | static PyObject *_wrap_wxIconFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
462 | PyObject * _resultobj; | |
463 | wxIcon * _result; | |
464 | PyObject * _arg0; | |
465 | PyObject * _obj0 = 0; | |
466 | char *_kwnames[] = { "listOfStrings", NULL }; | |
467 | char _ptemp[128]; | |
468 | ||
469 | self = self; | |
470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIconFromXPMData",_kwnames,&_obj0)) | |
471 | return NULL; | |
472 | { | |
473 | _arg0 = _obj0; | |
474 | } | |
475 | { | |
4268f798 | 476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 477 | _result = (wxIcon *)wxIconFromXPMData(_arg0); |
96bfd053 | 478 | |
4268f798 | 479 | wxPyEndAllowThreads(__tstate); |
493f1553 | 480 | if (PyErr_Occurred()) return NULL; |
96bfd053 RD |
481 | } if (_result) { |
482 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p"); | |
483 | _resultobj = Py_BuildValue("s",_ptemp); | |
484 | } else { | |
485 | Py_INCREF(Py_None); | |
486 | _resultobj = Py_None; | |
487 | } | |
488 | return _resultobj; | |
489 | } | |
490 | ||
7248a051 RD |
491 | static PyObject *_wrap_wxIconFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { |
492 | PyObject * _resultobj; | |
493 | wxIcon * _result; | |
494 | wxBitmap * _arg0; | |
495 | PyObject * _argo0 = 0; | |
496 | char *_kwnames[] = { "bmp", NULL }; | |
497 | char _ptemp[128]; | |
498 | ||
499 | self = self; | |
500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIconFromBitmap",_kwnames,&_argo0)) | |
501 | return NULL; | |
502 | if (_argo0) { | |
503 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
504 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
505 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIconFromBitmap. Expected _wxBitmap_p."); | |
506 | return NULL; | |
507 | } | |
508 | } | |
509 | { | |
510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 511 | _result = (wxIcon *)wxIconFromBitmap(*_arg0); |
7248a051 RD |
512 | |
513 | wxPyEndAllowThreads(__tstate); | |
514 | if (PyErr_Occurred()) return NULL; | |
515 | } if (_result) { | |
516 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p"); | |
517 | _resultobj = Py_BuildValue("s",_ptemp); | |
518 | } else { | |
519 | Py_INCREF(Py_None); | |
520 | _resultobj = Py_None; | |
521 | } | |
522 | return _resultobj; | |
523 | } | |
524 | ||
1afc06c2 | 525 | static PyObject *_wrap_wxStockCursor(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
526 | PyObject * _resultobj; |
527 | wxCursor * _result; | |
528 | int _arg0; | |
1afc06c2 | 529 | char *_kwnames[] = { "id", NULL }; |
8ab979d7 RD |
530 | char _ptemp[128]; |
531 | ||
532 | self = self; | |
1afc06c2 | 533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxStockCursor",_kwnames,&_arg0)) |
8ab979d7 | 534 | return NULL; |
cf694132 | 535 | { |
4268f798 | 536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 537 | _result = (wxCursor *)wxPyStockCursor(_arg0); |
cf694132 | 538 | |
4268f798 | 539 | wxPyEndAllowThreads(__tstate); |
493f1553 | 540 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
541 | } if (_result) { |
542 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCursor_p"); | |
543 | _resultobj = Py_BuildValue("s",_ptemp); | |
544 | } else { | |
545 | Py_INCREF(Py_None); | |
546 | _resultobj = Py_None; | |
547 | } | |
8ab979d7 RD |
548 | return _resultobj; |
549 | } | |
550 | ||
1afc06c2 | 551 | static PyObject *_wrap_wxNamedColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
552 | PyObject * _resultobj; |
553 | wxColour * _result; | |
554 | wxString * _arg0; | |
555 | PyObject * _obj0 = 0; | |
1afc06c2 | 556 | char *_kwnames[] = { "colorName", NULL }; |
8ab979d7 RD |
557 | char _ptemp[128]; |
558 | ||
559 | self = self; | |
1afc06c2 | 560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNamedColour",_kwnames,&_obj0)) |
8ab979d7 RD |
561 | return NULL; |
562 | { | |
c8bc7bb8 RD |
563 | _arg0 = wxString_in_helper(_obj0); |
564 | if (_arg0 == NULL) | |
8ab979d7 | 565 | return NULL; |
8ab979d7 | 566 | } |
cf694132 | 567 | { |
4268f798 | 568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 569 | _result = (wxColour *)wxNamedColour(*_arg0); |
cf694132 | 570 | |
4268f798 | 571 | wxPyEndAllowThreads(__tstate); |
493f1553 | 572 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
573 | } if (_result) { |
574 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
575 | _resultobj = Py_BuildValue("s",_ptemp); | |
576 | } else { | |
577 | Py_INCREF(Py_None); | |
578 | _resultobj = Py_None; | |
579 | } | |
8ab979d7 RD |
580 | { |
581 | if (_obj0) | |
582 | delete _arg0; | |
583 | } | |
584 | return _resultobj; | |
585 | } | |
586 | ||
1afc06c2 | 587 | static PyObject *_wrap_wxMemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
588 | PyObject * _resultobj; |
589 | wxMemoryDC * _result; | |
590 | wxDC * _arg0; | |
1d99702e | 591 | PyObject * _argo0 = 0; |
1afc06c2 | 592 | char *_kwnames[] = { "oldDC", NULL }; |
8ab979d7 RD |
593 | char _ptemp[128]; |
594 | ||
595 | self = self; | |
1afc06c2 | 596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMemoryDCFromDC",_kwnames,&_argo0)) |
8ab979d7 | 597 | return NULL; |
1d99702e RD |
598 | if (_argo0) { |
599 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
600 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
601 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMemoryDCFromDC. Expected _wxDC_p."); |
602 | return NULL; | |
603 | } | |
604 | } | |
cf694132 | 605 | { |
4268f798 | 606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 607 | _result = (wxMemoryDC *)wxMemoryDCFromDC(_arg0); |
cf694132 | 608 | |
4268f798 | 609 | wxPyEndAllowThreads(__tstate); |
493f1553 | 610 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
611 | } if (_result) { |
612 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMemoryDC_p"); | |
613 | _resultobj = Py_BuildValue("s",_ptemp); | |
614 | } else { | |
615 | Py_INCREF(Py_None); | |
616 | _resultobj = Py_None; | |
617 | } | |
8ab979d7 RD |
618 | return _resultobj; |
619 | } | |
620 | ||
621 | static int _wrap_wxNORMAL_FONT_set(PyObject *val) { | |
622 | ||
623 | PyErr_SetString(PyExc_TypeError,"Variable wxNORMAL_FONT is read-only."); | |
624 | return 1; | |
625 | } | |
626 | ||
627 | static PyObject *_wrap_wxNORMAL_FONT_get() { | |
628 | PyObject * pyobj; | |
629 | char ptemp[128]; | |
630 | ||
631 | SWIG_MakePtr(ptemp, (char *) wxNORMAL_FONT,"_wxFont_p"); | |
632 | pyobj = PyString_FromString(ptemp); | |
633 | return pyobj; | |
634 | } | |
635 | ||
636 | static int _wrap_wxSMALL_FONT_set(PyObject *val) { | |
637 | ||
638 | PyErr_SetString(PyExc_TypeError,"Variable wxSMALL_FONT is read-only."); | |
639 | return 1; | |
640 | } | |
641 | ||
642 | static PyObject *_wrap_wxSMALL_FONT_get() { | |
643 | PyObject * pyobj; | |
644 | char ptemp[128]; | |
645 | ||
646 | SWIG_MakePtr(ptemp, (char *) wxSMALL_FONT,"_wxFont_p"); | |
647 | pyobj = PyString_FromString(ptemp); | |
648 | return pyobj; | |
649 | } | |
650 | ||
651 | static int _wrap_wxITALIC_FONT_set(PyObject *val) { | |
652 | ||
653 | PyErr_SetString(PyExc_TypeError,"Variable wxITALIC_FONT is read-only."); | |
654 | return 1; | |
655 | } | |
656 | ||
657 | static PyObject *_wrap_wxITALIC_FONT_get() { | |
658 | PyObject * pyobj; | |
659 | char ptemp[128]; | |
660 | ||
661 | SWIG_MakePtr(ptemp, (char *) wxITALIC_FONT,"_wxFont_p"); | |
662 | pyobj = PyString_FromString(ptemp); | |
663 | return pyobj; | |
664 | } | |
665 | ||
666 | static int _wrap_wxSWISS_FONT_set(PyObject *val) { | |
667 | ||
668 | PyErr_SetString(PyExc_TypeError,"Variable wxSWISS_FONT is read-only."); | |
669 | return 1; | |
670 | } | |
671 | ||
672 | static PyObject *_wrap_wxSWISS_FONT_get() { | |
673 | PyObject * pyobj; | |
674 | char ptemp[128]; | |
675 | ||
676 | SWIG_MakePtr(ptemp, (char *) wxSWISS_FONT,"_wxFont_p"); | |
677 | pyobj = PyString_FromString(ptemp); | |
678 | return pyobj; | |
679 | } | |
680 | ||
681 | static int _wrap_wxRED_PEN_set(PyObject *val) { | |
682 | ||
683 | PyErr_SetString(PyExc_TypeError,"Variable wxRED_PEN is read-only."); | |
684 | return 1; | |
685 | } | |
686 | ||
687 | static PyObject *_wrap_wxRED_PEN_get() { | |
688 | PyObject * pyobj; | |
689 | char ptemp[128]; | |
690 | ||
691 | SWIG_MakePtr(ptemp, (char *) wxRED_PEN,"_wxPen_p"); | |
692 | pyobj = PyString_FromString(ptemp); | |
693 | return pyobj; | |
694 | } | |
695 | ||
696 | static int _wrap_wxCYAN_PEN_set(PyObject *val) { | |
697 | ||
698 | PyErr_SetString(PyExc_TypeError,"Variable wxCYAN_PEN is read-only."); | |
699 | return 1; | |
700 | } | |
701 | ||
702 | static PyObject *_wrap_wxCYAN_PEN_get() { | |
703 | PyObject * pyobj; | |
704 | char ptemp[128]; | |
705 | ||
706 | SWIG_MakePtr(ptemp, (char *) wxCYAN_PEN,"_wxPen_p"); | |
707 | pyobj = PyString_FromString(ptemp); | |
708 | return pyobj; | |
709 | } | |
710 | ||
711 | static int _wrap_wxGREEN_PEN_set(PyObject *val) { | |
712 | ||
713 | PyErr_SetString(PyExc_TypeError,"Variable wxGREEN_PEN is read-only."); | |
714 | return 1; | |
715 | } | |
716 | ||
717 | static PyObject *_wrap_wxGREEN_PEN_get() { | |
718 | PyObject * pyobj; | |
719 | char ptemp[128]; | |
720 | ||
721 | SWIG_MakePtr(ptemp, (char *) wxGREEN_PEN,"_wxPen_p"); | |
722 | pyobj = PyString_FromString(ptemp); | |
723 | return pyobj; | |
724 | } | |
725 | ||
726 | static int _wrap_wxBLACK_PEN_set(PyObject *val) { | |
727 | ||
728 | PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_PEN is read-only."); | |
729 | return 1; | |
730 | } | |
731 | ||
732 | static PyObject *_wrap_wxBLACK_PEN_get() { | |
733 | PyObject * pyobj; | |
734 | char ptemp[128]; | |
735 | ||
736 | SWIG_MakePtr(ptemp, (char *) wxBLACK_PEN,"_wxPen_p"); | |
737 | pyobj = PyString_FromString(ptemp); | |
738 | return pyobj; | |
739 | } | |
740 | ||
741 | static int _wrap_wxWHITE_PEN_set(PyObject *val) { | |
742 | ||
743 | PyErr_SetString(PyExc_TypeError,"Variable wxWHITE_PEN is read-only."); | |
744 | return 1; | |
745 | } | |
746 | ||
747 | static PyObject *_wrap_wxWHITE_PEN_get() { | |
748 | PyObject * pyobj; | |
749 | char ptemp[128]; | |
750 | ||
751 | SWIG_MakePtr(ptemp, (char *) wxWHITE_PEN,"_wxPen_p"); | |
752 | pyobj = PyString_FromString(ptemp); | |
753 | return pyobj; | |
754 | } | |
755 | ||
756 | static int _wrap_wxTRANSPARENT_PEN_set(PyObject *val) { | |
757 | ||
758 | PyErr_SetString(PyExc_TypeError,"Variable wxTRANSPARENT_PEN is read-only."); | |
759 | return 1; | |
760 | } | |
761 | ||
762 | static PyObject *_wrap_wxTRANSPARENT_PEN_get() { | |
763 | PyObject * pyobj; | |
764 | char ptemp[128]; | |
765 | ||
766 | SWIG_MakePtr(ptemp, (char *) wxTRANSPARENT_PEN,"_wxPen_p"); | |
767 | pyobj = PyString_FromString(ptemp); | |
768 | return pyobj; | |
769 | } | |
770 | ||
771 | static int _wrap_wxBLACK_DASHED_PEN_set(PyObject *val) { | |
772 | ||
773 | PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_DASHED_PEN is read-only."); | |
774 | return 1; | |
775 | } | |
776 | ||
777 | static PyObject *_wrap_wxBLACK_DASHED_PEN_get() { | |
778 | PyObject * pyobj; | |
779 | char ptemp[128]; | |
780 | ||
781 | SWIG_MakePtr(ptemp, (char *) wxBLACK_DASHED_PEN,"_wxPen_p"); | |
782 | pyobj = PyString_FromString(ptemp); | |
783 | return pyobj; | |
784 | } | |
785 | ||
786 | static int _wrap_wxGREY_PEN_set(PyObject *val) { | |
787 | ||
788 | PyErr_SetString(PyExc_TypeError,"Variable wxGREY_PEN is read-only."); | |
789 | return 1; | |
790 | } | |
791 | ||
792 | static PyObject *_wrap_wxGREY_PEN_get() { | |
793 | PyObject * pyobj; | |
794 | char ptemp[128]; | |
795 | ||
796 | SWIG_MakePtr(ptemp, (char *) wxGREY_PEN,"_wxPen_p"); | |
797 | pyobj = PyString_FromString(ptemp); | |
798 | return pyobj; | |
799 | } | |
800 | ||
801 | static int _wrap_wxMEDIUM_GREY_PEN_set(PyObject *val) { | |
802 | ||
803 | PyErr_SetString(PyExc_TypeError,"Variable wxMEDIUM_GREY_PEN is read-only."); | |
804 | return 1; | |
805 | } | |
806 | ||
807 | static PyObject *_wrap_wxMEDIUM_GREY_PEN_get() { | |
808 | PyObject * pyobj; | |
809 | char ptemp[128]; | |
810 | ||
811 | SWIG_MakePtr(ptemp, (char *) wxMEDIUM_GREY_PEN,"_wxPen_p"); | |
812 | pyobj = PyString_FromString(ptemp); | |
813 | return pyobj; | |
814 | } | |
815 | ||
816 | static int _wrap_wxLIGHT_GREY_PEN_set(PyObject *val) { | |
817 | ||
818 | PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY_PEN is read-only."); | |
819 | return 1; | |
820 | } | |
821 | ||
822 | static PyObject *_wrap_wxLIGHT_GREY_PEN_get() { | |
823 | PyObject * pyobj; | |
824 | char ptemp[128]; | |
825 | ||
826 | SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY_PEN,"_wxPen_p"); | |
827 | pyobj = PyString_FromString(ptemp); | |
828 | return pyobj; | |
829 | } | |
830 | ||
831 | static int _wrap_wxBLUE_BRUSH_set(PyObject *val) { | |
832 | ||
833 | PyErr_SetString(PyExc_TypeError,"Variable wxBLUE_BRUSH is read-only."); | |
834 | return 1; | |
835 | } | |
836 | ||
837 | static PyObject *_wrap_wxBLUE_BRUSH_get() { | |
838 | PyObject * pyobj; | |
839 | char ptemp[128]; | |
840 | ||
841 | SWIG_MakePtr(ptemp, (char *) wxBLUE_BRUSH,"_wxBrush_p"); | |
842 | pyobj = PyString_FromString(ptemp); | |
843 | return pyobj; | |
844 | } | |
845 | ||
846 | static int _wrap_wxGREEN_BRUSH_set(PyObject *val) { | |
847 | ||
848 | PyErr_SetString(PyExc_TypeError,"Variable wxGREEN_BRUSH is read-only."); | |
849 | return 1; | |
850 | } | |
851 | ||
852 | static PyObject *_wrap_wxGREEN_BRUSH_get() { | |
853 | PyObject * pyobj; | |
854 | char ptemp[128]; | |
855 | ||
856 | SWIG_MakePtr(ptemp, (char *) wxGREEN_BRUSH,"_wxBrush_p"); | |
857 | pyobj = PyString_FromString(ptemp); | |
858 | return pyobj; | |
859 | } | |
860 | ||
861 | static int _wrap_wxWHITE_BRUSH_set(PyObject *val) { | |
862 | ||
863 | PyErr_SetString(PyExc_TypeError,"Variable wxWHITE_BRUSH is read-only."); | |
864 | return 1; | |
865 | } | |
866 | ||
867 | static PyObject *_wrap_wxWHITE_BRUSH_get() { | |
868 | PyObject * pyobj; | |
869 | char ptemp[128]; | |
870 | ||
871 | SWIG_MakePtr(ptemp, (char *) wxWHITE_BRUSH,"_wxBrush_p"); | |
872 | pyobj = PyString_FromString(ptemp); | |
873 | return pyobj; | |
874 | } | |
875 | ||
876 | static int _wrap_wxBLACK_BRUSH_set(PyObject *val) { | |
877 | ||
878 | PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_BRUSH is read-only."); | |
879 | return 1; | |
880 | } | |
881 | ||
882 | static PyObject *_wrap_wxBLACK_BRUSH_get() { | |
883 | PyObject * pyobj; | |
884 | char ptemp[128]; | |
885 | ||
886 | SWIG_MakePtr(ptemp, (char *) wxBLACK_BRUSH,"_wxBrush_p"); | |
887 | pyobj = PyString_FromString(ptemp); | |
888 | return pyobj; | |
889 | } | |
890 | ||
891 | static int _wrap_wxTRANSPARENT_BRUSH_set(PyObject *val) { | |
892 | ||
893 | PyErr_SetString(PyExc_TypeError,"Variable wxTRANSPARENT_BRUSH is read-only."); | |
894 | return 1; | |
895 | } | |
896 | ||
897 | static PyObject *_wrap_wxTRANSPARENT_BRUSH_get() { | |
898 | PyObject * pyobj; | |
899 | char ptemp[128]; | |
900 | ||
901 | SWIG_MakePtr(ptemp, (char *) wxTRANSPARENT_BRUSH,"_wxBrush_p"); | |
902 | pyobj = PyString_FromString(ptemp); | |
903 | return pyobj; | |
904 | } | |
905 | ||
906 | static int _wrap_wxCYAN_BRUSH_set(PyObject *val) { | |
907 | ||
908 | PyErr_SetString(PyExc_TypeError,"Variable wxCYAN_BRUSH is read-only."); | |
909 | return 1; | |
910 | } | |
911 | ||
912 | static PyObject *_wrap_wxCYAN_BRUSH_get() { | |
913 | PyObject * pyobj; | |
914 | char ptemp[128]; | |
915 | ||
916 | SWIG_MakePtr(ptemp, (char *) wxCYAN_BRUSH,"_wxBrush_p"); | |
917 | pyobj = PyString_FromString(ptemp); | |
918 | return pyobj; | |
919 | } | |
920 | ||
921 | static int _wrap_wxRED_BRUSH_set(PyObject *val) { | |
922 | ||
923 | PyErr_SetString(PyExc_TypeError,"Variable wxRED_BRUSH is read-only."); | |
924 | return 1; | |
925 | } | |
926 | ||
927 | static PyObject *_wrap_wxRED_BRUSH_get() { | |
928 | PyObject * pyobj; | |
929 | char ptemp[128]; | |
930 | ||
931 | SWIG_MakePtr(ptemp, (char *) wxRED_BRUSH,"_wxBrush_p"); | |
932 | pyobj = PyString_FromString(ptemp); | |
933 | return pyobj; | |
934 | } | |
935 | ||
936 | static int _wrap_wxGREY_BRUSH_set(PyObject *val) { | |
937 | ||
938 | PyErr_SetString(PyExc_TypeError,"Variable wxGREY_BRUSH is read-only."); | |
939 | return 1; | |
940 | } | |
941 | ||
942 | static PyObject *_wrap_wxGREY_BRUSH_get() { | |
943 | PyObject * pyobj; | |
944 | char ptemp[128]; | |
945 | ||
946 | SWIG_MakePtr(ptemp, (char *) wxGREY_BRUSH,"_wxBrush_p"); | |
947 | pyobj = PyString_FromString(ptemp); | |
948 | return pyobj; | |
949 | } | |
950 | ||
951 | static int _wrap_wxMEDIUM_GREY_BRUSH_set(PyObject *val) { | |
952 | ||
953 | PyErr_SetString(PyExc_TypeError,"Variable wxMEDIUM_GREY_BRUSH is read-only."); | |
954 | return 1; | |
955 | } | |
956 | ||
957 | static PyObject *_wrap_wxMEDIUM_GREY_BRUSH_get() { | |
958 | PyObject * pyobj; | |
959 | char ptemp[128]; | |
960 | ||
961 | SWIG_MakePtr(ptemp, (char *) wxMEDIUM_GREY_BRUSH,"_wxBrush_p"); | |
962 | pyobj = PyString_FromString(ptemp); | |
963 | return pyobj; | |
964 | } | |
965 | ||
966 | static int _wrap_wxLIGHT_GREY_BRUSH_set(PyObject *val) { | |
967 | ||
968 | PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY_BRUSH is read-only."); | |
969 | return 1; | |
970 | } | |
971 | ||
972 | static PyObject *_wrap_wxLIGHT_GREY_BRUSH_get() { | |
973 | PyObject * pyobj; | |
974 | char ptemp[128]; | |
975 | ||
976 | SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY_BRUSH,"_wxBrush_p"); | |
977 | pyobj = PyString_FromString(ptemp); | |
978 | return pyobj; | |
979 | } | |
980 | ||
981 | static int _wrap_wxBLACK_set(PyObject *val) { | |
982 | ||
983 | PyErr_SetString(PyExc_TypeError,"Variable wxBLACK is read-only."); | |
984 | return 1; | |
985 | } | |
986 | ||
987 | static PyObject *_wrap_wxBLACK_get() { | |
988 | PyObject * pyobj; | |
989 | char ptemp[128]; | |
990 | ||
991 | SWIG_MakePtr(ptemp, (char *) wxBLACK,"_wxColour_p"); | |
992 | pyobj = PyString_FromString(ptemp); | |
993 | return pyobj; | |
994 | } | |
995 | ||
996 | static int _wrap_wxWHITE_set(PyObject *val) { | |
997 | ||
998 | PyErr_SetString(PyExc_TypeError,"Variable wxWHITE is read-only."); | |
999 | return 1; | |
1000 | } | |
1001 | ||
1002 | static PyObject *_wrap_wxWHITE_get() { | |
1003 | PyObject * pyobj; | |
1004 | char ptemp[128]; | |
1005 | ||
1006 | SWIG_MakePtr(ptemp, (char *) wxWHITE,"_wxColour_p"); | |
1007 | pyobj = PyString_FromString(ptemp); | |
1008 | return pyobj; | |
1009 | } | |
1010 | ||
1011 | static int _wrap_wxRED_set(PyObject *val) { | |
1012 | ||
1013 | PyErr_SetString(PyExc_TypeError,"Variable wxRED is read-only."); | |
1014 | return 1; | |
1015 | } | |
1016 | ||
1017 | static PyObject *_wrap_wxRED_get() { | |
1018 | PyObject * pyobj; | |
1019 | char ptemp[128]; | |
1020 | ||
1021 | SWIG_MakePtr(ptemp, (char *) wxRED,"_wxColour_p"); | |
1022 | pyobj = PyString_FromString(ptemp); | |
1023 | return pyobj; | |
1024 | } | |
1025 | ||
1026 | static int _wrap_wxBLUE_set(PyObject *val) { | |
1027 | ||
1028 | PyErr_SetString(PyExc_TypeError,"Variable wxBLUE is read-only."); | |
1029 | return 1; | |
1030 | } | |
1031 | ||
1032 | static PyObject *_wrap_wxBLUE_get() { | |
1033 | PyObject * pyobj; | |
1034 | char ptemp[128]; | |
1035 | ||
1036 | SWIG_MakePtr(ptemp, (char *) wxBLUE,"_wxColour_p"); | |
1037 | pyobj = PyString_FromString(ptemp); | |
1038 | return pyobj; | |
1039 | } | |
1040 | ||
1041 | static int _wrap_wxGREEN_set(PyObject *val) { | |
1042 | ||
1043 | PyErr_SetString(PyExc_TypeError,"Variable wxGREEN is read-only."); | |
1044 | return 1; | |
1045 | } | |
1046 | ||
1047 | static PyObject *_wrap_wxGREEN_get() { | |
1048 | PyObject * pyobj; | |
1049 | char ptemp[128]; | |
1050 | ||
1051 | SWIG_MakePtr(ptemp, (char *) wxGREEN,"_wxColour_p"); | |
1052 | pyobj = PyString_FromString(ptemp); | |
1053 | return pyobj; | |
1054 | } | |
1055 | ||
1056 | static int _wrap_wxCYAN_set(PyObject *val) { | |
1057 | ||
1058 | PyErr_SetString(PyExc_TypeError,"Variable wxCYAN is read-only."); | |
1059 | return 1; | |
1060 | } | |
1061 | ||
1062 | static PyObject *_wrap_wxCYAN_get() { | |
1063 | PyObject * pyobj; | |
1064 | char ptemp[128]; | |
1065 | ||
1066 | SWIG_MakePtr(ptemp, (char *) wxCYAN,"_wxColour_p"); | |
1067 | pyobj = PyString_FromString(ptemp); | |
1068 | return pyobj; | |
1069 | } | |
1070 | ||
1071 | static int _wrap_wxLIGHT_GREY_set(PyObject *val) { | |
1072 | ||
1073 | PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY is read-only."); | |
1074 | return 1; | |
1075 | } | |
1076 | ||
1077 | static PyObject *_wrap_wxLIGHT_GREY_get() { | |
1078 | PyObject * pyobj; | |
1079 | char ptemp[128]; | |
1080 | ||
1081 | SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY,"_wxColour_p"); | |
1082 | pyobj = PyString_FromString(ptemp); | |
1083 | return pyobj; | |
1084 | } | |
1085 | ||
1086 | static int _wrap_wxSTANDARD_CURSOR_set(PyObject *val) { | |
1087 | ||
1088 | PyErr_SetString(PyExc_TypeError,"Variable wxSTANDARD_CURSOR is read-only."); | |
1089 | return 1; | |
1090 | } | |
1091 | ||
1092 | static PyObject *_wrap_wxSTANDARD_CURSOR_get() { | |
1093 | PyObject * pyobj; | |
1094 | char ptemp[128]; | |
1095 | ||
1096 | SWIG_MakePtr(ptemp, (char *) wxSTANDARD_CURSOR,"_wxCursor_p"); | |
1097 | pyobj = PyString_FromString(ptemp); | |
1098 | return pyobj; | |
1099 | } | |
1100 | ||
1101 | static int _wrap_wxHOURGLASS_CURSOR_set(PyObject *val) { | |
1102 | ||
1103 | PyErr_SetString(PyExc_TypeError,"Variable wxHOURGLASS_CURSOR is read-only."); | |
1104 | return 1; | |
1105 | } | |
1106 | ||
1107 | static PyObject *_wrap_wxHOURGLASS_CURSOR_get() { | |
1108 | PyObject * pyobj; | |
1109 | char ptemp[128]; | |
1110 | ||
1111 | SWIG_MakePtr(ptemp, (char *) wxHOURGLASS_CURSOR,"_wxCursor_p"); | |
1112 | pyobj = PyString_FromString(ptemp); | |
1113 | return pyobj; | |
1114 | } | |
1115 | ||
1116 | static int _wrap_wxCROSS_CURSOR_set(PyObject *val) { | |
1117 | ||
1118 | PyErr_SetString(PyExc_TypeError,"Variable wxCROSS_CURSOR is read-only."); | |
1119 | return 1; | |
1120 | } | |
1121 | ||
1122 | static PyObject *_wrap_wxCROSS_CURSOR_get() { | |
1123 | PyObject * pyobj; | |
1124 | char ptemp[128]; | |
1125 | ||
1126 | SWIG_MakePtr(ptemp, (char *) wxCROSS_CURSOR,"_wxCursor_p"); | |
1127 | pyobj = PyString_FromString(ptemp); | |
1128 | return pyobj; | |
1129 | } | |
1130 | ||
1131 | static int _wrap_wxNullBitmap_set(PyObject *val) { | |
1132 | ||
1133 | PyErr_SetString(PyExc_TypeError,"Variable wxNullBitmap is read-only."); | |
1134 | return 1; | |
1135 | } | |
1136 | ||
1137 | static PyObject *_wrap_wxNullBitmap_get() { | |
1138 | PyObject * pyobj; | |
1139 | char ptemp[128]; | |
1140 | ||
1141 | SWIG_MakePtr(ptemp,(char *) &wxNullBitmap,"_wxBitmap_p"); | |
1142 | pyobj = PyString_FromString(ptemp); | |
1143 | return pyobj; | |
1144 | } | |
1145 | ||
1146 | static int _wrap_wxNullIcon_set(PyObject *val) { | |
1147 | ||
1148 | PyErr_SetString(PyExc_TypeError,"Variable wxNullIcon is read-only."); | |
1149 | return 1; | |
1150 | } | |
1151 | ||
1152 | static PyObject *_wrap_wxNullIcon_get() { | |
1153 | PyObject * pyobj; | |
1154 | char ptemp[128]; | |
1155 | ||
1156 | SWIG_MakePtr(ptemp,(char *) &wxNullIcon,"_wxIcon_p"); | |
1157 | pyobj = PyString_FromString(ptemp); | |
1158 | return pyobj; | |
1159 | } | |
1160 | ||
1161 | static int _wrap_wxNullCursor_set(PyObject *val) { | |
1162 | ||
1163 | PyErr_SetString(PyExc_TypeError,"Variable wxNullCursor is read-only."); | |
1164 | return 1; | |
1165 | } | |
1166 | ||
1167 | static PyObject *_wrap_wxNullCursor_get() { | |
1168 | PyObject * pyobj; | |
1169 | char ptemp[128]; | |
1170 | ||
1171 | SWIG_MakePtr(ptemp,(char *) &wxNullCursor,"_wxCursor_p"); | |
1172 | pyobj = PyString_FromString(ptemp); | |
1173 | return pyobj; | |
1174 | } | |
1175 | ||
1176 | static int _wrap_wxNullPen_set(PyObject *val) { | |
1177 | ||
1178 | PyErr_SetString(PyExc_TypeError,"Variable wxNullPen is read-only."); | |
1179 | return 1; | |
1180 | } | |
1181 | ||
1182 | static PyObject *_wrap_wxNullPen_get() { | |
1183 | PyObject * pyobj; | |
1184 | char ptemp[128]; | |
1185 | ||
1186 | SWIG_MakePtr(ptemp,(char *) &wxNullPen,"_wxPen_p"); | |
1187 | pyobj = PyString_FromString(ptemp); | |
1188 | return pyobj; | |
1189 | } | |
1190 | ||
1191 | static int _wrap_wxNullBrush_set(PyObject *val) { | |
1192 | ||
1193 | PyErr_SetString(PyExc_TypeError,"Variable wxNullBrush is read-only."); | |
1194 | return 1; | |
1195 | } | |
1196 | ||
1197 | static PyObject *_wrap_wxNullBrush_get() { | |
1198 | PyObject * pyobj; | |
1199 | char ptemp[128]; | |
1200 | ||
1201 | SWIG_MakePtr(ptemp,(char *) &wxNullBrush,"_wxBrush_p"); | |
1202 | pyobj = PyString_FromString(ptemp); | |
1203 | return pyobj; | |
1204 | } | |
1205 | ||
1206 | static int _wrap_wxNullPalette_set(PyObject *val) { | |
1207 | ||
1208 | PyErr_SetString(PyExc_TypeError,"Variable wxNullPalette is read-only."); | |
1209 | return 1; | |
1210 | } | |
1211 | ||
1212 | static PyObject *_wrap_wxNullPalette_get() { | |
1213 | PyObject * pyobj; | |
1214 | char ptemp[128]; | |
1215 | ||
1216 | SWIG_MakePtr(ptemp,(char *) &wxNullPalette,"_wxPalette_p"); | |
1217 | pyobj = PyString_FromString(ptemp); | |
1218 | return pyobj; | |
1219 | } | |
1220 | ||
1221 | static int _wrap_wxNullFont_set(PyObject *val) { | |
1222 | ||
1223 | PyErr_SetString(PyExc_TypeError,"Variable wxNullFont is read-only."); | |
1224 | return 1; | |
1225 | } | |
1226 | ||
1227 | static PyObject *_wrap_wxNullFont_get() { | |
1228 | PyObject * pyobj; | |
1229 | char ptemp[128]; | |
1230 | ||
1231 | SWIG_MakePtr(ptemp,(char *) &wxNullFont,"_wxFont_p"); | |
1232 | pyobj = PyString_FromString(ptemp); | |
1233 | return pyobj; | |
1234 | } | |
1235 | ||
1236 | static int _wrap_wxNullColour_set(PyObject *val) { | |
1237 | ||
1238 | PyErr_SetString(PyExc_TypeError,"Variable wxNullColour is read-only."); | |
1239 | return 1; | |
1240 | } | |
1241 | ||
1242 | static PyObject *_wrap_wxNullColour_get() { | |
1243 | PyObject * pyobj; | |
1244 | char ptemp[128]; | |
1245 | ||
1246 | SWIG_MakePtr(ptemp,(char *) &wxNullColour,"_wxColour_p"); | |
1247 | pyobj = PyString_FromString(ptemp); | |
1248 | return pyobj; | |
1249 | } | |
1250 | ||
0569df0f RD |
1251 | static int _wrap_wxTheFontList_set(PyObject *val) { |
1252 | ||
1253 | PyErr_SetString(PyExc_TypeError,"Variable wxTheFontList is read-only."); | |
1254 | return 1; | |
1255 | } | |
1256 | ||
1257 | static PyObject *_wrap_wxTheFontList_get() { | |
1258 | PyObject * pyobj; | |
1259 | char ptemp[128]; | |
1260 | ||
1261 | SWIG_MakePtr(ptemp, (char *) wxTheFontList,"_wxFontList_p"); | |
1262 | pyobj = PyString_FromString(ptemp); | |
1263 | return pyobj; | |
1264 | } | |
1265 | ||
1266 | static int _wrap_wxThePenList_set(PyObject *val) { | |
1267 | ||
1268 | PyErr_SetString(PyExc_TypeError,"Variable wxThePenList is read-only."); | |
1269 | return 1; | |
1270 | } | |
1271 | ||
1272 | static PyObject *_wrap_wxThePenList_get() { | |
1273 | PyObject * pyobj; | |
1274 | char ptemp[128]; | |
1275 | ||
1276 | SWIG_MakePtr(ptemp, (char *) wxThePenList,"_wxPenList_p"); | |
1277 | pyobj = PyString_FromString(ptemp); | |
1278 | return pyobj; | |
1279 | } | |
1280 | ||
1281 | static int _wrap_wxTheBrushList_set(PyObject *val) { | |
1282 | ||
1283 | PyErr_SetString(PyExc_TypeError,"Variable wxTheBrushList is read-only."); | |
1284 | return 1; | |
1285 | } | |
1286 | ||
1287 | static PyObject *_wrap_wxTheBrushList_get() { | |
1288 | PyObject * pyobj; | |
1289 | char ptemp[128]; | |
1290 | ||
6ee2116b | 1291 | SWIG_MakePtr(ptemp, (char *) wxTheBrushList,"_wxBrushList_p"); |
0569df0f RD |
1292 | pyobj = PyString_FromString(ptemp); |
1293 | return pyobj; | |
1294 | } | |
1295 | ||
1296 | static int _wrap_wxTheColourDatabase_set(PyObject *val) { | |
1297 | ||
1298 | PyErr_SetString(PyExc_TypeError,"Variable wxTheColourDatabase is read-only."); | |
1299 | return 1; | |
1300 | } | |
1301 | ||
1302 | static PyObject *_wrap_wxTheColourDatabase_get() { | |
1303 | PyObject * pyobj; | |
1304 | char ptemp[128]; | |
1305 | ||
1306 | SWIG_MakePtr(ptemp, (char *) wxTheColourDatabase,"_wxColourDatabase_p"); | |
1307 | pyobj = PyString_FromString(ptemp); | |
1308 | return pyobj; | |
1309 | } | |
1310 | ||
9416aa89 RD |
1311 | static void *SwigwxGDIObjectTowxObject(void *ptr) { |
1312 | wxGDIObject *src; | |
1313 | wxObject *dest; | |
1314 | src = (wxGDIObject *) ptr; | |
1315 | dest = (wxObject *) src; | |
1316 | return (void *) dest; | |
1317 | } | |
1318 | ||
1319 | #define new_wxGDIObject() (new wxGDIObject()) | |
1320 | static PyObject *_wrap_new_wxGDIObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1321 | PyObject * _resultobj; | |
1322 | wxGDIObject * _result; | |
1323 | char *_kwnames[] = { NULL }; | |
1324 | char _ptemp[128]; | |
1325 | ||
1326 | self = self; | |
1327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxGDIObject",_kwnames)) | |
1328 | return NULL; | |
1329 | { | |
4268f798 | 1330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1331 | _result = (wxGDIObject *)new_wxGDIObject(); |
9416aa89 | 1332 | |
4268f798 | 1333 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1334 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
1335 | } if (_result) { |
1336 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGDIObject_p"); | |
1337 | _resultobj = Py_BuildValue("s",_ptemp); | |
1338 | } else { | |
1339 | Py_INCREF(Py_None); | |
1340 | _resultobj = Py_None; | |
1341 | } | |
1342 | return _resultobj; | |
1343 | } | |
1344 | ||
1345 | #define delete_wxGDIObject(_swigobj) (delete _swigobj) | |
1346 | static PyObject *_wrap_delete_wxGDIObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1347 | PyObject * _resultobj; | |
1348 | wxGDIObject * _arg0; | |
1349 | PyObject * _argo0 = 0; | |
1350 | char *_kwnames[] = { "self", NULL }; | |
1351 | ||
1352 | self = self; | |
1353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxGDIObject",_kwnames,&_argo0)) | |
1354 | return NULL; | |
1355 | if (_argo0) { | |
1356 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1357 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) { | |
1358 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxGDIObject. Expected _wxGDIObject_p."); | |
1359 | return NULL; | |
1360 | } | |
1361 | } | |
1362 | { | |
4268f798 | 1363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1364 | delete_wxGDIObject(_arg0); |
9416aa89 | 1365 | |
4268f798 | 1366 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1367 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
1368 | } Py_INCREF(Py_None); |
1369 | _resultobj = Py_None; | |
1370 | return _resultobj; | |
1371 | } | |
1372 | ||
1373 | #define wxGDIObject_GetVisible(_swigobj) (_swigobj->GetVisible()) | |
1374 | static PyObject *_wrap_wxGDIObject_GetVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1375 | PyObject * _resultobj; | |
1376 | bool _result; | |
1377 | wxGDIObject * _arg0; | |
1378 | PyObject * _argo0 = 0; | |
1379 | char *_kwnames[] = { "self", NULL }; | |
1380 | ||
1381 | self = self; | |
1382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGDIObject_GetVisible",_kwnames,&_argo0)) | |
1383 | return NULL; | |
1384 | if (_argo0) { | |
1385 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1386 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) { | |
1387 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGDIObject_GetVisible. Expected _wxGDIObject_p."); | |
1388 | return NULL; | |
1389 | } | |
1390 | } | |
1391 | { | |
4268f798 | 1392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1393 | _result = (bool )wxGDIObject_GetVisible(_arg0); |
9416aa89 | 1394 | |
4268f798 | 1395 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1396 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
1397 | } _resultobj = Py_BuildValue("i",_result); |
1398 | return _resultobj; | |
1399 | } | |
1400 | ||
1401 | #define wxGDIObject_SetVisible(_swigobj,_swigarg0) (_swigobj->SetVisible(_swigarg0)) | |
1402 | static PyObject *_wrap_wxGDIObject_SetVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1403 | PyObject * _resultobj; | |
1404 | wxGDIObject * _arg0; | |
1405 | bool _arg1; | |
1406 | PyObject * _argo0 = 0; | |
1407 | int tempbool1; | |
1408 | char *_kwnames[] = { "self","visible", NULL }; | |
1409 | ||
1410 | self = self; | |
1411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGDIObject_SetVisible",_kwnames,&_argo0,&tempbool1)) | |
1412 | return NULL; | |
1413 | if (_argo0) { | |
1414 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1415 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) { | |
1416 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGDIObject_SetVisible. Expected _wxGDIObject_p."); | |
1417 | return NULL; | |
1418 | } | |
1419 | } | |
1420 | _arg1 = (bool ) tempbool1; | |
1421 | { | |
4268f798 | 1422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1423 | wxGDIObject_SetVisible(_arg0,_arg1); |
9416aa89 | 1424 | |
4268f798 | 1425 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1426 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
1427 | } Py_INCREF(Py_None); |
1428 | _resultobj = Py_None; | |
1429 | return _resultobj; | |
1430 | } | |
1431 | ||
1432 | #define wxGDIObject_IsNull(_swigobj) (_swigobj->IsNull()) | |
1433 | static PyObject *_wrap_wxGDIObject_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1434 | PyObject * _resultobj; | |
1435 | bool _result; | |
1436 | wxGDIObject * _arg0; | |
1437 | PyObject * _argo0 = 0; | |
1438 | char *_kwnames[] = { "self", NULL }; | |
1439 | ||
1440 | self = self; | |
1441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGDIObject_IsNull",_kwnames,&_argo0)) | |
1442 | return NULL; | |
1443 | if (_argo0) { | |
1444 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1445 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) { | |
1446 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGDIObject_IsNull. Expected _wxGDIObject_p."); | |
1447 | return NULL; | |
1448 | } | |
1449 | } | |
1450 | { | |
4268f798 | 1451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1452 | _result = (bool )wxGDIObject_IsNull(_arg0); |
9416aa89 | 1453 | |
4268f798 | 1454 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1455 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
1456 | } _resultobj = Py_BuildValue("i",_result); |
1457 | return _resultobj; | |
1458 | } | |
1459 | ||
1460 | static void *SwigwxBitmapTowxGDIObject(void *ptr) { | |
1461 | wxBitmap *src; | |
1462 | wxGDIObject *dest; | |
1463 | src = (wxBitmap *) ptr; | |
1464 | dest = (wxGDIObject *) src; | |
1465 | return (void *) dest; | |
1466 | } | |
1467 | ||
1468 | static void *SwigwxBitmapTowxObject(void *ptr) { | |
1469 | wxBitmap *src; | |
1470 | wxObject *dest; | |
1471 | src = (wxBitmap *) ptr; | |
1472 | dest = (wxObject *) src; | |
1473 | return (void *) dest; | |
1474 | } | |
1475 | ||
6999b0d8 RD |
1476 | #define new_wxBitmap(_swigarg0,_swigarg1) (new wxBitmap(_swigarg0,_swigarg1)) |
1477 | static PyObject *_wrap_new_wxBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1478 | PyObject * _resultobj; |
6999b0d8 RD |
1479 | wxBitmap * _result; |
1480 | wxString * _arg0; | |
7d0180d4 | 1481 | wxBitmapType _arg1 = (wxBitmapType ) wxBITMAP_TYPE_ANY; |
6999b0d8 RD |
1482 | PyObject * _obj0 = 0; |
1483 | char *_kwnames[] = { "name","type", NULL }; | |
1484 | char _ptemp[128]; | |
8ab979d7 RD |
1485 | |
1486 | self = self; | |
b37c7e1d | 1487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:new_wxBitmap",_kwnames,&_obj0,&_arg1)) |
8ab979d7 | 1488 | return NULL; |
6999b0d8 | 1489 | { |
c8bc7bb8 RD |
1490 | _arg0 = wxString_in_helper(_obj0); |
1491 | if (_arg0 == NULL) | |
8ab979d7 | 1492 | return NULL; |
6999b0d8 | 1493 | } |
cf694132 | 1494 | { |
4268f798 | 1495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1496 | _result = (wxBitmap *)new_wxBitmap(*_arg0,_arg1); |
cf694132 | 1497 | |
4268f798 | 1498 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1499 | if (PyErr_Occurred()) return NULL; |
6999b0d8 RD |
1500 | } if (_result) { |
1501 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
1502 | _resultobj = Py_BuildValue("s",_ptemp); | |
1503 | } else { | |
1504 | Py_INCREF(Py_None); | |
1505 | _resultobj = Py_None; | |
1506 | } | |
1507 | { | |
1508 | if (_obj0) | |
1509 | delete _arg0; | |
1510 | } | |
8ab979d7 RD |
1511 | return _resultobj; |
1512 | } | |
1513 | ||
6999b0d8 RD |
1514 | #define delete_wxBitmap(_swigobj) (delete _swigobj) |
1515 | static PyObject *_wrap_delete_wxBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
1516 | PyObject * _resultobj; |
1517 | wxBitmap * _arg0; | |
1d99702e | 1518 | PyObject * _argo0 = 0; |
6999b0d8 | 1519 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1520 | |
1521 | self = self; | |
6999b0d8 | 1522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxBitmap",_kwnames,&_argo0)) |
8ab979d7 | 1523 | return NULL; |
1d99702e RD |
1524 | if (_argo0) { |
1525 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1526 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
6999b0d8 | 1527 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxBitmap. Expected _wxBitmap_p."); |
8ab979d7 RD |
1528 | return NULL; |
1529 | } | |
1530 | } | |
cf694132 | 1531 | { |
4268f798 | 1532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1533 | delete_wxBitmap(_arg0); |
cf694132 | 1534 | |
4268f798 | 1535 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1536 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1537 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1538 | _resultobj = Py_None; |
1539 | return _resultobj; | |
1540 | } | |
1541 | ||
6999b0d8 RD |
1542 | #define wxBitmap_GetPalette(_swigobj) (_swigobj->GetPalette()) |
1543 | static PyObject *_wrap_wxBitmap_GetPalette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1544 | PyObject * _resultobj; |
6999b0d8 | 1545 | wxPalette * _result; |
8ab979d7 | 1546 | wxBitmap * _arg0; |
1d99702e | 1547 | PyObject * _argo0 = 0; |
6999b0d8 RD |
1548 | char *_kwnames[] = { "self", NULL }; |
1549 | char _ptemp[128]; | |
8ab979d7 RD |
1550 | |
1551 | self = self; | |
6999b0d8 | 1552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetPalette",_kwnames,&_argo0)) |
8ab979d7 | 1553 | return NULL; |
1d99702e RD |
1554 | if (_argo0) { |
1555 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1556 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
6999b0d8 | 1557 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetPalette. Expected _wxBitmap_p."); |
8ab979d7 RD |
1558 | return NULL; |
1559 | } | |
1560 | } | |
cf694132 | 1561 | { |
4268f798 | 1562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1563 | _result = (wxPalette *)wxBitmap_GetPalette(_arg0); |
cf694132 | 1564 | |
4268f798 | 1565 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1566 | if (PyErr_Occurred()) return NULL; |
6999b0d8 RD |
1567 | } if (_result) { |
1568 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPalette_p"); | |
1569 | _resultobj = Py_BuildValue("s",_ptemp); | |
1570 | } else { | |
1571 | Py_INCREF(Py_None); | |
1572 | _resultobj = Py_None; | |
1573 | } | |
8ab979d7 RD |
1574 | return _resultobj; |
1575 | } | |
1576 | ||
6999b0d8 RD |
1577 | #define wxBitmap_GetMask(_swigobj) (_swigobj->GetMask()) |
1578 | static PyObject *_wrap_wxBitmap_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
1579 | PyObject * _resultobj; |
1580 | wxMask * _result; | |
1581 | wxBitmap * _arg0; | |
1d99702e | 1582 | PyObject * _argo0 = 0; |
6999b0d8 | 1583 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1584 | char _ptemp[128]; |
1585 | ||
1586 | self = self; | |
6999b0d8 | 1587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetMask",_kwnames,&_argo0)) |
8ab979d7 | 1588 | return NULL; |
1d99702e RD |
1589 | if (_argo0) { |
1590 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1591 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
6999b0d8 | 1592 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetMask. Expected _wxBitmap_p."); |
8ab979d7 RD |
1593 | return NULL; |
1594 | } | |
1595 | } | |
cf694132 | 1596 | { |
4268f798 | 1597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1598 | _result = (wxMask *)wxBitmap_GetMask(_arg0); |
cf694132 | 1599 | |
4268f798 | 1600 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1601 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
1602 | } if (_result) { |
1603 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p"); | |
1604 | _resultobj = Py_BuildValue("s",_ptemp); | |
1605 | } else { | |
1606 | Py_INCREF(Py_None); | |
1607 | _resultobj = Py_None; | |
1608 | } | |
8ab979d7 RD |
1609 | return _resultobj; |
1610 | } | |
1611 | ||
6999b0d8 RD |
1612 | #define wxBitmap_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1)) |
1613 | static PyObject *_wrap_wxBitmap_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1614 | PyObject * _resultobj; |
6999b0d8 RD |
1615 | bool _result; |
1616 | wxBitmap * _arg0; | |
1617 | wxString * _arg1; | |
7d0180d4 | 1618 | wxBitmapType _arg2 = (wxBitmapType ) wxBITMAP_TYPE_ANY; |
6999b0d8 RD |
1619 | PyObject * _argo0 = 0; |
1620 | PyObject * _obj1 = 0; | |
b37c7e1d | 1621 | char *_kwnames[] = { "self","name","type", NULL }; |
8ab979d7 RD |
1622 | |
1623 | self = self; | |
b37c7e1d | 1624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxBitmap_LoadFile",_kwnames,&_argo0,&_obj1,&_arg2)) |
6999b0d8 RD |
1625 | return NULL; |
1626 | if (_argo0) { | |
1627 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1628 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1629 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_LoadFile. Expected _wxBitmap_p."); | |
8ab979d7 | 1630 | return NULL; |
6999b0d8 RD |
1631 | } |
1632 | } | |
8ab979d7 | 1633 | { |
c8bc7bb8 RD |
1634 | _arg1 = wxString_in_helper(_obj1); |
1635 | if (_arg1 == NULL) | |
185d7c3e | 1636 | return NULL; |
8ab979d7 | 1637 | } |
cf694132 | 1638 | { |
4268f798 | 1639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1640 | _result = (bool )wxBitmap_LoadFile(_arg0,*_arg1,_arg2); |
cf694132 | 1641 | |
4268f798 | 1642 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1643 | if (PyErr_Occurred()) return NULL; |
6999b0d8 | 1644 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 | 1645 | { |
6999b0d8 RD |
1646 | if (_obj1) |
1647 | delete _arg1; | |
8ab979d7 RD |
1648 | } |
1649 | return _resultobj; | |
1650 | } | |
1651 | ||
6999b0d8 RD |
1652 | #define wxBitmap_SaveFile(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SaveFile(_swigarg0,_swigarg1,_swigarg2)) |
1653 | static PyObject *_wrap_wxBitmap_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1654 | PyObject * _resultobj; |
6999b0d8 RD |
1655 | bool _result; |
1656 | wxBitmap * _arg0; | |
1657 | wxString * _arg1; | |
b37c7e1d | 1658 | wxBitmapType _arg2; |
6999b0d8 | 1659 | wxPalette * _arg3 = (wxPalette *) NULL; |
1d99702e | 1660 | PyObject * _argo0 = 0; |
6999b0d8 RD |
1661 | PyObject * _obj1 = 0; |
1662 | PyObject * _argo3 = 0; | |
1663 | char *_kwnames[] = { "self","name","type","palette", NULL }; | |
8ab979d7 RD |
1664 | |
1665 | self = self; | |
6999b0d8 | 1666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|O:wxBitmap_SaveFile",_kwnames,&_argo0,&_obj1,&_arg2,&_argo3)) |
8ab979d7 | 1667 | return NULL; |
1d99702e RD |
1668 | if (_argo0) { |
1669 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6999b0d8 RD |
1670 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { |
1671 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SaveFile. Expected _wxBitmap_p."); | |
8ab979d7 RD |
1672 | return NULL; |
1673 | } | |
1674 | } | |
cf694132 | 1675 | { |
c8bc7bb8 RD |
1676 | _arg1 = wxString_in_helper(_obj1); |
1677 | if (_arg1 == NULL) | |
185d7c3e | 1678 | return NULL; |
6999b0d8 RD |
1679 | } |
1680 | if (_argo3) { | |
1681 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
1682 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxPalette_p")) { | |
1683 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxBitmap_SaveFile. Expected _wxPalette_p."); | |
8ab979d7 RD |
1684 | return NULL; |
1685 | } | |
1686 | } | |
cf694132 | 1687 | { |
4268f798 | 1688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1689 | _result = (bool )wxBitmap_SaveFile(_arg0,*_arg1,_arg2,_arg3); |
cf694132 | 1690 | |
4268f798 | 1691 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1692 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1693 | } _resultobj = Py_BuildValue("i",_result); |
6999b0d8 RD |
1694 | { |
1695 | if (_obj1) | |
1696 | delete _arg1; | |
1697 | } | |
8ab979d7 RD |
1698 | return _resultobj; |
1699 | } | |
1700 | ||
6999b0d8 RD |
1701 | #define wxBitmap_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0)) |
1702 | static PyObject *_wrap_wxBitmap_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1703 | PyObject * _resultobj; |
6999b0d8 RD |
1704 | wxBitmap * _arg0; |
1705 | wxMask * _arg1; | |
1d99702e | 1706 | PyObject * _argo0 = 0; |
6999b0d8 RD |
1707 | PyObject * _argo1 = 0; |
1708 | char *_kwnames[] = { "self","mask", NULL }; | |
8ab979d7 RD |
1709 | |
1710 | self = self; | |
6999b0d8 | 1711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_SetMask",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 1712 | return NULL; |
1d99702e RD |
1713 | if (_argo0) { |
1714 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6999b0d8 RD |
1715 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { |
1716 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetMask. Expected _wxBitmap_p."); | |
8ab979d7 RD |
1717 | return NULL; |
1718 | } | |
1719 | } | |
6999b0d8 RD |
1720 | if (_argo1) { |
1721 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1722 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMask_p")) { | |
1723 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_SetMask. Expected _wxMask_p."); | |
8ab979d7 RD |
1724 | return NULL; |
1725 | } | |
1726 | } | |
cf694132 | 1727 | { |
4268f798 | 1728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1729 | wxBitmap_SetMask(_arg0,_arg1); |
cf694132 | 1730 | |
4268f798 | 1731 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1732 | if (PyErr_Occurred()) return NULL; |
6999b0d8 RD |
1733 | } Py_INCREF(Py_None); |
1734 | _resultobj = Py_None; | |
8ab979d7 RD |
1735 | return _resultobj; |
1736 | } | |
1737 | ||
6999b0d8 RD |
1738 | #define wxBitmap_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0)) |
1739 | static PyObject *_wrap_wxBitmap_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1740 | PyObject * _resultobj; | |
1741 | wxBitmap * _arg0; | |
1742 | wxPalette * _arg1; | |
1d99702e | 1743 | PyObject * _argo0 = 0; |
6999b0d8 RD |
1744 | PyObject * _argo1 = 0; |
1745 | char *_kwnames[] = { "self","palette", NULL }; | |
8ab979d7 RD |
1746 | |
1747 | self = self; | |
6999b0d8 | 1748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_SetPalette",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 1749 | return NULL; |
1d99702e RD |
1750 | if (_argo0) { |
1751 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6999b0d8 RD |
1752 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { |
1753 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetPalette. Expected _wxBitmap_p."); | |
8ab979d7 RD |
1754 | return NULL; |
1755 | } | |
1756 | } | |
6999b0d8 RD |
1757 | if (_argo1) { |
1758 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1759 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPalette_p")) { | |
1760 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_SetPalette. Expected _wxPalette_p."); | |
8ab979d7 | 1761 | return NULL; |
6999b0d8 | 1762 | } |
8ab979d7 | 1763 | } |
cf694132 | 1764 | { |
4268f798 | 1765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1766 | wxBitmap_SetPalette(_arg0,*_arg1); |
cf694132 | 1767 | |
4268f798 | 1768 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1769 | if (PyErr_Occurred()) return NULL; |
6999b0d8 RD |
1770 | } Py_INCREF(Py_None); |
1771 | _resultobj = Py_None; | |
8ab979d7 RD |
1772 | return _resultobj; |
1773 | } | |
1774 | ||
9b3d3bc4 RD |
1775 | #define wxBitmap_GetHandle(_swigobj) (_swigobj->GetHandle()) |
1776 | static PyObject *_wrap_wxBitmap_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1777 | PyObject * _resultobj; |
9b3d3bc4 | 1778 | long _result; |
6999b0d8 | 1779 | wxBitmap * _arg0; |
1d99702e | 1780 | PyObject * _argo0 = 0; |
9b3d3bc4 | 1781 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1782 | |
1783 | self = self; | |
9b3d3bc4 | 1784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetHandle",_kwnames,&_argo0)) |
8ab979d7 | 1785 | return NULL; |
1d99702e RD |
1786 | if (_argo0) { |
1787 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6999b0d8 | 1788 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { |
9b3d3bc4 | 1789 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetHandle. Expected _wxBitmap_p."); |
8ab979d7 RD |
1790 | return NULL; |
1791 | } | |
1792 | } | |
cf694132 | 1793 | { |
4268f798 | 1794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1795 | _result = (long )wxBitmap_GetHandle(_arg0); |
cf694132 | 1796 | |
4268f798 | 1797 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1798 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 | 1799 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
1800 | return _resultobj; |
1801 | } | |
1802 | ||
9b3d3bc4 RD |
1803 | #define wxBitmap_SetHandle(_swigobj,_swigarg0) (_swigobj->SetHandle(_swigarg0)) |
1804 | static PyObject *_wrap_wxBitmap_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1805 | PyObject * _resultobj; |
9b3d3bc4 | 1806 | wxBitmap * _arg0; |
6999b0d8 | 1807 | long _arg1; |
9b3d3bc4 RD |
1808 | PyObject * _argo0 = 0; |
1809 | char *_kwnames[] = { "self","handle", NULL }; | |
8ab979d7 RD |
1810 | |
1811 | self = self; | |
9b3d3bc4 | 1812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxBitmap_SetHandle",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1813 | return NULL; |
9b3d3bc4 RD |
1814 | if (_argo0) { |
1815 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1816 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1817 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetHandle. Expected _wxBitmap_p."); | |
8ab979d7 | 1818 | return NULL; |
9b3d3bc4 | 1819 | } |
8ab979d7 | 1820 | } |
9b3d3bc4 | 1821 | { |
4268f798 | 1822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1823 | wxBitmap_SetHandle(_arg0,_arg1); |
9b3d3bc4 | 1824 | |
4268f798 | 1825 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1826 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
1827 | } Py_INCREF(Py_None); |
1828 | _resultobj = Py_None; | |
1829 | return _resultobj; | |
6999b0d8 | 1830 | } |
9b3d3bc4 RD |
1831 | |
1832 | #define wxBitmap_Ok(_swigobj) (_swigobj->Ok()) | |
1833 | static PyObject *_wrap_wxBitmap_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1834 | PyObject * _resultobj; | |
1835 | bool _result; | |
1836 | wxBitmap * _arg0; | |
1837 | PyObject * _argo0 = 0; | |
1838 | char *_kwnames[] = { "self", NULL }; | |
1839 | ||
1840 | self = self; | |
1841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_Ok",_kwnames,&_argo0)) | |
1842 | return NULL; | |
1843 | if (_argo0) { | |
1844 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1845 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1846 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_Ok. Expected _wxBitmap_p."); | |
1847 | return NULL; | |
1848 | } | |
1849 | } | |
cf694132 | 1850 | { |
4268f798 | 1851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1852 | _result = (bool )wxBitmap_Ok(_arg0); |
cf694132 | 1853 | |
4268f798 | 1854 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1855 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
1856 | } _resultobj = Py_BuildValue("i",_result); |
1857 | return _resultobj; | |
1858 | } | |
1859 | ||
1860 | #define wxBitmap_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
1861 | static PyObject *_wrap_wxBitmap_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1862 | PyObject * _resultobj; | |
1863 | int _result; | |
1864 | wxBitmap * _arg0; | |
1865 | PyObject * _argo0 = 0; | |
1866 | char *_kwnames[] = { "self", NULL }; | |
1867 | ||
1868 | self = self; | |
1869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetWidth",_kwnames,&_argo0)) | |
1870 | return NULL; | |
1871 | if (_argo0) { | |
1872 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1873 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1874 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetWidth. Expected _wxBitmap_p."); | |
1875 | return NULL; | |
1876 | } | |
6999b0d8 RD |
1877 | } |
1878 | { | |
4268f798 | 1879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1880 | _result = (int )wxBitmap_GetWidth(_arg0); |
9b3d3bc4 | 1881 | |
4268f798 | 1882 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1883 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
1884 | } _resultobj = Py_BuildValue("i",_result); |
1885 | return _resultobj; | |
6999b0d8 | 1886 | } |
9b3d3bc4 RD |
1887 | |
1888 | #define wxBitmap_GetHeight(_swigobj) (_swigobj->GetHeight()) | |
1889 | static PyObject *_wrap_wxBitmap_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1890 | PyObject * _resultobj; | |
1891 | int _result; | |
1892 | wxBitmap * _arg0; | |
1893 | PyObject * _argo0 = 0; | |
1894 | char *_kwnames[] = { "self", NULL }; | |
1895 | ||
1896 | self = self; | |
1897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetHeight",_kwnames,&_argo0)) | |
1898 | return NULL; | |
1899 | if (_argo0) { | |
1900 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1901 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1902 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetHeight. Expected _wxBitmap_p."); | |
1903 | return NULL; | |
1904 | } | |
1905 | } | |
1906 | { | |
4268f798 | 1907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1908 | _result = (int )wxBitmap_GetHeight(_arg0); |
9b3d3bc4 | 1909 | |
4268f798 | 1910 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1911 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 | 1912 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
1913 | return _resultobj; |
1914 | } | |
1915 | ||
9b3d3bc4 RD |
1916 | #define wxBitmap_GetDepth(_swigobj) (_swigobj->GetDepth()) |
1917 | static PyObject *_wrap_wxBitmap_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1918 | PyObject * _resultobj; |
9b3d3bc4 RD |
1919 | int _result; |
1920 | wxBitmap * _arg0; | |
1d99702e | 1921 | PyObject * _argo0 = 0; |
6999b0d8 | 1922 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1923 | |
1924 | self = self; | |
9b3d3bc4 | 1925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetDepth",_kwnames,&_argo0)) |
8ab979d7 | 1926 | return NULL; |
1d99702e RD |
1927 | if (_argo0) { |
1928 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9b3d3bc4 RD |
1929 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { |
1930 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetDepth. Expected _wxBitmap_p."); | |
8ab979d7 RD |
1931 | return NULL; |
1932 | } | |
1933 | } | |
cf694132 | 1934 | { |
4268f798 | 1935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1936 | _result = (int )wxBitmap_GetDepth(_arg0); |
9b3d3bc4 | 1937 | |
4268f798 | 1938 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1939 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
1940 | } _resultobj = Py_BuildValue("i",_result); |
1941 | return _resultobj; | |
1942 | } | |
1943 | ||
1944 | #define wxBitmap_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0)) | |
1945 | static PyObject *_wrap_wxBitmap_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1946 | PyObject * _resultobj; | |
1947 | wxBitmap * _arg0; | |
1948 | int _arg1; | |
1949 | PyObject * _argo0 = 0; | |
1950 | char *_kwnames[] = { "self","w", NULL }; | |
1951 | ||
1952 | self = self; | |
1953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetWidth",_kwnames,&_argo0,&_arg1)) | |
1954 | return NULL; | |
1955 | if (_argo0) { | |
1956 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1957 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1958 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetWidth. Expected _wxBitmap_p."); | |
1959 | return NULL; | |
1960 | } | |
1961 | } | |
1962 | { | |
4268f798 | 1963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1964 | wxBitmap_SetWidth(_arg0,_arg1); |
cf694132 | 1965 | |
4268f798 | 1966 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1967 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1968 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1969 | _resultobj = Py_None; |
1970 | return _resultobj; | |
1971 | } | |
1972 | ||
9b3d3bc4 RD |
1973 | #define wxBitmap_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0)) |
1974 | static PyObject *_wrap_wxBitmap_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1975 | PyObject * _resultobj; |
9b3d3bc4 RD |
1976 | wxBitmap * _arg0; |
1977 | int _arg1; | |
1d99702e | 1978 | PyObject * _argo0 = 0; |
9b3d3bc4 | 1979 | char *_kwnames[] = { "self","h", NULL }; |
8ab979d7 RD |
1980 | |
1981 | self = self; | |
9b3d3bc4 | 1982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetHeight",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1983 | return NULL; |
1d99702e RD |
1984 | if (_argo0) { |
1985 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9b3d3bc4 RD |
1986 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { |
1987 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetHeight. Expected _wxBitmap_p."); | |
8ab979d7 RD |
1988 | return NULL; |
1989 | } | |
1990 | } | |
6999b0d8 | 1991 | { |
4268f798 | 1992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1993 | wxBitmap_SetHeight(_arg0,_arg1); |
9b3d3bc4 | 1994 | |
4268f798 | 1995 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1996 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
1997 | } Py_INCREF(Py_None); |
1998 | _resultobj = Py_None; | |
1999 | return _resultobj; | |
2000 | } | |
2001 | ||
2002 | #define wxBitmap_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0)) | |
2003 | static PyObject *_wrap_wxBitmap_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2004 | PyObject * _resultobj; | |
2005 | wxBitmap * _arg0; | |
2006 | int _arg1; | |
2007 | PyObject * _argo0 = 0; | |
2008 | char *_kwnames[] = { "self","d", NULL }; | |
2009 | ||
2010 | self = self; | |
2011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetDepth",_kwnames,&_argo0,&_arg1)) | |
2012 | return NULL; | |
2013 | if (_argo0) { | |
2014 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2015 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
2016 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetDepth. Expected _wxBitmap_p."); | |
6999b0d8 | 2017 | return NULL; |
9b3d3bc4 | 2018 | } |
6999b0d8 | 2019 | } |
cf694132 | 2020 | { |
4268f798 | 2021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2022 | wxBitmap_SetDepth(_arg0,_arg1); |
cf694132 | 2023 | |
4268f798 | 2024 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2025 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2026 | } Py_INCREF(Py_None); |
2027 | _resultobj = Py_None; | |
2028 | return _resultobj; | |
2029 | } | |
2030 | ||
2031 | #define wxBitmap_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0)) | |
2032 | static PyObject *_wrap_wxBitmap_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2033 | PyObject * _resultobj; | |
2034 | wxBitmap * _arg0; | |
2035 | wxSize * _arg1; | |
2036 | PyObject * _argo0 = 0; | |
2037 | wxSize temp; | |
2038 | PyObject * _obj1 = 0; | |
2039 | char *_kwnames[] = { "self","size", NULL }; | |
2040 | ||
2041 | self = self; | |
2042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_SetSize",_kwnames,&_argo0,&_obj1)) | |
2043 | return NULL; | |
2044 | if (_argo0) { | |
2045 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2046 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
2047 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetSize. Expected _wxBitmap_p."); | |
2048 | return NULL; | |
2049 | } | |
2050 | } | |
6999b0d8 | 2051 | { |
9b3d3bc4 RD |
2052 | _arg1 = &temp; |
2053 | if (! wxSize_helper(_obj1, &_arg1)) | |
2054 | return NULL; | |
6999b0d8 | 2055 | } |
9b3d3bc4 | 2056 | { |
4268f798 | 2057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2058 | wxBitmap_SetSize(_arg0,*_arg1); |
9b3d3bc4 | 2059 | |
4268f798 | 2060 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2061 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2062 | } Py_INCREF(Py_None); |
2063 | _resultobj = Py_None; | |
8ab979d7 RD |
2064 | return _resultobj; |
2065 | } | |
2066 | ||
f6bcfd97 BP |
2067 | #define wxBitmap_GetSubBitmap(_swigobj,_swigarg0) (_swigobj->GetSubBitmap(_swigarg0)) |
2068 | static PyObject *_wrap_wxBitmap_GetSubBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2069 | PyObject * _resultobj; | |
2070 | wxBitmap * _result; | |
2071 | wxBitmap * _arg0; | |
2072 | wxRect * _arg1; | |
2073 | PyObject * _argo0 = 0; | |
2074 | wxRect temp; | |
2075 | PyObject * _obj1 = 0; | |
2076 | char *_kwnames[] = { "self","rect", NULL }; | |
2077 | char _ptemp[128]; | |
2078 | ||
2079 | self = self; | |
2080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_GetSubBitmap",_kwnames,&_argo0,&_obj1)) | |
2081 | return NULL; | |
2082 | if (_argo0) { | |
2083 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2084 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
2085 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetSubBitmap. Expected _wxBitmap_p."); | |
2086 | return NULL; | |
2087 | } | |
2088 | } | |
2089 | { | |
2090 | _arg1 = &temp; | |
2091 | if (! wxRect_helper(_obj1, &_arg1)) | |
2092 | return NULL; | |
2093 | } | |
2094 | { | |
4268f798 | 2095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2096 | _result = new wxBitmap (wxBitmap_GetSubBitmap(_arg0,*_arg1)); |
f6bcfd97 | 2097 | |
4268f798 | 2098 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2099 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2100 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); |
2101 | _resultobj = Py_BuildValue("s",_ptemp); | |
2102 | return _resultobj; | |
2103 | } | |
2104 | ||
2105 | #define wxBitmap_CopyFromIcon(_swigobj,_swigarg0) (_swigobj->CopyFromIcon(_swigarg0)) | |
2106 | static PyObject *_wrap_wxBitmap_CopyFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2107 | PyObject * _resultobj; | |
2108 | bool _result; | |
2109 | wxBitmap * _arg0; | |
2110 | wxIcon * _arg1; | |
2111 | PyObject * _argo0 = 0; | |
2112 | PyObject * _argo1 = 0; | |
2113 | char *_kwnames[] = { "self","icon", NULL }; | |
2114 | ||
2115 | self = self; | |
2116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_CopyFromIcon",_kwnames,&_argo0,&_argo1)) | |
2117 | return NULL; | |
2118 | if (_argo0) { | |
2119 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2120 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
2121 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_CopyFromIcon. Expected _wxBitmap_p."); | |
2122 | return NULL; | |
2123 | } | |
2124 | } | |
2125 | if (_argo1) { | |
2126 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2127 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) { | |
2128 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_CopyFromIcon. Expected _wxIcon_p."); | |
2129 | return NULL; | |
2130 | } | |
2131 | } | |
2132 | { | |
4268f798 | 2133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2134 | _result = (bool )wxBitmap_CopyFromIcon(_arg0,*_arg1); |
f6bcfd97 | 2135 | |
4268f798 | 2136 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2137 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2138 | } _resultobj = Py_BuildValue("i",_result); |
2139 | return _resultobj; | |
2140 | } | |
2141 | ||
2142 | #define wxBitmap_CopyFromCursor(_swigobj,_swigarg0) (_swigobj->CopyFromCursor(_swigarg0)) | |
2143 | static PyObject *_wrap_wxBitmap_CopyFromCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2144 | PyObject * _resultobj; | |
2145 | bool _result; | |
2146 | wxBitmap * _arg0; | |
2147 | wxCursor * _arg1; | |
2148 | PyObject * _argo0 = 0; | |
2149 | PyObject * _argo1 = 0; | |
2150 | char *_kwnames[] = { "self","cursor", NULL }; | |
2151 | ||
2152 | self = self; | |
2153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_CopyFromCursor",_kwnames,&_argo0,&_argo1)) | |
2154 | return NULL; | |
2155 | if (_argo0) { | |
2156 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2157 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
2158 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_CopyFromCursor. Expected _wxBitmap_p."); | |
2159 | return NULL; | |
2160 | } | |
2161 | } | |
2162 | if (_argo1) { | |
2163 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2164 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) { | |
2165 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_CopyFromCursor. Expected _wxCursor_p."); | |
2166 | return NULL; | |
2167 | } | |
2168 | } | |
2169 | { | |
4268f798 | 2170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2171 | _result = (bool )wxBitmap_CopyFromCursor(_arg0,*_arg1); |
f6bcfd97 | 2172 | |
4268f798 | 2173 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2174 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2175 | } _resultobj = Py_BuildValue("i",_result); |
2176 | return _resultobj; | |
2177 | } | |
2178 | ||
2179 | #define wxBitmap_GetQuality(_swigobj) (_swigobj->GetQuality()) | |
2180 | static PyObject *_wrap_wxBitmap_GetQuality(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2181 | PyObject * _resultobj; | |
2182 | int _result; | |
2183 | wxBitmap * _arg0; | |
2184 | PyObject * _argo0 = 0; | |
2185 | char *_kwnames[] = { "self", NULL }; | |
2186 | ||
2187 | self = self; | |
2188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetQuality",_kwnames,&_argo0)) | |
2189 | return NULL; | |
2190 | if (_argo0) { | |
2191 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2192 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
2193 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetQuality. Expected _wxBitmap_p."); | |
2194 | return NULL; | |
2195 | } | |
2196 | } | |
2197 | { | |
4268f798 | 2198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2199 | _result = (int )wxBitmap_GetQuality(_arg0); |
f6bcfd97 | 2200 | |
4268f798 | 2201 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2202 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2203 | } _resultobj = Py_BuildValue("i",_result); |
2204 | return _resultobj; | |
2205 | } | |
2206 | ||
2207 | #define wxBitmap_SetQuality(_swigobj,_swigarg0) (_swigobj->SetQuality(_swigarg0)) | |
2208 | static PyObject *_wrap_wxBitmap_SetQuality(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2209 | PyObject * _resultobj; | |
2210 | wxBitmap * _arg0; | |
2211 | int _arg1; | |
2212 | PyObject * _argo0 = 0; | |
2213 | char *_kwnames[] = { "self","q", NULL }; | |
2214 | ||
2215 | self = self; | |
2216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetQuality",_kwnames,&_argo0,&_arg1)) | |
2217 | return NULL; | |
2218 | if (_argo0) { | |
2219 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2220 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
2221 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetQuality. Expected _wxBitmap_p."); | |
2222 | return NULL; | |
2223 | } | |
2224 | } | |
2225 | { | |
4268f798 | 2226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2227 | wxBitmap_SetQuality(_arg0,_arg1); |
f6bcfd97 | 2228 | |
4268f798 | 2229 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2230 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2231 | } Py_INCREF(Py_None); |
2232 | _resultobj = Py_None; | |
2233 | return _resultobj; | |
2234 | } | |
2235 | ||
9416aa89 RD |
2236 | static void *SwigwxMaskTowxObject(void *ptr) { |
2237 | wxMask *src; | |
2238 | wxObject *dest; | |
2239 | src = (wxMask *) ptr; | |
2240 | dest = (wxObject *) src; | |
2241 | return (void *) dest; | |
2242 | } | |
2243 | ||
9b3d3bc4 RD |
2244 | #define new_wxMask(_swigarg0) (new wxMask(_swigarg0)) |
2245 | static PyObject *_wrap_new_wxMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2246 | PyObject * _resultobj; | |
2247 | wxMask * _result; | |
2248 | wxBitmap * _arg0; | |
2249 | PyObject * _argo0 = 0; | |
2250 | char *_kwnames[] = { "bitmap", NULL }; | |
2251 | char _ptemp[128]; | |
2252 | ||
2253 | self = self; | |
2254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxMask",_kwnames,&_argo0)) | |
2255 | return NULL; | |
2256 | if (_argo0) { | |
2257 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2258 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
2259 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMask. Expected _wxBitmap_p."); | |
2260 | return NULL; | |
2261 | } | |
2262 | } | |
2263 | { | |
4268f798 | 2264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2265 | _result = (wxMask *)new_wxMask(*_arg0); |
9b3d3bc4 | 2266 | |
4268f798 | 2267 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2268 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2269 | } if (_result) { |
2270 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p"); | |
2271 | _resultobj = Py_BuildValue("s",_ptemp); | |
2272 | } else { | |
2273 | Py_INCREF(Py_None); | |
2274 | _resultobj = Py_None; | |
2275 | } | |
2276 | return _resultobj; | |
8ab979d7 RD |
2277 | } |
2278 | ||
96bfd053 RD |
2279 | static void wxMask_Destroy(wxMask *self) { delete self; } |
2280 | static PyObject *_wrap_wxMask_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2281 | PyObject * _resultobj; | |
2282 | wxMask * _arg0; | |
2283 | PyObject * _argo0 = 0; | |
2284 | char *_kwnames[] = { "self", NULL }; | |
2285 | ||
2286 | self = self; | |
2287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMask_Destroy",_kwnames,&_argo0)) | |
2288 | return NULL; | |
2289 | if (_argo0) { | |
2290 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2291 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMask_p")) { | |
2292 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMask_Destroy. Expected _wxMask_p."); | |
2293 | return NULL; | |
2294 | } | |
2295 | } | |
2296 | { | |
4268f798 | 2297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2298 | wxMask_Destroy(_arg0); |
96bfd053 | 2299 | |
4268f798 | 2300 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2301 | if (PyErr_Occurred()) return NULL; |
96bfd053 RD |
2302 | } Py_INCREF(Py_None); |
2303 | _resultobj = Py_None; | |
2304 | return _resultobj; | |
2305 | } | |
2306 | ||
9416aa89 RD |
2307 | static void *SwigwxIconTowxGDIObject(void *ptr) { |
2308 | wxIcon *src; | |
2309 | wxGDIObject *dest; | |
2310 | src = (wxIcon *) ptr; | |
2311 | dest = (wxGDIObject *) src; | |
2312 | return (void *) dest; | |
2313 | } | |
2314 | ||
2315 | static void *SwigwxIconTowxObject(void *ptr) { | |
2316 | wxIcon *src; | |
2317 | wxObject *dest; | |
2318 | src = (wxIcon *) ptr; | |
2319 | dest = (wxObject *) src; | |
2320 | return (void *) dest; | |
2321 | } | |
2322 | ||
9b3d3bc4 RD |
2323 | #define new_wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
2324 | static PyObject *_wrap_new_wxIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2325 | PyObject * _resultobj; |
9b3d3bc4 | 2326 | wxIcon * _result; |
8ab979d7 RD |
2327 | wxString * _arg0; |
2328 | long _arg1; | |
9b3d3bc4 RD |
2329 | int _arg2 = (int ) -1; |
2330 | int _arg3 = (int ) -1; | |
8ab979d7 | 2331 | PyObject * _obj0 = 0; |
9b3d3bc4 | 2332 | char *_kwnames[] = { "name","flags","desiredWidth","desiredHeight", NULL }; |
8ab979d7 RD |
2333 | char _ptemp[128]; |
2334 | ||
2335 | self = self; | |
9b3d3bc4 | 2336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|ii:new_wxIcon",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3)) |
8ab979d7 RD |
2337 | return NULL; |
2338 | { | |
c8bc7bb8 RD |
2339 | _arg0 = wxString_in_helper(_obj0); |
2340 | if (_arg0 == NULL) | |
185d7c3e | 2341 | return NULL; |
8ab979d7 | 2342 | } |
cf694132 | 2343 | { |
4268f798 | 2344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2345 | _result = (wxIcon *)new_wxIcon(*_arg0,_arg1,_arg2,_arg3); |
cf694132 | 2346 | |
4268f798 | 2347 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2348 | if (PyErr_Occurred()) return NULL; |
1d99702e | 2349 | } if (_result) { |
9b3d3bc4 | 2350 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p"); |
1d99702e RD |
2351 | _resultobj = Py_BuildValue("s",_ptemp); |
2352 | } else { | |
2353 | Py_INCREF(Py_None); | |
2354 | _resultobj = Py_None; | |
2355 | } | |
8ab979d7 RD |
2356 | { |
2357 | if (_obj0) | |
2358 | delete _arg0; | |
2359 | } | |
2360 | return _resultobj; | |
2361 | } | |
2362 | ||
9b3d3bc4 RD |
2363 | #define delete_wxIcon(_swigobj) (delete _swigobj) |
2364 | static PyObject *_wrap_delete_wxIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2365 | PyObject * _resultobj; |
9b3d3bc4 | 2366 | wxIcon * _arg0; |
1d99702e | 2367 | PyObject * _argo0 = 0; |
1afc06c2 | 2368 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2369 | |
2370 | self = self; | |
9b3d3bc4 | 2371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxIcon",_kwnames,&_argo0)) |
8ab979d7 | 2372 | return NULL; |
1d99702e RD |
2373 | if (_argo0) { |
2374 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9b3d3bc4 RD |
2375 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { |
2376 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxIcon. Expected _wxIcon_p."); | |
8ab979d7 RD |
2377 | return NULL; |
2378 | } | |
2379 | } | |
cf694132 | 2380 | { |
4268f798 | 2381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2382 | delete_wxIcon(_arg0); |
9b3d3bc4 | 2383 | |
4268f798 | 2384 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2385 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2386 | } Py_INCREF(Py_None); |
2387 | _resultobj = Py_None; | |
2388 | return _resultobj; | |
2389 | } | |
2390 | ||
2391 | #define wxIcon_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1)) | |
2392 | static PyObject *_wrap_wxIcon_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2393 | PyObject * _resultobj; | |
2394 | bool _result; | |
2395 | wxIcon * _arg0; | |
2396 | wxString * _arg1; | |
2397 | long _arg2; | |
2398 | PyObject * _argo0 = 0; | |
2399 | PyObject * _obj1 = 0; | |
2400 | char *_kwnames[] = { "self","name","flags", NULL }; | |
2401 | ||
2402 | self = self; | |
2403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOl:wxIcon_LoadFile",_kwnames,&_argo0,&_obj1,&_arg2)) | |
2404 | return NULL; | |
2405 | if (_argo0) { | |
2406 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2407 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2408 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_LoadFile. Expected _wxIcon_p."); | |
2409 | return NULL; | |
2410 | } | |
2411 | } | |
2412 | { | |
c8bc7bb8 RD |
2413 | _arg1 = wxString_in_helper(_obj1); |
2414 | if (_arg1 == NULL) | |
185d7c3e | 2415 | return NULL; |
9b3d3bc4 RD |
2416 | } |
2417 | { | |
4268f798 | 2418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2419 | _result = (bool )wxIcon_LoadFile(_arg0,*_arg1,_arg2); |
9b3d3bc4 | 2420 | |
4268f798 | 2421 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2422 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2423 | } _resultobj = Py_BuildValue("i",_result); |
2424 | { | |
2425 | if (_obj1) | |
2426 | delete _arg1; | |
2427 | } | |
2428 | return _resultobj; | |
2429 | } | |
2430 | ||
2431 | #define wxIcon_GetHandle(_swigobj) (_swigobj->GetHandle()) | |
2432 | static PyObject *_wrap_wxIcon_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2433 | PyObject * _resultobj; | |
2434 | long _result; | |
2435 | wxIcon * _arg0; | |
2436 | PyObject * _argo0 = 0; | |
2437 | char *_kwnames[] = { "self", NULL }; | |
2438 | ||
2439 | self = self; | |
2440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetHandle",_kwnames,&_argo0)) | |
2441 | return NULL; | |
2442 | if (_argo0) { | |
2443 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2444 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2445 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetHandle. Expected _wxIcon_p."); | |
2446 | return NULL; | |
2447 | } | |
2448 | } | |
2449 | { | |
4268f798 | 2450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2451 | _result = (long )wxIcon_GetHandle(_arg0); |
9b3d3bc4 | 2452 | |
4268f798 | 2453 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2454 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2455 | } _resultobj = Py_BuildValue("l",_result); |
2456 | return _resultobj; | |
2457 | } | |
2458 | ||
2459 | #define wxIcon_SetHandle(_swigobj,_swigarg0) (_swigobj->SetHandle(_swigarg0)) | |
2460 | static PyObject *_wrap_wxIcon_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2461 | PyObject * _resultobj; | |
2462 | wxIcon * _arg0; | |
2463 | long _arg1; | |
2464 | PyObject * _argo0 = 0; | |
2465 | char *_kwnames[] = { "self","handle", NULL }; | |
2466 | ||
2467 | self = self; | |
2468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxIcon_SetHandle",_kwnames,&_argo0,&_arg1)) | |
2469 | return NULL; | |
2470 | if (_argo0) { | |
2471 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2472 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2473 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetHandle. Expected _wxIcon_p."); | |
2474 | return NULL; | |
2475 | } | |
2476 | } | |
2477 | { | |
4268f798 | 2478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2479 | wxIcon_SetHandle(_arg0,_arg1); |
9b3d3bc4 | 2480 | |
4268f798 | 2481 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2482 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2483 | } Py_INCREF(Py_None); |
2484 | _resultobj = Py_None; | |
2485 | return _resultobj; | |
2486 | } | |
2487 | ||
2488 | #define wxIcon_Ok(_swigobj) (_swigobj->Ok()) | |
2489 | static PyObject *_wrap_wxIcon_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2490 | PyObject * _resultobj; | |
2491 | bool _result; | |
2492 | wxIcon * _arg0; | |
2493 | PyObject * _argo0 = 0; | |
2494 | char *_kwnames[] = { "self", NULL }; | |
2495 | ||
2496 | self = self; | |
2497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_Ok",_kwnames,&_argo0)) | |
2498 | return NULL; | |
2499 | if (_argo0) { | |
2500 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2501 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2502 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_Ok. Expected _wxIcon_p."); | |
2503 | return NULL; | |
2504 | } | |
2505 | } | |
2506 | { | |
4268f798 | 2507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2508 | _result = (bool )wxIcon_Ok(_arg0); |
9b3d3bc4 | 2509 | |
4268f798 | 2510 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2511 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2512 | } _resultobj = Py_BuildValue("i",_result); |
2513 | return _resultobj; | |
2514 | } | |
2515 | ||
2516 | #define wxIcon_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
2517 | static PyObject *_wrap_wxIcon_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2518 | PyObject * _resultobj; | |
2519 | int _result; | |
2520 | wxIcon * _arg0; | |
2521 | PyObject * _argo0 = 0; | |
2522 | char *_kwnames[] = { "self", NULL }; | |
2523 | ||
2524 | self = self; | |
2525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetWidth",_kwnames,&_argo0)) | |
2526 | return NULL; | |
2527 | if (_argo0) { | |
2528 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2529 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2530 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetWidth. Expected _wxIcon_p."); | |
2531 | return NULL; | |
2532 | } | |
2533 | } | |
2534 | { | |
4268f798 | 2535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2536 | _result = (int )wxIcon_GetWidth(_arg0); |
9b3d3bc4 | 2537 | |
4268f798 | 2538 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2539 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2540 | } _resultobj = Py_BuildValue("i",_result); |
2541 | return _resultobj; | |
2542 | } | |
2543 | ||
2544 | #define wxIcon_GetHeight(_swigobj) (_swigobj->GetHeight()) | |
2545 | static PyObject *_wrap_wxIcon_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2546 | PyObject * _resultobj; | |
2547 | int _result; | |
2548 | wxIcon * _arg0; | |
2549 | PyObject * _argo0 = 0; | |
2550 | char *_kwnames[] = { "self", NULL }; | |
2551 | ||
2552 | self = self; | |
2553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetHeight",_kwnames,&_argo0)) | |
2554 | return NULL; | |
2555 | if (_argo0) { | |
2556 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2557 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2558 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetHeight. Expected _wxIcon_p."); | |
2559 | return NULL; | |
2560 | } | |
2561 | } | |
2562 | { | |
4268f798 | 2563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2564 | _result = (int )wxIcon_GetHeight(_arg0); |
9b3d3bc4 | 2565 | |
4268f798 | 2566 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2567 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2568 | } _resultobj = Py_BuildValue("i",_result); |
2569 | return _resultobj; | |
2570 | } | |
2571 | ||
2572 | #define wxIcon_GetDepth(_swigobj) (_swigobj->GetDepth()) | |
2573 | static PyObject *_wrap_wxIcon_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2574 | PyObject * _resultobj; | |
2575 | int _result; | |
2576 | wxIcon * _arg0; | |
2577 | PyObject * _argo0 = 0; | |
2578 | char *_kwnames[] = { "self", NULL }; | |
2579 | ||
2580 | self = self; | |
2581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetDepth",_kwnames,&_argo0)) | |
2582 | return NULL; | |
2583 | if (_argo0) { | |
2584 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2585 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2586 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetDepth. Expected _wxIcon_p."); | |
2587 | return NULL; | |
2588 | } | |
2589 | } | |
2590 | { | |
4268f798 | 2591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2592 | _result = (int )wxIcon_GetDepth(_arg0); |
9b3d3bc4 | 2593 | |
4268f798 | 2594 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2595 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2596 | } _resultobj = Py_BuildValue("i",_result); |
2597 | return _resultobj; | |
2598 | } | |
2599 | ||
2600 | #define wxIcon_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0)) | |
2601 | static PyObject *_wrap_wxIcon_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2602 | PyObject * _resultobj; | |
2603 | wxIcon * _arg0; | |
2604 | int _arg1; | |
2605 | PyObject * _argo0 = 0; | |
2606 | char *_kwnames[] = { "self","w", NULL }; | |
2607 | ||
2608 | self = self; | |
2609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetWidth",_kwnames,&_argo0,&_arg1)) | |
2610 | return NULL; | |
2611 | if (_argo0) { | |
2612 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2613 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2614 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetWidth. Expected _wxIcon_p."); | |
2615 | return NULL; | |
2616 | } | |
2617 | } | |
2618 | { | |
4268f798 | 2619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2620 | wxIcon_SetWidth(_arg0,_arg1); |
9b3d3bc4 | 2621 | |
4268f798 | 2622 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2623 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2624 | } Py_INCREF(Py_None); |
2625 | _resultobj = Py_None; | |
2626 | return _resultobj; | |
2627 | } | |
2628 | ||
2629 | #define wxIcon_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0)) | |
2630 | static PyObject *_wrap_wxIcon_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2631 | PyObject * _resultobj; | |
2632 | wxIcon * _arg0; | |
2633 | int _arg1; | |
2634 | PyObject * _argo0 = 0; | |
2635 | char *_kwnames[] = { "self","h", NULL }; | |
2636 | ||
2637 | self = self; | |
2638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetHeight",_kwnames,&_argo0,&_arg1)) | |
2639 | return NULL; | |
2640 | if (_argo0) { | |
2641 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2642 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2643 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetHeight. Expected _wxIcon_p."); | |
2644 | return NULL; | |
2645 | } | |
2646 | } | |
2647 | { | |
4268f798 | 2648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2649 | wxIcon_SetHeight(_arg0,_arg1); |
9b3d3bc4 | 2650 | |
4268f798 | 2651 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2652 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2653 | } Py_INCREF(Py_None); |
2654 | _resultobj = Py_None; | |
2655 | return _resultobj; | |
2656 | } | |
2657 | ||
2658 | #define wxIcon_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0)) | |
2659 | static PyObject *_wrap_wxIcon_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2660 | PyObject * _resultobj; | |
2661 | wxIcon * _arg0; | |
2662 | int _arg1; | |
2663 | PyObject * _argo0 = 0; | |
2664 | char *_kwnames[] = { "self","d", NULL }; | |
2665 | ||
2666 | self = self; | |
2667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetDepth",_kwnames,&_argo0,&_arg1)) | |
2668 | return NULL; | |
2669 | if (_argo0) { | |
2670 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2671 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2672 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetDepth. Expected _wxIcon_p."); | |
2673 | return NULL; | |
2674 | } | |
2675 | } | |
2676 | { | |
4268f798 | 2677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2678 | wxIcon_SetDepth(_arg0,_arg1); |
9b3d3bc4 | 2679 | |
4268f798 | 2680 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2681 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2682 | } Py_INCREF(Py_None); |
2683 | _resultobj = Py_None; | |
2684 | return _resultobj; | |
2685 | } | |
2686 | ||
2687 | #define wxIcon_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0)) | |
2688 | static PyObject *_wrap_wxIcon_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2689 | PyObject * _resultobj; | |
2690 | wxIcon * _arg0; | |
2691 | wxSize * _arg1; | |
2692 | PyObject * _argo0 = 0; | |
2693 | wxSize temp; | |
2694 | PyObject * _obj1 = 0; | |
2695 | char *_kwnames[] = { "self","size", NULL }; | |
2696 | ||
2697 | self = self; | |
2698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxIcon_SetSize",_kwnames,&_argo0,&_obj1)) | |
2699 | return NULL; | |
2700 | if (_argo0) { | |
2701 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2702 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2703 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetSize. Expected _wxIcon_p."); | |
2704 | return NULL; | |
2705 | } | |
2706 | } | |
2707 | { | |
2708 | _arg1 = &temp; | |
2709 | if (! wxSize_helper(_obj1, &_arg1)) | |
2710 | return NULL; | |
2711 | } | |
2712 | { | |
4268f798 | 2713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2714 | wxIcon_SetSize(_arg0,*_arg1); |
9b3d3bc4 | 2715 | |
4268f798 | 2716 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2717 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2718 | } Py_INCREF(Py_None); |
2719 | _resultobj = Py_None; | |
2720 | return _resultobj; | |
2721 | } | |
2722 | ||
96bfd053 RD |
2723 | #define wxIcon_CopyFromBitmap(_swigobj,_swigarg0) (_swigobj->CopyFromBitmap(_swigarg0)) |
2724 | static PyObject *_wrap_wxIcon_CopyFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2725 | PyObject * _resultobj; | |
2726 | wxIcon * _arg0; | |
2727 | wxBitmap * _arg1; | |
2728 | PyObject * _argo0 = 0; | |
2729 | PyObject * _argo1 = 0; | |
2730 | char *_kwnames[] = { "self","bmp", NULL }; | |
2731 | ||
2732 | self = self; | |
2733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxIcon_CopyFromBitmap",_kwnames,&_argo0,&_argo1)) | |
2734 | return NULL; | |
2735 | if (_argo0) { | |
2736 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2737 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2738 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_CopyFromBitmap. Expected _wxIcon_p."); | |
2739 | return NULL; | |
2740 | } | |
2741 | } | |
2742 | if (_argo1) { | |
2743 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2744 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
2745 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxIcon_CopyFromBitmap. Expected _wxBitmap_p."); | |
2746 | return NULL; | |
2747 | } | |
2748 | } | |
2749 | { | |
4268f798 | 2750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2751 | wxIcon_CopyFromBitmap(_arg0,*_arg1); |
96bfd053 | 2752 | |
4268f798 | 2753 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2754 | if (PyErr_Occurred()) return NULL; |
96bfd053 RD |
2755 | } Py_INCREF(Py_None); |
2756 | _resultobj = Py_None; | |
2757 | return _resultobj; | |
2758 | } | |
2759 | ||
9416aa89 RD |
2760 | static void *SwigwxCursorTowxGDIObject(void *ptr) { |
2761 | wxCursor *src; | |
2762 | wxGDIObject *dest; | |
2763 | src = (wxCursor *) ptr; | |
2764 | dest = (wxGDIObject *) src; | |
2765 | return (void *) dest; | |
2766 | } | |
2767 | ||
2768 | static void *SwigwxCursorTowxObject(void *ptr) { | |
2769 | wxCursor *src; | |
2770 | wxObject *dest; | |
2771 | src = (wxCursor *) ptr; | |
2772 | dest = (wxObject *) src; | |
2773 | return (void *) dest; | |
2774 | } | |
2775 | ||
9b3d3bc4 RD |
2776 | #define new_wxCursor(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxCursor(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
2777 | static PyObject *_wrap_new_wxCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2778 | PyObject * _resultobj; | |
2779 | wxCursor * _result; | |
2780 | wxString * _arg0; | |
2781 | long _arg1; | |
2782 | int _arg2 = (int ) 0; | |
2783 | int _arg3 = (int ) 0; | |
2784 | PyObject * _obj0 = 0; | |
2785 | char *_kwnames[] = { "cursorName","flags","hotSpotX","hotSpotY", NULL }; | |
2786 | char _ptemp[128]; | |
2787 | ||
2788 | self = self; | |
2789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|ii:new_wxCursor",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3)) | |
2790 | return NULL; | |
2791 | { | |
c8bc7bb8 RD |
2792 | _arg0 = wxString_in_helper(_obj0); |
2793 | if (_arg0 == NULL) | |
185d7c3e | 2794 | return NULL; |
9b3d3bc4 RD |
2795 | } |
2796 | { | |
4268f798 | 2797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2798 | _result = (wxCursor *)new_wxCursor(*_arg0,_arg1,_arg2,_arg3); |
9b3d3bc4 | 2799 | |
4268f798 | 2800 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2801 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2802 | } if (_result) { |
2803 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCursor_p"); | |
2804 | _resultobj = Py_BuildValue("s",_ptemp); | |
2805 | } else { | |
2806 | Py_INCREF(Py_None); | |
2807 | _resultobj = Py_None; | |
2808 | } | |
2809 | { | |
2810 | if (_obj0) | |
2811 | delete _arg0; | |
2812 | } | |
2813 | return _resultobj; | |
2814 | } | |
2815 | ||
2816 | #define delete_wxCursor(_swigobj) (delete _swigobj) | |
2817 | static PyObject *_wrap_delete_wxCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2818 | PyObject * _resultobj; | |
2819 | wxCursor * _arg0; | |
2820 | PyObject * _argo0 = 0; | |
2821 | char *_kwnames[] = { "self", NULL }; | |
2822 | ||
2823 | self = self; | |
2824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxCursor",_kwnames,&_argo0)) | |
2825 | return NULL; | |
2826 | if (_argo0) { | |
2827 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2828 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
2829 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxCursor. Expected _wxCursor_p."); | |
2830 | return NULL; | |
2831 | } | |
2832 | } | |
2833 | { | |
4268f798 | 2834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2835 | delete_wxCursor(_arg0); |
9b3d3bc4 | 2836 | |
4268f798 | 2837 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2838 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2839 | } Py_INCREF(Py_None); |
2840 | _resultobj = Py_None; | |
2841 | return _resultobj; | |
2842 | } | |
2843 | ||
2844 | #define wxCursor_GetHandle(_swigobj) (_swigobj->GetHandle()) | |
2845 | static PyObject *_wrap_wxCursor_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2846 | PyObject * _resultobj; | |
2847 | long _result; | |
2848 | wxCursor * _arg0; | |
2849 | PyObject * _argo0 = 0; | |
2850 | char *_kwnames[] = { "self", NULL }; | |
2851 | ||
2852 | self = self; | |
2853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_GetHandle",_kwnames,&_argo0)) | |
2854 | return NULL; | |
2855 | if (_argo0) { | |
2856 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2857 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
2858 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_GetHandle. Expected _wxCursor_p."); | |
2859 | return NULL; | |
2860 | } | |
2861 | } | |
2862 | { | |
4268f798 | 2863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2864 | _result = (long )wxCursor_GetHandle(_arg0); |
9b3d3bc4 | 2865 | |
4268f798 | 2866 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2867 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2868 | } _resultobj = Py_BuildValue("l",_result); |
2869 | return _resultobj; | |
2870 | } | |
2871 | ||
2872 | #define wxCursor_SetHandle(_swigobj,_swigarg0) (_swigobj->SetHandle(_swigarg0)) | |
2873 | static PyObject *_wrap_wxCursor_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2874 | PyObject * _resultobj; | |
2875 | wxCursor * _arg0; | |
2876 | long _arg1; | |
2877 | PyObject * _argo0 = 0; | |
2878 | char *_kwnames[] = { "self","handle", NULL }; | |
2879 | ||
2880 | self = self; | |
2881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxCursor_SetHandle",_kwnames,&_argo0,&_arg1)) | |
2882 | return NULL; | |
2883 | if (_argo0) { | |
2884 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2885 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
2886 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_SetHandle. Expected _wxCursor_p."); | |
2887 | return NULL; | |
2888 | } | |
2889 | } | |
2890 | { | |
4268f798 | 2891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2892 | wxCursor_SetHandle(_arg0,_arg1); |
9b3d3bc4 | 2893 | |
4268f798 | 2894 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2895 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2896 | } Py_INCREF(Py_None); |
2897 | _resultobj = Py_None; | |
2898 | return _resultobj; | |
2899 | } | |
2900 | ||
2901 | #define wxCursor_Ok(_swigobj) (_swigobj->Ok()) | |
2902 | static PyObject *_wrap_wxCursor_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2903 | PyObject * _resultobj; | |
2904 | bool _result; | |
2905 | wxCursor * _arg0; | |
2906 | PyObject * _argo0 = 0; | |
2907 | char *_kwnames[] = { "self", NULL }; | |
2908 | ||
2909 | self = self; | |
2910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_Ok",_kwnames,&_argo0)) | |
2911 | return NULL; | |
2912 | if (_argo0) { | |
2913 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2914 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
2915 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_Ok. Expected _wxCursor_p."); | |
2916 | return NULL; | |
2917 | } | |
2918 | } | |
2919 | { | |
4268f798 | 2920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2921 | _result = (bool )wxCursor_Ok(_arg0); |
9b3d3bc4 | 2922 | |
4268f798 | 2923 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2924 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2925 | } _resultobj = Py_BuildValue("i",_result); |
2926 | return _resultobj; | |
2927 | } | |
2928 | ||
2929 | #define wxCursor_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
2930 | static PyObject *_wrap_wxCursor_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2931 | PyObject * _resultobj; | |
2932 | int _result; | |
2933 | wxCursor * _arg0; | |
2934 | PyObject * _argo0 = 0; | |
2935 | char *_kwnames[] = { "self", NULL }; | |
2936 | ||
2937 | self = self; | |
2938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_GetWidth",_kwnames,&_argo0)) | |
2939 | return NULL; | |
2940 | if (_argo0) { | |
2941 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2942 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
2943 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_GetWidth. Expected _wxCursor_p."); | |
2944 | return NULL; | |
2945 | } | |
2946 | } | |
2947 | { | |
4268f798 | 2948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2949 | _result = (int )wxCursor_GetWidth(_arg0); |
9b3d3bc4 | 2950 | |
4268f798 | 2951 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2952 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2953 | } _resultobj = Py_BuildValue("i",_result); |
2954 | return _resultobj; | |
2955 | } | |
2956 | ||
2957 | #define wxCursor_GetHeight(_swigobj) (_swigobj->GetHeight()) | |
2958 | static PyObject *_wrap_wxCursor_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2959 | PyObject * _resultobj; | |
2960 | int _result; | |
2961 | wxCursor * _arg0; | |
2962 | PyObject * _argo0 = 0; | |
2963 | char *_kwnames[] = { "self", NULL }; | |
2964 | ||
2965 | self = self; | |
2966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_GetHeight",_kwnames,&_argo0)) | |
2967 | return NULL; | |
2968 | if (_argo0) { | |
2969 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2970 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
2971 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_GetHeight. Expected _wxCursor_p."); | |
2972 | return NULL; | |
2973 | } | |
2974 | } | |
2975 | { | |
4268f798 | 2976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2977 | _result = (int )wxCursor_GetHeight(_arg0); |
9b3d3bc4 | 2978 | |
4268f798 | 2979 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2980 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2981 | } _resultobj = Py_BuildValue("i",_result); |
2982 | return _resultobj; | |
2983 | } | |
2984 | ||
2985 | #define wxCursor_GetDepth(_swigobj) (_swigobj->GetDepth()) | |
2986 | static PyObject *_wrap_wxCursor_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2987 | PyObject * _resultobj; | |
2988 | int _result; | |
2989 | wxCursor * _arg0; | |
2990 | PyObject * _argo0 = 0; | |
2991 | char *_kwnames[] = { "self", NULL }; | |
2992 | ||
2993 | self = self; | |
2994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_GetDepth",_kwnames,&_argo0)) | |
2995 | return NULL; | |
2996 | if (_argo0) { | |
2997 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2998 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
2999 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_GetDepth. Expected _wxCursor_p."); | |
3000 | return NULL; | |
3001 | } | |
3002 | } | |
3003 | { | |
4268f798 | 3004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3005 | _result = (int )wxCursor_GetDepth(_arg0); |
9b3d3bc4 | 3006 | |
4268f798 | 3007 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3008 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
3009 | } _resultobj = Py_BuildValue("i",_result); |
3010 | return _resultobj; | |
3011 | } | |
3012 | ||
3013 | #define wxCursor_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0)) | |
3014 | static PyObject *_wrap_wxCursor_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3015 | PyObject * _resultobj; | |
3016 | wxCursor * _arg0; | |
3017 | int _arg1; | |
3018 | PyObject * _argo0 = 0; | |
3019 | char *_kwnames[] = { "self","w", NULL }; | |
3020 | ||
3021 | self = self; | |
3022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCursor_SetWidth",_kwnames,&_argo0,&_arg1)) | |
3023 | return NULL; | |
3024 | if (_argo0) { | |
3025 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3026 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
3027 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_SetWidth. Expected _wxCursor_p."); | |
3028 | return NULL; | |
3029 | } | |
3030 | } | |
3031 | { | |
4268f798 | 3032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3033 | wxCursor_SetWidth(_arg0,_arg1); |
9b3d3bc4 | 3034 | |
4268f798 | 3035 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3036 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
3037 | } Py_INCREF(Py_None); |
3038 | _resultobj = Py_None; | |
3039 | return _resultobj; | |
3040 | } | |
3041 | ||
3042 | #define wxCursor_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0)) | |
3043 | static PyObject *_wrap_wxCursor_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3044 | PyObject * _resultobj; | |
3045 | wxCursor * _arg0; | |
3046 | int _arg1; | |
3047 | PyObject * _argo0 = 0; | |
3048 | char *_kwnames[] = { "self","h", NULL }; | |
3049 | ||
3050 | self = self; | |
3051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCursor_SetHeight",_kwnames,&_argo0,&_arg1)) | |
3052 | return NULL; | |
3053 | if (_argo0) { | |
3054 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3055 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
3056 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_SetHeight. Expected _wxCursor_p."); | |
3057 | return NULL; | |
3058 | } | |
3059 | } | |
3060 | { | |
4268f798 | 3061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3062 | wxCursor_SetHeight(_arg0,_arg1); |
9b3d3bc4 | 3063 | |
4268f798 | 3064 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3065 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
3066 | } Py_INCREF(Py_None); |
3067 | _resultobj = Py_None; | |
3068 | return _resultobj; | |
3069 | } | |
3070 | ||
3071 | #define wxCursor_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0)) | |
3072 | static PyObject *_wrap_wxCursor_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3073 | PyObject * _resultobj; | |
3074 | wxCursor * _arg0; | |
3075 | int _arg1; | |
3076 | PyObject * _argo0 = 0; | |
3077 | char *_kwnames[] = { "self","d", NULL }; | |
3078 | ||
3079 | self = self; | |
3080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCursor_SetDepth",_kwnames,&_argo0,&_arg1)) | |
3081 | return NULL; | |
3082 | if (_argo0) { | |
3083 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3084 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
3085 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_SetDepth. Expected _wxCursor_p."); | |
3086 | return NULL; | |
3087 | } | |
3088 | } | |
3089 | { | |
4268f798 | 3090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3091 | wxCursor_SetDepth(_arg0,_arg1); |
9b3d3bc4 | 3092 | |
4268f798 | 3093 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3094 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
3095 | } Py_INCREF(Py_None); |
3096 | _resultobj = Py_None; | |
3097 | return _resultobj; | |
3098 | } | |
3099 | ||
3100 | #define wxCursor_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0)) | |
3101 | static PyObject *_wrap_wxCursor_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3102 | PyObject * _resultobj; | |
3103 | wxCursor * _arg0; | |
3104 | wxSize * _arg1; | |
3105 | PyObject * _argo0 = 0; | |
3106 | wxSize temp; | |
3107 | PyObject * _obj1 = 0; | |
3108 | char *_kwnames[] = { "self","size", NULL }; | |
3109 | ||
3110 | self = self; | |
3111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxCursor_SetSize",_kwnames,&_argo0,&_obj1)) | |
3112 | return NULL; | |
3113 | if (_argo0) { | |
3114 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3115 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
3116 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_SetSize. Expected _wxCursor_p."); | |
3117 | return NULL; | |
3118 | } | |
3119 | } | |
3120 | { | |
3121 | _arg1 = &temp; | |
3122 | if (! wxSize_helper(_obj1, &_arg1)) | |
3123 | return NULL; | |
3124 | } | |
3125 | { | |
4268f798 | 3126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3127 | wxCursor_SetSize(_arg0,*_arg1); |
cf694132 | 3128 | |
4268f798 | 3129 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3130 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3131 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3132 | _resultobj = Py_None; |
3133 | return _resultobj; | |
3134 | } | |
3135 | ||
b5a5d647 RD |
3136 | #define new_wxNativeFontInfo() (new wxNativeFontInfo()) |
3137 | static PyObject *_wrap_new_wxNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3138 | PyObject * _resultobj; | |
3139 | wxNativeFontInfo * _result; | |
3140 | char *_kwnames[] = { NULL }; | |
3141 | char _ptemp[128]; | |
3142 | ||
3143 | self = self; | |
3144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxNativeFontInfo",_kwnames)) | |
3145 | return NULL; | |
3146 | { | |
3147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 3148 | _result = (wxNativeFontInfo *)new_wxNativeFontInfo(); |
b5a5d647 RD |
3149 | |
3150 | wxPyEndAllowThreads(__tstate); | |
3151 | if (PyErr_Occurred()) return NULL; | |
3152 | } if (_result) { | |
3153 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxNativeFontInfo_p"); | |
3154 | _resultobj = Py_BuildValue("s",_ptemp); | |
3155 | } else { | |
3156 | Py_INCREF(Py_None); | |
3157 | _resultobj = Py_None; | |
3158 | } | |
3159 | return _resultobj; | |
3160 | } | |
3161 | ||
3162 | #define wxNativeFontInfo_Init(_swigobj) (_swigobj->Init()) | |
3163 | static PyObject *_wrap_wxNativeFontInfo_Init(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3164 | PyObject * _resultobj; | |
3165 | wxNativeFontInfo * _arg0; | |
3166 | PyObject * _argo0 = 0; | |
3167 | char *_kwnames[] = { "self", NULL }; | |
3168 | ||
3169 | self = self; | |
3170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_Init",_kwnames,&_argo0)) | |
3171 | return NULL; | |
3172 | if (_argo0) { | |
3173 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3174 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
3175 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_Init. Expected _wxNativeFontInfo_p."); | |
3176 | return NULL; | |
3177 | } | |
3178 | } | |
3179 | { | |
3180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 3181 | wxNativeFontInfo_Init(_arg0); |
b5a5d647 RD |
3182 | |
3183 | wxPyEndAllowThreads(__tstate); | |
3184 | if (PyErr_Occurred()) return NULL; | |
3185 | } Py_INCREF(Py_None); | |
3186 | _resultobj = Py_None; | |
3187 | return _resultobj; | |
3188 | } | |
3189 | ||
3190 | #define wxNativeFontInfo_GetPointSize(_swigobj) (_swigobj->GetPointSize()) | |
3191 | static PyObject *_wrap_wxNativeFontInfo_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3192 | PyObject * _resultobj; | |
3193 | int _result; | |
3194 | wxNativeFontInfo * _arg0; | |
3195 | PyObject * _argo0 = 0; | |
3196 | char *_kwnames[] = { "self", NULL }; | |
3197 | ||
3198 | self = self; | |
3199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_GetPointSize",_kwnames,&_argo0)) | |
3200 | return NULL; | |
3201 | if (_argo0) { | |
3202 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3203 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
3204 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_GetPointSize. Expected _wxNativeFontInfo_p."); | |
3205 | return NULL; | |
3206 | } | |
3207 | } | |
3208 | { | |
3209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 3210 | _result = (int )wxNativeFontInfo_GetPointSize(_arg0); |
b5a5d647 RD |
3211 | |
3212 | wxPyEndAllowThreads(__tstate); | |
3213 | if (PyErr_Occurred()) return NULL; | |
3214 | } _resultobj = Py_BuildValue("i",_result); | |
3215 | return _resultobj; | |
3216 | } | |
3217 | ||
3218 | #define wxNativeFontInfo_GetStyle(_swigobj) (_swigobj->GetStyle()) | |
3219 | static PyObject *_wrap_wxNativeFontInfo_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3220 | PyObject * _resultobj; | |
3221 | wxFontStyle _result; | |
3222 | wxNativeFontInfo * _arg0; | |
3223 | PyObject * _argo0 = 0; | |
3224 | char *_kwnames[] = { "self", NULL }; | |
3225 | ||
3226 | self = self; | |
3227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_GetStyle",_kwnames,&_argo0)) | |
3228 | return NULL; | |
3229 | if (_argo0) { | |
3230 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3231 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
3232 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_GetStyle. Expected _wxNativeFontInfo_p."); | |
3233 | return NULL; | |
3234 | } | |
3235 | } | |
3236 | { | |
3237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 3238 | _result = (wxFontStyle )wxNativeFontInfo_GetStyle(_arg0); |
b5a5d647 RD |
3239 | |
3240 | wxPyEndAllowThreads(__tstate); | |
3241 | if (PyErr_Occurred()) return NULL; | |
3242 | } _resultobj = Py_BuildValue("i",_result); | |
3243 | return _resultobj; | |
3244 | } | |
3245 | ||
3246 | #define wxNativeFontInfo_GetWeight(_swigobj) (_swigobj->GetWeight()) | |
3247 | static PyObject *_wrap_wxNativeFontInfo_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3248 | PyObject * _resultobj; | |
3249 | wxFontWeight _result; | |
3250 | wxNativeFontInfo * _arg0; | |
3251 | PyObject * _argo0 = 0; | |
3252 | char *_kwnames[] = { "self", NULL }; | |
3253 | ||
3254 | self = self; | |
3255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_GetWeight",_kwnames,&_argo0)) | |
3256 | return NULL; | |
3257 | if (_argo0) { | |
3258 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3259 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
3260 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_GetWeight. Expected _wxNativeFontInfo_p."); | |
3261 | return NULL; | |
3262 | } | |
3263 | } | |
3264 | { | |
3265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 3266 | _result = (wxFontWeight )wxNativeFontInfo_GetWeight(_arg0); |
b5a5d647 RD |
3267 | |
3268 | wxPyEndAllowThreads(__tstate); | |
3269 | if (PyErr_Occurred()) return NULL; | |
3270 | } _resultobj = Py_BuildValue("i",_result); | |
3271 | return _resultobj; | |
3272 | } | |
3273 | ||
3274 | #define wxNativeFontInfo_GetUnderlined(_swigobj) (_swigobj->GetUnderlined()) | |
3275 | static PyObject *_wrap_wxNativeFontInfo_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3276 | PyObject * _resultobj; | |
3277 | bool _result; | |
3278 | wxNativeFontInfo * _arg0; | |
3279 | PyObject * _argo0 = 0; | |
3280 | char *_kwnames[] = { "self", NULL }; | |
3281 | ||
3282 | self = self; | |
3283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_GetUnderlined",_kwnames,&_argo0)) | |
3284 | return NULL; | |
3285 | if (_argo0) { | |
3286 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3287 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
3288 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_GetUnderlined. Expected _wxNativeFontInfo_p."); | |
3289 | return NULL; | |
3290 | } | |
3291 | } | |
3292 | { | |
3293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 3294 | _result = (bool )wxNativeFontInfo_GetUnderlined(_arg0); |
b5a5d647 RD |
3295 | |
3296 | wxPyEndAllowThreads(__tstate); | |
3297 | if (PyErr_Occurred()) return NULL; | |
3298 | } _resultobj = Py_BuildValue("i",_result); | |
3299 | return _resultobj; | |
3300 | } | |
3301 | ||
3302 | #define wxNativeFontInfo_GetFaceName(_swigobj) (_swigobj->GetFaceName()) | |
3303 | static PyObject *_wrap_wxNativeFontInfo_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3304 | PyObject * _resultobj; | |
3305 | wxString * _result; | |
3306 | wxNativeFontInfo * _arg0; | |
3307 | PyObject * _argo0 = 0; | |
3308 | char *_kwnames[] = { "self", NULL }; | |
3309 | ||
3310 | self = self; | |
3311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_GetFaceName",_kwnames,&_argo0)) | |
3312 | return NULL; | |
3313 | if (_argo0) { | |
3314 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3315 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
3316 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_GetFaceName. Expected _wxNativeFontInfo_p."); | |
3317 | return NULL; | |
3318 | } | |
3319 | } | |
3320 | { | |
3321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 3322 | _result = new wxString (wxNativeFontInfo_GetFaceName(_arg0)); |
b5a5d647 RD |
3323 | |
3324 | wxPyEndAllowThreads(__tstate); | |
3325 | if (PyErr_Occurred()) return NULL; | |
3326 | }{ | |
c8bc7bb8 RD |
3327 | #if wxUSE_UNICODE |
3328 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
3329 | #else | |
b5a5d647 | 3330 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 3331 | #endif |
b5a5d647 RD |
3332 | } |
3333 | { | |
3334 | delete _result; | |
3335 | } | |
3336 | return _resultobj; | |
3337 | } | |
3338 | ||
3339 | #define wxNativeFontInfo_GetFamily(_swigobj) (_swigobj->GetFamily()) | |
3340 | static PyObject *_wrap_wxNativeFontInfo_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3341 | PyObject * _resultobj; | |
3342 | wxFontFamily _result; | |
3343 | wxNativeFontInfo * _arg0; | |
3344 | PyObject * _argo0 = 0; | |
3345 | char *_kwnames[] = { "self", NULL }; | |
3346 | ||
3347 | self = self; | |
3348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_GetFamily",_kwnames,&_argo0)) | |
3349 | return NULL; | |
3350 | if (_argo0) { | |
3351 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3352 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
3353 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_GetFamily. Expected _wxNativeFontInfo_p."); | |
3354 | return NULL; | |
3355 | } | |
3356 | } | |
3357 | { | |
3358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 3359 | _result = (wxFontFamily )wxNativeFontInfo_GetFamily(_arg0); |
b5a5d647 RD |
3360 | |
3361 | wxPyEndAllowThreads(__tstate); | |
3362 | if (PyErr_Occurred()) return NULL; | |
3363 | } _resultobj = Py_BuildValue("i",_result); | |
3364 | return _resultobj; | |
3365 | } | |
3366 | ||
3367 | #define wxNativeFontInfo_GetEncoding(_swigobj) (_swigobj->GetEncoding()) | |
3368 | static PyObject *_wrap_wxNativeFontInfo_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3369 | PyObject * _resultobj; | |
3370 | wxFontEncoding _result; | |
3371 | wxNativeFontInfo * _arg0; | |
3372 | PyObject * _argo0 = 0; | |
3373 | char *_kwnames[] = { "self", NULL }; | |
3374 | ||
3375 | self = self; | |
3376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_GetEncoding",_kwnames,&_argo0)) | |
3377 | return NULL; | |
3378 | if (_argo0) { | |
3379 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3380 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
3381 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_GetEncoding. Expected _wxNativeFontInfo_p."); | |
3382 | return NULL; | |
3383 | } | |
3384 | } | |
3385 | { | |
3386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 3387 | _result = (wxFontEncoding )wxNativeFontInfo_GetEncoding(_arg0); |
b5a5d647 RD |
3388 | |
3389 | wxPyEndAllowThreads(__tstate); | |
3390 | if (PyErr_Occurred()) return NULL; | |
3391 | } _resultobj = Py_BuildValue("i",_result); | |
3392 | return _resultobj; | |
3393 | } | |
3394 | ||
3395 | #define wxNativeFontInfo_SetPointSize(_swigobj,_swigarg0) (_swigobj->SetPointSize(_swigarg0)) | |
3396 | static PyObject *_wrap_wxNativeFontInfo_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3397 | PyObject * _resultobj; | |
3398 | wxNativeFontInfo * _arg0; | |
3399 | int _arg1; | |
3400 | PyObject * _argo0 = 0; | |
3401 | char *_kwnames[] = { "self","pointsize", NULL }; | |
3402 | ||
3403 | self = self; | |
3404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNativeFontInfo_SetPointSize",_kwnames,&_argo0,&_arg1)) | |
3405 | return NULL; | |
3406 | if (_argo0) { | |
3407 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3408 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
3409 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_SetPointSize. Expected _wxNativeFontInfo_p."); | |
3410 | return NULL; | |
3411 | } | |
3412 | } | |
3413 | { | |
3414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 3415 | wxNativeFontInfo_SetPointSize(_arg0,_arg1); |
b5a5d647 RD |
3416 | |
3417 | wxPyEndAllowThreads(__tstate); | |
3418 | if (PyErr_Occurred()) return NULL; | |
3419 | } Py_INCREF(Py_None); | |
3420 | _resultobj = Py_None; | |
3421 | return _resultobj; | |
3422 | } | |
3423 | ||
3424 | #define wxNativeFontInfo_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0)) | |
3425 | static PyObject *_wrap_wxNativeFontInfo_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3426 | PyObject * _resultobj; | |
3427 | wxNativeFontInfo * _arg0; | |
3428 | wxFontStyle _arg1; | |
3429 | PyObject * _argo0 = 0; | |
3430 | char *_kwnames[] = { "self","style", NULL }; | |
3431 | ||
3432 | self = self; | |
3433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNativeFontInfo_SetStyle",_kwnames,&_argo0,&_arg1)) | |
3434 | return NULL; | |
3435 | if (_argo0) { | |
3436 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3437 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
3438 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_SetStyle. Expected _wxNativeFontInfo_p."); | |
3439 | return NULL; | |
3440 | } | |
3441 | } | |
3442 | { | |
3443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 3444 | wxNativeFontInfo_SetStyle(_arg0,_arg1); |
b5a5d647 RD |
3445 | |
3446 | wxPyEndAllowThreads(__tstate); | |
3447 | if (PyErr_Occurred()) return NULL; | |
3448 | } Py_INCREF(Py_None); | |
3449 | _resultobj = Py_None; | |
3450 | return _resultobj; | |
3451 | } | |
3452 | ||
3453 | #define wxNativeFontInfo_SetWeight(_swigobj,_swigarg0) (_swigobj->SetWeight(_swigarg0)) | |
3454 | static PyObject *_wrap_wxNativeFontInfo_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3455 | PyObject * _resultobj; | |
3456 | wxNativeFontInfo * _arg0; | |
3457 | wxFontWeight _arg1; | |
3458 | PyObject * _argo0 = 0; | |
3459 | char *_kwnames[] = { "self","weight", NULL }; | |
3460 | ||
3461 | self = self; | |
3462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNativeFontInfo_SetWeight",_kwnames,&_argo0,&_arg1)) | |
3463 | return NULL; | |
3464 | if (_argo0) { | |
3465 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3466 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
3467 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_SetWeight. Expected _wxNativeFontInfo_p."); | |
3468 | return NULL; | |
3469 | } | |
3470 | } | |
3471 | { | |
3472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 3473 | wxNativeFontInfo_SetWeight(_arg0,_arg1); |
b5a5d647 RD |
3474 | |
3475 | wxPyEndAllowThreads(__tstate); | |
3476 | if (PyErr_Occurred()) return NULL; | |
3477 | } Py_INCREF(Py_None); | |
3478 | _resultobj = Py_None; | |
3479 | return _resultobj; | |
3480 | } | |
3481 | ||
3482 | #define wxNativeFontInfo_SetUnderlined(_swigobj,_swigarg0) (_swigobj->SetUnderlined(_swigarg0)) | |
3483 | static PyObject *_wrap_wxNativeFontInfo_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3484 | PyObject * _resultobj; | |
3485 | wxNativeFontInfo * _arg0; | |
3486 | bool _arg1; | |
3487 | PyObject * _argo0 = 0; | |
3488 | int tempbool1; | |
3489 | char *_kwnames[] = { "self","underlined", NULL }; | |
3490 | ||
3491 | self = self; | |
3492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNativeFontInfo_SetUnderlined",_kwnames,&_argo0,&tempbool1)) | |
3493 | return NULL; | |
3494 | if (_argo0) { | |
3495 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3496 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
3497 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_SetUnderlined. Expected _wxNativeFontInfo_p."); | |
3498 | return NULL; | |
3499 | } | |
3500 | } | |
3501 | _arg1 = (bool ) tempbool1; | |
3502 | { | |
3503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 3504 | wxNativeFontInfo_SetUnderlined(_arg0,_arg1); |
b5a5d647 RD |
3505 | |
3506 | wxPyEndAllowThreads(__tstate); | |
3507 | if (PyErr_Occurred()) return NULL; | |
3508 | } Py_INCREF(Py_None); | |
3509 | _resultobj = Py_None; | |
3510 | return _resultobj; | |
3511 | } | |
3512 | ||
3513 | #define wxNativeFontInfo_SetFaceName(_swigobj,_swigarg0) (_swigobj->SetFaceName(_swigarg0)) | |
3514 | static PyObject *_wrap_wxNativeFontInfo_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3515 | PyObject * _resultobj; | |
3516 | wxNativeFontInfo * _arg0; | |
3517 | wxString * _arg1; | |
3518 | PyObject * _argo0 = 0; | |
3519 | PyObject * _obj1 = 0; | |
3520 | char *_kwnames[] = { "self","facename", NULL }; | |
3521 | ||
3522 | self = self; | |
3523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxNativeFontInfo_SetFaceName",_kwnames,&_argo0,&_obj1)) | |
3524 | return NULL; | |
3525 | if (_argo0) { | |
3526 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3527 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
3528 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_SetFaceName. Expected _wxNativeFontInfo_p."); | |
3529 | return NULL; | |
3530 | } | |
3531 | } | |
3532 | { | |
c8bc7bb8 RD |
3533 | _arg1 = wxString_in_helper(_obj1); |
3534 | if (_arg1 == NULL) | |
b5a5d647 | 3535 | return NULL; |
b5a5d647 RD |
3536 | } |
3537 | { | |
3538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 3539 | wxNativeFontInfo_SetFaceName(_arg0,*_arg1); |
b5a5d647 RD |
3540 | |
3541 | wxPyEndAllowThreads(__tstate); | |
3542 | if (PyErr_Occurred()) return NULL; | |
3543 | } Py_INCREF(Py_None); | |
3544 | _resultobj = Py_None; | |
3545 | { | |
3546 | if (_obj1) | |
3547 | delete _arg1; | |
3548 | } | |
3549 | return _resultobj; | |
3550 | } | |
3551 | ||
3552 | #define wxNativeFontInfo_SetFamily(_swigobj,_swigarg0) (_swigobj->SetFamily(_swigarg0)) | |
3553 | static PyObject *_wrap_wxNativeFontInfo_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3554 | PyObject * _resultobj; | |
3555 | wxNativeFontInfo * _arg0; | |
3556 | wxFontFamily _arg1; | |
3557 | PyObject * _argo0 = 0; | |
3558 | char *_kwnames[] = { "self","family", NULL }; | |
3559 | ||
3560 | self = self; | |
3561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNativeFontInfo_SetFamily",_kwnames,&_argo0,&_arg1)) | |
3562 | return NULL; | |
3563 | if (_argo0) { | |
3564 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3565 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
3566 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_SetFamily. Expected _wxNativeFontInfo_p."); | |
3567 | return NULL; | |
3568 | } | |
3569 | } | |
3570 | { | |
3571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 3572 | wxNativeFontInfo_SetFamily(_arg0,_arg1); |
b5a5d647 RD |
3573 | |
3574 | wxPyEndAllowThreads(__tstate); | |
3575 | if (PyErr_Occurred()) return NULL; | |
3576 | } Py_INCREF(Py_None); | |
3577 | _resultobj = Py_None; | |
3578 | return _resultobj; | |
3579 | } | |
3580 | ||
3581 | #define wxNativeFontInfo_SetEncoding(_swigobj,_swigarg0) (_swigobj->SetEncoding(_swigarg0)) | |
3582 | static PyObject *_wrap_wxNativeFontInfo_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3583 | PyObject * _resultobj; | |
3584 | wxNativeFontInfo * _arg0; | |
3585 | wxFontEncoding _arg1; | |
3586 | PyObject * _argo0 = 0; | |
3587 | char *_kwnames[] = { "self","encoding", NULL }; | |
3588 | ||
3589 | self = self; | |
3590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNativeFontInfo_SetEncoding",_kwnames,&_argo0,&_arg1)) | |
3591 | return NULL; | |
3592 | if (_argo0) { | |
3593 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3594 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
3595 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_SetEncoding. Expected _wxNativeFontInfo_p."); | |
3596 | return NULL; | |
3597 | } | |
3598 | } | |
3599 | { | |
3600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 3601 | wxNativeFontInfo_SetEncoding(_arg0,_arg1); |
b5a5d647 RD |
3602 | |
3603 | wxPyEndAllowThreads(__tstate); | |
3604 | if (PyErr_Occurred()) return NULL; | |
3605 | } Py_INCREF(Py_None); | |
3606 | _resultobj = Py_None; | |
3607 | return _resultobj; | |
3608 | } | |
3609 | ||
6d8b4f8d RD |
3610 | #define wxNativeFontInfo_FromString(_swigobj,_swigarg0) (_swigobj->FromString(_swigarg0)) |
3611 | static PyObject *_wrap_wxNativeFontInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3612 | PyObject * _resultobj; | |
3613 | bool _result; | |
3614 | wxNativeFontInfo * _arg0; | |
3615 | wxString * _arg1; | |
3616 | PyObject * _argo0 = 0; | |
3617 | PyObject * _obj1 = 0; | |
3618 | char *_kwnames[] = { "self","s", NULL }; | |
3619 | ||
3620 | self = self; | |
3621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxNativeFontInfo_FromString",_kwnames,&_argo0,&_obj1)) | |
3622 | return NULL; | |
3623 | if (_argo0) { | |
3624 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3625 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
3626 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_FromString. Expected _wxNativeFontInfo_p."); | |
3627 | return NULL; | |
3628 | } | |
3629 | } | |
3630 | { | |
c8bc7bb8 RD |
3631 | _arg1 = wxString_in_helper(_obj1); |
3632 | if (_arg1 == NULL) | |
6d8b4f8d | 3633 | return NULL; |
9416aa89 | 3634 | } |
6d8b4f8d | 3635 | { |
4268f798 | 3636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3637 | _result = (bool )wxNativeFontInfo_FromString(_arg0,*_arg1); |
9416aa89 | 3638 | |
4268f798 | 3639 | wxPyEndAllowThreads(__tstate); |
6d8b4f8d RD |
3640 | if (PyErr_Occurred()) return NULL; |
3641 | } _resultobj = Py_BuildValue("i",_result); | |
3642 | { | |
3643 | if (_obj1) | |
3644 | delete _arg1; | |
3645 | } | |
3646 | return _resultobj; | |
9416aa89 RD |
3647 | } |
3648 | ||
6d8b4f8d RD |
3649 | #define wxNativeFontInfo_ToString(_swigobj) (_swigobj->ToString()) |
3650 | static PyObject *_wrap_wxNativeFontInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3651 | PyObject * _resultobj; |
6d8b4f8d RD |
3652 | wxString * _result; |
3653 | wxNativeFontInfo * _arg0; | |
3654 | PyObject * _argo0 = 0; | |
3655 | char *_kwnames[] = { "self", NULL }; | |
3656 | ||
3657 | self = self; | |
3658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_ToString",_kwnames,&_argo0)) | |
3659 | return NULL; | |
3660 | if (_argo0) { | |
3661 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3662 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
3663 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_ToString. Expected _wxNativeFontInfo_p."); | |
3664 | return NULL; | |
3665 | } | |
3666 | } | |
3667 | { | |
4268f798 | 3668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3669 | _result = new wxString (wxNativeFontInfo_ToString(_arg0)); |
6d8b4f8d | 3670 | |
4268f798 | 3671 | wxPyEndAllowThreads(__tstate); |
6d8b4f8d RD |
3672 | if (PyErr_Occurred()) return NULL; |
3673 | }{ | |
c8bc7bb8 RD |
3674 | #if wxUSE_UNICODE |
3675 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
3676 | #else | |
6d8b4f8d | 3677 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 3678 | #endif |
6d8b4f8d RD |
3679 | } |
3680 | { | |
3681 | delete _result; | |
3682 | } | |
3683 | return _resultobj; | |
3684 | } | |
3685 | ||
3686 | static wxString wxNativeFontInfo___str__(wxNativeFontInfo *self) { | |
3687 | return self->ToString(); | |
3688 | } | |
3689 | static PyObject *_wrap_wxNativeFontInfo___str__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3690 | PyObject * _resultobj; | |
3691 | wxString * _result; | |
3692 | wxNativeFontInfo * _arg0; | |
3693 | PyObject * _argo0 = 0; | |
3694 | char *_kwnames[] = { "self", NULL }; | |
3695 | ||
3696 | self = self; | |
3697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo___str__",_kwnames,&_argo0)) | |
3698 | return NULL; | |
3699 | if (_argo0) { | |
3700 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3701 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
3702 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo___str__. Expected _wxNativeFontInfo_p."); | |
3703 | return NULL; | |
3704 | } | |
3705 | } | |
3706 | { | |
4268f798 | 3707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3708 | _result = new wxString (wxNativeFontInfo___str__(_arg0)); |
6d8b4f8d | 3709 | |
4268f798 | 3710 | wxPyEndAllowThreads(__tstate); |
6d8b4f8d RD |
3711 | if (PyErr_Occurred()) return NULL; |
3712 | }{ | |
c8bc7bb8 RD |
3713 | #if wxUSE_UNICODE |
3714 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
3715 | #else | |
6d8b4f8d | 3716 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 3717 | #endif |
6d8b4f8d RD |
3718 | } |
3719 | { | |
3720 | delete _result; | |
3721 | } | |
3722 | return _resultobj; | |
3723 | } | |
3724 | ||
b5a5d647 RD |
3725 | #define wxNativeFontInfo_FromUserString(_swigobj,_swigarg0) (_swigobj->FromUserString(_swigarg0)) |
3726 | static PyObject *_wrap_wxNativeFontInfo_FromUserString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3727 | PyObject * _resultobj; | |
3728 | bool _result; | |
3729 | wxNativeFontInfo * _arg0; | |
3730 | wxString * _arg1; | |
3731 | PyObject * _argo0 = 0; | |
3732 | PyObject * _obj1 = 0; | |
3733 | char *_kwnames[] = { "self","s", NULL }; | |
3734 | ||
3735 | self = self; | |
3736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxNativeFontInfo_FromUserString",_kwnames,&_argo0,&_obj1)) | |
3737 | return NULL; | |
3738 | if (_argo0) { | |
3739 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3740 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
3741 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_FromUserString. Expected _wxNativeFontInfo_p."); | |
3742 | return NULL; | |
3743 | } | |
3744 | } | |
3745 | { | |
c8bc7bb8 RD |
3746 | _arg1 = wxString_in_helper(_obj1); |
3747 | if (_arg1 == NULL) | |
b5a5d647 | 3748 | return NULL; |
b5a5d647 RD |
3749 | } |
3750 | { | |
3751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 3752 | _result = (bool )wxNativeFontInfo_FromUserString(_arg0,*_arg1); |
b5a5d647 RD |
3753 | |
3754 | wxPyEndAllowThreads(__tstate); | |
3755 | if (PyErr_Occurred()) return NULL; | |
3756 | } _resultobj = Py_BuildValue("i",_result); | |
3757 | { | |
3758 | if (_obj1) | |
3759 | delete _arg1; | |
3760 | } | |
3761 | return _resultobj; | |
3762 | } | |
3763 | ||
3764 | #define wxNativeFontInfo_ToUserString(_swigobj) (_swigobj->ToUserString()) | |
3765 | static PyObject *_wrap_wxNativeFontInfo_ToUserString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3766 | PyObject * _resultobj; | |
3767 | wxString * _result; | |
3768 | wxNativeFontInfo * _arg0; | |
3769 | PyObject * _argo0 = 0; | |
3770 | char *_kwnames[] = { "self", NULL }; | |
3771 | ||
3772 | self = self; | |
3773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_ToUserString",_kwnames,&_argo0)) | |
3774 | return NULL; | |
3775 | if (_argo0) { | |
3776 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3777 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
3778 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_ToUserString. Expected _wxNativeFontInfo_p."); | |
3779 | return NULL; | |
3780 | } | |
3781 | } | |
3782 | { | |
3783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 3784 | _result = new wxString (wxNativeFontInfo_ToUserString(_arg0)); |
b5a5d647 RD |
3785 | |
3786 | wxPyEndAllowThreads(__tstate); | |
3787 | if (PyErr_Occurred()) return NULL; | |
3788 | }{ | |
c8bc7bb8 RD |
3789 | #if wxUSE_UNICODE |
3790 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
3791 | #else | |
b5a5d647 | 3792 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 3793 | #endif |
b5a5d647 RD |
3794 | } |
3795 | { | |
3796 | delete _result; | |
3797 | } | |
3798 | return _resultobj; | |
3799 | } | |
3800 | ||
6d8b4f8d RD |
3801 | #define new_wxFontMapper() (new wxFontMapper()) |
3802 | static PyObject *_wrap_new_wxFontMapper(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3803 | PyObject * _resultobj; | |
3804 | wxFontMapper * _result; | |
3805 | char *_kwnames[] = { NULL }; | |
8ab979d7 RD |
3806 | char _ptemp[128]; |
3807 | ||
3808 | self = self; | |
6d8b4f8d | 3809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxFontMapper",_kwnames)) |
8ab979d7 | 3810 | return NULL; |
cf694132 | 3811 | { |
4268f798 | 3812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3813 | _result = (wxFontMapper *)new_wxFontMapper(); |
cf694132 | 3814 | |
4268f798 | 3815 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3816 | if (PyErr_Occurred()) return NULL; |
1d99702e | 3817 | } if (_result) { |
6d8b4f8d | 3818 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFontMapper_p"); |
1d99702e RD |
3819 | _resultobj = Py_BuildValue("s",_ptemp); |
3820 | } else { | |
3821 | Py_INCREF(Py_None); | |
3822 | _resultobj = Py_None; | |
3823 | } | |
8ab979d7 RD |
3824 | return _resultobj; |
3825 | } | |
3826 | ||
6d8b4f8d RD |
3827 | #define delete_wxFontMapper(_swigobj) (delete _swigobj) |
3828 | static PyObject *_wrap_delete_wxFontMapper(PyObject *self, PyObject *args, PyObject *kwargs) { | |
0569df0f | 3829 | PyObject * _resultobj; |
6d8b4f8d | 3830 | wxFontMapper * _arg0; |
0569df0f RD |
3831 | PyObject * _argo0 = 0; |
3832 | char *_kwnames[] = { "self", NULL }; | |
3833 | ||
3834 | self = self; | |
6d8b4f8d | 3835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFontMapper",_kwnames,&_argo0)) |
0569df0f RD |
3836 | return NULL; |
3837 | if (_argo0) { | |
3838 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6d8b4f8d RD |
3839 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) { |
3840 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFontMapper. Expected _wxFontMapper_p."); | |
0569df0f RD |
3841 | return NULL; |
3842 | } | |
3843 | } | |
3844 | { | |
4268f798 | 3845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3846 | delete_wxFontMapper(_arg0); |
0569df0f | 3847 | |
4268f798 | 3848 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3849 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
3850 | } Py_INCREF(Py_None); |
3851 | _resultobj = Py_None; | |
3852 | return _resultobj; | |
3853 | } | |
3854 | ||
6d8b4f8d RD |
3855 | static PyObject * wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,const wxString & facename,bool interactive) { |
3856 | wxFontEncoding alt_enc; | |
3857 | if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive)) | |
3858 | return PyInt_FromLong(alt_enc); | |
3859 | else { | |
3860 | Py_INCREF(Py_None); | |
3861 | return Py_None; | |
3862 | } | |
3863 | } | |
3864 | static PyObject *_wrap_wxFontMapper_GetAltForEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
694759cf | 3865 | PyObject * _resultobj; |
6d8b4f8d RD |
3866 | PyObject * _result; |
3867 | wxFontMapper * _arg0; | |
3868 | wxFontEncoding _arg1; | |
3869 | wxString * _arg2 = (wxString *) &wxEmptyString; | |
3870 | bool _arg3 = (bool ) TRUE; | |
694759cf | 3871 | PyObject * _argo0 = 0; |
6d8b4f8d RD |
3872 | PyObject * _obj2 = 0; |
3873 | int tempbool3 = (int) TRUE; | |
3874 | char *_kwnames[] = { "self","encoding","facename","interactive", NULL }; | |
694759cf RD |
3875 | |
3876 | self = self; | |
6d8b4f8d | 3877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|Oi:wxFontMapper_GetAltForEncoding",_kwnames,&_argo0,&_arg1,&_obj2,&tempbool3)) |
694759cf RD |
3878 | return NULL; |
3879 | if (_argo0) { | |
3880 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6d8b4f8d RD |
3881 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) { |
3882 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_GetAltForEncoding. Expected _wxFontMapper_p."); | |
694759cf RD |
3883 | return NULL; |
3884 | } | |
3885 | } | |
6d8b4f8d RD |
3886 | if (_obj2) |
3887 | { | |
c8bc7bb8 RD |
3888 | _arg2 = wxString_in_helper(_obj2); |
3889 | if (_arg2 == NULL) | |
6d8b4f8d | 3890 | return NULL; |
6d8b4f8d RD |
3891 | } |
3892 | _arg3 = (bool ) tempbool3; | |
694759cf | 3893 | { |
4268f798 | 3894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3895 | _result = (PyObject *)wxFontMapper_GetAltForEncoding(_arg0,_arg1,*_arg2,_arg3); |
694759cf | 3896 | |
4268f798 | 3897 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3898 | if (PyErr_Occurred()) return NULL; |
6d8b4f8d RD |
3899 | }{ |
3900 | _resultobj = _result; | |
3901 | } | |
3902 | { | |
3903 | if (_obj2) | |
3904 | delete _arg2; | |
3905 | } | |
694759cf RD |
3906 | return _resultobj; |
3907 | } | |
3908 | ||
6d8b4f8d RD |
3909 | #define wxFontMapper_IsEncodingAvailable(_swigobj,_swigarg0,_swigarg1) (_swigobj->IsEncodingAvailable(_swigarg0,_swigarg1)) |
3910 | static PyObject *_wrap_wxFontMapper_IsEncodingAvailable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3911 | PyObject * _resultobj; |
6d8b4f8d RD |
3912 | bool _result; |
3913 | wxFontMapper * _arg0; | |
3914 | wxFontEncoding _arg1; | |
3915 | wxString * _arg2 = (wxString *) &wxEmptyString; | |
1d99702e | 3916 | PyObject * _argo0 = 0; |
6d8b4f8d RD |
3917 | PyObject * _obj2 = 0; |
3918 | char *_kwnames[] = { "self","encoding","facename", NULL }; | |
8ab979d7 RD |
3919 | |
3920 | self = self; | |
6d8b4f8d | 3921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|O:wxFontMapper_IsEncodingAvailable",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 3922 | return NULL; |
1d99702e RD |
3923 | if (_argo0) { |
3924 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6d8b4f8d RD |
3925 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) { |
3926 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_IsEncodingAvailable. Expected _wxFontMapper_p."); | |
8ab979d7 RD |
3927 | return NULL; |
3928 | } | |
3929 | } | |
6d8b4f8d RD |
3930 | if (_obj2) |
3931 | { | |
c8bc7bb8 RD |
3932 | _arg2 = wxString_in_helper(_obj2); |
3933 | if (_arg2 == NULL) | |
6d8b4f8d | 3934 | return NULL; |
6d8b4f8d | 3935 | } |
8ab979d7 | 3936 | { |
4268f798 | 3937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3938 | _result = (bool )wxFontMapper_IsEncodingAvailable(_arg0,_arg1,*_arg2); |
cf694132 | 3939 | |
4268f798 | 3940 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3941 | if (PyErr_Occurred()) return NULL; |
6d8b4f8d | 3942 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 | 3943 | { |
6d8b4f8d RD |
3944 | if (_obj2) |
3945 | delete _arg2; | |
8ab979d7 RD |
3946 | } |
3947 | return _resultobj; | |
3948 | } | |
3949 | ||
6d8b4f8d RD |
3950 | #define wxFontMapper_CharsetToEncoding(_swigobj,_swigarg0,_swigarg1) (_swigobj->CharsetToEncoding(_swigarg0,_swigarg1)) |
3951 | static PyObject *_wrap_wxFontMapper_CharsetToEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3952 | PyObject * _resultobj; |
6d8b4f8d RD |
3953 | wxFontEncoding _result; |
3954 | wxFontMapper * _arg0; | |
3955 | wxString * _arg1; | |
3956 | bool _arg2 = (bool ) TRUE; | |
1d99702e | 3957 | PyObject * _argo0 = 0; |
6d8b4f8d RD |
3958 | PyObject * _obj1 = 0; |
3959 | int tempbool2 = (int) TRUE; | |
3960 | char *_kwnames[] = { "self","charset","interactive", NULL }; | |
8ab979d7 RD |
3961 | |
3962 | self = self; | |
6d8b4f8d | 3963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxFontMapper_CharsetToEncoding",_kwnames,&_argo0,&_obj1,&tempbool2)) |
8ab979d7 | 3964 | return NULL; |
1d99702e RD |
3965 | if (_argo0) { |
3966 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6d8b4f8d RD |
3967 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) { |
3968 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_CharsetToEncoding. Expected _wxFontMapper_p."); | |
3969 | return NULL; | |
3970 | } | |
3971 | } | |
3972 | { | |
c8bc7bb8 RD |
3973 | _arg1 = wxString_in_helper(_obj1); |
3974 | if (_arg1 == NULL) | |
6d8b4f8d | 3975 | return NULL; |
6d8b4f8d RD |
3976 | } |
3977 | _arg2 = (bool ) tempbool2; | |
3978 | { | |
4268f798 | 3979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3980 | _result = (wxFontEncoding )wxFontMapper_CharsetToEncoding(_arg0,*_arg1,_arg2); |
6d8b4f8d | 3981 | |
4268f798 | 3982 | wxPyEndAllowThreads(__tstate); |
6d8b4f8d RD |
3983 | if (PyErr_Occurred()) return NULL; |
3984 | } _resultobj = Py_BuildValue("i",_result); | |
3985 | { | |
3986 | if (_obj1) | |
3987 | delete _arg1; | |
3988 | } | |
3989 | return _resultobj; | |
3990 | } | |
3991 | ||
3992 | static PyObject *_wrap_wxFontMapper_GetEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3993 | PyObject * _resultobj; | |
3994 | wxString * _result; | |
3995 | wxFontEncoding _arg0; | |
3996 | char *_kwnames[] = { "encoding", NULL }; | |
3997 | ||
3998 | self = self; | |
3999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxFontMapper_GetEncodingName",_kwnames,&_arg0)) | |
4000 | return NULL; | |
4001 | { | |
4268f798 | 4002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4003 | _result = new wxString (wxFontMapper::GetEncodingName(_arg0)); |
6d8b4f8d | 4004 | |
4268f798 | 4005 | wxPyEndAllowThreads(__tstate); |
6d8b4f8d RD |
4006 | if (PyErr_Occurred()) return NULL; |
4007 | }{ | |
c8bc7bb8 RD |
4008 | #if wxUSE_UNICODE |
4009 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
4010 | #else | |
6d8b4f8d | 4011 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 4012 | #endif |
6d8b4f8d RD |
4013 | } |
4014 | { | |
4015 | delete _result; | |
4016 | } | |
4017 | return _resultobj; | |
4018 | } | |
4019 | ||
4020 | static PyObject *_wrap_wxFontMapper_GetEncodingDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4021 | PyObject * _resultobj; | |
4022 | wxString * _result; | |
4023 | wxFontEncoding _arg0; | |
4024 | char *_kwnames[] = { "encoding", NULL }; | |
4025 | ||
4026 | self = self; | |
4027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxFontMapper_GetEncodingDescription",_kwnames,&_arg0)) | |
4028 | return NULL; | |
4029 | { | |
4268f798 | 4030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4031 | _result = new wxString (wxFontMapper::GetEncodingDescription(_arg0)); |
6d8b4f8d | 4032 | |
4268f798 | 4033 | wxPyEndAllowThreads(__tstate); |
6d8b4f8d RD |
4034 | if (PyErr_Occurred()) return NULL; |
4035 | }{ | |
c8bc7bb8 RD |
4036 | #if wxUSE_UNICODE |
4037 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
4038 | #else | |
6d8b4f8d | 4039 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 4040 | #endif |
6d8b4f8d RD |
4041 | } |
4042 | { | |
4043 | delete _result; | |
4044 | } | |
4045 | return _resultobj; | |
4046 | } | |
4047 | ||
4048 | #define wxFontMapper_SetDialogParent(_swigobj,_swigarg0) (_swigobj->SetDialogParent(_swigarg0)) | |
4049 | static PyObject *_wrap_wxFontMapper_SetDialogParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4050 | PyObject * _resultobj; | |
4051 | wxFontMapper * _arg0; | |
4052 | wxWindow * _arg1; | |
4053 | PyObject * _argo0 = 0; | |
4054 | PyObject * _argo1 = 0; | |
4055 | char *_kwnames[] = { "self","parent", NULL }; | |
4056 | ||
4057 | self = self; | |
4058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontMapper_SetDialogParent",_kwnames,&_argo0,&_argo1)) | |
4059 | return NULL; | |
4060 | if (_argo0) { | |
4061 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4062 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) { | |
4063 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_SetDialogParent. Expected _wxFontMapper_p."); | |
4064 | return NULL; | |
4065 | } | |
4066 | } | |
4067 | if (_argo1) { | |
4068 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4069 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
4070 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontMapper_SetDialogParent. Expected _wxWindow_p."); | |
4071 | return NULL; | |
4072 | } | |
4073 | } | |
4074 | { | |
4268f798 | 4075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4076 | wxFontMapper_SetDialogParent(_arg0,_arg1); |
6d8b4f8d | 4077 | |
4268f798 | 4078 | wxPyEndAllowThreads(__tstate); |
6d8b4f8d RD |
4079 | if (PyErr_Occurred()) return NULL; |
4080 | } Py_INCREF(Py_None); | |
4081 | _resultobj = Py_None; | |
4082 | return _resultobj; | |
4083 | } | |
4084 | ||
4085 | #define wxFontMapper_SetDialogTitle(_swigobj,_swigarg0) (_swigobj->SetDialogTitle(_swigarg0)) | |
4086 | static PyObject *_wrap_wxFontMapper_SetDialogTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4087 | PyObject * _resultobj; | |
4088 | wxFontMapper * _arg0; | |
4089 | wxString * _arg1; | |
4090 | PyObject * _argo0 = 0; | |
4091 | PyObject * _obj1 = 0; | |
4092 | char *_kwnames[] = { "self","title", NULL }; | |
4093 | ||
4094 | self = self; | |
4095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontMapper_SetDialogTitle",_kwnames,&_argo0,&_obj1)) | |
4096 | return NULL; | |
4097 | if (_argo0) { | |
4098 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4099 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) { | |
4100 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_SetDialogTitle. Expected _wxFontMapper_p."); | |
4101 | return NULL; | |
4102 | } | |
4103 | } | |
4104 | { | |
c8bc7bb8 RD |
4105 | _arg1 = wxString_in_helper(_obj1); |
4106 | if (_arg1 == NULL) | |
6d8b4f8d | 4107 | return NULL; |
6d8b4f8d RD |
4108 | } |
4109 | { | |
4268f798 | 4110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4111 | wxFontMapper_SetDialogTitle(_arg0,*_arg1); |
6d8b4f8d | 4112 | |
4268f798 | 4113 | wxPyEndAllowThreads(__tstate); |
6d8b4f8d RD |
4114 | if (PyErr_Occurred()) return NULL; |
4115 | } Py_INCREF(Py_None); | |
4116 | _resultobj = Py_None; | |
4117 | { | |
4118 | if (_obj1) | |
4119 | delete _arg1; | |
4120 | } | |
4121 | return _resultobj; | |
4122 | } | |
4123 | ||
4124 | #define wxFontMapper_SetConfig(_swigobj,_swigarg0) (_swigobj->SetConfig(_swigarg0)) | |
4125 | static PyObject *_wrap_wxFontMapper_SetConfig(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4126 | PyObject * _resultobj; | |
4127 | wxFontMapper * _arg0; | |
4128 | wxConfigBase * _arg1; | |
4129 | PyObject * _argo0 = 0; | |
4130 | PyObject * _argo1 = 0; | |
4131 | char *_kwnames[] = { "self","config", NULL }; | |
4132 | ||
4133 | self = self; | |
4134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontMapper_SetConfig",_kwnames,&_argo0,&_argo1)) | |
4135 | return NULL; | |
4136 | if (_argo0) { | |
4137 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4138 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) { | |
4139 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_SetConfig. Expected _wxFontMapper_p."); | |
4140 | return NULL; | |
4141 | } | |
4142 | } | |
4143 | if (_argo1) { | |
4144 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4145 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxConfigBase_p")) { | |
4146 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontMapper_SetConfig. Expected _wxConfigBase_p."); | |
4147 | return NULL; | |
4148 | } | |
4149 | } | |
4150 | { | |
4268f798 | 4151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4152 | wxFontMapper_SetConfig(_arg0,_arg1); |
6d8b4f8d | 4153 | |
4268f798 | 4154 | wxPyEndAllowThreads(__tstate); |
6d8b4f8d RD |
4155 | if (PyErr_Occurred()) return NULL; |
4156 | } Py_INCREF(Py_None); | |
4157 | _resultobj = Py_None; | |
4158 | return _resultobj; | |
4159 | } | |
4160 | ||
4161 | #define wxFontMapper_SetConfigPath(_swigobj,_swigarg0) (_swigobj->SetConfigPath(_swigarg0)) | |
4162 | static PyObject *_wrap_wxFontMapper_SetConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4163 | PyObject * _resultobj; | |
4164 | wxFontMapper * _arg0; | |
4165 | wxString * _arg1; | |
4166 | PyObject * _argo0 = 0; | |
4167 | PyObject * _obj1 = 0; | |
4168 | char *_kwnames[] = { "self","prefix", NULL }; | |
4169 | ||
4170 | self = self; | |
4171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontMapper_SetConfigPath",_kwnames,&_argo0,&_obj1)) | |
4172 | return NULL; | |
4173 | if (_argo0) { | |
4174 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4175 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) { | |
4176 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_SetConfigPath. Expected _wxFontMapper_p."); | |
4177 | return NULL; | |
4178 | } | |
4179 | } | |
4180 | { | |
c8bc7bb8 RD |
4181 | _arg1 = wxString_in_helper(_obj1); |
4182 | if (_arg1 == NULL) | |
6d8b4f8d | 4183 | return NULL; |
6d8b4f8d RD |
4184 | } |
4185 | { | |
4268f798 | 4186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4187 | wxFontMapper_SetConfigPath(_arg0,*_arg1); |
6d8b4f8d | 4188 | |
4268f798 | 4189 | wxPyEndAllowThreads(__tstate); |
6d8b4f8d RD |
4190 | if (PyErr_Occurred()) return NULL; |
4191 | } Py_INCREF(Py_None); | |
4192 | _resultobj = Py_None; | |
4193 | { | |
4194 | if (_obj1) | |
4195 | delete _arg1; | |
4196 | } | |
4197 | return _resultobj; | |
4198 | } | |
4199 | ||
4200 | static PyObject *_wrap_wxFontMapper_GetDefaultConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4201 | PyObject * _resultobj; | |
4202 | wxChar * _result; | |
4203 | char *_kwnames[] = { NULL }; | |
4204 | ||
4205 | self = self; | |
4206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxFontMapper_GetDefaultConfigPath",_kwnames)) | |
4207 | return NULL; | |
4208 | { | |
4268f798 | 4209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4210 | _result = (wxChar *)wxFontMapper::GetDefaultConfigPath(); |
6d8b4f8d | 4211 | |
4268f798 | 4212 | wxPyEndAllowThreads(__tstate); |
6d8b4f8d RD |
4213 | if (PyErr_Occurred()) return NULL; |
4214 | } _resultobj = Py_BuildValue("s", _result); | |
4215 | return _resultobj; | |
4216 | } | |
4217 | ||
4218 | static void *SwigwxFontTowxGDIObject(void *ptr) { | |
4219 | wxFont *src; | |
4220 | wxGDIObject *dest; | |
4221 | src = (wxFont *) ptr; | |
4222 | dest = (wxGDIObject *) src; | |
4223 | return (void *) dest; | |
4224 | } | |
4225 | ||
4226 | static void *SwigwxFontTowxObject(void *ptr) { | |
4227 | wxFont *src; | |
4228 | wxObject *dest; | |
4229 | src = (wxFont *) ptr; | |
4230 | dest = (wxObject *) src; | |
4231 | return (void *) dest; | |
4232 | } | |
4233 | ||
4234 | #define new_wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
4235 | static PyObject *_wrap_new_wxFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4236 | PyObject * _resultobj; | |
4237 | wxFont * _result; | |
4238 | int _arg0; | |
4239 | int _arg1; | |
4240 | int _arg2; | |
4241 | int _arg3; | |
4242 | int _arg4 = (int ) FALSE; | |
4243 | char * _arg5 = (char *) ""; | |
4244 | wxFontEncoding _arg6 = (wxFontEncoding ) (wxFONTENCODING_DEFAULT); | |
4245 | char *_kwnames[] = { "pointSize","family","style","weight","underline","faceName","encoding", NULL }; | |
4246 | char _ptemp[128]; | |
4247 | ||
4248 | self = self; | |
4249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"iiii|isi:new_wxFont",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6)) | |
4250 | return NULL; | |
4251 | { | |
4268f798 | 4252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4253 | _result = (wxFont *)new_wxFont(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); |
6d8b4f8d | 4254 | |
4268f798 | 4255 | wxPyEndAllowThreads(__tstate); |
6d8b4f8d RD |
4256 | if (PyErr_Occurred()) return NULL; |
4257 | } if (_result) { | |
4258 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p"); | |
4259 | _resultobj = Py_BuildValue("s",_ptemp); | |
4260 | } else { | |
4261 | Py_INCREF(Py_None); | |
4262 | _resultobj = Py_None; | |
4263 | } | |
4264 | return _resultobj; | |
4265 | } | |
4266 | ||
4267 | #define new_wxFontFromNativeInfo(_swigarg0) (new wxFont(_swigarg0)) | |
4268 | static PyObject *_wrap_new_wxFontFromNativeInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4269 | PyObject * _resultobj; | |
4270 | wxFont * _result; | |
4271 | wxNativeFontInfo * _arg0; | |
4272 | PyObject * _argo0 = 0; | |
4273 | char *_kwnames[] = { "info", NULL }; | |
4274 | char _ptemp[128]; | |
4275 | ||
4276 | self = self; | |
4277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxFontFromNativeInfo",_kwnames,&_argo0)) | |
4278 | return NULL; | |
4279 | if (_argo0) { | |
4280 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4281 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) { | |
4282 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxFontFromNativeInfo. Expected _wxNativeFontInfo_p."); | |
4283 | return NULL; | |
4284 | } | |
4285 | } | |
4286 | { | |
4268f798 | 4287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4288 | _result = (wxFont *)new_wxFontFromNativeInfo(*_arg0); |
6d8b4f8d | 4289 | |
4268f798 | 4290 | wxPyEndAllowThreads(__tstate); |
6d8b4f8d RD |
4291 | if (PyErr_Occurred()) return NULL; |
4292 | } if (_result) { | |
4293 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p"); | |
4294 | _resultobj = Py_BuildValue("s",_ptemp); | |
4295 | } else { | |
4296 | Py_INCREF(Py_None); | |
4297 | _resultobj = Py_None; | |
4298 | } | |
4299 | return _resultobj; | |
4300 | } | |
4301 | ||
4302 | #define delete_wxFont(_swigobj) (delete _swigobj) | |
4303 | static PyObject *_wrap_delete_wxFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4304 | PyObject * _resultobj; | |
4305 | wxFont * _arg0; | |
4306 | PyObject * _argo0 = 0; | |
4307 | char *_kwnames[] = { "self", NULL }; | |
4308 | ||
4309 | self = self; | |
4310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFont",_kwnames,&_argo0)) | |
4311 | return NULL; | |
4312 | if (_argo0) { | |
4313 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4314 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
4315 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFont. Expected _wxFont_p."); | |
4316 | return NULL; | |
4317 | } | |
4318 | } | |
4319 | { | |
4268f798 | 4320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4321 | delete_wxFont(_arg0); |
6d8b4f8d | 4322 | |
4268f798 | 4323 | wxPyEndAllowThreads(__tstate); |
6d8b4f8d RD |
4324 | if (PyErr_Occurred()) return NULL; |
4325 | } Py_INCREF(Py_None); | |
4326 | _resultobj = Py_None; | |
4327 | return _resultobj; | |
4328 | } | |
4329 | ||
4330 | #define wxFont_Ok(_swigobj) (_swigobj->Ok()) | |
4331 | static PyObject *_wrap_wxFont_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4332 | PyObject * _resultobj; | |
4333 | bool _result; | |
4334 | wxFont * _arg0; | |
4335 | PyObject * _argo0 = 0; | |
4336 | char *_kwnames[] = { "self", NULL }; | |
4337 | ||
4338 | self = self; | |
4339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_Ok",_kwnames,&_argo0)) | |
4340 | return NULL; | |
4341 | if (_argo0) { | |
4342 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4343 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
4344 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_Ok. Expected _wxFont_p."); | |
4345 | return NULL; | |
4346 | } | |
4347 | } | |
4348 | { | |
4268f798 | 4349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4350 | _result = (bool )wxFont_Ok(_arg0); |
6d8b4f8d | 4351 | |
4268f798 | 4352 | wxPyEndAllowThreads(__tstate); |
6d8b4f8d RD |
4353 | if (PyErr_Occurred()) return NULL; |
4354 | } _resultobj = Py_BuildValue("i",_result); | |
4355 | return _resultobj; | |
4356 | } | |
4357 | ||
4358 | #define wxFont_GetPointSize(_swigobj) (_swigobj->GetPointSize()) | |
4359 | static PyObject *_wrap_wxFont_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4360 | PyObject * _resultobj; | |
4361 | int _result; | |
4362 | wxFont * _arg0; | |
4363 | PyObject * _argo0 = 0; | |
4364 | char *_kwnames[] = { "self", NULL }; | |
4365 | ||
4366 | self = self; | |
4367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetPointSize",_kwnames,&_argo0)) | |
4368 | return NULL; | |
4369 | if (_argo0) { | |
4370 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4371 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
4372 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetPointSize. Expected _wxFont_p."); | |
8ab979d7 RD |
4373 | return NULL; |
4374 | } | |
4375 | } | |
cf694132 | 4376 | { |
4268f798 | 4377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4378 | _result = (int )wxFont_GetPointSize(_arg0); |
cf694132 | 4379 | |
4268f798 | 4380 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4381 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4382 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4383 | return _resultobj; |
4384 | } | |
4385 | ||
6d8b4f8d RD |
4386 | #define wxFont_GetFamily(_swigobj) (_swigobj->GetFamily()) |
4387 | static PyObject *_wrap_wxFont_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
4388 | PyObject * _resultobj; |
4389 | int _result; | |
4390 | wxFont * _arg0; | |
1d99702e | 4391 | PyObject * _argo0 = 0; |
1afc06c2 | 4392 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4393 | |
4394 | self = self; | |
6d8b4f8d | 4395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetFamily",_kwnames,&_argo0)) |
8ab979d7 | 4396 | return NULL; |
1d99702e RD |
4397 | if (_argo0) { |
4398 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4399 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
6d8b4f8d | 4400 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFamily. Expected _wxFont_p."); |
8ab979d7 RD |
4401 | return NULL; |
4402 | } | |
4403 | } | |
cf694132 | 4404 | { |
4268f798 | 4405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4406 | _result = (int )wxFont_GetFamily(_arg0); |
cf694132 | 4407 | |
4268f798 | 4408 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4409 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4410 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4411 | return _resultobj; |
4412 | } | |
4413 | ||
6d8b4f8d RD |
4414 | #define wxFont_GetStyle(_swigobj) (_swigobj->GetStyle()) |
4415 | static PyObject *_wrap_wxFont_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
4416 | PyObject * _resultobj; |
4417 | int _result; | |
4418 | wxFont * _arg0; | |
1d99702e | 4419 | PyObject * _argo0 = 0; |
1afc06c2 | 4420 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4421 | |
4422 | self = self; | |
6d8b4f8d | 4423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetStyle",_kwnames,&_argo0)) |
8ab979d7 | 4424 | return NULL; |
1d99702e RD |
4425 | if (_argo0) { |
4426 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4427 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
6d8b4f8d | 4428 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetStyle. Expected _wxFont_p."); |
8ab979d7 RD |
4429 | return NULL; |
4430 | } | |
4431 | } | |
cf694132 | 4432 | { |
4268f798 | 4433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4434 | _result = (int )wxFont_GetStyle(_arg0); |
cf694132 | 4435 | |
4268f798 | 4436 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4437 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4438 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4439 | return _resultobj; |
4440 | } | |
4441 | ||
6d8b4f8d RD |
4442 | #define wxFont_GetWeight(_swigobj) (_swigobj->GetWeight()) |
4443 | static PyObject *_wrap_wxFont_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
4444 | PyObject * _resultobj; |
4445 | int _result; | |
4446 | wxFont * _arg0; | |
1d99702e | 4447 | PyObject * _argo0 = 0; |
1afc06c2 | 4448 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4449 | |
4450 | self = self; | |
6d8b4f8d | 4451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetWeight",_kwnames,&_argo0)) |
8ab979d7 | 4452 | return NULL; |
1d99702e RD |
4453 | if (_argo0) { |
4454 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4455 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
6d8b4f8d | 4456 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetWeight. Expected _wxFont_p."); |
8ab979d7 RD |
4457 | return NULL; |
4458 | } | |
4459 | } | |
cf694132 | 4460 | { |
4268f798 | 4461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4462 | _result = (int )wxFont_GetWeight(_arg0); |
cf694132 | 4463 | |
4268f798 | 4464 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4465 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4466 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4467 | return _resultobj; |
4468 | } | |
4469 | ||
4470 | #define wxFont_GetUnderlined(_swigobj) (_swigobj->GetUnderlined()) | |
1afc06c2 | 4471 | static PyObject *_wrap_wxFont_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4472 | PyObject * _resultobj; |
4473 | bool _result; | |
4474 | wxFont * _arg0; | |
1d99702e | 4475 | PyObject * _argo0 = 0; |
1afc06c2 | 4476 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4477 | |
4478 | self = self; | |
1afc06c2 | 4479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetUnderlined",_kwnames,&_argo0)) |
8ab979d7 | 4480 | return NULL; |
1d99702e RD |
4481 | if (_argo0) { |
4482 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4483 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
8ab979d7 RD |
4484 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetUnderlined. Expected _wxFont_p."); |
4485 | return NULL; | |
4486 | } | |
4487 | } | |
cf694132 | 4488 | { |
4268f798 | 4489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4490 | _result = (bool )wxFont_GetUnderlined(_arg0); |
cf694132 | 4491 | |
4268f798 | 4492 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4493 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4494 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4495 | return _resultobj; |
4496 | } | |
4497 | ||
6d8b4f8d RD |
4498 | #define wxFont_GetFaceName(_swigobj) (_swigobj->GetFaceName()) |
4499 | static PyObject *_wrap_wxFont_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4500 | PyObject * _resultobj; |
6d8b4f8d | 4501 | wxString * _result; |
8ab979d7 | 4502 | wxFont * _arg0; |
1d99702e | 4503 | PyObject * _argo0 = 0; |
1afc06c2 | 4504 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4505 | |
4506 | self = self; | |
6d8b4f8d | 4507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetFaceName",_kwnames,&_argo0)) |
8ab979d7 | 4508 | return NULL; |
1d99702e RD |
4509 | if (_argo0) { |
4510 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4511 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
6d8b4f8d | 4512 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFaceName. Expected _wxFont_p."); |
8ab979d7 RD |
4513 | return NULL; |
4514 | } | |
4515 | } | |
cf694132 | 4516 | { |
4268f798 | 4517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4518 | _result = new wxString (wxFont_GetFaceName(_arg0)); |
cf694132 | 4519 | |
4268f798 | 4520 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4521 | if (PyErr_Occurred()) return NULL; |
6d8b4f8d | 4522 | }{ |
c8bc7bb8 RD |
4523 | #if wxUSE_UNICODE |
4524 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
4525 | #else | |
6d8b4f8d | 4526 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 4527 | #endif |
6d8b4f8d RD |
4528 | } |
4529 | { | |
4530 | delete _result; | |
4531 | } | |
8ab979d7 RD |
4532 | return _resultobj; |
4533 | } | |
4534 | ||
f0261a72 RD |
4535 | #define wxFont_GetEncoding(_swigobj) (_swigobj->GetEncoding()) |
4536 | static PyObject *_wrap_wxFont_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4537 | PyObject * _resultobj; | |
4538 | wxFontEncoding _result; | |
4539 | wxFont * _arg0; | |
4540 | PyObject * _argo0 = 0; | |
4541 | char *_kwnames[] = { "self", NULL }; | |
4542 | ||
4543 | self = self; | |
4544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetEncoding",_kwnames,&_argo0)) | |
4545 | return NULL; | |
4546 | if (_argo0) { | |
4547 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4548 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
4549 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetEncoding. Expected _wxFont_p."); | |
4550 | return NULL; | |
4551 | } | |
4552 | } | |
4553 | { | |
4268f798 | 4554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4555 | _result = (wxFontEncoding )wxFont_GetEncoding(_arg0); |
f0261a72 | 4556 | |
4268f798 | 4557 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4558 | if (PyErr_Occurred()) return NULL; |
f0261a72 RD |
4559 | } _resultobj = Py_BuildValue("i",_result); |
4560 | return _resultobj; | |
4561 | } | |
4562 | ||
68320e40 RD |
4563 | #define wxFont_IsFixedWidth(_swigobj) (_swigobj->IsFixedWidth()) |
4564 | static PyObject *_wrap_wxFont_IsFixedWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4565 | PyObject * _resultobj; | |
4566 | bool _result; | |
4567 | wxFont * _arg0; | |
4568 | PyObject * _argo0 = 0; | |
4569 | char *_kwnames[] = { "self", NULL }; | |
4570 | ||
4571 | self = self; | |
4572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_IsFixedWidth",_kwnames,&_argo0)) | |
4573 | return NULL; | |
4574 | if (_argo0) { | |
4575 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4576 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
4577 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_IsFixedWidth. Expected _wxFont_p."); | |
4578 | return NULL; | |
4579 | } | |
4580 | } | |
4581 | { | |
4582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 4583 | _result = (bool )wxFont_IsFixedWidth(_arg0); |
68320e40 RD |
4584 | |
4585 | wxPyEndAllowThreads(__tstate); | |
4586 | if (PyErr_Occurred()) return NULL; | |
4587 | } _resultobj = Py_BuildValue("i",_result); | |
4588 | return _resultobj; | |
4589 | } | |
4590 | ||
6d8b4f8d RD |
4591 | #define wxFont_GetNativeFontInfo(_swigobj) (_swigobj->GetNativeFontInfo()) |
4592 | static PyObject *_wrap_wxFont_GetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4593 | PyObject * _resultobj; |
6d8b4f8d | 4594 | wxNativeFontInfo * _result; |
8ab979d7 | 4595 | wxFont * _arg0; |
1d99702e | 4596 | PyObject * _argo0 = 0; |
6d8b4f8d RD |
4597 | char *_kwnames[] = { "self", NULL }; |
4598 | char _ptemp[128]; | |
8ab979d7 RD |
4599 | |
4600 | self = self; | |
6d8b4f8d | 4601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetNativeFontInfo",_kwnames,&_argo0)) |
8ab979d7 | 4602 | return NULL; |
1d99702e RD |
4603 | if (_argo0) { |
4604 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4605 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
6d8b4f8d | 4606 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetNativeFontInfo. Expected _wxFont_p."); |
8ab979d7 RD |
4607 | return NULL; |
4608 | } | |
4609 | } | |
4610 | { | |
4268f798 | 4611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4612 | _result = (wxNativeFontInfo *)wxFont_GetNativeFontInfo(_arg0); |
6d8b4f8d | 4613 | |
4268f798 | 4614 | wxPyEndAllowThreads(__tstate); |
6d8b4f8d RD |
4615 | if (PyErr_Occurred()) return NULL; |
4616 | } if (_result) { | |
4617 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxNativeFontInfo_p"); | |
4618 | _resultobj = Py_BuildValue("s",_ptemp); | |
4619 | } else { | |
4620 | Py_INCREF(Py_None); | |
4621 | _resultobj = Py_None; | |
185d7c3e | 4622 | } |
6d8b4f8d RD |
4623 | return _resultobj; |
4624 | } | |
4625 | ||
b5a5d647 RD |
4626 | #define wxFont_GetNativeFontInfoDesc(_swigobj) (_swigobj->GetNativeFontInfoDesc()) |
4627 | static PyObject *_wrap_wxFont_GetNativeFontInfoDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4628 | PyObject * _resultobj; | |
4629 | wxString * _result; | |
4630 | wxFont * _arg0; | |
4631 | PyObject * _argo0 = 0; | |
4632 | char *_kwnames[] = { "self", NULL }; | |
4633 | ||
4634 | self = self; | |
4635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetNativeFontInfoDesc",_kwnames,&_argo0)) | |
4636 | return NULL; | |
4637 | if (_argo0) { | |
4638 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4639 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
4640 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetNativeFontInfoDesc. Expected _wxFont_p."); | |
4641 | return NULL; | |
4642 | } | |
4643 | } | |
4644 | { | |
4645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 4646 | _result = new wxString (wxFont_GetNativeFontInfoDesc(_arg0)); |
b5a5d647 RD |
4647 | |
4648 | wxPyEndAllowThreads(__tstate); | |
4649 | if (PyErr_Occurred()) return NULL; | |
4650 | }{ | |
c8bc7bb8 RD |
4651 | #if wxUSE_UNICODE |
4652 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
4653 | #else | |
b5a5d647 | 4654 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 4655 | #endif |
b5a5d647 RD |
4656 | } |
4657 | { | |
4658 | delete _result; | |
4659 | } | |
4660 | return _resultobj; | |
4661 | } | |
4662 | ||
4663 | #define wxFont_GetNativeFontInfoUserDesc(_swigobj) (_swigobj->GetNativeFontInfoUserDesc()) | |
4664 | static PyObject *_wrap_wxFont_GetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4665 | PyObject * _resultobj; | |
4666 | wxString * _result; | |
4667 | wxFont * _arg0; | |
4668 | PyObject * _argo0 = 0; | |
4669 | char *_kwnames[] = { "self", NULL }; | |
4670 | ||
4671 | self = self; | |
4672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetNativeFontInfoUserDesc",_kwnames,&_argo0)) | |
4673 | return NULL; | |
4674 | if (_argo0) { | |
4675 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4676 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
4677 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetNativeFontInfoUserDesc. Expected _wxFont_p."); | |
4678 | return NULL; | |
4679 | } | |
4680 | } | |
4681 | { | |
4682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 4683 | _result = new wxString (wxFont_GetNativeFontInfoUserDesc(_arg0)); |
b5a5d647 RD |
4684 | |
4685 | wxPyEndAllowThreads(__tstate); | |
4686 | if (PyErr_Occurred()) return NULL; | |
4687 | }{ | |
c8bc7bb8 RD |
4688 | #if wxUSE_UNICODE |
4689 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
4690 | #else | |
b5a5d647 | 4691 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 4692 | #endif |
b5a5d647 RD |
4693 | } |
4694 | { | |
4695 | delete _result; | |
4696 | } | |
4697 | return _resultobj; | |
4698 | } | |
4699 | ||
6d8b4f8d RD |
4700 | #define wxFont_SetPointSize(_swigobj,_swigarg0) (_swigobj->SetPointSize(_swigarg0)) |
4701 | static PyObject *_wrap_wxFont_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4702 | PyObject * _resultobj; | |
4703 | wxFont * _arg0; | |
4704 | int _arg1; | |
4705 | PyObject * _argo0 = 0; | |
4706 | char *_kwnames[] = { "self","pointSize", NULL }; | |
4707 | ||
4708 | self = self; | |
4709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetPointSize",_kwnames,&_argo0,&_arg1)) | |
185d7c3e | 4710 | return NULL; |
6d8b4f8d RD |
4711 | if (_argo0) { |
4712 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4713 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
4714 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetPointSize. Expected _wxFont_p."); | |
8ab979d7 | 4715 | return NULL; |
6d8b4f8d | 4716 | } |
8ab979d7 | 4717 | } |
cf694132 | 4718 | { |
4268f798 | 4719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4720 | wxFont_SetPointSize(_arg0,_arg1); |
cf694132 | 4721 | |
4268f798 | 4722 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4723 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4724 | } Py_INCREF(Py_None); |
8ab979d7 | 4725 | _resultobj = Py_None; |
8ab979d7 RD |
4726 | return _resultobj; |
4727 | } | |
4728 | ||
4729 | #define wxFont_SetFamily(_swigobj,_swigarg0) (_swigobj->SetFamily(_swigarg0)) | |
1afc06c2 | 4730 | static PyObject *_wrap_wxFont_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4731 | PyObject * _resultobj; |
4732 | wxFont * _arg0; | |
4733 | int _arg1; | |
1d99702e | 4734 | PyObject * _argo0 = 0; |
1afc06c2 | 4735 | char *_kwnames[] = { "self","family", NULL }; |
8ab979d7 RD |
4736 | |
4737 | self = self; | |
1afc06c2 | 4738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetFamily",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4739 | return NULL; |
1d99702e RD |
4740 | if (_argo0) { |
4741 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4742 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
8ab979d7 RD |
4743 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetFamily. Expected _wxFont_p."); |
4744 | return NULL; | |
4745 | } | |
4746 | } | |
cf694132 | 4747 | { |
4268f798 | 4748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4749 | wxFont_SetFamily(_arg0,_arg1); |
cf694132 | 4750 | |
4268f798 | 4751 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4752 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4753 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4754 | _resultobj = Py_None; |
4755 | return _resultobj; | |
4756 | } | |
4757 | ||
6d8b4f8d RD |
4758 | #define wxFont_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0)) |
4759 | static PyObject *_wrap_wxFont_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
4760 | PyObject * _resultobj; |
4761 | wxFont * _arg0; | |
4762 | int _arg1; | |
1d99702e | 4763 | PyObject * _argo0 = 0; |
6d8b4f8d | 4764 | char *_kwnames[] = { "self","style", NULL }; |
8ab979d7 RD |
4765 | |
4766 | self = self; | |
6d8b4f8d | 4767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetStyle",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4768 | return NULL; |
1d99702e RD |
4769 | if (_argo0) { |
4770 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4771 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
6d8b4f8d | 4772 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetStyle. Expected _wxFont_p."); |
8ab979d7 RD |
4773 | return NULL; |
4774 | } | |
4775 | } | |
cf694132 | 4776 | { |
4268f798 | 4777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4778 | wxFont_SetStyle(_arg0,_arg1); |
cf694132 | 4779 | |
4268f798 | 4780 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4781 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4782 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4783 | _resultobj = Py_None; |
4784 | return _resultobj; | |
4785 | } | |
4786 | ||
6d8b4f8d RD |
4787 | #define wxFont_SetWeight(_swigobj,_swigarg0) (_swigobj->SetWeight(_swigarg0)) |
4788 | static PyObject *_wrap_wxFont_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
4789 | PyObject * _resultobj; |
4790 | wxFont * _arg0; | |
4791 | int _arg1; | |
1d99702e | 4792 | PyObject * _argo0 = 0; |
6d8b4f8d | 4793 | char *_kwnames[] = { "self","weight", NULL }; |
8ab979d7 RD |
4794 | |
4795 | self = self; | |
6d8b4f8d | 4796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetWeight",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4797 | return NULL; |
1d99702e RD |
4798 | if (_argo0) { |
4799 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4800 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
6d8b4f8d | 4801 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetWeight. Expected _wxFont_p."); |
8ab979d7 RD |
4802 | return NULL; |
4803 | } | |
4804 | } | |
cf694132 | 4805 | { |
4268f798 | 4806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4807 | wxFont_SetWeight(_arg0,_arg1); |
6d8b4f8d | 4808 | |
4268f798 | 4809 | wxPyEndAllowThreads(__tstate); |
6d8b4f8d RD |
4810 | if (PyErr_Occurred()) return NULL; |
4811 | } Py_INCREF(Py_None); | |
4812 | _resultobj = Py_None; | |
4813 | return _resultobj; | |
4814 | } | |
4815 | ||
4816 | #define wxFont_SetFaceName(_swigobj,_swigarg0) (_swigobj->SetFaceName(_swigarg0)) | |
4817 | static PyObject *_wrap_wxFont_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4818 | PyObject * _resultobj; | |
4819 | wxFont * _arg0; | |
4820 | wxString * _arg1; | |
4821 | PyObject * _argo0 = 0; | |
4822 | PyObject * _obj1 = 0; | |
4823 | char *_kwnames[] = { "self","faceName", NULL }; | |
4824 | ||
4825 | self = self; | |
4826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFont_SetFaceName",_kwnames,&_argo0,&_obj1)) | |
4827 | return NULL; | |
4828 | if (_argo0) { | |
4829 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4830 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
4831 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetFaceName. Expected _wxFont_p."); | |
4832 | return NULL; | |
4833 | } | |
4834 | } | |
4835 | { | |
c8bc7bb8 RD |
4836 | _arg1 = wxString_in_helper(_obj1); |
4837 | if (_arg1 == NULL) | |
6d8b4f8d | 4838 | return NULL; |
6d8b4f8d RD |
4839 | } |
4840 | { | |
4268f798 | 4841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4842 | wxFont_SetFaceName(_arg0,*_arg1); |
cf694132 | 4843 | |
4268f798 | 4844 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4845 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4846 | } Py_INCREF(Py_None); |
8ab979d7 | 4847 | _resultobj = Py_None; |
6d8b4f8d RD |
4848 | { |
4849 | if (_obj1) | |
4850 | delete _arg1; | |
4851 | } | |
8ab979d7 RD |
4852 | return _resultobj; |
4853 | } | |
4854 | ||
4855 | #define wxFont_SetUnderlined(_swigobj,_swigarg0) (_swigobj->SetUnderlined(_swigarg0)) | |
1afc06c2 | 4856 | static PyObject *_wrap_wxFont_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4857 | PyObject * _resultobj; |
4858 | wxFont * _arg0; | |
4859 | bool _arg1; | |
1d99702e | 4860 | PyObject * _argo0 = 0; |
8ab979d7 | 4861 | int tempbool1; |
1afc06c2 | 4862 | char *_kwnames[] = { "self","underlined", NULL }; |
8ab979d7 RD |
4863 | |
4864 | self = self; | |
1afc06c2 | 4865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetUnderlined",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 4866 | return NULL; |
1d99702e RD |
4867 | if (_argo0) { |
4868 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4869 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
8ab979d7 RD |
4870 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetUnderlined. Expected _wxFont_p."); |
4871 | return NULL; | |
4872 | } | |
4873 | } | |
4874 | _arg1 = (bool ) tempbool1; | |
cf694132 | 4875 | { |
4268f798 | 4876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4877 | wxFont_SetUnderlined(_arg0,_arg1); |
cf694132 | 4878 | |
4268f798 | 4879 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4880 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4881 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4882 | _resultobj = Py_None; |
4883 | return _resultobj; | |
4884 | } | |
4885 | ||
6d8b4f8d RD |
4886 | #define wxFont_SetEncoding(_swigobj,_swigarg0) (_swigobj->SetEncoding(_swigarg0)) |
4887 | static PyObject *_wrap_wxFont_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
4888 | PyObject * _resultobj; |
4889 | wxFont * _arg0; | |
6d8b4f8d | 4890 | wxFontEncoding _arg1; |
1d99702e | 4891 | PyObject * _argo0 = 0; |
6d8b4f8d | 4892 | char *_kwnames[] = { "self","encoding", NULL }; |
8ab979d7 RD |
4893 | |
4894 | self = self; | |
6d8b4f8d | 4895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetEncoding",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4896 | return NULL; |
1d99702e RD |
4897 | if (_argo0) { |
4898 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4899 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
6d8b4f8d | 4900 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetEncoding. Expected _wxFont_p."); |
8ab979d7 RD |
4901 | return NULL; |
4902 | } | |
4903 | } | |
cf694132 | 4904 | { |
4268f798 | 4905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4906 | wxFont_SetEncoding(_arg0,_arg1); |
cf694132 | 4907 | |
4268f798 | 4908 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4909 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4910 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4911 | _resultobj = Py_None; |
4912 | return _resultobj; | |
4913 | } | |
4914 | ||
6d8b4f8d RD |
4915 | #define wxFont_SetNativeFontInfo(_swigobj,_swigarg0) (_swigobj->SetNativeFontInfo(_swigarg0)) |
4916 | static PyObject *_wrap_wxFont_SetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
f0261a72 RD |
4917 | PyObject * _resultobj; |
4918 | wxFont * _arg0; | |
6d8b4f8d | 4919 | wxNativeFontInfo * _arg1; |
f0261a72 | 4920 | PyObject * _argo0 = 0; |
6d8b4f8d RD |
4921 | PyObject * _argo1 = 0; |
4922 | char *_kwnames[] = { "self","info", NULL }; | |
f0261a72 RD |
4923 | |
4924 | self = self; | |
6d8b4f8d | 4925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFont_SetNativeFontInfo",_kwnames,&_argo0,&_argo1)) |
f0261a72 RD |
4926 | return NULL; |
4927 | if (_argo0) { | |
4928 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4929 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
6d8b4f8d RD |
4930 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetNativeFontInfo. Expected _wxFont_p."); |
4931 | return NULL; | |
4932 | } | |
4933 | } | |
4934 | if (_argo1) { | |
4935 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4936 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxNativeFontInfo_p")) { | |
4937 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFont_SetNativeFontInfo. Expected _wxNativeFontInfo_p."); | |
f0261a72 RD |
4938 | return NULL; |
4939 | } | |
4940 | } | |
4941 | { | |
4268f798 | 4942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4943 | wxFont_SetNativeFontInfo(_arg0,*_arg1); |
f0261a72 | 4944 | |
4268f798 | 4945 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4946 | if (PyErr_Occurred()) return NULL; |
f0261a72 RD |
4947 | } Py_INCREF(Py_None); |
4948 | _resultobj = Py_None; | |
4949 | return _resultobj; | |
4950 | } | |
4951 | ||
b5a5d647 RD |
4952 | #define wxFont_SetNativeFontInfoUserDesc(_swigobj,_swigarg0) (_swigobj->SetNativeFontInfoUserDesc(_swigarg0)) |
4953 | static PyObject *_wrap_wxFont_SetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4954 | PyObject * _resultobj; | |
4955 | wxFont * _arg0; | |
4956 | wxString * _arg1; | |
4957 | PyObject * _argo0 = 0; | |
4958 | PyObject * _obj1 = 0; | |
4959 | char *_kwnames[] = { "self","info", NULL }; | |
4960 | ||
4961 | self = self; | |
4962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFont_SetNativeFontInfoUserDesc",_kwnames,&_argo0,&_obj1)) | |
4963 | return NULL; | |
4964 | if (_argo0) { | |
4965 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4966 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
4967 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetNativeFontInfoUserDesc. Expected _wxFont_p."); | |
4968 | return NULL; | |
4969 | } | |
4970 | } | |
4971 | { | |
c8bc7bb8 RD |
4972 | _arg1 = wxString_in_helper(_obj1); |
4973 | if (_arg1 == NULL) | |
b5a5d647 | 4974 | return NULL; |
b5a5d647 RD |
4975 | } |
4976 | { | |
4977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 4978 | wxFont_SetNativeFontInfoUserDesc(_arg0,*_arg1); |
b5a5d647 RD |
4979 | |
4980 | wxPyEndAllowThreads(__tstate); | |
4981 | if (PyErr_Occurred()) return NULL; | |
4982 | } Py_INCREF(Py_None); | |
4983 | _resultobj = Py_None; | |
4984 | { | |
4985 | if (_obj1) | |
4986 | delete _arg1; | |
4987 | } | |
4988 | return _resultobj; | |
4989 | } | |
4990 | ||
f0261a72 RD |
4991 | #define wxFont_GetFamilyString(_swigobj) (_swigobj->GetFamilyString()) |
4992 | static PyObject *_wrap_wxFont_GetFamilyString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4993 | PyObject * _resultobj; | |
4994 | wxString * _result; | |
4995 | wxFont * _arg0; | |
4996 | PyObject * _argo0 = 0; | |
4997 | char *_kwnames[] = { "self", NULL }; | |
4998 | ||
4999 | self = self; | |
5000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetFamilyString",_kwnames,&_argo0)) | |
5001 | return NULL; | |
5002 | if (_argo0) { | |
5003 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5004 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
5005 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFamilyString. Expected _wxFont_p."); | |
5006 | return NULL; | |
5007 | } | |
5008 | } | |
5009 | { | |
4268f798 | 5010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5011 | _result = new wxString (wxFont_GetFamilyString(_arg0)); |
f0261a72 | 5012 | |
4268f798 | 5013 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5014 | if (PyErr_Occurred()) return NULL; |
f0261a72 | 5015 | }{ |
c8bc7bb8 RD |
5016 | #if wxUSE_UNICODE |
5017 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
5018 | #else | |
eec92d76 | 5019 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 5020 | #endif |
f0261a72 RD |
5021 | } |
5022 | { | |
5023 | delete _result; | |
5024 | } | |
5025 | return _resultobj; | |
5026 | } | |
5027 | ||
5028 | #define wxFont_GetStyleString(_swigobj) (_swigobj->GetStyleString()) | |
5029 | static PyObject *_wrap_wxFont_GetStyleString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5030 | PyObject * _resultobj; | |
5031 | wxString * _result; | |
5032 | wxFont * _arg0; | |
5033 | PyObject * _argo0 = 0; | |
5034 | char *_kwnames[] = { "self", NULL }; | |
5035 | ||
5036 | self = self; | |
5037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetStyleString",_kwnames,&_argo0)) | |
5038 | return NULL; | |
5039 | if (_argo0) { | |
5040 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5041 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
5042 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetStyleString. Expected _wxFont_p."); | |
5043 | return NULL; | |
5044 | } | |
5045 | } | |
5046 | { | |
4268f798 | 5047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5048 | _result = new wxString (wxFont_GetStyleString(_arg0)); |
f0261a72 | 5049 | |
4268f798 | 5050 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5051 | if (PyErr_Occurred()) return NULL; |
f0261a72 | 5052 | }{ |
c8bc7bb8 RD |
5053 | #if wxUSE_UNICODE |
5054 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
5055 | #else | |
eec92d76 | 5056 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 5057 | #endif |
f0261a72 RD |
5058 | } |
5059 | { | |
5060 | delete _result; | |
5061 | } | |
5062 | return _resultobj; | |
5063 | } | |
5064 | ||
5065 | #define wxFont_GetWeightString(_swigobj) (_swigobj->GetWeightString()) | |
5066 | static PyObject *_wrap_wxFont_GetWeightString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5067 | PyObject * _resultobj; | |
5068 | wxString * _result; | |
5069 | wxFont * _arg0; | |
5070 | PyObject * _argo0 = 0; | |
5071 | char *_kwnames[] = { "self", NULL }; | |
5072 | ||
5073 | self = self; | |
5074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetWeightString",_kwnames,&_argo0)) | |
5075 | return NULL; | |
5076 | if (_argo0) { | |
5077 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5078 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) { | |
5079 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetWeightString. Expected _wxFont_p."); | |
5080 | return NULL; | |
5081 | } | |
5082 | } | |
5083 | { | |
4268f798 | 5084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5085 | _result = new wxString (wxFont_GetWeightString(_arg0)); |
f0261a72 | 5086 | |
4268f798 | 5087 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5088 | if (PyErr_Occurred()) return NULL; |
f0261a72 | 5089 | }{ |
c8bc7bb8 RD |
5090 | #if wxUSE_UNICODE |
5091 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
5092 | #else | |
eec92d76 | 5093 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 5094 | #endif |
f0261a72 RD |
5095 | } |
5096 | { | |
5097 | delete _result; | |
5098 | } | |
5099 | return _resultobj; | |
5100 | } | |
5101 | ||
6d8b4f8d RD |
5102 | static PyObject *_wrap_wxFont_GetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { |
5103 | PyObject * _resultobj; | |
5104 | wxFontEncoding _result; | |
5105 | char *_kwnames[] = { NULL }; | |
5106 | ||
5107 | self = self; | |
5108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxFont_GetDefaultEncoding",_kwnames)) | |
5109 | return NULL; | |
5110 | { | |
4268f798 | 5111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5112 | _result = (wxFontEncoding )wxFont::GetDefaultEncoding(); |
6d8b4f8d | 5113 | |
4268f798 | 5114 | wxPyEndAllowThreads(__tstate); |
6d8b4f8d RD |
5115 | if (PyErr_Occurred()) return NULL; |
5116 | } _resultobj = Py_BuildValue("i",_result); | |
5117 | return _resultobj; | |
5118 | } | |
5119 | ||
5120 | static PyObject *_wrap_wxFont_SetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5121 | PyObject * _resultobj; | |
5122 | wxFontEncoding _arg0; | |
5123 | char *_kwnames[] = { "encoding", NULL }; | |
5124 | ||
5125 | self = self; | |
5126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxFont_SetDefaultEncoding",_kwnames,&_arg0)) | |
5127 | return NULL; | |
5128 | { | |
4268f798 | 5129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5130 | wxFont::SetDefaultEncoding(_arg0); |
6d8b4f8d | 5131 | |
4268f798 | 5132 | wxPyEndAllowThreads(__tstate); |
6d8b4f8d RD |
5133 | if (PyErr_Occurred()) return NULL; |
5134 | } Py_INCREF(Py_None); | |
5135 | _resultobj = Py_None; | |
5136 | return _resultobj; | |
5137 | } | |
5138 | ||
9416aa89 RD |
5139 | static void *SwigwxFontListTowxObject(void *ptr) { |
5140 | wxFontList *src; | |
5141 | wxObject *dest; | |
5142 | src = (wxFontList *) ptr; | |
5143 | dest = (wxObject *) src; | |
5144 | return (void *) dest; | |
5145 | } | |
5146 | ||
0569df0f RD |
5147 | #define wxFontList_AddFont(_swigobj,_swigarg0) (_swigobj->AddFont(_swigarg0)) |
5148 | static PyObject *_wrap_wxFontList_AddFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5149 | PyObject * _resultobj; | |
5150 | wxFontList * _arg0; | |
5151 | wxFont * _arg1; | |
5152 | PyObject * _argo0 = 0; | |
5153 | PyObject * _argo1 = 0; | |
5154 | char *_kwnames[] = { "self","font", NULL }; | |
5155 | ||
5156 | self = self; | |
5157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontList_AddFont",_kwnames,&_argo0,&_argo1)) | |
5158 | return NULL; | |
5159 | if (_argo0) { | |
5160 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5161 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) { | |
5162 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_AddFont. Expected _wxFontList_p."); | |
5163 | return NULL; | |
5164 | } | |
5165 | } | |
5166 | if (_argo1) { | |
5167 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5168 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
5169 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontList_AddFont. Expected _wxFont_p."); | |
5170 | return NULL; | |
5171 | } | |
5172 | } | |
5173 | { | |
4268f798 | 5174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5175 | wxFontList_AddFont(_arg0,_arg1); |
0569df0f | 5176 | |
4268f798 | 5177 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5178 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
5179 | } Py_INCREF(Py_None); |
5180 | _resultobj = Py_None; | |
5181 | return _resultobj; | |
5182 | } | |
5183 | ||
5184 | #define wxFontList_FindOrCreateFont(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->FindOrCreateFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
5185 | static PyObject *_wrap_wxFontList_FindOrCreateFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5186 | PyObject * _resultobj; | |
5187 | wxFont * _result; | |
5188 | wxFontList * _arg0; | |
5189 | int _arg1; | |
5190 | int _arg2; | |
5191 | int _arg3; | |
5192 | int _arg4; | |
5193 | bool _arg5 = (bool ) FALSE; | |
5194 | char * _arg6 = (char *) NULL; | |
5195 | wxFontEncoding _arg7 = (wxFontEncoding ) (wxFONTENCODING_DEFAULT); | |
5196 | PyObject * _argo0 = 0; | |
5197 | int tempbool5 = (int) FALSE; | |
5198 | char *_kwnames[] = { "self","point_size","family","style","weight","underline","facename","encoding", NULL }; | |
5199 | char _ptemp[128]; | |
5200 | ||
5201 | self = self; | |
5202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|isi:wxFontList_FindOrCreateFont",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&tempbool5,&_arg6,&_arg7)) | |
5203 | return NULL; | |
5204 | if (_argo0) { | |
5205 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5206 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) { | |
5207 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_FindOrCreateFont. Expected _wxFontList_p."); | |
5208 | return NULL; | |
5209 | } | |
5210 | } | |
5211 | _arg5 = (bool ) tempbool5; | |
5212 | { | |
4268f798 | 5213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5214 | _result = (wxFont *)wxFontList_FindOrCreateFont(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7); |
0569df0f | 5215 | |
4268f798 | 5216 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5217 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
5218 | } if (_result) { |
5219 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p"); | |
5220 | _resultobj = Py_BuildValue("s",_ptemp); | |
5221 | } else { | |
5222 | Py_INCREF(Py_None); | |
5223 | _resultobj = Py_None; | |
5224 | } | |
5225 | return _resultobj; | |
5226 | } | |
5227 | ||
5228 | #define wxFontList_RemoveFont(_swigobj,_swigarg0) (_swigobj->RemoveFont(_swigarg0)) | |
5229 | static PyObject *_wrap_wxFontList_RemoveFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5230 | PyObject * _resultobj; | |
5231 | wxFontList * _arg0; | |
5232 | wxFont * _arg1; | |
5233 | PyObject * _argo0 = 0; | |
5234 | PyObject * _argo1 = 0; | |
5235 | char *_kwnames[] = { "self","font", NULL }; | |
5236 | ||
5237 | self = self; | |
5238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontList_RemoveFont",_kwnames,&_argo0,&_argo1)) | |
5239 | return NULL; | |
5240 | if (_argo0) { | |
5241 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5242 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) { | |
5243 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_RemoveFont. Expected _wxFontList_p."); | |
5244 | return NULL; | |
5245 | } | |
5246 | } | |
5247 | if (_argo1) { | |
5248 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5249 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
5250 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontList_RemoveFont. Expected _wxFont_p."); | |
5251 | return NULL; | |
5252 | } | |
5253 | } | |
5254 | { | |
4268f798 | 5255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5256 | wxFontList_RemoveFont(_arg0,_arg1); |
0569df0f | 5257 | |
4268f798 | 5258 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5259 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
5260 | } Py_INCREF(Py_None); |
5261 | _resultobj = Py_None; | |
5262 | return _resultobj; | |
5263 | } | |
5264 | ||
2f4e9287 RD |
5265 | #define wxFontList_GetCount(_swigobj) (_swigobj->GetCount()) |
5266 | static PyObject *_wrap_wxFontList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5267 | PyObject * _resultobj; | |
5268 | int _result; | |
5269 | wxFontList * _arg0; | |
5270 | PyObject * _argo0 = 0; | |
5271 | char *_kwnames[] = { "self", NULL }; | |
5272 | ||
5273 | self = self; | |
5274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFontList_GetCount",_kwnames,&_argo0)) | |
5275 | return NULL; | |
5276 | if (_argo0) { | |
5277 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5278 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) { | |
5279 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_GetCount. Expected _wxFontList_p."); | |
5280 | return NULL; | |
5281 | } | |
5282 | } | |
5283 | { | |
4268f798 | 5284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5285 | _result = (int )wxFontList_GetCount(_arg0); |
2f4e9287 | 5286 | |
4268f798 | 5287 | wxPyEndAllowThreads(__tstate); |
2f4e9287 RD |
5288 | if (PyErr_Occurred()) return NULL; |
5289 | } _resultobj = Py_BuildValue("i",_result); | |
5290 | return _resultobj; | |
5291 | } | |
5292 | ||
9416aa89 RD |
5293 | static void *SwigwxColourTowxObject(void *ptr) { |
5294 | wxColour *src; | |
5295 | wxObject *dest; | |
5296 | src = (wxColour *) ptr; | |
5297 | dest = (wxObject *) src; | |
5298 | return (void *) dest; | |
5299 | } | |
5300 | ||
8ab979d7 | 5301 | #define new_wxColour(_swigarg0,_swigarg1,_swigarg2) (new wxColour(_swigarg0,_swigarg1,_swigarg2)) |
1afc06c2 | 5302 | static PyObject *_wrap_new_wxColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5303 | PyObject * _resultobj; |
5304 | wxColour * _result; | |
1d99702e RD |
5305 | unsigned char _arg0 = (unsigned char ) 0; |
5306 | unsigned char _arg1 = (unsigned char ) 0; | |
5307 | unsigned char _arg2 = (unsigned char ) 0; | |
1afc06c2 | 5308 | char *_kwnames[] = { "red","green","blue", NULL }; |
8ab979d7 RD |
5309 | char _ptemp[128]; |
5310 | ||
5311 | self = self; | |
1afc06c2 | 5312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|bbb:new_wxColour",_kwnames,&_arg0,&_arg1,&_arg2)) |
8ab979d7 | 5313 | return NULL; |
cf694132 | 5314 | { |
4268f798 | 5315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5316 | _result = (wxColour *)new_wxColour(_arg0,_arg1,_arg2); |
cf694132 | 5317 | |
4268f798 | 5318 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5319 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
5320 | } if (_result) { |
5321 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
5322 | _resultobj = Py_BuildValue("s",_ptemp); | |
5323 | } else { | |
5324 | Py_INCREF(Py_None); | |
5325 | _resultobj = Py_None; | |
5326 | } | |
8ab979d7 RD |
5327 | return _resultobj; |
5328 | } | |
5329 | ||
5330 | #define delete_wxColour(_swigobj) (delete _swigobj) | |
1afc06c2 | 5331 | static PyObject *_wrap_delete_wxColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5332 | PyObject * _resultobj; |
5333 | wxColour * _arg0; | |
f6bcfd97 BP |
5334 | wxColour temp; |
5335 | PyObject * _obj0 = 0; | |
1afc06c2 | 5336 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5337 | |
5338 | self = self; | |
f6bcfd97 | 5339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxColour",_kwnames,&_obj0)) |
8ab979d7 | 5340 | return NULL; |
f6bcfd97 BP |
5341 | { |
5342 | _arg0 = &temp; | |
5343 | if (! wxColour_helper(_obj0, &_arg0)) | |
8ab979d7 | 5344 | return NULL; |
f6bcfd97 | 5345 | } |
cf694132 | 5346 | { |
4268f798 | 5347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5348 | delete_wxColour(_arg0); |
cf694132 | 5349 | |
4268f798 | 5350 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5351 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5352 | } Py_INCREF(Py_None); |
8ab979d7 RD |
5353 | _resultobj = Py_None; |
5354 | return _resultobj; | |
5355 | } | |
5356 | ||
5357 | #define wxColour_Red(_swigobj) (_swigobj->Red()) | |
1afc06c2 | 5358 | static PyObject *_wrap_wxColour_Red(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5359 | PyObject * _resultobj; |
5360 | unsigned char _result; | |
5361 | wxColour * _arg0; | |
f6bcfd97 BP |
5362 | wxColour temp; |
5363 | PyObject * _obj0 = 0; | |
1afc06c2 | 5364 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5365 | |
5366 | self = self; | |
f6bcfd97 | 5367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Red",_kwnames,&_obj0)) |
8ab979d7 | 5368 | return NULL; |
f6bcfd97 BP |
5369 | { |
5370 | _arg0 = &temp; | |
5371 | if (! wxColour_helper(_obj0, &_arg0)) | |
8ab979d7 | 5372 | return NULL; |
f6bcfd97 | 5373 | } |
cf694132 | 5374 | { |
4268f798 | 5375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5376 | _result = (unsigned char )wxColour_Red(_arg0); |
cf694132 | 5377 | |
4268f798 | 5378 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5379 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5380 | } _resultobj = Py_BuildValue("b",_result); |
8ab979d7 RD |
5381 | return _resultobj; |
5382 | } | |
5383 | ||
5384 | #define wxColour_Green(_swigobj) (_swigobj->Green()) | |
1afc06c2 | 5385 | static PyObject *_wrap_wxColour_Green(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5386 | PyObject * _resultobj; |
5387 | unsigned char _result; | |
5388 | wxColour * _arg0; | |
f6bcfd97 BP |
5389 | wxColour temp; |
5390 | PyObject * _obj0 = 0; | |
1afc06c2 | 5391 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5392 | |
5393 | self = self; | |
f6bcfd97 | 5394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Green",_kwnames,&_obj0)) |
8ab979d7 | 5395 | return NULL; |
f6bcfd97 BP |
5396 | { |
5397 | _arg0 = &temp; | |
5398 | if (! wxColour_helper(_obj0, &_arg0)) | |
8ab979d7 | 5399 | return NULL; |
f6bcfd97 | 5400 | } |
cf694132 | 5401 | { |
4268f798 | 5402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5403 | _result = (unsigned char )wxColour_Green(_arg0); |
cf694132 | 5404 | |
4268f798 | 5405 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5406 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5407 | } _resultobj = Py_BuildValue("b",_result); |
8ab979d7 RD |
5408 | return _resultobj; |
5409 | } | |
5410 | ||
5411 | #define wxColour_Blue(_swigobj) (_swigobj->Blue()) | |
1afc06c2 | 5412 | static PyObject *_wrap_wxColour_Blue(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5413 | PyObject * _resultobj; |
5414 | unsigned char _result; | |
5415 | wxColour * _arg0; | |
f6bcfd97 BP |
5416 | wxColour temp; |
5417 | PyObject * _obj0 = 0; | |
1afc06c2 | 5418 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5419 | |
5420 | self = self; | |
f6bcfd97 | 5421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Blue",_kwnames,&_obj0)) |
8ab979d7 | 5422 | return NULL; |
f6bcfd97 BP |
5423 | { |
5424 | _arg0 = &temp; | |
5425 | if (! wxColour_helper(_obj0, &_arg0)) | |
8ab979d7 | 5426 | return NULL; |
f6bcfd97 | 5427 | } |
cf694132 | 5428 | { |
4268f798 | 5429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5430 | _result = (unsigned char )wxColour_Blue(_arg0); |
cf694132 | 5431 | |
4268f798 | 5432 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5433 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5434 | } _resultobj = Py_BuildValue("b",_result); |
8ab979d7 RD |
5435 | return _resultobj; |
5436 | } | |
5437 | ||
5438 | #define wxColour_Ok(_swigobj) (_swigobj->Ok()) | |
1afc06c2 | 5439 | static PyObject *_wrap_wxColour_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5440 | PyObject * _resultobj; |
5441 | bool _result; | |
5442 | wxColour * _arg0; | |
f6bcfd97 BP |
5443 | wxColour temp; |
5444 | PyObject * _obj0 = 0; | |
1afc06c2 | 5445 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5446 | |
5447 | self = self; | |
f6bcfd97 | 5448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Ok",_kwnames,&_obj0)) |
8ab979d7 | 5449 | return NULL; |
f6bcfd97 BP |
5450 | { |
5451 | _arg0 = &temp; | |
5452 | if (! wxColour_helper(_obj0, &_arg0)) | |
8ab979d7 | 5453 | return NULL; |
f6bcfd97 | 5454 | } |
cf694132 | 5455 | { |
4268f798 | 5456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5457 | _result = (bool )wxColour_Ok(_arg0); |
cf694132 | 5458 | |
4268f798 | 5459 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5460 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5461 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5462 | return _resultobj; |
5463 | } | |
5464 | ||
5465 | #define wxColour_Set(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Set(_swigarg0,_swigarg1,_swigarg2)) | |
1afc06c2 | 5466 | static PyObject *_wrap_wxColour_Set(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5467 | PyObject * _resultobj; |
5468 | wxColour * _arg0; | |
5469 | unsigned char _arg1; | |
5470 | unsigned char _arg2; | |
5471 | unsigned char _arg3; | |
f6bcfd97 BP |
5472 | wxColour temp; |
5473 | PyObject * _obj0 = 0; | |
1afc06c2 | 5474 | char *_kwnames[] = { "self","red","green","blue", NULL }; |
8ab979d7 RD |
5475 | |
5476 | self = self; | |
f6bcfd97 | 5477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Obbb:wxColour_Set",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3)) |
8ab979d7 | 5478 | return NULL; |
f6bcfd97 BP |
5479 | { |
5480 | _arg0 = &temp; | |
5481 | if (! wxColour_helper(_obj0, &_arg0)) | |
8ab979d7 | 5482 | return NULL; |
f6bcfd97 | 5483 | } |
cf694132 | 5484 | { |
4268f798 | 5485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5486 | wxColour_Set(_arg0,_arg1,_arg2,_arg3); |
cf694132 | 5487 | |
4268f798 | 5488 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5489 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5490 | } Py_INCREF(Py_None); |
8ab979d7 RD |
5491 | _resultobj = Py_None; |
5492 | return _resultobj; | |
5493 | } | |
5494 | ||
5495 | static PyObject * wxColour_Get(wxColour *self) { | |
5496 | PyObject* rv = PyTuple_New(3); | |
5497 | PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red())); | |
5498 | PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green())); | |
5499 | PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue())); | |
5500 | return rv; | |
5501 | } | |
1afc06c2 | 5502 | static PyObject *_wrap_wxColour_Get(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5503 | PyObject * _resultobj; |
5504 | PyObject * _result; | |
5505 | wxColour * _arg0; | |
f6bcfd97 BP |
5506 | wxColour temp; |
5507 | PyObject * _obj0 = 0; | |
1afc06c2 | 5508 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5509 | |
5510 | self = self; | |
f6bcfd97 | 5511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Get",_kwnames,&_obj0)) |
8ab979d7 | 5512 | return NULL; |
f6bcfd97 BP |
5513 | { |
5514 | _arg0 = &temp; | |
5515 | if (! wxColour_helper(_obj0, &_arg0)) | |
8ab979d7 | 5516 | return NULL; |
f6bcfd97 | 5517 | } |
8ab979d7 | 5518 | { |
4268f798 | 5519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5520 | _result = (PyObject *)wxColour_Get(_arg0); |
cf694132 | 5521 | |
4268f798 | 5522 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5523 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5524 | }{ |
8ab979d7 RD |
5525 | _resultobj = _result; |
5526 | } | |
5527 | return _resultobj; | |
5528 | } | |
5529 | ||
9416aa89 RD |
5530 | static void *SwigwxColourDatabaseTowxObject(void *ptr) { |
5531 | wxColourDatabase *src; | |
5532 | wxObject *dest; | |
5533 | src = (wxColourDatabase *) ptr; | |
5534 | dest = (wxObject *) src; | |
5535 | return (void *) dest; | |
5536 | } | |
5537 | ||
0569df0f RD |
5538 | #define wxColourDatabase_FindColour(_swigobj,_swigarg0) (_swigobj->FindColour(_swigarg0)) |
5539 | static PyObject *_wrap_wxColourDatabase_FindColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5540 | PyObject * _resultobj; | |
5541 | wxColour * _result; | |
5542 | wxColourDatabase * _arg0; | |
5543 | wxString * _arg1; | |
5544 | PyObject * _argo0 = 0; | |
5545 | PyObject * _obj1 = 0; | |
5546 | char *_kwnames[] = { "self","colour", NULL }; | |
5547 | char _ptemp[128]; | |
5548 | ||
5549 | self = self; | |
5550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxColourDatabase_FindColour",_kwnames,&_argo0,&_obj1)) | |
5551 | return NULL; | |
5552 | if (_argo0) { | |
5553 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5554 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) { | |
5555 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_FindColour. Expected _wxColourDatabase_p."); | |
5556 | return NULL; | |
8ab979d7 | 5557 | } |
0569df0f RD |
5558 | } |
5559 | { | |
c8bc7bb8 RD |
5560 | _arg1 = wxString_in_helper(_obj1); |
5561 | if (_arg1 == NULL) | |
0569df0f | 5562 | return NULL; |
0569df0f RD |
5563 | } |
5564 | { | |
4268f798 | 5565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5566 | _result = (wxColour *)wxColourDatabase_FindColour(_arg0,*_arg1); |
8ab979d7 | 5567 | |
4268f798 | 5568 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5569 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
5570 | } if (_result) { |
5571 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
5572 | _resultobj = Py_BuildValue("s",_ptemp); | |
5573 | } else { | |
5574 | Py_INCREF(Py_None); | |
5575 | _resultobj = Py_None; | |
5576 | } | |
5577 | { | |
5578 | if (_obj1) | |
5579 | delete _arg1; | |
5580 | } | |
5581 | return _resultobj; | |
5582 | } | |
5583 | ||
5584 | #define wxColourDatabase_FindName(_swigobj,_swigarg0) (_swigobj->FindName(_swigarg0)) | |
5585 | static PyObject *_wrap_wxColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5586 | PyObject * _resultobj; | |
5587 | wxString * _result; | |
5588 | wxColourDatabase * _arg0; | |
5589 | wxColour * _arg1; | |
5590 | PyObject * _argo0 = 0; | |
5591 | wxColour temp; | |
5592 | PyObject * _obj1 = 0; | |
5593 | char *_kwnames[] = { "self","colour", NULL }; | |
5594 | ||
5595 | self = self; | |
5596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxColourDatabase_FindName",_kwnames,&_argo0,&_obj1)) | |
5597 | return NULL; | |
5598 | if (_argo0) { | |
5599 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5600 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) { | |
5601 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_FindName. Expected _wxColourDatabase_p."); | |
5602 | return NULL; | |
5603 | } | |
5604 | } | |
5605 | { | |
5606 | _arg1 = &temp; | |
5607 | if (! wxColour_helper(_obj1, &_arg1)) | |
5608 | return NULL; | |
5609 | } | |
5610 | { | |
4268f798 | 5611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5612 | _result = new wxString (wxColourDatabase_FindName(_arg0,*_arg1)); |
0569df0f | 5613 | |
4268f798 | 5614 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5615 | if (PyErr_Occurred()) return NULL; |
0569df0f | 5616 | }{ |
c8bc7bb8 RD |
5617 | #if wxUSE_UNICODE |
5618 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
5619 | #else | |
0569df0f | 5620 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 5621 | #endif |
0569df0f RD |
5622 | } |
5623 | { | |
5624 | delete _result; | |
5625 | } | |
5626 | return _resultobj; | |
5627 | } | |
5628 | ||
5629 | static void wxColourDatabase_Append(wxColourDatabase *self,const wxString & name,int red,int green,int blue) { | |
fe40185d RD |
5630 | // first see if the name is already there |
5631 | wxString cName = name; | |
5632 | cName.MakeUpper(); | |
5633 | wxString cName2 = cName; | |
a541c325 | 5634 | if ( !cName2.Replace(wxT("GRAY"), wxT("GREY")) ) |
fe40185d RD |
5635 | cName2.clear(); |
5636 | ||
5637 | wxNode *node = self->First(); | |
5638 | while ( node ) { | |
5639 | const wxChar *key = node->GetKeyString(); | |
5640 | if ( cName == key || cName2 == key ) { | |
5641 | wxColour* c = (wxColour *)node->Data(); | |
5642 | c->Set(red, green, blue); | |
5643 | return; | |
5644 | } | |
5645 | node = node->Next(); | |
5646 | } | |
5647 | ||
5648 | // otherwise append the new colour | |
0569df0f RD |
5649 | self->Append(name.c_str(), new wxColour(red, green, blue)); |
5650 | } | |
5651 | static PyObject *_wrap_wxColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5652 | PyObject * _resultobj; | |
5653 | wxColourDatabase * _arg0; | |
5654 | wxString * _arg1; | |
5655 | int _arg2; | |
5656 | int _arg3; | |
5657 | int _arg4; | |
5658 | PyObject * _argo0 = 0; | |
5659 | PyObject * _obj1 = 0; | |
5660 | char *_kwnames[] = { "self","name","red","green","blue", NULL }; | |
5661 | ||
5662 | self = self; | |
5663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiii:wxColourDatabase_Append",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_arg4)) | |
5664 | return NULL; | |
5665 | if (_argo0) { | |
5666 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5667 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) { | |
5668 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_Append. Expected _wxColourDatabase_p."); | |
5669 | return NULL; | |
5670 | } | |
5671 | } | |
5672 | { | |
c8bc7bb8 RD |
5673 | _arg1 = wxString_in_helper(_obj1); |
5674 | if (_arg1 == NULL) | |
0569df0f | 5675 | return NULL; |
0569df0f RD |
5676 | } |
5677 | { | |
4268f798 | 5678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5679 | wxColourDatabase_Append(_arg0,*_arg1,_arg2,_arg3,_arg4); |
0569df0f | 5680 | |
4268f798 | 5681 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5682 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
5683 | } Py_INCREF(Py_None); |
5684 | _resultobj = Py_None; | |
5685 | { | |
5686 | if (_obj1) | |
5687 | delete _arg1; | |
5688 | } | |
5689 | return _resultobj; | |
5690 | } | |
5691 | ||
9416aa89 RD |
5692 | static void *SwigwxPenTowxGDIObject(void *ptr) { |
5693 | wxPen *src; | |
5694 | wxGDIObject *dest; | |
5695 | src = (wxPen *) ptr; | |
5696 | dest = (wxGDIObject *) src; | |
5697 | return (void *) dest; | |
5698 | } | |
5699 | ||
5700 | static void *SwigwxPenTowxObject(void *ptr) { | |
5701 | wxPen *src; | |
5702 | wxObject *dest; | |
5703 | src = (wxPen *) ptr; | |
5704 | dest = (wxObject *) src; | |
5705 | return (void *) dest; | |
5706 | } | |
5707 | ||
0569df0f | 5708 | #define new_wxPen(_swigarg0,_swigarg1,_swigarg2) (new wxPen(_swigarg0,_swigarg1,_swigarg2)) |
1afc06c2 | 5709 | static PyObject *_wrap_new_wxPen(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5710 | PyObject * _resultobj; |
5711 | wxPen * _result; | |
5712 | wxColour * _arg0; | |
1d99702e RD |
5713 | int _arg1 = (int ) 1; |
5714 | int _arg2 = (int ) wxSOLID; | |
f6bcfd97 BP |
5715 | wxColour temp; |
5716 | PyObject * _obj0 = 0; | |
1afc06c2 | 5717 | char *_kwnames[] = { "colour","width","style", NULL }; |
8ab979d7 RD |
5718 | char _ptemp[128]; |
5719 | ||
5720 | self = self; | |
f6bcfd97 | 5721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:new_wxPen",_kwnames,&_obj0,&_arg1,&_arg2)) |
8ab979d7 | 5722 | return NULL; |
f6bcfd97 BP |
5723 | { |
5724 | _arg0 = &temp; | |
5725 | if (! wxColour_helper(_obj0, &_arg0)) | |
8ab979d7 | 5726 | return NULL; |
f6bcfd97 | 5727 | } |
cf694132 | 5728 | { |
4268f798 | 5729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5730 | _result = (wxPen *)new_wxPen(*_arg0,_arg1,_arg2); |
cf694132 | 5731 | |
4268f798 | 5732 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5733 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
5734 | } if (_result) { |
5735 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPen_p"); | |
5736 | _resultobj = Py_BuildValue("s",_ptemp); | |
5737 | } else { | |
5738 | Py_INCREF(Py_None); | |
5739 | _resultobj = Py_None; | |
5740 | } | |
8ab979d7 RD |
5741 | return _resultobj; |
5742 | } | |
5743 | ||
0569df0f RD |
5744 | #define delete_wxPen(_swigobj) (delete _swigobj) |
5745 | static PyObject *_wrap_delete_wxPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5746 | PyObject * _resultobj; | |
5747 | wxPen * _arg0; | |
5748 | PyObject * _argo0 = 0; | |
5749 | char *_kwnames[] = { "self", NULL }; | |
5750 | ||
5751 | self = self; | |
5752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPen",_kwnames,&_argo0)) | |
5753 | return NULL; | |
5754 | if (_argo0) { | |
5755 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5756 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
5757 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPen. Expected _wxPen_p."); | |
5758 | return NULL; | |
5759 | } | |
5760 | } | |
5761 | { | |
4268f798 | 5762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5763 | delete_wxPen(_arg0); |
0569df0f | 5764 | |
4268f798 | 5765 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5766 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
5767 | } Py_INCREF(Py_None); |
5768 | _resultobj = Py_None; | |
5769 | return _resultobj; | |
5770 | } | |
5771 | ||
8ab979d7 | 5772 | #define wxPen_GetCap(_swigobj) (_swigobj->GetCap()) |
1afc06c2 | 5773 | static PyObject *_wrap_wxPen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5774 | PyObject * _resultobj; |
5775 | int _result; | |
5776 | wxPen * _arg0; | |
1d99702e | 5777 | PyObject * _argo0 = 0; |
1afc06c2 | 5778 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5779 | |
5780 | self = self; | |
1afc06c2 | 5781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetCap",_kwnames,&_argo0)) |
8ab979d7 | 5782 | return NULL; |
1d99702e RD |
5783 | if (_argo0) { |
5784 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5785 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
8ab979d7 RD |
5786 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetCap. Expected _wxPen_p."); |
5787 | return NULL; | |
5788 | } | |
5789 | } | |
cf694132 | 5790 | { |
4268f798 | 5791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5792 | _result = (int )wxPen_GetCap(_arg0); |
cf694132 | 5793 | |
4268f798 | 5794 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5795 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5796 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5797 | return _resultobj; |
5798 | } | |
5799 | ||
5800 | #define wxPen_GetColour(_swigobj) (_swigobj->GetColour()) | |
1afc06c2 | 5801 | static PyObject *_wrap_wxPen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5802 | PyObject * _resultobj; |
5803 | wxColour * _result; | |
5804 | wxPen * _arg0; | |
1d99702e | 5805 | PyObject * _argo0 = 0; |
1afc06c2 | 5806 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5807 | char _ptemp[128]; |
5808 | ||
5809 | self = self; | |
1afc06c2 | 5810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetColour",_kwnames,&_argo0)) |
8ab979d7 | 5811 | return NULL; |
1d99702e RD |
5812 | if (_argo0) { |
5813 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5814 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
8ab979d7 RD |
5815 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetColour. Expected _wxPen_p."); |
5816 | return NULL; | |
5817 | } | |
5818 | } | |
cf694132 | 5819 | { |
4268f798 | 5820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5821 | _result = new wxColour (wxPen_GetColour(_arg0)); |
cf694132 | 5822 | |
4268f798 | 5823 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5824 | if (PyErr_Occurred()) return NULL; |
25832b3f RD |
5825 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
5826 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
5827 | return _resultobj; |
5828 | } | |
5829 | ||
8ab979d7 | 5830 | #define wxPen_GetJoin(_swigobj) (_swigobj->GetJoin()) |
1afc06c2 | 5831 | static PyObject *_wrap_wxPen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5832 | PyObject * _resultobj; |
5833 | int _result; | |
5834 | wxPen * _arg0; | |
1d99702e | 5835 | PyObject * _argo0 = 0; |
1afc06c2 | 5836 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5837 | |
5838 | self = self; | |
1afc06c2 | 5839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetJoin",_kwnames,&_argo0)) |
8ab979d7 | 5840 | return NULL; |
1d99702e RD |
5841 | if (_argo0) { |
5842 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5843 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
8ab979d7 RD |
5844 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetJoin. Expected _wxPen_p."); |
5845 | return NULL; | |
5846 | } | |
5847 | } | |
cf694132 | 5848 | { |
4268f798 | 5849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5850 | _result = (int )wxPen_GetJoin(_arg0); |
cf694132 | 5851 | |
4268f798 | 5852 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5853 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5854 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5855 | return _resultobj; |
5856 | } | |
5857 | ||
5858 | #define wxPen_GetStyle(_swigobj) (_swigobj->GetStyle()) | |
1afc06c2 | 5859 | static PyObject *_wrap_wxPen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5860 | PyObject * _resultobj; |
5861 | int _result; | |
5862 | wxPen * _arg0; | |
1d99702e | 5863 | PyObject * _argo0 = 0; |
1afc06c2 | 5864 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5865 | |
5866 | self = self; | |
1afc06c2 | 5867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetStyle",_kwnames,&_argo0)) |
8ab979d7 | 5868 | return NULL; |
1d99702e RD |
5869 | if (_argo0) { |
5870 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5871 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
8ab979d7 RD |
5872 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetStyle. Expected _wxPen_p."); |
5873 | return NULL; | |
5874 | } | |
5875 | } | |
cf694132 | 5876 | { |
4268f798 | 5877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5878 | _result = (int )wxPen_GetStyle(_arg0); |
cf694132 | 5879 | |
4268f798 | 5880 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5881 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5882 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5883 | return _resultobj; |
5884 | } | |
5885 | ||
5886 | #define wxPen_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
1afc06c2 | 5887 | static PyObject *_wrap_wxPen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5888 | PyObject * _resultobj; |
5889 | int _result; | |
5890 | wxPen * _arg0; | |
1d99702e | 5891 | PyObject * _argo0 = 0; |
1afc06c2 | 5892 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5893 | |
5894 | self = self; | |
1afc06c2 | 5895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetWidth",_kwnames,&_argo0)) |
8ab979d7 | 5896 | return NULL; |
1d99702e RD |
5897 | if (_argo0) { |
5898 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5899 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
8ab979d7 RD |
5900 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetWidth. Expected _wxPen_p."); |
5901 | return NULL; | |
5902 | } | |
5903 | } | |
cf694132 | 5904 | { |
4268f798 | 5905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5906 | _result = (int )wxPen_GetWidth(_arg0); |
cf694132 | 5907 | |
4268f798 | 5908 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5909 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5910 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5911 | return _resultobj; |
5912 | } | |
5913 | ||
5914 | #define wxPen_Ok(_swigobj) (_swigobj->Ok()) | |
1afc06c2 | 5915 | static PyObject *_wrap_wxPen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5916 | PyObject * _resultobj; |
5917 | bool _result; | |
5918 | wxPen * _arg0; | |
1d99702e | 5919 | PyObject * _argo0 = 0; |
1afc06c2 | 5920 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5921 | |
5922 | self = self; | |
1afc06c2 | 5923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_Ok",_kwnames,&_argo0)) |
8ab979d7 | 5924 | return NULL; |
1d99702e RD |
5925 | if (_argo0) { |
5926 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5927 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
8ab979d7 RD |
5928 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_Ok. Expected _wxPen_p."); |
5929 | return NULL; | |
5930 | } | |
5931 | } | |
cf694132 | 5932 | { |
4268f798 | 5933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5934 | _result = (bool )wxPen_Ok(_arg0); |
cf694132 | 5935 | |
4268f798 | 5936 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5937 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5938 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5939 | return _resultobj; |
5940 | } | |
5941 | ||
5942 | #define wxPen_SetCap(_swigobj,_swigarg0) (_swigobj->SetCap(_swigarg0)) | |
1afc06c2 | 5943 | static PyObject *_wrap_wxPen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5944 | PyObject * _resultobj; |
5945 | wxPen * _arg0; | |
5946 | int _arg1; | |
1d99702e | 5947 | PyObject * _argo0 = 0; |
1afc06c2 | 5948 | char *_kwnames[] = { "self","cap_style", NULL }; |
8ab979d7 RD |
5949 | |
5950 | self = self; | |
1afc06c2 | 5951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetCap",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 5952 | return NULL; |
1d99702e RD |
5953 | if (_argo0) { |
5954 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5955 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
8ab979d7 RD |
5956 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetCap. Expected _wxPen_p."); |
5957 | return NULL; | |
5958 | } | |
5959 | } | |
cf694132 | 5960 | { |
4268f798 | 5961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5962 | wxPen_SetCap(_arg0,_arg1); |
cf694132 | 5963 | |
4268f798 | 5964 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5965 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5966 | } Py_INCREF(Py_None); |
8ab979d7 RD |
5967 | _resultobj = Py_None; |
5968 | return _resultobj; | |
5969 | } | |
5970 | ||
5971 | #define wxPen_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0)) | |
1afc06c2 | 5972 | static PyObject *_wrap_wxPen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5973 | PyObject * _resultobj; |
5974 | wxPen * _arg0; | |
5975 | wxColour * _arg1; | |
1d99702e | 5976 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
5977 | wxColour temp; |
5978 | PyObject * _obj1 = 0; | |
1afc06c2 | 5979 | char *_kwnames[] = { "self","colour", NULL }; |
8ab979d7 RD |
5980 | |
5981 | self = self; | |
f6bcfd97 | 5982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_SetColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 5983 | return NULL; |
1d99702e RD |
5984 | if (_argo0) { |
5985 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5986 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
8ab979d7 RD |
5987 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetColour. Expected _wxPen_p."); |
5988 | return NULL; | |
5989 | } | |
5990 | } | |
f6bcfd97 BP |
5991 | { |
5992 | _arg1 = &temp; | |
5993 | if (! wxColour_helper(_obj1, &_arg1)) | |
8ab979d7 | 5994 | return NULL; |
f6bcfd97 | 5995 | } |
cf694132 | 5996 | { |
4268f798 | 5997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5998 | wxPen_SetColour(_arg0,*_arg1); |
cf694132 | 5999 | |
4268f798 | 6000 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6001 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6002 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6003 | _resultobj = Py_None; |
6004 | return _resultobj; | |
6005 | } | |
6006 | ||
2ea09579 | 6007 | #define wxPen_SetJoin(_swigobj,_swigarg0) (_swigobj->SetJoin(_swigarg0)) |
1afc06c2 | 6008 | static PyObject *_wrap_wxPen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6009 | PyObject * _resultobj; |
6010 | wxPen * _arg0; | |
6011 | int _arg1; | |
1d99702e | 6012 | PyObject * _argo0 = 0; |
1afc06c2 | 6013 | char *_kwnames[] = { "self","join_style", NULL }; |
8ab979d7 RD |
6014 | |
6015 | self = self; | |
1afc06c2 | 6016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetJoin",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 6017 | return NULL; |
1d99702e RD |
6018 | if (_argo0) { |
6019 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6020 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
2ea09579 | 6021 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetJoin. Expected _wxPen_p."); |
8ab979d7 RD |
6022 | return NULL; |
6023 | } | |
6024 | } | |
cf694132 | 6025 | { |
4268f798 | 6026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6027 | wxPen_SetJoin(_arg0,_arg1); |
cf694132 | 6028 | |
4268f798 | 6029 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6030 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6031 | } Py_INCREF(Py_None); |
2ea09579 RD |
6032 | _resultobj = Py_None; |
6033 | return _resultobj; | |
6034 | } | |
6035 | ||
6036 | #define wxPen_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0)) | |
1afc06c2 | 6037 | static PyObject *_wrap_wxPen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { |
2ea09579 RD |
6038 | PyObject * _resultobj; |
6039 | wxPen * _arg0; | |
6040 | int _arg1; | |
1d99702e | 6041 | PyObject * _argo0 = 0; |
1afc06c2 | 6042 | char *_kwnames[] = { "self","style", NULL }; |
2ea09579 RD |
6043 | |
6044 | self = self; | |
1afc06c2 | 6045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetStyle",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 6046 | return NULL; |
1d99702e RD |
6047 | if (_argo0) { |
6048 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6049 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
2ea09579 RD |
6050 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetStyle. Expected _wxPen_p."); |
6051 | return NULL; | |
6052 | } | |
8ab979d7 | 6053 | } |
cf694132 | 6054 | { |
4268f798 | 6055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6056 | wxPen_SetStyle(_arg0,_arg1); |
cf694132 | 6057 | |
4268f798 | 6058 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6059 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6060 | } Py_INCREF(Py_None); |
8ab979d7 | 6061 | _resultobj = Py_None; |
2ea09579 | 6062 | return _resultobj; |
8ab979d7 | 6063 | } |
2ea09579 RD |
6064 | |
6065 | #define wxPen_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0)) | |
1afc06c2 | 6066 | static PyObject *_wrap_wxPen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
2ea09579 RD |
6067 | PyObject * _resultobj; |
6068 | wxPen * _arg0; | |
6069 | int _arg1; | |
1d99702e | 6070 | PyObject * _argo0 = 0; |
1afc06c2 | 6071 | char *_kwnames[] = { "self","width", NULL }; |
2ea09579 RD |
6072 | |
6073 | self = self; | |
1afc06c2 | 6074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetWidth",_kwnames,&_argo0,&_arg1)) |
2ea09579 | 6075 | return NULL; |
1d99702e RD |
6076 | if (_argo0) { |
6077 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6078 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
2ea09579 RD |
6079 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetWidth. Expected _wxPen_p."); |
6080 | return NULL; | |
6081 | } | |
6082 | } | |
cf694132 | 6083 | { |
4268f798 | 6084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6085 | wxPen_SetWidth(_arg0,_arg1); |
cf694132 | 6086 | |
4268f798 | 6087 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6088 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6089 | } Py_INCREF(Py_None); |
2ea09579 | 6090 | _resultobj = Py_None; |
8ab979d7 RD |
6091 | return _resultobj; |
6092 | } | |
6093 | ||
2ea09579 | 6094 | #define wxPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1)) |
1afc06c2 | 6095 | static PyObject *_wrap_wxPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6096 | PyObject * _resultobj; |
6097 | wxPen * _arg0; | |
6098 | int _arg1; | |
2ea09579 | 6099 | wxDash * _arg2; |
1d99702e | 6100 | PyObject * _argo0 = 0; |
2ea09579 | 6101 | PyObject * _obj2 = 0; |
eec92d76 | 6102 | char *_kwnames[] = { "self","choices", NULL }; |
8ab979d7 RD |
6103 | |
6104 | self = self; | |
1afc06c2 | 6105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_SetDashes",_kwnames,&_argo0,&_obj2)) |
8ab979d7 | 6106 | return NULL; |
1d99702e RD |
6107 | if (_argo0) { |
6108 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6109 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
2ea09579 | 6110 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetDashes. Expected _wxPen_p."); |
8ab979d7 RD |
6111 | return NULL; |
6112 | } | |
6113 | } | |
2ea09579 RD |
6114 | if (_obj2) |
6115 | { | |
f6bcfd97 | 6116 | _arg2 = (wxDash*)byte_LIST_helper(_obj2); |
2ea09579 RD |
6117 | if (_arg2 == NULL) { |
6118 | return NULL; | |
6119 | } | |
6120 | } | |
6121 | { | |
cf694132 RD |
6122 | if (_obj2) { |
6123 | _arg1 = PyList_Size(_obj2); | |
6124 | } | |
6125 | else { | |
6126 | _arg1 = 0; | |
6127 | } | |
2ea09579 | 6128 | } |
cf694132 | 6129 | { |
4268f798 | 6130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6131 | wxPen_SetDashes(_arg0,_arg1,_arg2); |
cf694132 | 6132 | |
4268f798 | 6133 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6134 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6135 | } Py_INCREF(Py_None); |
8ab979d7 | 6136 | _resultobj = Py_None; |
2ea09579 RD |
6137 | { |
6138 | delete [] _arg2; | |
6139 | } | |
8ab979d7 RD |
6140 | return _resultobj; |
6141 | } | |
6142 | ||
6999b0d8 RD |
6143 | #define wxPen_GetStipple(_swigobj) (_swigobj->GetStipple()) |
6144 | static PyObject *_wrap_wxPen_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6145 | PyObject * _resultobj; | |
6146 | wxBitmap * _result; | |
6147 | wxPen * _arg0; | |
6148 | PyObject * _argo0 = 0; | |
6149 | char *_kwnames[] = { "self", NULL }; | |
6150 | char _ptemp[128]; | |
6151 | ||
6152 | self = self; | |
6153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetStipple",_kwnames,&_argo0)) | |
6154 | return NULL; | |
6155 | if (_argo0) { | |
6156 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6157 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
6158 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetStipple. Expected _wxPen_p."); | |
6159 | return NULL; | |
6160 | } | |
6161 | } | |
6162 | { | |
4268f798 | 6163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6164 | _result = (wxBitmap *)wxPen_GetStipple(_arg0); |
6999b0d8 | 6165 | |
4268f798 | 6166 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6167 | if (PyErr_Occurred()) return NULL; |
6999b0d8 RD |
6168 | } if (_result) { |
6169 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
6170 | _resultobj = Py_BuildValue("s",_ptemp); | |
6171 | } else { | |
6172 | Py_INCREF(Py_None); | |
6173 | _resultobj = Py_None; | |
6174 | } | |
6175 | return _resultobj; | |
6176 | } | |
6177 | ||
2ea09579 | 6178 | #define wxPen_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0)) |
1afc06c2 | 6179 | static PyObject *_wrap_wxPen_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6180 | PyObject * _resultobj; |
6181 | wxPen * _arg0; | |
2ea09579 | 6182 | wxBitmap * _arg1; |
1d99702e RD |
6183 | PyObject * _argo0 = 0; |
6184 | PyObject * _argo1 = 0; | |
1afc06c2 | 6185 | char *_kwnames[] = { "self","stipple", NULL }; |
8ab979d7 RD |
6186 | |
6187 | self = self; | |
1afc06c2 | 6188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_SetStipple",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6189 | return NULL; |
1d99702e RD |
6190 | if (_argo0) { |
6191 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6192 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
2ea09579 | 6193 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetStipple. Expected _wxPen_p."); |
8ab979d7 RD |
6194 | return NULL; |
6195 | } | |
6196 | } | |
1d99702e RD |
6197 | if (_argo1) { |
6198 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6199 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
2ea09579 RD |
6200 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPen_SetStipple. Expected _wxBitmap_p."); |
6201 | return NULL; | |
6202 | } | |
6203 | } | |
cf694132 | 6204 | { |
4268f798 | 6205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6206 | wxPen_SetStipple(_arg0,*_arg1); |
cf694132 | 6207 | |
4268f798 | 6208 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6209 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6210 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6211 | _resultobj = Py_None; |
6212 | return _resultobj; | |
6213 | } | |
6214 | ||
ecc08ead RD |
6215 | static void *SwigwxPyPenTowxPen(void *ptr) { |
6216 | wxPyPen *src; | |
6217 | wxPen *dest; | |
6218 | src = (wxPyPen *) ptr; | |
6219 | dest = (wxPen *) src; | |
6220 | return (void *) dest; | |
6221 | } | |
6222 | ||
6223 | static void *SwigwxPyPenTowxGDIObject(void *ptr) { | |
6224 | wxPyPen *src; | |
6225 | wxGDIObject *dest; | |
6226 | src = (wxPyPen *) ptr; | |
6227 | dest = (wxGDIObject *) src; | |
6228 | return (void *) dest; | |
6229 | } | |
6230 | ||
6231 | static void *SwigwxPyPenTowxObject(void *ptr) { | |
6232 | wxPyPen *src; | |
6233 | wxObject *dest; | |
6234 | src = (wxPyPen *) ptr; | |
6235 | dest = (wxObject *) src; | |
6236 | return (void *) dest; | |
6237 | } | |
6238 | ||
6239 | #define new_wxPyPen(_swigarg0,_swigarg1,_swigarg2) (new wxPyPen(_swigarg0,_swigarg1,_swigarg2)) | |
6240 | static PyObject *_wrap_new_wxPyPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6241 | PyObject * _resultobj; | |
6242 | wxPyPen * _result; | |
6243 | wxColour * _arg0; | |
6244 | int _arg1 = (int ) 1; | |
6245 | int _arg2 = (int ) wxSOLID; | |
6246 | wxColour temp; | |
6247 | PyObject * _obj0 = 0; | |
6248 | char *_kwnames[] = { "colour","width","style", NULL }; | |
6249 | char _ptemp[128]; | |
6250 | ||
6251 | self = self; | |
6252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:new_wxPyPen",_kwnames,&_obj0,&_arg1,&_arg2)) | |
6253 | return NULL; | |
6254 | { | |
6255 | _arg0 = &temp; | |
6256 | if (! wxColour_helper(_obj0, &_arg0)) | |
6257 | return NULL; | |
6258 | } | |
6259 | { | |
4268f798 | 6260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6261 | _result = (wxPyPen *)new_wxPyPen(*_arg0,_arg1,_arg2); |
ecc08ead | 6262 | |
4268f798 | 6263 | wxPyEndAllowThreads(__tstate); |
ecc08ead RD |
6264 | if (PyErr_Occurred()) return NULL; |
6265 | } if (_result) { | |
6266 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyPen_p"); | |
6267 | _resultobj = Py_BuildValue("s",_ptemp); | |
6268 | } else { | |
6269 | Py_INCREF(Py_None); | |
6270 | _resultobj = Py_None; | |
6271 | } | |
6272 | return _resultobj; | |
6273 | } | |
6274 | ||
6275 | #define delete_wxPyPen(_swigobj) (delete _swigobj) | |
6276 | static PyObject *_wrap_delete_wxPyPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6277 | PyObject * _resultobj; | |
6278 | wxPyPen * _arg0; | |
6279 | PyObject * _argo0 = 0; | |
6280 | char *_kwnames[] = { "self", NULL }; | |
6281 | ||
6282 | self = self; | |
6283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPyPen",_kwnames,&_argo0)) | |
6284 | return NULL; | |
6285 | if (_argo0) { | |
6286 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6287 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPen_p")) { | |
6288 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPyPen. Expected _wxPyPen_p."); | |
6289 | return NULL; | |
6290 | } | |
6291 | } | |
6292 | { | |
4268f798 | 6293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6294 | delete_wxPyPen(_arg0); |
ecc08ead | 6295 | |
4268f798 | 6296 | wxPyEndAllowThreads(__tstate); |
ecc08ead RD |
6297 | if (PyErr_Occurred()) return NULL; |
6298 | } Py_INCREF(Py_None); | |
6299 | _resultobj = Py_None; | |
6300 | return _resultobj; | |
6301 | } | |
6302 | ||
6303 | #define wxPyPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1)) | |
6304 | static PyObject *_wrap_wxPyPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6305 | PyObject * _resultobj; | |
6306 | wxPyPen * _arg0; | |
6307 | int _arg1; | |
6308 | wxDash * _arg2; | |
6309 | PyObject * _argo0 = 0; | |
6310 | PyObject * _obj2 = 0; | |
6311 | char *_kwnames[] = { "self","choices", NULL }; | |
6312 | ||
6313 | self = self; | |
6314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyPen_SetDashes",_kwnames,&_argo0,&_obj2)) | |
6315 | return NULL; | |
6316 | if (_argo0) { | |
6317 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6318 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPen_p")) { | |
6319 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyPen_SetDashes. Expected _wxPyPen_p."); | |
6320 | return NULL; | |
6321 | } | |
6322 | } | |
6323 | if (_obj2) | |
6324 | { | |
6325 | _arg2 = (wxDash*)byte_LIST_helper(_obj2); | |
6326 | if (_arg2 == NULL) { | |
6327 | return NULL; | |
6328 | } | |
6329 | } | |
6330 | { | |
6331 | if (_obj2) { | |
6332 | _arg1 = PyList_Size(_obj2); | |
6333 | } | |
6334 | else { | |
6335 | _arg1 = 0; | |
6336 | } | |
6337 | } | |
6338 | { | |
4268f798 | 6339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6340 | wxPyPen_SetDashes(_arg0,_arg1,_arg2); |
ecc08ead | 6341 | |
4268f798 | 6342 | wxPyEndAllowThreads(__tstate); |
ecc08ead RD |
6343 | if (PyErr_Occurred()) return NULL; |
6344 | } Py_INCREF(Py_None); | |
6345 | _resultobj = Py_None; | |
6346 | { | |
6347 | delete [] _arg2; | |
6348 | } | |
6349 | return _resultobj; | |
6350 | } | |
6351 | ||
9416aa89 RD |
6352 | static void *SwigwxPenListTowxObject(void *ptr) { |
6353 | wxPenList *src; | |
6354 | wxObject *dest; | |
6355 | src = (wxPenList *) ptr; | |
6356 | dest = (wxObject *) src; | |
6357 | return (void *) dest; | |
6358 | } | |
6359 | ||
0569df0f RD |
6360 | #define wxPenList_AddPen(_swigobj,_swigarg0) (_swigobj->AddPen(_swigarg0)) |
6361 | static PyObject *_wrap_wxPenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6362 | PyObject * _resultobj; | |
6363 | wxPenList * _arg0; | |
6364 | wxPen * _arg1; | |
6365 | PyObject * _argo0 = 0; | |
6366 | PyObject * _argo1 = 0; | |
6367 | char *_kwnames[] = { "self","pen", NULL }; | |
6368 | ||
6369 | self = self; | |
6370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPenList_AddPen",_kwnames,&_argo0,&_argo1)) | |
6371 | return NULL; | |
6372 | if (_argo0) { | |
6373 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6374 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) { | |
6375 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_AddPen. Expected _wxPenList_p."); | |
6376 | return NULL; | |
6377 | } | |
6378 | } | |
6379 | if (_argo1) { | |
6380 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6381 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) { | |
6382 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPenList_AddPen. Expected _wxPen_p."); | |
6383 | return NULL; | |
6384 | } | |
6385 | } | |
6386 | { | |
4268f798 | 6387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6388 | wxPenList_AddPen(_arg0,_arg1); |
0569df0f | 6389 | |
4268f798 | 6390 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6391 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
6392 | } Py_INCREF(Py_None); |
6393 | _resultobj = Py_None; | |
6394 | return _resultobj; | |
6395 | } | |
6396 | ||
6397 | #define wxPenList_FindOrCreatePen(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindOrCreatePen(_swigarg0,_swigarg1,_swigarg2)) | |
6398 | static PyObject *_wrap_wxPenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6399 | PyObject * _resultobj; | |
6400 | wxPen * _result; | |
6401 | wxPenList * _arg0; | |
6402 | wxColour * _arg1; | |
6403 | int _arg2; | |
6404 | int _arg3; | |
6405 | PyObject * _argo0 = 0; | |
6406 | wxColour temp; | |
6407 | PyObject * _obj1 = 0; | |
6408 | char *_kwnames[] = { "self","colour","width","style", NULL }; | |
6409 | char _ptemp[128]; | |
6410 | ||
6411 | self = self; | |
6412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii:wxPenList_FindOrCreatePen",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3)) | |
6413 | return NULL; | |
6414 | if (_argo0) { | |
6415 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6416 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) { | |
6417 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_FindOrCreatePen. Expected _wxPenList_p."); | |
6418 | return NULL; | |
6419 | } | |
6420 | } | |
6421 | { | |
6422 | _arg1 = &temp; | |
6423 | if (! wxColour_helper(_obj1, &_arg1)) | |
6424 | return NULL; | |
6425 | } | |
6426 | { | |
4268f798 | 6427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6428 | _result = (wxPen *)wxPenList_FindOrCreatePen(_arg0,*_arg1,_arg2,_arg3); |
0569df0f | 6429 | |
4268f798 | 6430 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6431 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
6432 | } if (_result) { |
6433 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPen_p"); | |
6434 | _resultobj = Py_BuildValue("s",_ptemp); | |
6435 | } else { | |
6436 | Py_INCREF(Py_None); | |
6437 | _resultobj = Py_None; | |
6438 | } | |
6439 | return _resultobj; | |
6440 | } | |
6441 | ||
6442 | #define wxPenList_RemovePen(_swigobj,_swigarg0) (_swigobj->RemovePen(_swigarg0)) | |
6443 | static PyObject *_wrap_wxPenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6444 | PyObject * _resultobj; | |
6445 | wxPenList * _arg0; | |
6446 | wxPen * _arg1; | |
6447 | PyObject * _argo0 = 0; | |
6448 | PyObject * _argo1 = 0; | |
6449 | char *_kwnames[] = { "self","pen", NULL }; | |
6450 | ||
6451 | self = self; | |
6452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPenList_RemovePen",_kwnames,&_argo0,&_argo1)) | |
6453 | return NULL; | |
6454 | if (_argo0) { | |
6455 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6456 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) { | |
6457 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_RemovePen. Expected _wxPenList_p."); | |
6458 | return NULL; | |
6459 | } | |
6460 | } | |
6461 | if (_argo1) { | |
6462 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6463 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) { | |
6464 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPenList_RemovePen. Expected _wxPen_p."); | |
6465 | return NULL; | |
8ab979d7 | 6466 | } |
0569df0f RD |
6467 | } |
6468 | { | |
4268f798 | 6469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6470 | wxPenList_RemovePen(_arg0,_arg1); |
8ab979d7 | 6471 | |
4268f798 | 6472 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6473 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
6474 | } Py_INCREF(Py_None); |
6475 | _resultobj = Py_None; | |
6476 | return _resultobj; | |
6477 | } | |
6478 | ||
2f4e9287 RD |
6479 | #define wxPenList_GetCount(_swigobj) (_swigobj->GetCount()) |
6480 | static PyObject *_wrap_wxPenList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6481 | PyObject * _resultobj; | |
6482 | int _result; | |
6483 | wxPenList * _arg0; | |
6484 | PyObject * _argo0 = 0; | |
6485 | char *_kwnames[] = { "self", NULL }; | |
6486 | ||
6487 | self = self; | |
6488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPenList_GetCount",_kwnames,&_argo0)) | |
6489 | return NULL; | |
6490 | if (_argo0) { | |
6491 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6492 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) { | |
6493 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_GetCount. Expected _wxPenList_p."); | |
6494 | return NULL; | |
6495 | } | |
6496 | } | |
6497 | { | |
4268f798 | 6498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6499 | _result = (int )wxPenList_GetCount(_arg0); |
2f4e9287 | 6500 | |
4268f798 | 6501 | wxPyEndAllowThreads(__tstate); |
2f4e9287 RD |
6502 | if (PyErr_Occurred()) return NULL; |
6503 | } _resultobj = Py_BuildValue("i",_result); | |
6504 | return _resultobj; | |
6505 | } | |
6506 | ||
9416aa89 RD |
6507 | static void *SwigwxBrushTowxGDIObject(void *ptr) { |
6508 | wxBrush *src; | |
6509 | wxGDIObject *dest; | |
6510 | src = (wxBrush *) ptr; | |
6511 | dest = (wxGDIObject *) src; | |
6512 | return (void *) dest; | |
6513 | } | |
6514 | ||
6515 | static void *SwigwxBrushTowxObject(void *ptr) { | |
6516 | wxBrush *src; | |
6517 | wxObject *dest; | |
6518 | src = (wxBrush *) ptr; | |
6519 | dest = (wxObject *) src; | |
6520 | return (void *) dest; | |
6521 | } | |
6522 | ||
0569df0f | 6523 | #define new_wxBrush(_swigarg0,_swigarg1) (new wxBrush(_swigarg0,_swigarg1)) |
1afc06c2 | 6524 | static PyObject *_wrap_new_wxBrush(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6525 | PyObject * _resultobj; |
6526 | wxBrush * _result; | |
6527 | wxColour * _arg0; | |
1d99702e | 6528 | int _arg1 = (int ) wxSOLID; |
f6bcfd97 BP |
6529 | wxColour temp; |
6530 | PyObject * _obj0 = 0; | |
1afc06c2 | 6531 | char *_kwnames[] = { "colour","style", NULL }; |
8ab979d7 RD |
6532 | char _ptemp[128]; |
6533 | ||
6534 | self = self; | |
f6bcfd97 | 6535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:new_wxBrush",_kwnames,&_obj0,&_arg1)) |
8ab979d7 | 6536 | return NULL; |
f6bcfd97 BP |
6537 | { |
6538 | _arg0 = &temp; | |
6539 | if (! wxColour_helper(_obj0, &_arg0)) | |
8ab979d7 | 6540 | return NULL; |
f6bcfd97 | 6541 | } |
cf694132 | 6542 | { |
4268f798 | 6543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6544 | _result = (wxBrush *)new_wxBrush(*_arg0,_arg1); |
cf694132 | 6545 | |
4268f798 | 6546 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6547 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
6548 | } if (_result) { |
6549 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p"); | |
6550 | _resultobj = Py_BuildValue("s",_ptemp); | |
6551 | } else { | |
6552 | Py_INCREF(Py_None); | |
6553 | _resultobj = Py_None; | |
6554 | } | |
8ab979d7 RD |
6555 | return _resultobj; |
6556 | } | |
6557 | ||
0569df0f RD |
6558 | #define delete_wxBrush(_swigobj) (delete _swigobj) |
6559 | static PyObject *_wrap_delete_wxBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6560 | PyObject * _resultobj; | |
6561 | wxBrush * _arg0; | |
6562 | PyObject * _argo0 = 0; | |
6563 | char *_kwnames[] = { "self", NULL }; | |
6564 | ||
6565 | self = self; | |
6566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxBrush",_kwnames,&_argo0)) | |
6567 | return NULL; | |
6568 | if (_argo0) { | |
6569 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6570 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
6571 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxBrush. Expected _wxBrush_p."); | |
6572 | return NULL; | |
6573 | } | |
6574 | } | |
6575 | { | |
4268f798 | 6576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6577 | delete_wxBrush(_arg0); |
0569df0f | 6578 | |
4268f798 | 6579 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6580 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
6581 | } Py_INCREF(Py_None); |
6582 | _resultobj = Py_None; | |
6583 | return _resultobj; | |
6584 | } | |
6585 | ||
8ab979d7 | 6586 | #define wxBrush_GetColour(_swigobj) (_swigobj->GetColour()) |
1afc06c2 | 6587 | static PyObject *_wrap_wxBrush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6588 | PyObject * _resultobj; |
6589 | wxColour * _result; | |
6590 | wxBrush * _arg0; | |
1d99702e | 6591 | PyObject * _argo0 = 0; |
1afc06c2 | 6592 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6593 | char _ptemp[128]; |
6594 | ||
6595 | self = self; | |
1afc06c2 | 6596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetColour",_kwnames,&_argo0)) |
8ab979d7 | 6597 | return NULL; |
1d99702e RD |
6598 | if (_argo0) { |
6599 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6600 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
8ab979d7 RD |
6601 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetColour. Expected _wxBrush_p."); |
6602 | return NULL; | |
6603 | } | |
6604 | } | |
cf694132 | 6605 | { |
4268f798 | 6606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6607 | _result = new wxColour (wxBrush_GetColour(_arg0)); |
cf694132 | 6608 | |
4268f798 | 6609 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6610 | if (PyErr_Occurred()) return NULL; |
25832b3f RD |
6611 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
6612 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
6613 | return _resultobj; |
6614 | } | |
6615 | ||
6616 | #define wxBrush_GetStipple(_swigobj) (_swigobj->GetStipple()) | |
1afc06c2 | 6617 | static PyObject *_wrap_wxBrush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6618 | PyObject * _resultobj; |
6619 | wxBitmap * _result; | |
6620 | wxBrush * _arg0; | |
1d99702e | 6621 | PyObject * _argo0 = 0; |
1afc06c2 | 6622 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6623 | char _ptemp[128]; |
6624 | ||
6625 | self = self; | |
1afc06c2 | 6626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetStipple",_kwnames,&_argo0)) |
8ab979d7 | 6627 | return NULL; |
1d99702e RD |
6628 | if (_argo0) { |
6629 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6630 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
8ab979d7 RD |
6631 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetStipple. Expected _wxBrush_p."); |
6632 | return NULL; | |
6633 | } | |
6634 | } | |
cf694132 | 6635 | { |
4268f798 | 6636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6637 | _result = (wxBitmap *)wxBrush_GetStipple(_arg0); |
cf694132 | 6638 | |
4268f798 | 6639 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6640 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
6641 | } if (_result) { |
6642 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
6643 | _resultobj = Py_BuildValue("s",_ptemp); | |
6644 | } else { | |
6645 | Py_INCREF(Py_None); | |
6646 | _resultobj = Py_None; | |
6647 | } | |
8ab979d7 RD |
6648 | return _resultobj; |
6649 | } | |
6650 | ||
6651 | #define wxBrush_GetStyle(_swigobj) (_swigobj->GetStyle()) | |
1afc06c2 | 6652 | static PyObject *_wrap_wxBrush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6653 | PyObject * _resultobj; |
6654 | int _result; | |
6655 | wxBrush * _arg0; | |
1d99702e | 6656 | PyObject * _argo0 = 0; |
1afc06c2 | 6657 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6658 | |
6659 | self = self; | |
1afc06c2 | 6660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetStyle",_kwnames,&_argo0)) |
8ab979d7 | 6661 | return NULL; |
1d99702e RD |
6662 | if (_argo0) { |
6663 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6664 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
8ab979d7 RD |
6665 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetStyle. Expected _wxBrush_p."); |
6666 | return NULL; | |
6667 | } | |
6668 | } | |
cf694132 | 6669 | { |
4268f798 | 6670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6671 | _result = (int )wxBrush_GetStyle(_arg0); |
cf694132 | 6672 | |
4268f798 | 6673 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6674 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6675 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6676 | return _resultobj; |
6677 | } | |
6678 | ||
6679 | #define wxBrush_Ok(_swigobj) (_swigobj->Ok()) | |
1afc06c2 | 6680 | static PyObject *_wrap_wxBrush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6681 | PyObject * _resultobj; |
6682 | bool _result; | |
6683 | wxBrush * _arg0; | |
1d99702e | 6684 | PyObject * _argo0 = 0; |
1afc06c2 | 6685 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6686 | |
6687 | self = self; | |
1afc06c2 | 6688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_Ok",_kwnames,&_argo0)) |
8ab979d7 | 6689 | return NULL; |
1d99702e RD |
6690 | if (_argo0) { |
6691 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6692 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
8ab979d7 RD |
6693 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_Ok. Expected _wxBrush_p."); |
6694 | return NULL; | |
6695 | } | |
6696 | } | |
cf694132 | 6697 | { |
4268f798 | 6698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6699 | _result = (bool )wxBrush_Ok(_arg0); |
cf694132 | 6700 | |
4268f798 | 6701 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6702 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6703 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6704 | return _resultobj; |
6705 | } | |
6706 | ||
6707 | #define wxBrush_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0)) | |
1afc06c2 | 6708 | static PyObject *_wrap_wxBrush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6709 | PyObject * _resultobj; |
6710 | wxBrush * _arg0; | |
6711 | wxColour * _arg1; | |
1d99702e | 6712 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
6713 | wxColour temp; |
6714 | PyObject * _obj1 = 0; | |
1afc06c2 | 6715 | char *_kwnames[] = { "self","colour", NULL }; |
8ab979d7 RD |
6716 | |
6717 | self = self; | |
f6bcfd97 | 6718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrush_SetColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 6719 | return NULL; |
1d99702e RD |
6720 | if (_argo0) { |
6721 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6722 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
8ab979d7 RD |
6723 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetColour. Expected _wxBrush_p."); |
6724 | return NULL; | |
6725 | } | |
6726 | } | |
f6bcfd97 BP |
6727 | { |
6728 | _arg1 = &temp; | |
6729 | if (! wxColour_helper(_obj1, &_arg1)) | |
8ab979d7 | 6730 | return NULL; |
f6bcfd97 | 6731 | } |
cf694132 | 6732 | { |
4268f798 | 6733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6734 | wxBrush_SetColour(_arg0,*_arg1); |
cf694132 | 6735 | |
4268f798 | 6736 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6737 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6738 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6739 | _resultobj = Py_None; |
6740 | return _resultobj; | |
6741 | } | |
6742 | ||
6743 | #define wxBrush_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0)) | |
1afc06c2 | 6744 | static PyObject *_wrap_wxBrush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6745 | PyObject * _resultobj; |
6746 | wxBrush * _arg0; | |
6747 | wxBitmap * _arg1; | |
1d99702e RD |
6748 | PyObject * _argo0 = 0; |
6749 | PyObject * _argo1 = 0; | |
1afc06c2 | 6750 | char *_kwnames[] = { "self","bitmap", NULL }; |
8ab979d7 RD |
6751 | |
6752 | self = self; | |
1afc06c2 | 6753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrush_SetStipple",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6754 | return NULL; |
1d99702e RD |
6755 | if (_argo0) { |
6756 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6757 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
8ab979d7 RD |
6758 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetStipple. Expected _wxBrush_p."); |
6759 | return NULL; | |
6760 | } | |
6761 | } | |
1d99702e RD |
6762 | if (_argo1) { |
6763 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6764 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
8ab979d7 RD |
6765 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrush_SetStipple. Expected _wxBitmap_p."); |
6766 | return NULL; | |
6767 | } | |
6768 | } | |
cf694132 | 6769 | { |
4268f798 | 6770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6771 | wxBrush_SetStipple(_arg0,*_arg1); |
cf694132 | 6772 | |
4268f798 | 6773 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6774 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6775 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6776 | _resultobj = Py_None; |
6777 | return _resultobj; | |
6778 | } | |
6779 | ||
6780 | #define wxBrush_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0)) | |
1afc06c2 | 6781 | static PyObject *_wrap_wxBrush_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6782 | PyObject * _resultobj; |
6783 | wxBrush * _arg0; | |
6784 | int _arg1; | |
1d99702e | 6785 | PyObject * _argo0 = 0; |
1afc06c2 | 6786 | char *_kwnames[] = { "self","style", NULL }; |
8ab979d7 RD |
6787 | |
6788 | self = self; | |
1afc06c2 | 6789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBrush_SetStyle",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 6790 | return NULL; |
1d99702e RD |
6791 | if (_argo0) { |
6792 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6793 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
8ab979d7 RD |
6794 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetStyle. Expected _wxBrush_p."); |
6795 | return NULL; | |
6796 | } | |
6797 | } | |
cf694132 | 6798 | { |
4268f798 | 6799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6800 | wxBrush_SetStyle(_arg0,_arg1); |
cf694132 | 6801 | |
4268f798 | 6802 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6803 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6804 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6805 | _resultobj = Py_None; |
6806 | return _resultobj; | |
6807 | } | |
6808 | ||
6ee2116b RD |
6809 | static void *SwigwxBrushListTowxObject(void *ptr) { |
6810 | wxBrushList *src; | |
6811 | wxObject *dest; | |
6812 | src = (wxBrushList *) ptr; | |
6813 | dest = (wxObject *) src; | |
6814 | return (void *) dest; | |
6815 | } | |
6816 | ||
0569df0f RD |
6817 | #define wxBrushList_AddBrush(_swigobj,_swigarg0) (_swigobj->AddBrush(_swigarg0)) |
6818 | static PyObject *_wrap_wxBrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6819 | PyObject * _resultobj; | |
6820 | wxBrushList * _arg0; | |
6821 | wxBrush * _arg1; | |
6822 | PyObject * _argo0 = 0; | |
6823 | PyObject * _argo1 = 0; | |
6824 | char *_kwnames[] = { "self","brush", NULL }; | |
6825 | ||
6826 | self = self; | |
6827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrushList_AddBrush",_kwnames,&_argo0,&_argo1)) | |
6828 | return NULL; | |
6829 | if (_argo0) { | |
6830 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6831 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) { | |
6832 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_AddBrush. Expected _wxBrushList_p."); | |
6833 | return NULL; | |
6834 | } | |
6835 | } | |
6836 | if (_argo1) { | |
6837 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6838 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) { | |
6839 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrushList_AddBrush. Expected _wxBrush_p."); | |
6840 | return NULL; | |
6841 | } | |
6842 | } | |
6843 | { | |
4268f798 | 6844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6845 | wxBrushList_AddBrush(_arg0,_arg1); |
0569df0f | 6846 | |
4268f798 | 6847 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6848 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
6849 | } Py_INCREF(Py_None); |
6850 | _resultobj = Py_None; | |
6851 | return _resultobj; | |
6852 | } | |
6853 | ||
6854 | #define wxBrushList_FindOrCreateBrush(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindOrCreateBrush(_swigarg0,_swigarg1)) | |
6855 | static PyObject *_wrap_wxBrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6856 | PyObject * _resultobj; | |
6857 | wxBrush * _result; | |
6858 | wxBrushList * _arg0; | |
6859 | wxColour * _arg1; | |
6860 | int _arg2; | |
6861 | PyObject * _argo0 = 0; | |
6862 | wxColour temp; | |
6863 | PyObject * _obj1 = 0; | |
6864 | char *_kwnames[] = { "self","colour","style", NULL }; | |
6865 | char _ptemp[128]; | |
6866 | ||
6867 | self = self; | |
6868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxBrushList_FindOrCreateBrush",_kwnames,&_argo0,&_obj1,&_arg2)) | |
6869 | return NULL; | |
6870 | if (_argo0) { | |
6871 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6872 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) { | |
6873 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_FindOrCreateBrush. Expected _wxBrushList_p."); | |
6874 | return NULL; | |
6875 | } | |
6876 | } | |
6877 | { | |
6878 | _arg1 = &temp; | |
6879 | if (! wxColour_helper(_obj1, &_arg1)) | |
6880 | return NULL; | |
6881 | } | |
6882 | { | |
4268f798 | 6883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6884 | _result = (wxBrush *)wxBrushList_FindOrCreateBrush(_arg0,*_arg1,_arg2); |
0569df0f | 6885 | |
4268f798 | 6886 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6887 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
6888 | } if (_result) { |
6889 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p"); | |
6890 | _resultobj = Py_BuildValue("s",_ptemp); | |
6891 | } else { | |
6892 | Py_INCREF(Py_None); | |
6893 | _resultobj = Py_None; | |
6894 | } | |
6895 | return _resultobj; | |
6896 | } | |
6897 | ||
6898 | #define wxBrushList_RemoveBrush(_swigobj,_swigarg0) (_swigobj->RemoveBrush(_swigarg0)) | |
6899 | static PyObject *_wrap_wxBrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6900 | PyObject * _resultobj; | |
6901 | wxBrushList * _arg0; | |
6902 | wxBrush * _arg1; | |
6903 | PyObject * _argo0 = 0; | |
6904 | PyObject * _argo1 = 0; | |
6905 | char *_kwnames[] = { "self","brush", NULL }; | |
6906 | ||
6907 | self = self; | |
6908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrushList_RemoveBrush",_kwnames,&_argo0,&_argo1)) | |
6909 | return NULL; | |
6910 | if (_argo0) { | |
6911 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6912 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) { | |
6913 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_RemoveBrush. Expected _wxBrushList_p."); | |
6914 | return NULL; | |
6915 | } | |
6916 | } | |
6917 | if (_argo1) { | |
6918 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6919 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) { | |
6920 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrushList_RemoveBrush. Expected _wxBrush_p."); | |
6921 | return NULL; | |
6922 | } | |
6923 | } | |
6924 | { | |
4268f798 | 6925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6926 | wxBrushList_RemoveBrush(_arg0,_arg1); |
0569df0f | 6927 | |
4268f798 | 6928 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6929 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
6930 | } Py_INCREF(Py_None); |
6931 | _resultobj = Py_None; | |
6932 | return _resultobj; | |
6933 | } | |
6934 | ||
2f4e9287 RD |
6935 | #define wxBrushList_GetCount(_swigobj) (_swigobj->GetCount()) |
6936 | static PyObject *_wrap_wxBrushList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6937 | PyObject * _resultobj; | |
6938 | int _result; | |
6939 | wxBrushList * _arg0; | |
6940 | PyObject * _argo0 = 0; | |
6941 | char *_kwnames[] = { "self", NULL }; | |
6942 | ||
6943 | self = self; | |
6944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrushList_GetCount",_kwnames,&_argo0)) | |
6945 | return NULL; | |
6946 | if (_argo0) { | |
6947 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6948 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) { | |
6949 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_GetCount. Expected _wxBrushList_p."); | |
6950 | return NULL; | |
6951 | } | |
6952 | } | |
6953 | { | |
4268f798 | 6954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6955 | _result = (int )wxBrushList_GetCount(_arg0); |
2f4e9287 | 6956 | |
4268f798 | 6957 | wxPyEndAllowThreads(__tstate); |
2f4e9287 RD |
6958 | if (PyErr_Occurred()) return NULL; |
6959 | } _resultobj = Py_BuildValue("i",_result); | |
6960 | return _resultobj; | |
6961 | } | |
6962 | ||
9416aa89 RD |
6963 | static void *SwigwxDCTowxObject(void *ptr) { |
6964 | wxDC *src; | |
6965 | wxObject *dest; | |
6966 | src = (wxDC *) ptr; | |
6967 | dest = (wxObject *) src; | |
6968 | return (void *) dest; | |
6969 | } | |
6970 | ||
8ab979d7 | 6971 | #define delete_wxDC(_swigobj) (delete _swigobj) |
1afc06c2 | 6972 | static PyObject *_wrap_delete_wxDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6973 | PyObject * _resultobj; |
6974 | wxDC * _arg0; | |
1d99702e | 6975 | PyObject * _argo0 = 0; |
1afc06c2 | 6976 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6977 | |
6978 | self = self; | |
1afc06c2 | 6979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxDC",_kwnames,&_argo0)) |
8ab979d7 | 6980 | return NULL; |
1d99702e RD |
6981 | if (_argo0) { |
6982 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6983 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
6984 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxDC. Expected _wxDC_p."); |
6985 | return NULL; | |
6986 | } | |
6987 | } | |
cf694132 | 6988 | { |
4268f798 | 6989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6990 | delete_wxDC(_arg0); |
cf694132 | 6991 | |
4268f798 | 6992 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6993 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6994 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6995 | _resultobj = Py_None; |
6996 | return _resultobj; | |
6997 | } | |
6998 | ||
6999 | #define wxDC_BeginDrawing(_swigobj) (_swigobj->BeginDrawing()) | |
1afc06c2 | 7000 | static PyObject *_wrap_wxDC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7001 | PyObject * _resultobj; |
7002 | wxDC * _arg0; | |
1d99702e | 7003 | PyObject * _argo0 = 0; |
1afc06c2 | 7004 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7005 | |
7006 | self = self; | |
1afc06c2 | 7007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_BeginDrawing",_kwnames,&_argo0)) |
8ab979d7 | 7008 | return NULL; |
1d99702e RD |
7009 | if (_argo0) { |
7010 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7011 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7012 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_BeginDrawing. Expected _wxDC_p."); |
7013 | return NULL; | |
7014 | } | |
7015 | } | |
cf694132 | 7016 | { |
4268f798 | 7017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7018 | wxDC_BeginDrawing(_arg0); |
cf694132 | 7019 | |
4268f798 | 7020 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7021 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7022 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7023 | _resultobj = Py_None; |
7024 | return _resultobj; | |
7025 | } | |
7026 | ||
efc5f224 | 7027 | #define wxDC_Blit(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Blit(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8)) |
1afc06c2 | 7028 | static PyObject *_wrap_wxDC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7029 | PyObject * _resultobj; |
7030 | bool _result; | |
7031 | wxDC * _arg0; | |
7032 | long _arg1; | |
7033 | long _arg2; | |
7034 | long _arg3; | |
7035 | long _arg4; | |
7036 | wxDC * _arg5; | |
7037 | long _arg6; | |
7038 | long _arg7; | |
efc5f224 RD |
7039 | int _arg8 = (int ) wxCOPY; |
7040 | int _arg9 = (int ) FALSE; | |
1d99702e RD |
7041 | PyObject * _argo0 = 0; |
7042 | PyObject * _argo5 = 0; | |
1afc06c2 | 7043 | char *_kwnames[] = { "self","xdest","ydest","width","height","source","xsrc","ysrc","logicalFunc","useMask", NULL }; |
8ab979d7 RD |
7044 | |
7045 | self = self; | |
1afc06c2 | 7046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllllOll|ii:wxDC_Blit",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_argo5,&_arg6,&_arg7,&_arg8,&_arg9)) |
8ab979d7 | 7047 | return NULL; |
1d99702e RD |
7048 | if (_argo0) { |
7049 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7050 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7051 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Blit. Expected _wxDC_p."); |
7052 | return NULL; | |
7053 | } | |
7054 | } | |
1d99702e RD |
7055 | if (_argo5) { |
7056 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
7057 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxDC_p")) { | |
8ab979d7 RD |
7058 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxDC_Blit. Expected _wxDC_p."); |
7059 | return NULL; | |
7060 | } | |
7061 | } | |
cf694132 | 7062 | { |
4268f798 | 7063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7064 | _result = (bool )wxDC_Blit(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7,_arg8,_arg9); |
cf694132 | 7065 | |
4268f798 | 7066 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7067 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7068 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7069 | return _resultobj; |
7070 | } | |
7071 | ||
7072 | #define wxDC_Clear(_swigobj) (_swigobj->Clear()) | |
1afc06c2 | 7073 | static PyObject *_wrap_wxDC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7074 | PyObject * _resultobj; |
7075 | wxDC * _arg0; | |
1d99702e | 7076 | PyObject * _argo0 = 0; |
1afc06c2 | 7077 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7078 | |
7079 | self = self; | |
1afc06c2 | 7080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_Clear",_kwnames,&_argo0)) |
8ab979d7 | 7081 | return NULL; |
1d99702e RD |
7082 | if (_argo0) { |
7083 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7084 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7085 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Clear. Expected _wxDC_p."); |
7086 | return NULL; | |
7087 | } | |
7088 | } | |
cf694132 | 7089 | { |
4268f798 | 7090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7091 | wxDC_Clear(_arg0); |
cf694132 | 7092 | |
4268f798 | 7093 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7094 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7095 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7096 | _resultobj = Py_None; |
7097 | return _resultobj; | |
7098 | } | |
7099 | ||
7100 | #define wxDC_CrossHair(_swigobj,_swigarg0,_swigarg1) (_swigobj->CrossHair(_swigarg0,_swigarg1)) | |
1afc06c2 | 7101 | static PyObject *_wrap_wxDC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7102 | PyObject * _resultobj; |
7103 | wxDC * _arg0; | |
7104 | long _arg1; | |
7105 | long _arg2; | |
1d99702e | 7106 | PyObject * _argo0 = 0; |
1afc06c2 | 7107 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
7108 | |
7109 | self = self; | |
1afc06c2 | 7110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_CrossHair",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 7111 | return NULL; |
1d99702e RD |
7112 | if (_argo0) { |
7113 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7114 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7115 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CrossHair. Expected _wxDC_p."); |
7116 | return NULL; | |
7117 | } | |
7118 | } | |
cf694132 | 7119 | { |
4268f798 | 7120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7121 | wxDC_CrossHair(_arg0,_arg1,_arg2); |
cf694132 | 7122 | |
4268f798 | 7123 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7124 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7125 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7126 | _resultobj = Py_None; |
7127 | return _resultobj; | |
7128 | } | |
7129 | ||
7130 | #define wxDC_DestroyClippingRegion(_swigobj) (_swigobj->DestroyClippingRegion()) | |
1afc06c2 | 7131 | static PyObject *_wrap_wxDC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7132 | PyObject * _resultobj; |
7133 | wxDC * _arg0; | |
1d99702e | 7134 | PyObject * _argo0 = 0; |
1afc06c2 | 7135 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7136 | |
7137 | self = self; | |
1afc06c2 | 7138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_DestroyClippingRegion",_kwnames,&_argo0)) |
8ab979d7 | 7139 | return NULL; |
1d99702e RD |
7140 | if (_argo0) { |
7141 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7142 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7143 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DestroyClippingRegion. Expected _wxDC_p."); |
7144 | return NULL; | |
7145 | } | |
7146 | } | |
cf694132 | 7147 | { |
4268f798 | 7148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7149 | wxDC_DestroyClippingRegion(_arg0); |
cf694132 | 7150 | |
4268f798 | 7151 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7152 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7153 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7154 | _resultobj = Py_None; |
7155 | return _resultobj; | |
7156 | } | |
7157 | ||
7158 | #define wxDC_DeviceToLogicalX(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalX(_swigarg0)) | |
1afc06c2 | 7159 | static PyObject *_wrap_wxDC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7160 | PyObject * _resultobj; |
7161 | long _result; | |
7162 | wxDC * _arg0; | |
7163 | long _arg1; | |
1d99702e | 7164 | PyObject * _argo0 = 0; |
1afc06c2 | 7165 | char *_kwnames[] = { "self","x", NULL }; |
8ab979d7 RD |
7166 | |
7167 | self = self; | |
1afc06c2 | 7168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalX",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 7169 | return NULL; |
1d99702e RD |
7170 | if (_argo0) { |
7171 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7172 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7173 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalX. Expected _wxDC_p."); |
7174 | return NULL; | |
7175 | } | |
7176 | } | |
cf694132 | 7177 | { |
4268f798 | 7178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7179 | _result = (long )wxDC_DeviceToLogicalX(_arg0,_arg1); |
cf694132 | 7180 | |
4268f798 | 7181 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7182 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7183 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
7184 | return _resultobj; |
7185 | } | |
7186 | ||
7187 | #define wxDC_DeviceToLogicalXRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalXRel(_swigarg0)) | |
1afc06c2 | 7188 | static PyObject *_wrap_wxDC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7189 | PyObject * _resultobj; |
7190 | long _result; | |
7191 | wxDC * _arg0; | |
7192 | long _arg1; | |
1d99702e | 7193 | PyObject * _argo0 = 0; |
1afc06c2 | 7194 | char *_kwnames[] = { "self","x", NULL }; |
8ab979d7 RD |
7195 | |
7196 | self = self; | |
1afc06c2 | 7197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalXRel",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 7198 | return NULL; |
1d99702e RD |
7199 | if (_argo0) { |
7200 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7201 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7202 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalXRel. Expected _wxDC_p."); |
7203 | return NULL; | |
7204 | } | |
7205 | } | |
cf694132 | 7206 | { |
4268f798 | 7207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7208 | _result = (long )wxDC_DeviceToLogicalXRel(_arg0,_arg1); |
cf694132 | 7209 | |
4268f798 | 7210 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7211 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7212 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
7213 | return _resultobj; |
7214 | } | |
7215 | ||
7216 | #define wxDC_DeviceToLogicalY(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalY(_swigarg0)) | |
1afc06c2 | 7217 | static PyObject *_wrap_wxDC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7218 | PyObject * _resultobj; |
7219 | long _result; | |
7220 | wxDC * _arg0; | |
7221 | long _arg1; | |
1d99702e | 7222 | PyObject * _argo0 = 0; |
1afc06c2 | 7223 | char *_kwnames[] = { "self","y", NULL }; |
8ab979d7 RD |
7224 | |
7225 | self = self; | |
1afc06c2 | 7226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalY",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 7227 | return NULL; |
1d99702e RD |
7228 | if (_argo0) { |
7229 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7230 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7231 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalY. Expected _wxDC_p."); |
7232 | return NULL; | |
7233 | } | |
7234 | } | |
cf694132 | 7235 | { |
4268f798 | 7236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7237 | _result = (long )wxDC_DeviceToLogicalY(_arg0,_arg1); |
cf694132 | 7238 | |
4268f798 | 7239 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7240 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7241 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
7242 | return _resultobj; |
7243 | } | |
7244 | ||
7245 | #define wxDC_DeviceToLogicalYRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalYRel(_swigarg0)) | |
1afc06c2 | 7246 | static PyObject *_wrap_wxDC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7247 | PyObject * _resultobj; |
7248 | long _result; | |
7249 | wxDC * _arg0; | |
7250 | long _arg1; | |
1d99702e | 7251 | PyObject * _argo0 = 0; |
1afc06c2 | 7252 | char *_kwnames[] = { "self","y", NULL }; |
8ab979d7 RD |
7253 | |
7254 | self = self; | |
1afc06c2 | 7255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalYRel",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 7256 | return NULL; |
1d99702e RD |
7257 | if (_argo0) { |
7258 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7259 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7260 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalYRel. Expected _wxDC_p."); |
7261 | return NULL; | |
7262 | } | |
7263 | } | |
cf694132 | 7264 | { |
4268f798 | 7265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7266 | _result = (long )wxDC_DeviceToLogicalYRel(_arg0,_arg1); |
cf694132 | 7267 | |
4268f798 | 7268 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7269 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7270 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
7271 | return _resultobj; |
7272 | } | |
7273 | ||
7274 | #define wxDC_DrawArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
1afc06c2 | 7275 | static PyObject *_wrap_wxDC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7276 | PyObject * _resultobj; |
7277 | wxDC * _arg0; | |
7278 | long _arg1; | |
7279 | long _arg2; | |
7280 | long _arg3; | |
7281 | long _arg4; | |
7282 | long _arg5; | |
7283 | long _arg6; | |
1d99702e | 7284 | PyObject * _argo0 = 0; |
1afc06c2 | 7285 | char *_kwnames[] = { "self","x1","y1","x2","y2","xc","yc", NULL }; |
8ab979d7 RD |
7286 | |
7287 | self = self; | |
1afc06c2 | 7288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollllll:wxDC_DrawArc",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6)) |
8ab979d7 | 7289 | return NULL; |
1d99702e RD |
7290 | if (_argo0) { |
7291 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7292 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7293 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawArc. Expected _wxDC_p."); |
7294 | return NULL; | |
7295 | } | |
7296 | } | |
cf694132 | 7297 | { |
4268f798 | 7298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7299 | wxDC_DrawArc(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); |
cf694132 | 7300 | |
4268f798 | 7301 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7302 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7303 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7304 | _resultobj = Py_None; |
7305 | return _resultobj; | |
7306 | } | |
7307 | ||
bb0054cd | 7308 | #define wxDC_DrawCircle(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawCircle(_swigarg0,_swigarg1,_swigarg2)) |
1afc06c2 | 7309 | static PyObject *_wrap_wxDC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
7310 | PyObject * _resultobj; |
7311 | wxDC * _arg0; | |
7312 | long _arg1; | |
7313 | long _arg2; | |
7314 | long _arg3; | |
1d99702e | 7315 | PyObject * _argo0 = 0; |
1afc06c2 | 7316 | char *_kwnames[] = { "self","x","y","radius", NULL }; |
bb0054cd RD |
7317 | |
7318 | self = self; | |
1afc06c2 | 7319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Olll:wxDC_DrawCircle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
bb0054cd | 7320 | return NULL; |
1d99702e RD |
7321 | if (_argo0) { |
7322 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7323 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
bb0054cd RD |
7324 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawCircle. Expected _wxDC_p."); |
7325 | return NULL; | |
7326 | } | |
7327 | } | |
7328 | { | |
4268f798 | 7329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7330 | wxDC_DrawCircle(_arg0,_arg1,_arg2,_arg3); |
bb0054cd | 7331 | |
4268f798 | 7332 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7333 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
7334 | } Py_INCREF(Py_None); |
7335 | _resultobj = Py_None; | |
7336 | return _resultobj; | |
7337 | } | |
7338 | ||
8ab979d7 | 7339 | #define wxDC_DrawEllipse(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawEllipse(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
1afc06c2 | 7340 | static PyObject *_wrap_wxDC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7341 | PyObject * _resultobj; |
7342 | wxDC * _arg0; | |
7343 | long _arg1; | |
7344 | long _arg2; | |
7345 | long _arg3; | |
7346 | long _arg4; | |
1d99702e | 7347 | PyObject * _argo0 = 0; |
1afc06c2 | 7348 | char *_kwnames[] = { "self","x","y","width","height", NULL }; |
8ab979d7 RD |
7349 | |
7350 | self = self; | |
1afc06c2 | 7351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawEllipse",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) |
8ab979d7 | 7352 | return NULL; |
1d99702e RD |
7353 | if (_argo0) { |
7354 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7355 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7356 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawEllipse. Expected _wxDC_p."); |
7357 | return NULL; | |
7358 | } | |
7359 | } | |
cf694132 | 7360 | { |
4268f798 | 7361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7362 | wxDC_DrawEllipse(_arg0,_arg1,_arg2,_arg3,_arg4); |
cf694132 | 7363 | |
4268f798 | 7364 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7365 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7366 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7367 | _resultobj = Py_None; |
7368 | return _resultobj; | |
7369 | } | |
7370 | ||
7371 | #define wxDC_DrawEllipticArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawEllipticArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
1afc06c2 | 7372 | static PyObject *_wrap_wxDC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7373 | PyObject * _resultobj; |
7374 | wxDC * _arg0; | |
7375 | long _arg1; | |
7376 | long _arg2; | |
7377 | long _arg3; | |
7378 | long _arg4; | |
7379 | long _arg5; | |
7380 | long _arg6; | |
1d99702e | 7381 | PyObject * _argo0 = 0; |
1afc06c2 | 7382 | char *_kwnames[] = { "self","x","y","width","height","start","end", NULL }; |
8ab979d7 RD |
7383 | |
7384 | self = self; | |
1afc06c2 | 7385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollllll:wxDC_DrawEllipticArc",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6)) |
8ab979d7 | 7386 | return NULL; |
1d99702e RD |
7387 | if (_argo0) { |
7388 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7389 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7390 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawEllipticArc. Expected _wxDC_p."); |
7391 | return NULL; | |
7392 | } | |
7393 | } | |
cf694132 | 7394 | { |
4268f798 | 7395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7396 | wxDC_DrawEllipticArc(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); |
cf694132 | 7397 | |
4268f798 | 7398 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7399 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7400 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7401 | _resultobj = Py_None; |
7402 | return _resultobj; | |
7403 | } | |
7404 | ||
7405 | #define wxDC_DrawIcon(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawIcon(_swigarg0,_swigarg1,_swigarg2)) | |
1afc06c2 | 7406 | static PyObject *_wrap_wxDC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7407 | PyObject * _resultobj; |
7408 | wxDC * _arg0; | |
7409 | wxIcon * _arg1; | |
7410 | long _arg2; | |
7411 | long _arg3; | |
1d99702e RD |
7412 | PyObject * _argo0 = 0; |
7413 | PyObject * _argo1 = 0; | |
1afc06c2 | 7414 | char *_kwnames[] = { "self","icon","x","y", NULL }; |
8ab979d7 RD |
7415 | |
7416 | self = self; | |
1afc06c2 | 7417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll:wxDC_DrawIcon",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3)) |
8ab979d7 | 7418 | return NULL; |
1d99702e RD |
7419 | if (_argo0) { |
7420 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7421 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7422 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawIcon. Expected _wxDC_p."); |
7423 | return NULL; | |
7424 | } | |
7425 | } | |
1d99702e RD |
7426 | if (_argo1) { |
7427 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7428 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) { | |
8ab979d7 RD |
7429 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_DrawIcon. Expected _wxIcon_p."); |
7430 | return NULL; | |
7431 | } | |
7432 | } | |
cf694132 | 7433 | { |
4268f798 | 7434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7435 | wxDC_DrawIcon(_arg0,*_arg1,_arg2,_arg3); |
cf694132 | 7436 | |
4268f798 | 7437 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7438 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7439 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7440 | _resultobj = Py_None; |
7441 | return _resultobj; | |
7442 | } | |
7443 | ||
23bed520 RD |
7444 | #define wxDC_DrawLabel(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLabel(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
7445 | static PyObject *_wrap_wxDC_DrawLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7446 | PyObject * _resultobj; | |
7447 | wxDC * _arg0; | |
7448 | wxString * _arg1; | |
7449 | wxRect * _arg2; | |
7450 | int _arg3 = (int ) wxALIGN_LEFT|wxALIGN_TOP; | |
7451 | int _arg4 = (int ) -1; | |
7452 | PyObject * _argo0 = 0; | |
7453 | PyObject * _obj1 = 0; | |
7454 | wxRect temp; | |
7455 | PyObject * _obj2 = 0; | |
7456 | char *_kwnames[] = { "self","text","rect","alignment","indexAccel", NULL }; | |
7457 | ||
7458 | self = self; | |
7459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|ii:wxDC_DrawLabel",_kwnames,&_argo0,&_obj1,&_obj2,&_arg3,&_arg4)) | |
7460 | return NULL; | |
7461 | if (_argo0) { | |
7462 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7463 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7464 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLabel. Expected _wxDC_p."); | |
7465 | return NULL; | |
7466 | } | |
7467 | } | |
7468 | { | |
c8bc7bb8 RD |
7469 | _arg1 = wxString_in_helper(_obj1); |
7470 | if (_arg1 == NULL) | |
23bed520 | 7471 | return NULL; |
23bed520 RD |
7472 | } |
7473 | { | |
7474 | _arg2 = &temp; | |
7475 | if (! wxRect_helper(_obj2, &_arg2)) | |
7476 | return NULL; | |
7477 | } | |
7478 | { | |
7479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 7480 | wxDC_DrawLabel(_arg0,*_arg1,*_arg2,_arg3,_arg4); |
23bed520 RD |
7481 | |
7482 | wxPyEndAllowThreads(__tstate); | |
7483 | if (PyErr_Occurred()) return NULL; | |
7484 | } Py_INCREF(Py_None); | |
7485 | _resultobj = Py_None; | |
7486 | { | |
7487 | if (_obj1) | |
7488 | delete _arg1; | |
7489 | } | |
7490 | return _resultobj; | |
7491 | } | |
7492 | ||
7493 | static wxRect wxDC_DrawImageLabel(wxDC *self,const wxString & text,const wxBitmap & image,const wxRect & rect,int alignment,int indexAccel) { | |
7494 | wxRect rv; | |
7495 | self->DrawLabel(text, image, rect, alignment, indexAccel, &rv); | |
7496 | return rv; | |
7497 | } | |
7498 | static PyObject *_wrap_wxDC_DrawImageLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7499 | PyObject * _resultobj; | |
7500 | wxRect * _result; | |
7501 | wxDC * _arg0; | |
7502 | wxString * _arg1; | |
7503 | wxBitmap * _arg2; | |
7504 | wxRect * _arg3; | |
7505 | int _arg4 = (int ) wxALIGN_LEFT|wxALIGN_TOP; | |
7506 | int _arg5 = (int ) -1; | |
7507 | PyObject * _argo0 = 0; | |
7508 | PyObject * _obj1 = 0; | |
7509 | PyObject * _argo2 = 0; | |
7510 | wxRect temp; | |
7511 | PyObject * _obj3 = 0; | |
7512 | char *_kwnames[] = { "self","text","image","rect","alignment","indexAccel", NULL }; | |
7513 | char _ptemp[128]; | |
7514 | ||
7515 | self = self; | |
7516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO|ii:wxDC_DrawImageLabel",_kwnames,&_argo0,&_obj1,&_argo2,&_obj3,&_arg4,&_arg5)) | |
7517 | return NULL; | |
7518 | if (_argo0) { | |
7519 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7520 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7521 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawImageLabel. Expected _wxDC_p."); | |
7522 | return NULL; | |
7523 | } | |
7524 | } | |
7525 | { | |
c8bc7bb8 RD |
7526 | _arg1 = wxString_in_helper(_obj1); |
7527 | if (_arg1 == NULL) | |
23bed520 | 7528 | return NULL; |
23bed520 RD |
7529 | } |
7530 | if (_argo2) { | |
7531 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
7532 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) { | |
7533 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxDC_DrawImageLabel. Expected _wxBitmap_p."); | |
7534 | return NULL; | |
7535 | } | |
7536 | } | |
7537 | { | |
7538 | _arg3 = &temp; | |
7539 | if (! wxRect_helper(_obj3, &_arg3)) | |
7540 | return NULL; | |
7541 | } | |
7542 | { | |
7543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 7544 | _result = new wxRect (wxDC_DrawImageLabel(_arg0,*_arg1,*_arg2,*_arg3,_arg4,_arg5)); |
23bed520 RD |
7545 | |
7546 | wxPyEndAllowThreads(__tstate); | |
7547 | if (PyErr_Occurred()) return NULL; | |
7548 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); | |
7549 | _resultobj = Py_BuildValue("s",_ptemp); | |
7550 | { | |
7551 | if (_obj1) | |
7552 | delete _arg1; | |
7553 | } | |
7554 | return _resultobj; | |
7555 | } | |
7556 | ||
8ab979d7 | 7557 | #define wxDC_DrawLine(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
1afc06c2 | 7558 | static PyObject *_wrap_wxDC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7559 | PyObject * _resultobj; |
7560 | wxDC * _arg0; | |
7561 | long _arg1; | |
7562 | long _arg2; | |
7563 | long _arg3; | |
7564 | long _arg4; | |
1d99702e | 7565 | PyObject * _argo0 = 0; |
1afc06c2 | 7566 | char *_kwnames[] = { "self","x1","y1","x2","y2", NULL }; |
8ab979d7 RD |
7567 | |
7568 | self = self; | |
1afc06c2 | 7569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawLine",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) |
8ab979d7 | 7570 | return NULL; |
1d99702e RD |
7571 | if (_argo0) { |
7572 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7573 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7574 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLine. Expected _wxDC_p."); |
7575 | return NULL; | |
7576 | } | |
7577 | } | |
cf694132 | 7578 | { |
4268f798 | 7579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7580 | wxDC_DrawLine(_arg0,_arg1,_arg2,_arg3,_arg4); |
cf694132 | 7581 | |
4268f798 | 7582 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7583 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7584 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7585 | _resultobj = Py_None; |
7586 | return _resultobj; | |
7587 | } | |
7588 | ||
7589 | #define wxDC_DrawLines(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLines(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
1afc06c2 | 7590 | static PyObject *_wrap_wxDC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7591 | PyObject * _resultobj; |
7592 | wxDC * _arg0; | |
7593 | int _arg1; | |
7594 | wxPoint * _arg2; | |
1d99702e RD |
7595 | long _arg3 = (long ) 0; |
7596 | long _arg4 = (long ) 0; | |
7597 | PyObject * _argo0 = 0; | |
e0672e2f | 7598 | int NPOINTS; |
8ab979d7 | 7599 | PyObject * _obj2 = 0; |
eec92d76 | 7600 | char *_kwnames[] = { "self","points","xoffset","yoffset", NULL }; |
8ab979d7 RD |
7601 | |
7602 | self = self; | |
1afc06c2 | 7603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|ll:wxDC_DrawLines",_kwnames,&_argo0,&_obj2,&_arg3,&_arg4)) |
8ab979d7 | 7604 | return NULL; |
1d99702e RD |
7605 | if (_argo0) { |
7606 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7607 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7608 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLines. Expected _wxDC_p."); |
7609 | return NULL; | |
7610 | } | |
7611 | } | |
7612 | if (_obj2) | |
7613 | { | |
e0672e2f RD |
7614 | _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS); |
7615 | if (_arg2 == NULL) { | |
7616 | return NULL; | |
7617 | } | |
8ab979d7 RD |
7618 | } |
7619 | { | |
e0672e2f | 7620 | _arg1 = NPOINTS; |
8ab979d7 | 7621 | } |
cf694132 | 7622 | { |
4268f798 | 7623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7624 | wxDC_DrawLines(_arg0,_arg1,_arg2,_arg3,_arg4); |
cf694132 | 7625 | |
4268f798 | 7626 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7627 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7628 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7629 | _resultobj = Py_None; |
7630 | { | |
7631 | delete [] _arg2; | |
7632 | } | |
7633 | return _resultobj; | |
7634 | } | |
7635 | ||
7636 | #define wxDC_DrawPolygon(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawPolygon(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
1afc06c2 | 7637 | static PyObject *_wrap_wxDC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7638 | PyObject * _resultobj; |
7639 | wxDC * _arg0; | |
7640 | int _arg1; | |
7641 | wxPoint * _arg2; | |
1d99702e RD |
7642 | long _arg3 = (long ) 0; |
7643 | long _arg4 = (long ) 0; | |
7644 | int _arg5 = (int ) wxODDEVEN_RULE; | |
7645 | PyObject * _argo0 = 0; | |
e0672e2f | 7646 | int NPOINTS; |
8ab979d7 | 7647 | PyObject * _obj2 = 0; |
eec92d76 | 7648 | char *_kwnames[] = { "self","points","xoffset","yoffset","fill_style", NULL }; |
8ab979d7 RD |
7649 | |
7650 | self = self; | |
1afc06c2 | 7651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|lli:wxDC_DrawPolygon",_kwnames,&_argo0,&_obj2,&_arg3,&_arg4,&_arg5)) |
8ab979d7 | 7652 | return NULL; |
1d99702e RD |
7653 | if (_argo0) { |
7654 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7655 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7656 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawPolygon. Expected _wxDC_p."); |
7657 | return NULL; | |
7658 | } | |
7659 | } | |
7660 | if (_obj2) | |
7661 | { | |
e0672e2f RD |
7662 | _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS); |
7663 | if (_arg2 == NULL) { | |
7664 | return NULL; | |
7665 | } | |
8ab979d7 RD |
7666 | } |
7667 | { | |
e0672e2f | 7668 | _arg1 = NPOINTS; |
8ab979d7 | 7669 | } |
cf694132 | 7670 | { |
4268f798 | 7671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7672 | wxDC_DrawPolygon(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); |
cf694132 | 7673 | |
4268f798 | 7674 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7675 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7676 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7677 | _resultobj = Py_None; |
7678 | { | |
7679 | delete [] _arg2; | |
7680 | } | |
7681 | return _resultobj; | |
7682 | } | |
7683 | ||
7684 | #define wxDC_DrawPoint(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawPoint(_swigarg0,_swigarg1)) | |
1afc06c2 | 7685 | static PyObject *_wrap_wxDC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7686 | PyObject * _resultobj; |
7687 | wxDC * _arg0; | |
7688 | long _arg1; | |
7689 | long _arg2; | |
1d99702e | 7690 | PyObject * _argo0 = 0; |
1afc06c2 | 7691 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
7692 | |
7693 | self = self; | |
1afc06c2 | 7694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_DrawPoint",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 7695 | return NULL; |
1d99702e RD |
7696 | if (_argo0) { |
7697 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7698 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7699 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawPoint. Expected _wxDC_p."); |
7700 | return NULL; | |
7701 | } | |
7702 | } | |
cf694132 | 7703 | { |
4268f798 | 7704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7705 | wxDC_DrawPoint(_arg0,_arg1,_arg2); |
cf694132 | 7706 | |
4268f798 | 7707 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7708 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7709 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7710 | _resultobj = Py_None; |
7711 | return _resultobj; | |
7712 | } | |
7713 | ||
7714 | #define wxDC_DrawRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
1afc06c2 | 7715 | static PyObject *_wrap_wxDC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7716 | PyObject * _resultobj; |
7717 | wxDC * _arg0; | |
7718 | long _arg1; | |
7719 | long _arg2; | |
7720 | long _arg3; | |
7721 | long _arg4; | |
1d99702e | 7722 | PyObject * _argo0 = 0; |
1afc06c2 | 7723 | char *_kwnames[] = { "self","x","y","width","height", NULL }; |
8ab979d7 RD |
7724 | |
7725 | self = self; | |
1afc06c2 | 7726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawRectangle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) |
8ab979d7 | 7727 | return NULL; |
1d99702e RD |
7728 | if (_argo0) { |
7729 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7730 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7731 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRectangle. Expected _wxDC_p."); |
7732 | return NULL; | |
7733 | } | |
7734 | } | |
cf694132 | 7735 | { |
4268f798 | 7736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7737 | wxDC_DrawRectangle(_arg0,_arg1,_arg2,_arg3,_arg4); |
cf694132 | 7738 | |
4268f798 | 7739 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7740 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7741 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7742 | _resultobj = Py_None; |
7743 | return _resultobj; | |
7744 | } | |
7745 | ||
6999b0d8 RD |
7746 | #define wxDC_DrawRotatedText(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRotatedText(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
7747 | static PyObject *_wrap_wxDC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7748 | PyObject * _resultobj; | |
7749 | wxDC * _arg0; | |
7750 | wxString * _arg1; | |
7751 | wxCoord _arg2; | |
7752 | wxCoord _arg3; | |
7753 | double _arg4; | |
7754 | PyObject * _argo0 = 0; | |
7755 | PyObject * _obj1 = 0; | |
7756 | char *_kwnames[] = { "self","text","x","y","angle", NULL }; | |
7757 | ||
7758 | self = self; | |
7759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiid:wxDC_DrawRotatedText",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_arg4)) | |
7760 | return NULL; | |
7761 | if (_argo0) { | |
7762 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7763 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7764 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRotatedText. Expected _wxDC_p."); | |
7765 | return NULL; | |
7766 | } | |
7767 | } | |
7768 | { | |
c8bc7bb8 RD |
7769 | _arg1 = wxString_in_helper(_obj1); |
7770 | if (_arg1 == NULL) | |
185d7c3e | 7771 | return NULL; |
6999b0d8 RD |
7772 | } |
7773 | { | |
4268f798 | 7774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7775 | wxDC_DrawRotatedText(_arg0,*_arg1,_arg2,_arg3,_arg4); |
6999b0d8 | 7776 | |
4268f798 | 7777 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7778 | if (PyErr_Occurred()) return NULL; |
6999b0d8 RD |
7779 | } Py_INCREF(Py_None); |
7780 | _resultobj = Py_None; | |
7781 | { | |
7782 | if (_obj1) | |
7783 | delete _arg1; | |
7784 | } | |
7785 | return _resultobj; | |
7786 | } | |
7787 | ||
8ab979d7 | 7788 | #define wxDC_DrawRoundedRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawRoundedRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
1afc06c2 | 7789 | static PyObject *_wrap_wxDC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7790 | PyObject * _resultobj; |
7791 | wxDC * _arg0; | |
7792 | long _arg1; | |
7793 | long _arg2; | |
7794 | long _arg3; | |
7795 | long _arg4; | |
1d99702e RD |
7796 | long _arg5 = (long ) 20; |
7797 | PyObject * _argo0 = 0; | |
1afc06c2 | 7798 | char *_kwnames[] = { "self","x","y","width","height","radius", NULL }; |
8ab979d7 RD |
7799 | |
7800 | self = self; | |
1afc06c2 | 7801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll|l:wxDC_DrawRoundedRectangle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5)) |
8ab979d7 | 7802 | return NULL; |
1d99702e RD |
7803 | if (_argo0) { |
7804 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7805 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7806 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRoundedRectangle. Expected _wxDC_p."); |
7807 | return NULL; | |
7808 | } | |
7809 | } | |
cf694132 | 7810 | { |
4268f798 | 7811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7812 | wxDC_DrawRoundedRectangle(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); |
cf694132 | 7813 | |
4268f798 | 7814 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7815 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7816 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7817 | _resultobj = Py_None; |
7818 | return _resultobj; | |
7819 | } | |
7820 | ||
7821 | #define wxDC_DrawSpline(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawSpline(_swigarg0,_swigarg1)) | |
1afc06c2 | 7822 | static PyObject *_wrap_wxDC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7823 | PyObject * _resultobj; |
7824 | wxDC * _arg0; | |
7825 | int _arg1; | |
7826 | wxPoint * _arg2; | |
1d99702e | 7827 | PyObject * _argo0 = 0; |
e0672e2f | 7828 | int NPOINTS; |
8ab979d7 | 7829 | PyObject * _obj2 = 0; |
eec92d76 | 7830 | char *_kwnames[] = { "self","points", NULL }; |
8ab979d7 RD |
7831 | |
7832 | self = self; | |
1afc06c2 | 7833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_DrawSpline",_kwnames,&_argo0,&_obj2)) |
8ab979d7 | 7834 | return NULL; |
1d99702e RD |
7835 | if (_argo0) { |
7836 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7837 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7838 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawSpline. Expected _wxDC_p."); |
7839 | return NULL; | |
7840 | } | |
7841 | } | |
7842 | if (_obj2) | |
7843 | { | |
e0672e2f RD |
7844 | _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS); |
7845 | if (_arg2 == NULL) { | |
7846 | return NULL; | |
7847 | } | |
8ab979d7 RD |
7848 | } |
7849 | { | |
e0672e2f | 7850 | _arg1 = NPOINTS; |
8ab979d7 | 7851 | } |
cf694132 | 7852 | { |
4268f798 | 7853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7854 | wxDC_DrawSpline(_arg0,_arg1,_arg2); |
cf694132 | 7855 | |
4268f798 | 7856 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7857 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7858 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7859 | _resultobj = Py_None; |
7860 | { | |
7861 | delete [] _arg2; | |
7862 | } | |
7863 | return _resultobj; | |
7864 | } | |
7865 | ||
7866 | #define wxDC_DrawText(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawText(_swigarg0,_swigarg1,_swigarg2)) | |
1afc06c2 | 7867 | static PyObject *_wrap_wxDC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7868 | PyObject * _resultobj; |
7869 | wxDC * _arg0; | |
7870 | wxString * _arg1; | |
7871 | long _arg2; | |
7872 | long _arg3; | |
1d99702e | 7873 | PyObject * _argo0 = 0; |
8ab979d7 | 7874 | PyObject * _obj1 = 0; |
1afc06c2 | 7875 | char *_kwnames[] = { "self","text","x","y", NULL }; |
8ab979d7 RD |
7876 | |
7877 | self = self; | |
1afc06c2 | 7878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll:wxDC_DrawText",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3)) |
8ab979d7 | 7879 | return NULL; |
1d99702e RD |
7880 | if (_argo0) { |
7881 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7882 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7883 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawText. Expected _wxDC_p."); |
7884 | return NULL; | |
7885 | } | |
7886 | } | |
7887 | { | |
c8bc7bb8 RD |
7888 | _arg1 = wxString_in_helper(_obj1); |
7889 | if (_arg1 == NULL) | |
185d7c3e | 7890 | return NULL; |
8ab979d7 | 7891 | } |
cf694132 | 7892 | { |
4268f798 | 7893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7894 | wxDC_DrawText(_arg0,*_arg1,_arg2,_arg3); |
cf694132 | 7895 | |
4268f798 | 7896 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7897 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7898 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7899 | _resultobj = Py_None; |
7900 | { | |
7901 | if (_obj1) | |
7902 | delete _arg1; | |
7903 | } | |
7904 | return _resultobj; | |
7905 | } | |
7906 | ||
7907 | #define wxDC_EndDoc(_swigobj) (_swigobj->EndDoc()) | |
1afc06c2 | 7908 | static PyObject *_wrap_wxDC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7909 | PyObject * _resultobj; |
7910 | wxDC * _arg0; | |
1d99702e | 7911 | PyObject * _argo0 = 0; |
1afc06c2 | 7912 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7913 | |
7914 | self = self; | |
1afc06c2 | 7915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndDoc",_kwnames,&_argo0)) |
8ab979d7 | 7916 | return NULL; |
1d99702e RD |
7917 | if (_argo0) { |
7918 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7919 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7920 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndDoc. Expected _wxDC_p."); |
7921 | return NULL; | |
7922 | } | |
7923 | } | |
cf694132 | 7924 | { |
4268f798 | 7925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7926 | wxDC_EndDoc(_arg0); |
cf694132 | 7927 | |
4268f798 | 7928 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7929 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7930 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7931 | _resultobj = Py_None; |
7932 | return _resultobj; | |
7933 | } | |
7934 | ||
7935 | #define wxDC_EndDrawing(_swigobj) (_swigobj->EndDrawing()) | |
1afc06c2 | 7936 | static PyObject *_wrap_wxDC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7937 | PyObject * _resultobj; |
7938 | wxDC * _arg0; | |
1d99702e | 7939 | PyObject * _argo0 = 0; |
1afc06c2 | 7940 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7941 | |
7942 | self = self; | |
1afc06c2 | 7943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndDrawing",_kwnames,&_argo0)) |
8ab979d7 | 7944 | return NULL; |
1d99702e RD |
7945 | if (_argo0) { |
7946 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7947 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7948 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndDrawing. Expected _wxDC_p."); |
7949 | return NULL; | |
7950 | } | |
7951 | } | |
cf694132 | 7952 | { |
4268f798 | 7953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7954 | wxDC_EndDrawing(_arg0); |
cf694132 | 7955 | |
4268f798 | 7956 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7957 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7958 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7959 | _resultobj = Py_None; |
7960 | return _resultobj; | |
7961 | } | |
7962 | ||
7963 | #define wxDC_EndPage(_swigobj) (_swigobj->EndPage()) | |
1afc06c2 | 7964 | static PyObject *_wrap_wxDC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7965 | PyObject * _resultobj; |
7966 | wxDC * _arg0; | |
1d99702e | 7967 | PyObject * _argo0 = 0; |
1afc06c2 | 7968 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7969 | |
7970 | self = self; | |
1afc06c2 | 7971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndPage",_kwnames,&_argo0)) |
8ab979d7 | 7972 | return NULL; |
1d99702e RD |
7973 | if (_argo0) { |
7974 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7975 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7976 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndPage. Expected _wxDC_p."); |
7977 | return NULL; | |
7978 | } | |
7979 | } | |
cf694132 | 7980 | { |
4268f798 | 7981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7982 | wxDC_EndPage(_arg0); |
cf694132 | 7983 | |
4268f798 | 7984 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7985 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7986 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7987 | _resultobj = Py_None; |
7988 | return _resultobj; | |
7989 | } | |
7990 | ||
be4d9c1f | 7991 | #define wxDC_FloodFill(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->FloodFill(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
1afc06c2 | 7992 | static PyObject *_wrap_wxDC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) { |
be4d9c1f RD |
7993 | PyObject * _resultobj; |
7994 | wxDC * _arg0; | |
7995 | long _arg1; | |
7996 | long _arg2; | |
7997 | wxColour * _arg3; | |
1d99702e RD |
7998 | int _arg4 = (int ) wxFLOOD_SURFACE; |
7999 | PyObject * _argo0 = 0; | |
f6bcfd97 BP |
8000 | wxColour temp; |
8001 | PyObject * _obj3 = 0; | |
1afc06c2 | 8002 | char *_kwnames[] = { "self","x","y","colour","style", NULL }; |
be4d9c1f RD |
8003 | |
8004 | self = self; | |
f6bcfd97 | 8005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllO|i:wxDC_FloodFill",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_arg4)) |
be4d9c1f | 8006 | return NULL; |
1d99702e RD |
8007 | if (_argo0) { |
8008 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8009 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
be4d9c1f RD |
8010 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_FloodFill. Expected _wxDC_p."); |
8011 | return NULL; | |
8012 | } | |
8013 | } | |
f6bcfd97 BP |
8014 | { |
8015 | _arg3 = &temp; | |
8016 | if (! wxColour_helper(_obj3, &_arg3)) | |
be4d9c1f | 8017 | return NULL; |
f6bcfd97 | 8018 | } |
cf694132 | 8019 | { |
4268f798 | 8020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8021 | wxDC_FloodFill(_arg0,_arg1,_arg2,*_arg3,_arg4); |
cf694132 | 8022 | |
4268f798 | 8023 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8024 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8025 | } Py_INCREF(Py_None); |
be4d9c1f RD |
8026 | _resultobj = Py_None; |
8027 | return _resultobj; | |
8028 | } | |
8029 | ||
8ab979d7 | 8030 | #define wxDC_GetBackground(_swigobj) (_swigobj->GetBackground()) |
1afc06c2 | 8031 | static PyObject *_wrap_wxDC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8032 | PyObject * _resultobj; |
8033 | wxBrush * _result; | |
8034 | wxDC * _arg0; | |
1d99702e | 8035 | PyObject * _argo0 = 0; |
1afc06c2 | 8036 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8037 | char _ptemp[128]; |
8038 | ||
8039 | self = self; | |
1afc06c2 | 8040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBackground",_kwnames,&_argo0)) |
8ab979d7 | 8041 | return NULL; |
1d99702e RD |
8042 | if (_argo0) { |
8043 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8044 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8045 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBackground. Expected _wxDC_p."); |
8046 | return NULL; | |
8047 | } | |
8048 | } | |
cf694132 | 8049 | { |
4268f798 | 8050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8051 | _result = new wxBrush (wxDC_GetBackground(_arg0)); |
cf694132 | 8052 | |
4268f798 | 8053 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8054 | if (PyErr_Occurred()) return NULL; |
c5943253 RD |
8055 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBrush_p"); |
8056 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
8057 | return _resultobj; |
8058 | } | |
8059 | ||
8060 | #define wxDC_GetBrush(_swigobj) (_swigobj->GetBrush()) | |
1afc06c2 | 8061 | static PyObject *_wrap_wxDC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8062 | PyObject * _resultobj; |
8063 | wxBrush * _result; | |
8064 | wxDC * _arg0; | |
1d99702e | 8065 | PyObject * _argo0 = 0; |
1afc06c2 | 8066 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8067 | char _ptemp[128]; |
8068 | ||
8069 | self = self; | |
1afc06c2 | 8070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBrush",_kwnames,&_argo0)) |
8ab979d7 | 8071 | return NULL; |
1d99702e RD |
8072 | if (_argo0) { |
8073 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8074 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8075 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBrush. Expected _wxDC_p."); |
8076 | return NULL; | |
8077 | } | |
8078 | } | |
cf694132 | 8079 | { |
4268f798 | 8080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8081 | _result = new wxBrush (wxDC_GetBrush(_arg0)); |
cf694132 | 8082 | |
4268f798 | 8083 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8084 | if (PyErr_Occurred()) return NULL; |
c5943253 RD |
8085 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBrush_p"); |
8086 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
8087 | return _resultobj; |
8088 | } | |
8089 | ||
8090 | #define wxDC_GetCharHeight(_swigobj) (_swigobj->GetCharHeight()) | |
1afc06c2 | 8091 | static PyObject *_wrap_wxDC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8092 | PyObject * _resultobj; |
8093 | long _result; | |
8094 | wxDC * _arg0; | |
1d99702e | 8095 | PyObject * _argo0 = 0; |
1afc06c2 | 8096 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8097 | |
8098 | self = self; | |
1afc06c2 | 8099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetCharHeight",_kwnames,&_argo0)) |
8ab979d7 | 8100 | return NULL; |
1d99702e RD |
8101 | if (_argo0) { |
8102 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8103 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8104 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetCharHeight. Expected _wxDC_p."); |
8105 | return NULL; | |
8106 | } | |
8107 | } | |
cf694132 | 8108 | { |
4268f798 | 8109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8110 | _result = (long )wxDC_GetCharHeight(_arg0); |
cf694132 | 8111 | |
4268f798 | 8112 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8113 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8114 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
8115 | return _resultobj; |
8116 | } | |
8117 | ||
8118 | #define wxDC_GetCharWidth(_swigobj) (_swigobj->GetCharWidth()) | |
1afc06c2 | 8119 | static PyObject *_wrap_wxDC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8120 | PyObject * _resultobj; |
8121 | long _result; | |
8122 | wxDC * _arg0; | |
1d99702e | 8123 | PyObject * _argo0 = 0; |
1afc06c2 | 8124 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8125 | |
8126 | self = self; | |
1afc06c2 | 8127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetCharWidth",_kwnames,&_argo0)) |
8ab979d7 | 8128 | return NULL; |
1d99702e RD |
8129 | if (_argo0) { |
8130 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8131 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8132 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetCharWidth. Expected _wxDC_p."); |
8133 | return NULL; | |
8134 | } | |
8135 | } | |
cf694132 | 8136 | { |
4268f798 | 8137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8138 | _result = (long )wxDC_GetCharWidth(_arg0); |
cf694132 | 8139 | |
4268f798 | 8140 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8141 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8142 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
8143 | return _resultobj; |
8144 | } | |
8145 | ||
8146 | #define wxDC_GetClippingBox(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetClippingBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
1afc06c2 | 8147 | static PyObject *_wrap_wxDC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8148 | PyObject * _resultobj; |
8149 | wxDC * _arg0; | |
8150 | long * _arg1; | |
8151 | long temp; | |
8152 | long * _arg2; | |
8153 | long temp0; | |
8154 | long * _arg3; | |
8155 | long temp1; | |
8156 | long * _arg4; | |
8157 | long temp2; | |
1d99702e | 8158 | PyObject * _argo0 = 0; |
1afc06c2 | 8159 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8160 | |
8161 | self = self; | |
8162 | { | |
8163 | _arg1 = &temp; | |
8164 | } | |
8165 | { | |
8166 | _arg2 = &temp0; | |
8167 | } | |
8168 | { | |
8169 | _arg3 = &temp1; | |
8170 | } | |
8171 | { | |
8172 | _arg4 = &temp2; | |
8173 | } | |
1afc06c2 | 8174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetClippingBox",_kwnames,&_argo0)) |
8ab979d7 | 8175 | return NULL; |
1d99702e RD |
8176 | if (_argo0) { |
8177 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8178 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8179 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetClippingBox. Expected _wxDC_p."); |
8180 | return NULL; | |
8181 | } | |
8182 | } | |
cf694132 | 8183 | { |
4268f798 | 8184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8185 | wxDC_GetClippingBox(_arg0,_arg1,_arg2,_arg3,_arg4); |
cf694132 | 8186 | |
4268f798 | 8187 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8188 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8189 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8190 | _resultobj = Py_None; |
8191 | { | |
8192 | PyObject *o; | |
8193 | o = PyInt_FromLong((long) (*_arg1)); | |
8194 | _resultobj = t_output_helper(_resultobj, o); | |
8195 | } | |
8196 | { | |
8197 | PyObject *o; | |
8198 | o = PyInt_FromLong((long) (*_arg2)); | |
8199 | _resultobj = t_output_helper(_resultobj, o); | |
8200 | } | |
8201 | { | |
8202 | PyObject *o; | |
8203 | o = PyInt_FromLong((long) (*_arg3)); | |
8204 | _resultobj = t_output_helper(_resultobj, o); | |
8205 | } | |
8206 | { | |
8207 | PyObject *o; | |
8208 | o = PyInt_FromLong((long) (*_arg4)); | |
8209 | _resultobj = t_output_helper(_resultobj, o); | |
8210 | } | |
8211 | return _resultobj; | |
8212 | } | |
8213 | ||
8214 | #define wxDC_GetFont(_swigobj) (_swigobj->GetFont()) | |
1afc06c2 | 8215 | static PyObject *_wrap_wxDC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8216 | PyObject * _resultobj; |
8217 | wxFont * _result; | |
8218 | wxDC * _arg0; | |
1d99702e | 8219 | PyObject * _argo0 = 0; |
1afc06c2 | 8220 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8221 | char _ptemp[128]; |
8222 | ||
8223 | self = self; | |
1afc06c2 | 8224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetFont",_kwnames,&_argo0)) |
8ab979d7 | 8225 | return NULL; |
1d99702e RD |
8226 | if (_argo0) { |
8227 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8228 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8229 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetFont. Expected _wxDC_p."); |
8230 | return NULL; | |
8231 | } | |
8232 | } | |
cf694132 | 8233 | { |
4268f798 | 8234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8235 | _result = new wxFont (wxDC_GetFont(_arg0)); |
cf694132 | 8236 | |
4268f798 | 8237 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8238 | if (PyErr_Occurred()) return NULL; |
c5943253 RD |
8239 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); |
8240 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
8241 | return _resultobj; |
8242 | } | |
8243 | ||
8244 | #define wxDC_GetLogicalFunction(_swigobj) (_swigobj->GetLogicalFunction()) | |
1afc06c2 | 8245 | static PyObject *_wrap_wxDC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8246 | PyObject * _resultobj; |
8247 | int _result; | |
8248 | wxDC * _arg0; | |
1d99702e | 8249 | PyObject * _argo0 = 0; |
1afc06c2 | 8250 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8251 | |
8252 | self = self; | |
1afc06c2 | 8253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalFunction",_kwnames,&_argo0)) |
8ab979d7 | 8254 | return NULL; |
1d99702e RD |
8255 | if (_argo0) { |
8256 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8257 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8258 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalFunction. Expected _wxDC_p."); |
8259 | return NULL; | |
8260 | } | |
8261 | } | |
cf694132 | 8262 | { |
4268f798 | 8263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8264 | _result = (int )wxDC_GetLogicalFunction(_arg0); |
cf694132 | 8265 | |
4268f798 | 8266 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8267 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8268 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8269 | return _resultobj; |
8270 | } | |
8271 | ||
eec92d76 RD |
8272 | #define wxDC_GetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalScale(_swigarg0,_swigarg1)) |
8273 | static PyObject *_wrap_wxDC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8274 | PyObject * _resultobj; | |
8275 | wxDC * _arg0; | |
8276 | double * _arg1; | |
8277 | double temp; | |
8278 | double * _arg2; | |
8279 | double temp0; | |
8280 | PyObject * _argo0 = 0; | |
8281 | char *_kwnames[] = { "self", NULL }; | |
8282 | ||
8283 | self = self; | |
8284 | { | |
8285 | _arg1 = &temp; | |
8286 | } | |
8287 | { | |
8288 | _arg2 = &temp0; | |
8289 | } | |
8290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalScale",_kwnames,&_argo0)) | |
8291 | return NULL; | |
8292 | if (_argo0) { | |
8293 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8294 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8295 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalScale. Expected _wxDC_p."); | |
8296 | return NULL; | |
8297 | } | |
8298 | } | |
8299 | { | |
4268f798 | 8300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8301 | wxDC_GetLogicalScale(_arg0,_arg1,_arg2); |
eec92d76 | 8302 | |
4268f798 | 8303 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8304 | if (PyErr_Occurred()) return NULL; |
eec92d76 RD |
8305 | } Py_INCREF(Py_None); |
8306 | _resultobj = Py_None; | |
8307 | { | |
8308 | PyObject *o; | |
8309 | o = PyFloat_FromDouble((double) (*_arg1)); | |
8310 | _resultobj = t_output_helper(_resultobj, o); | |
8311 | } | |
8312 | { | |
8313 | PyObject *o; | |
8314 | o = PyFloat_FromDouble((double) (*_arg2)); | |
8315 | _resultobj = t_output_helper(_resultobj, o); | |
8316 | } | |
8317 | return _resultobj; | |
8318 | } | |
8319 | ||
8ab979d7 | 8320 | #define wxDC_GetMapMode(_swigobj) (_swigobj->GetMapMode()) |
1afc06c2 | 8321 | static PyObject *_wrap_wxDC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8322 | PyObject * _resultobj; |
8323 | int _result; | |
8324 | wxDC * _arg0; | |
1d99702e | 8325 | PyObject * _argo0 = 0; |
1afc06c2 | 8326 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8327 | |
8328 | self = self; | |
1afc06c2 | 8329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetMapMode",_kwnames,&_argo0)) |
8ab979d7 | 8330 | return NULL; |
1d99702e RD |
8331 | if (_argo0) { |
8332 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8333 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8334 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetMapMode. Expected _wxDC_p."); |
8335 | return NULL; | |
8336 | } | |
8337 | } | |
cf694132 | 8338 | { |
4268f798 | 8339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8340 | _result = (int )wxDC_GetMapMode(_arg0); |
cf694132 | 8341 | |
4268f798 | 8342 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8343 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8344 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8345 | return _resultobj; |
8346 | } | |
8347 | ||
8348 | #define wxDC_GetOptimization(_swigobj) (_swigobj->GetOptimization()) | |
1afc06c2 | 8349 | static PyObject *_wrap_wxDC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8350 | PyObject * _resultobj; |
8351 | bool _result; | |
8352 | wxDC * _arg0; | |
1d99702e | 8353 | PyObject * _argo0 = 0; |
1afc06c2 | 8354 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8355 | |
8356 | self = self; | |
1afc06c2 | 8357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetOptimization",_kwnames,&_argo0)) |
8ab979d7 | 8358 | return NULL; |
1d99702e RD |
8359 | if (_argo0) { |
8360 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8361 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8362 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetOptimization. Expected _wxDC_p."); |
8363 | return NULL; | |
8364 | } | |
8365 | } | |
cf694132 | 8366 | { |
4268f798 | 8367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8368 | _result = (bool )wxDC_GetOptimization(_arg0); |
cf694132 | 8369 | |
4268f798 | 8370 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8371 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8372 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8373 | return _resultobj; |
8374 | } | |
8375 | ||
8376 | #define wxDC_GetPen(_swigobj) (_swigobj->GetPen()) | |
1afc06c2 | 8377 | static PyObject *_wrap_wxDC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8378 | PyObject * _resultobj; |
8379 | wxPen * _result; | |
8380 | wxDC * _arg0; | |
1d99702e | 8381 | PyObject * _argo0 = 0; |
1afc06c2 | 8382 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8383 | char _ptemp[128]; |
8384 | ||
8385 | self = self; | |
1afc06c2 | 8386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetPen",_kwnames,&_argo0)) |
8ab979d7 | 8387 | return NULL; |
1d99702e RD |
8388 | if (_argo0) { |
8389 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8390 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8391 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPen. Expected _wxDC_p."); |
8392 | return NULL; | |
8393 | } | |
8394 | } | |
cf694132 | 8395 | { |
4268f798 | 8396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8397 | _result = new wxPen (wxDC_GetPen(_arg0)); |
cf694132 | 8398 | |
4268f798 | 8399 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8400 | if (PyErr_Occurred()) return NULL; |
c5943253 RD |
8401 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPen_p"); |
8402 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
8403 | return _resultobj; |
8404 | } | |
8405 | ||
8406 | static wxColour * wxDC_GetPixel(wxDC *self,long x,long y) { | |
8407 | wxColour* wc = new wxColour(); | |
8408 | self->GetPixel(x, y, wc); | |
8409 | return wc; | |
8410 | } | |
1afc06c2 | 8411 | static PyObject *_wrap_wxDC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8412 | PyObject * _resultobj; |
8413 | wxColour * _result; | |
8414 | wxDC * _arg0; | |
8415 | long _arg1; | |
8416 | long _arg2; | |
1d99702e | 8417 | PyObject * _argo0 = 0; |
1afc06c2 | 8418 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
8419 | char _ptemp[128]; |
8420 | ||
8421 | self = self; | |
1afc06c2 | 8422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_GetPixel",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 8423 | return NULL; |
1d99702e RD |
8424 | if (_argo0) { |
8425 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8426 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8427 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPixel. Expected _wxDC_p."); |
8428 | return NULL; | |
8429 | } | |
8430 | } | |
cf694132 | 8431 | { |
4268f798 | 8432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8433 | _result = (wxColour *)wxDC_GetPixel(_arg0,_arg1,_arg2); |
cf694132 | 8434 | |
4268f798 | 8435 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8436 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
8437 | } if (_result) { |
8438 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
8439 | _resultobj = Py_BuildValue("s",_ptemp); | |
8440 | } else { | |
8441 | Py_INCREF(Py_None); | |
8442 | _resultobj = Py_None; | |
8443 | } | |
8ab979d7 RD |
8444 | return _resultobj; |
8445 | } | |
8446 | ||
bb0054cd | 8447 | #define wxDC_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1)) |
1afc06c2 | 8448 | static PyObject *_wrap_wxDC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8449 | PyObject * _resultobj; |
8450 | wxDC * _arg0; | |
8451 | int * _arg1; | |
8452 | int temp; | |
8453 | int * _arg2; | |
8454 | int temp0; | |
1d99702e | 8455 | PyObject * _argo0 = 0; |
1afc06c2 | 8456 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8457 | |
8458 | self = self; | |
8459 | { | |
8460 | _arg1 = &temp; | |
8461 | } | |
8462 | { | |
8463 | _arg2 = &temp0; | |
8464 | } | |
1afc06c2 | 8465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSizeTuple",_kwnames,&_argo0)) |
8ab979d7 | 8466 | return NULL; |
1d99702e RD |
8467 | if (_argo0) { |
8468 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8469 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
bb0054cd | 8470 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSizeTuple. Expected _wxDC_p."); |
8ab979d7 RD |
8471 | return NULL; |
8472 | } | |
8473 | } | |
cf694132 | 8474 | { |
4268f798 | 8475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8476 | wxDC_GetSizeTuple(_arg0,_arg1,_arg2); |
cf694132 | 8477 | |
4268f798 | 8478 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8479 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8480 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8481 | _resultobj = Py_None; |
8482 | { | |
8483 | PyObject *o; | |
8484 | o = PyInt_FromLong((long) (*_arg1)); | |
8485 | _resultobj = t_output_helper(_resultobj, o); | |
8486 | } | |
8487 | { | |
8488 | PyObject *o; | |
8489 | o = PyInt_FromLong((long) (*_arg2)); | |
8490 | _resultobj = t_output_helper(_resultobj, o); | |
8491 | } | |
8492 | return _resultobj; | |
8493 | } | |
8494 | ||
bb0054cd | 8495 | #define wxDC_GetSize(_swigobj) (_swigobj->GetSize()) |
1afc06c2 | 8496 | static PyObject *_wrap_wxDC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
8497 | PyObject * _resultobj; |
8498 | wxSize * _result; | |
8499 | wxDC * _arg0; | |
1d99702e | 8500 | PyObject * _argo0 = 0; |
1afc06c2 | 8501 | char *_kwnames[] = { "self", NULL }; |
bb0054cd RD |
8502 | char _ptemp[128]; |
8503 | ||
8504 | self = self; | |
1afc06c2 | 8505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSize",_kwnames,&_argo0)) |
bb0054cd | 8506 | return NULL; |
1d99702e RD |
8507 | if (_argo0) { |
8508 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8509 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
bb0054cd RD |
8510 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSize. Expected _wxDC_p."); |
8511 | return NULL; | |
8512 | } | |
8513 | } | |
8514 | { | |
4268f798 | 8515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8516 | _result = new wxSize (wxDC_GetSize(_arg0)); |
bb0054cd | 8517 | |
4268f798 | 8518 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8519 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
8520 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
8521 | _resultobj = Py_BuildValue("s",_ptemp); | |
8522 | return _resultobj; | |
8523 | } | |
8524 | ||
eec92d76 RD |
8525 | #define wxDC_GetSizeMM(_swigobj) (_swigobj->GetSizeMM()) |
8526 | static PyObject *_wrap_wxDC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8527 | PyObject * _resultobj; | |
8528 | wxSize * _result; | |
8529 | wxDC * _arg0; | |
8530 | PyObject * _argo0 = 0; | |
8531 | char *_kwnames[] = { "self", NULL }; | |
8532 | char _ptemp[128]; | |
8533 | ||
8534 | self = self; | |
8535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSizeMM",_kwnames,&_argo0)) | |
8536 | return NULL; | |
8537 | if (_argo0) { | |
8538 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8539 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8540 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSizeMM. Expected _wxDC_p."); | |
8541 | return NULL; | |
8542 | } | |
8543 | } | |
8544 | { | |
4268f798 | 8545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8546 | _result = new wxSize (wxDC_GetSizeMM(_arg0)); |
eec92d76 | 8547 | |
4268f798 | 8548 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8549 | if (PyErr_Occurred()) return NULL; |
eec92d76 RD |
8550 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
8551 | _resultobj = Py_BuildValue("s",_ptemp); | |
8552 | return _resultobj; | |
8553 | } | |
8554 | ||
8ab979d7 | 8555 | #define wxDC_GetTextBackground(_swigobj) (_swigobj->GetTextBackground()) |
1afc06c2 | 8556 | static PyObject *_wrap_wxDC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8557 | PyObject * _resultobj; |
8558 | wxColour * _result; | |
8559 | wxDC * _arg0; | |
1d99702e | 8560 | PyObject * _argo0 = 0; |
1afc06c2 | 8561 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8562 | char _ptemp[128]; |
8563 | ||
8564 | self = self; | |
1afc06c2 | 8565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetTextBackground",_kwnames,&_argo0)) |
8ab979d7 | 8566 | return NULL; |
1d99702e RD |
8567 | if (_argo0) { |
8568 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8569 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8570 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextBackground. Expected _wxDC_p."); |
8571 | return NULL; | |
8572 | } | |
8573 | } | |
cf694132 | 8574 | { |
4268f798 | 8575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8576 | _result = new wxColour (wxDC_GetTextBackground(_arg0)); |
cf694132 | 8577 | |
4268f798 | 8578 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8579 | if (PyErr_Occurred()) return NULL; |
25832b3f RD |
8580 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
8581 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
8582 | return _resultobj; |
8583 | } | |
8584 | ||
af309447 | 8585 | #define wxDC_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2)) |
1afc06c2 | 8586 | static PyObject *_wrap_wxDC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
8587 | PyObject * _resultobj; |
8588 | wxDC * _arg0; | |
8589 | wxString * _arg1; | |
8590 | long * _arg2; | |
8591 | long temp; | |
8592 | long * _arg3; | |
8593 | long temp0; | |
1d99702e | 8594 | PyObject * _argo0 = 0; |
af309447 | 8595 | PyObject * _obj1 = 0; |
1afc06c2 | 8596 | char *_kwnames[] = { "self","string", NULL }; |
af309447 RD |
8597 | |
8598 | self = self; | |
8599 | { | |
8600 | _arg2 = &temp; | |
8601 | } | |
8602 | { | |
8603 | _arg3 = &temp0; | |
8604 | } | |
1afc06c2 | 8605 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_GetTextExtent",_kwnames,&_argo0,&_obj1)) |
af309447 | 8606 | return NULL; |
1d99702e RD |
8607 | if (_argo0) { |
8608 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8609 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
af309447 RD |
8610 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextExtent. Expected _wxDC_p."); |
8611 | return NULL; | |
8612 | } | |
8613 | } | |
8614 | { | |
c8bc7bb8 RD |
8615 | _arg1 = wxString_in_helper(_obj1); |
8616 | if (_arg1 == NULL) | |
185d7c3e | 8617 | return NULL; |
af309447 | 8618 | } |
cf694132 | 8619 | { |
4268f798 | 8620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8621 | wxDC_GetTextExtent(_arg0,*_arg1,_arg2,_arg3); |
cf694132 | 8622 | |
4268f798 | 8623 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8624 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8625 | } Py_INCREF(Py_None); |
af309447 RD |
8626 | _resultobj = Py_None; |
8627 | { | |
8628 | PyObject *o; | |
8629 | o = PyInt_FromLong((long) (*_arg2)); | |
8630 | _resultobj = t_output_helper(_resultobj, o); | |
8631 | } | |
8632 | { | |
8633 | PyObject *o; | |
8634 | o = PyInt_FromLong((long) (*_arg3)); | |
8635 | _resultobj = t_output_helper(_resultobj, o); | |
8636 | } | |
8637 | { | |
8638 | if (_obj1) | |
8639 | delete _arg1; | |
8640 | } | |
8641 | return _resultobj; | |
8642 | } | |
8643 | ||
8644 | #define wxDC_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
1afc06c2 | 8645 | static PyObject *_wrap_wxDC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8646 | PyObject * _resultobj; |
8647 | wxDC * _arg0; | |
8648 | wxString * _arg1; | |
8649 | long * _arg2; | |
8650 | long temp; | |
8651 | long * _arg3; | |
8652 | long temp0; | |
8653 | long * _arg4; | |
8654 | long temp1; | |
8655 | long * _arg5; | |
8656 | long temp2; | |
1d99702e RD |
8657 | wxFont * _arg6 = (wxFont *) NULL; |
8658 | PyObject * _argo0 = 0; | |
8ab979d7 | 8659 | PyObject * _obj1 = 0; |
1d99702e | 8660 | PyObject * _argo6 = 0; |
1afc06c2 | 8661 | char *_kwnames[] = { "self","string","font", NULL }; |
8ab979d7 RD |
8662 | |
8663 | self = self; | |
8664 | { | |
8665 | _arg2 = &temp; | |
8666 | } | |
8667 | { | |
8668 | _arg3 = &temp0; | |
8669 | } | |
8670 | { | |
8671 | _arg4 = &temp1; | |
8672 | } | |
8673 | { | |
8674 | _arg5 = &temp2; | |
8675 | } | |
1afc06c2 | 8676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxDC_GetFullTextExtent",_kwnames,&_argo0,&_obj1,&_argo6)) |
8ab979d7 | 8677 | return NULL; |
1d99702e RD |
8678 | if (_argo0) { |
8679 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8680 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
af309447 | 8681 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetFullTextExtent. Expected _wxDC_p."); |
8ab979d7 RD |
8682 | return NULL; |
8683 | } | |
8684 | } | |
8685 | { | |
c8bc7bb8 RD |
8686 | _arg1 = wxString_in_helper(_obj1); |
8687 | if (_arg1 == NULL) | |
185d7c3e | 8688 | return NULL; |
8ab979d7 | 8689 | } |
1d99702e RD |
8690 | if (_argo6) { |
8691 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
8692 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxFont_p")) { | |
af309447 RD |
8693 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxDC_GetFullTextExtent. Expected _wxFont_p."); |
8694 | return NULL; | |
8695 | } | |
8696 | } | |
cf694132 | 8697 | { |
4268f798 | 8698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8699 | wxDC_GetFullTextExtent(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); |
cf694132 | 8700 | |
4268f798 | 8701 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8702 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8703 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8704 | _resultobj = Py_None; |
8705 | { | |
8706 | PyObject *o; | |
8707 | o = PyInt_FromLong((long) (*_arg2)); | |
8708 | _resultobj = t_output_helper(_resultobj, o); | |
8709 | } | |
8710 | { | |
8711 | PyObject *o; | |
8712 | o = PyInt_FromLong((long) (*_arg3)); | |
8713 | _resultobj = t_output_helper(_resultobj, o); | |
8714 | } | |
8715 | { | |
8716 | PyObject *o; | |
8717 | o = PyInt_FromLong((long) (*_arg4)); | |
8718 | _resultobj = t_output_helper(_resultobj, o); | |
8719 | } | |
8720 | { | |
8721 | PyObject *o; | |
8722 | o = PyInt_FromLong((long) (*_arg5)); | |
8723 | _resultobj = t_output_helper(_resultobj, o); | |
8724 | } | |
8725 | { | |
8726 | if (_obj1) | |
8727 | delete _arg1; | |
8728 | } | |
8729 | return _resultobj; | |
8730 | } | |
8731 | ||
8732 | #define wxDC_GetTextForeground(_swigobj) (_swigobj->GetTextForeground()) | |
1afc06c2 | 8733 | static PyObject *_wrap_wxDC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8734 | PyObject * _resultobj; |
8735 | wxColour * _result; | |
8736 | wxDC * _arg0; | |
1d99702e | 8737 | PyObject * _argo0 = 0; |
1afc06c2 | 8738 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8739 | char _ptemp[128]; |
8740 | ||
8741 | self = self; | |
1afc06c2 | 8742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetTextForeground",_kwnames,&_argo0)) |
8ab979d7 | 8743 | return NULL; |
1d99702e RD |
8744 | if (_argo0) { |
8745 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8746 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8747 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextForeground. Expected _wxDC_p."); |
8748 | return NULL; | |
8749 | } | |
8750 | } | |
cf694132 | 8751 | { |
4268f798 | 8752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8753 | _result = new wxColour (wxDC_GetTextForeground(_arg0)); |
cf694132 | 8754 | |
4268f798 | 8755 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8756 | if (PyErr_Occurred()) return NULL; |
25832b3f RD |
8757 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
8758 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
8759 | return _resultobj; |
8760 | } | |
8761 | ||
eec92d76 RD |
8762 | #define wxDC_GetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetUserScale(_swigarg0,_swigarg1)) |
8763 | static PyObject *_wrap_wxDC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8764 | PyObject * _resultobj; | |
8765 | wxDC * _arg0; | |
8766 | double * _arg1; | |
8767 | double temp; | |
8768 | double * _arg2; | |
8769 | double temp0; | |
8770 | PyObject * _argo0 = 0; | |
8771 | char *_kwnames[] = { "self", NULL }; | |
8772 | ||
8773 | self = self; | |
8774 | { | |
8775 | _arg1 = &temp; | |
8776 | } | |
8777 | { | |
8778 | _arg2 = &temp0; | |
8779 | } | |
8780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetUserScale",_kwnames,&_argo0)) | |
8781 | return NULL; | |
8782 | if (_argo0) { | |
8783 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8784 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8785 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetUserScale. Expected _wxDC_p."); | |
8786 | return NULL; | |
8787 | } | |
8788 | } | |
8789 | { | |
4268f798 | 8790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8791 | wxDC_GetUserScale(_arg0,_arg1,_arg2); |
eec92d76 | 8792 | |
4268f798 | 8793 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8794 | if (PyErr_Occurred()) return NULL; |
eec92d76 RD |
8795 | } Py_INCREF(Py_None); |
8796 | _resultobj = Py_None; | |
8797 | { | |
8798 | PyObject *o; | |
8799 | o = PyFloat_FromDouble((double) (*_arg1)); | |
8800 | _resultobj = t_output_helper(_resultobj, o); | |
8801 | } | |
8802 | { | |
8803 | PyObject *o; | |
8804 | o = PyFloat_FromDouble((double) (*_arg2)); | |
8805 | _resultobj = t_output_helper(_resultobj, o); | |
8806 | } | |
8807 | return _resultobj; | |
8808 | } | |
8809 | ||
8ab979d7 | 8810 | #define wxDC_LogicalToDeviceX(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceX(_swigarg0)) |
1afc06c2 | 8811 | static PyObject *_wrap_wxDC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8812 | PyObject * _resultobj; |
8813 | long _result; | |
8814 | wxDC * _arg0; | |
8815 | long _arg1; | |
1d99702e | 8816 | PyObject * _argo0 = 0; |
1afc06c2 | 8817 | char *_kwnames[] = { "self","x", NULL }; |
8ab979d7 RD |
8818 | |
8819 | self = self; | |
1afc06c2 | 8820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceX",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 8821 | return NULL; |
1d99702e RD |
8822 | if (_argo0) { |
8823 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8824 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8825 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceX. Expected _wxDC_p."); |
8826 | return NULL; | |
8827 | } | |
8828 | } | |
cf694132 | 8829 | { |
4268f798 | 8830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8831 | _result = (long )wxDC_LogicalToDeviceX(_arg0,_arg1); |
cf694132 | 8832 | |
4268f798 | 8833 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8834 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8835 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
8836 | return _resultobj; |
8837 | } | |
8838 | ||
8839 | #define wxDC_LogicalToDeviceXRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceXRel(_swigarg0)) | |
1afc06c2 | 8840 | static PyObject *_wrap_wxDC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8841 | PyObject * _resultobj; |
8842 | long _result; | |
8843 | wxDC * _arg0; | |
8844 | long _arg1; | |
1d99702e | 8845 | PyObject * _argo0 = 0; |
1afc06c2 | 8846 | char *_kwnames[] = { "self","x", NULL }; |
8ab979d7 RD |
8847 | |
8848 | self = self; | |
1afc06c2 | 8849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceXRel",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 8850 | return NULL; |
1d99702e RD |
8851 | if (_argo0) { |
8852 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8853 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8854 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceXRel. Expected _wxDC_p."); |
8855 | return NULL; | |
8856 | } | |
8857 | } | |
cf694132 | 8858 | { |
4268f798 | 8859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8860 | _result = (long )wxDC_LogicalToDeviceXRel(_arg0,_arg1); |
cf694132 | 8861 | |
4268f798 | 8862 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8863 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8864 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
8865 | return _resultobj; |
8866 | } | |
8867 | ||
8868 | #define wxDC_LogicalToDeviceY(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceY(_swigarg0)) | |
1afc06c2 | 8869 | static PyObject *_wrap_wxDC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8870 | PyObject * _resultobj; |
8871 | long _result; | |
8872 | wxDC * _arg0; | |
8873 | long _arg1; | |
1d99702e | 8874 | PyObject * _argo0 = 0; |
1afc06c2 | 8875 | char *_kwnames[] = { "self","y", NULL }; |
8ab979d7 RD |
8876 | |
8877 | self = self; | |
1afc06c2 | 8878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceY",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 8879 | return NULL; |
1d99702e RD |
8880 | if (_argo0) { |
8881 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8882 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8883 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceY. Expected _wxDC_p."); |
8884 | return NULL; | |
8885 | } | |
8886 | } | |
cf694132 | 8887 | { |
4268f798 | 8888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8889 | _result = (long )wxDC_LogicalToDeviceY(_arg0,_arg1); |
cf694132 | 8890 | |
4268f798 | 8891 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8892 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8893 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
8894 | return _resultobj; |
8895 | } | |
8896 | ||
8897 | #define wxDC_LogicalToDeviceYRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceYRel(_swigarg0)) | |
1afc06c2 | 8898 | static PyObject *_wrap_wxDC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8899 | PyObject * _resultobj; |
8900 | long _result; | |
8901 | wxDC * _arg0; | |
8902 | long _arg1; | |
1d99702e | 8903 | PyObject * _argo0 = 0; |
1afc06c2 | 8904 | char *_kwnames[] = { "self","y", NULL }; |
8ab979d7 RD |
8905 | |
8906 | self = self; | |
1afc06c2 | 8907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceYRel",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 8908 | return NULL; |
1d99702e RD |
8909 | if (_argo0) { |
8910 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8911 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8912 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceYRel. Expected _wxDC_p."); |
8913 | return NULL; | |
8914 | } | |
8915 | } | |
cf694132 | 8916 | { |
4268f798 | 8917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8918 | _result = (long )wxDC_LogicalToDeviceYRel(_arg0,_arg1); |
cf694132 | 8919 | |
4268f798 | 8920 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8921 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8922 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
8923 | return _resultobj; |
8924 | } | |
8925 | ||
8926 | #define wxDC_MaxX(_swigobj) (_swigobj->MaxX()) | |
1afc06c2 | 8927 | static PyObject *_wrap_wxDC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8928 | PyObject * _resultobj; |
8929 | long _result; | |
8930 | wxDC * _arg0; | |
1d99702e | 8931 | PyObject * _argo0 = 0; |
1afc06c2 | 8932 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8933 | |
8934 | self = self; | |
1afc06c2 | 8935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MaxX",_kwnames,&_argo0)) |
8ab979d7 | 8936 | return NULL; |
1d99702e RD |
8937 | if (_argo0) { |
8938 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8939 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8940 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MaxX. Expected _wxDC_p."); |
8941 | return NULL; | |
8942 | } | |
8943 | } | |
cf694132 | 8944 | { |
4268f798 | 8945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8946 | _result = (long )wxDC_MaxX(_arg0); |
cf694132 | 8947 | |
4268f798 | 8948 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8949 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8950 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
8951 | return _resultobj; |
8952 | } | |
8953 | ||
8954 | #define wxDC_MaxY(_swigobj) (_swigobj->MaxY()) | |
1afc06c2 | 8955 | static PyObject *_wrap_wxDC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8956 | PyObject * _resultobj; |
8957 | long _result; | |
8958 | wxDC * _arg0; | |
1d99702e | 8959 | PyObject * _argo0 = 0; |
1afc06c2 | 8960 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8961 | |
8962 | self = self; | |
1afc06c2 | 8963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MaxY",_kwnames,&_argo0)) |
8ab979d7 | 8964 | return NULL; |
1d99702e RD |
8965 | if (_argo0) { |
8966 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8967 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8968 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MaxY. Expected _wxDC_p."); |
8969 | return NULL; | |
8970 | } | |
8971 | } | |
cf694132 | 8972 | { |
4268f798 | 8973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8974 | _result = (long )wxDC_MaxY(_arg0); |
cf694132 | 8975 | |
4268f798 | 8976 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8977 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8978 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
8979 | return _resultobj; |
8980 | } | |
8981 | ||
8982 | #define wxDC_MinX(_swigobj) (_swigobj->MinX()) | |
1afc06c2 | 8983 | static PyObject *_wrap_wxDC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8984 | PyObject * _resultobj; |
8985 | long _result; | |
8986 | wxDC * _arg0; | |
1d99702e | 8987 | PyObject * _argo0 = 0; |
1afc06c2 | 8988 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8989 | |
8990 | self = self; | |
1afc06c2 | 8991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MinX",_kwnames,&_argo0)) |
8ab979d7 | 8992 | return NULL; |
1d99702e RD |
8993 | if (_argo0) { |
8994 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8995 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8996 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MinX. Expected _wxDC_p."); |
8997 | return NULL; | |
8998 | } | |
8999 | } | |
cf694132 | 9000 | { |
4268f798 | 9001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9002 | _result = (long )wxDC_MinX(_arg0); |
cf694132 | 9003 | |
4268f798 | 9004 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9005 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9006 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
9007 | return _resultobj; |
9008 | } | |
9009 | ||
9010 | #define wxDC_MinY(_swigobj) (_swigobj->MinY()) | |
1afc06c2 | 9011 | static PyObject *_wrap_wxDC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9012 | PyObject * _resultobj; |
9013 | long _result; | |
9014 | wxDC * _arg0; | |
1d99702e | 9015 | PyObject * _argo0 = 0; |
1afc06c2 | 9016 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9017 | |
9018 | self = self; | |
1afc06c2 | 9019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MinY",_kwnames,&_argo0)) |
8ab979d7 | 9020 | return NULL; |
1d99702e RD |
9021 | if (_argo0) { |
9022 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9023 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
9024 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MinY. Expected _wxDC_p."); |
9025 | return NULL; | |
9026 | } | |
9027 | } | |
cf694132 | 9028 | { |
4268f798 | 9029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9030 | _result = (long )wxDC_MinY(_arg0); |
cf694132 | 9031 | |
4268f798 | 9032 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9033 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9034 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
9035 | return _resultobj; |
9036 | } | |
9037 | ||
9038 | #define wxDC_Ok(_swigobj) (_swigobj->Ok()) | |
1afc06c2 | 9039 | static PyObject *_wrap_wxDC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9040 | PyObject * _resultobj; |
9041 | bool _result; | |
9042 | wxDC * _arg0; | |
1d99702e | 9043 | PyObject * _argo0 = 0; |
1afc06c2 | 9044 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9045 | |
9046 | self = self; | |
1afc06c2 | 9047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_Ok",_kwnames,&_argo0)) |
8ab979d7 | 9048 | return NULL; |
1d99702e RD |
9049 | if (_argo0) { |
9050 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9051 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
9052 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Ok. Expected _wxDC_p."); |
9053 | return NULL; | |
9054 | } | |
9055 | } | |
cf694132 | 9056 | { |
4268f798 | 9057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9058 | _result = (bool )wxDC_Ok(_arg0); |
cf694132 | 9059 | |
4268f798 | 9060 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9061 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9062 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9063 | return _resultobj; |
9064 | } | |
9065 | ||
9066 | #define wxDC_SetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDeviceOrigin(_swigarg0,_swigarg1)) | |
1afc06c2 | 9067 | static PyObject *_wrap_wxDC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9068 | PyObject * _resultobj; |
9069 | wxDC * _arg0; | |
9070 | long _arg1; | |
9071 | long _arg2; | |
1d99702e | 9072 | PyObject * _argo0 = 0; |
1afc06c2 | 9073 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
9074 | |
9075 | self = self; | |
1afc06c2 | 9076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_SetDeviceOrigin",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 9077 | return NULL; |
1d99702e RD |
9078 | if (_argo0) { |
9079 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9080 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
9081 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetDeviceOrigin. Expected _wxDC_p."); |
9082 | return NULL; | |
9083 | } | |
9084 | } | |
cf694132 | 9085 | { |
4268f798 | 9086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9087 | wxDC_SetDeviceOrigin(_arg0,_arg1,_arg2); |
cf694132 | 9088 | |
4268f798 | 9089 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9090 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9091 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9092 | _resultobj = Py_None; |
9093 | return _resultobj; | |
9094 | } | |
9095 | ||
9096 | #define wxDC_SetBackground(_swigobj,_swigarg0) (_swigobj->SetBackground(_swigarg0)) | |
1afc06c2 | 9097 | static PyObject *_wrap_wxDC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9098 | PyObject * _resultobj; |
9099 | wxDC * _arg0; | |
9100 | wxBrush * _arg1; | |
1d99702e RD |
9101 | PyObject * _argo0 = 0; |
9102 | PyObject * _argo1 = 0; | |
1afc06c2 | 9103 | char *_kwnames[] = { "self","brush", NULL }; |
8ab979d7 RD |
9104 | |
9105 | self = self; | |
1afc06c2 | 9106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetBackground",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 9107 | return NULL; |
1d99702e RD |
9108 | if (_argo0) { |
9109 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9110 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
9111 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBackground. Expected _wxDC_p."); |
9112 | return NULL; | |
9113 | } | |
9114 | } | |
1d99702e RD |
9115 | if (_argo1) { |
9116 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9117 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) { | |
8ab979d7 RD |
9118 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetBackground. Expected _wxBrush_p."); |
9119 | return NULL; | |
9120 | } | |
9121 | } | |
cf694132 | 9122 | { |
4268f798 | 9123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9124 | wxDC_SetBackground(_arg0,*_arg1); |
cf694132 | 9125 | |
4268f798 | 9126 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9127 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9128 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9129 | _resultobj = Py_None; |
9130 | return _resultobj; | |
9131 | } | |
9132 | ||
9133 | #define wxDC_SetBackgroundMode(_swigobj,_swigarg0) (_swigobj->SetBackgroundMode(_swigarg0)) | |
1afc06c2 | 9134 | static PyObject *_wrap_wxDC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9135 | PyObject * _resultobj; |
9136 | wxDC * _arg0; | |
9137 | int _arg1; | |
1d99702e | 9138 | PyObject * _argo0 = 0; |
1afc06c2 | 9139 | char *_kwnames[] = { "self","mode", NULL }; |
8ab979d7 RD |
9140 | |
9141 | self = self; | |
1afc06c2 | 9142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetBackgroundMode",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 9143 | return NULL; |
1d99702e RD |
9144 | if (_argo0) { |
9145 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9146 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
9147 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBackgroundMode. Expected _wxDC_p."); |
9148 | return NULL; | |
9149 | } | |
9150 | } | |
cf694132 | 9151 | { |
4268f798 | 9152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9153 | wxDC_SetBackgroundMode(_arg0,_arg1); |
cf694132 | 9154 | |
4268f798 | 9155 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9156 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9157 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9158 | _resultobj = Py_None; |
9159 | return _resultobj; | |
9160 | } | |
9161 | ||
9162 | #define wxDC_SetClippingRegion(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetClippingRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
1afc06c2 | 9163 | static PyObject *_wrap_wxDC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9164 | PyObject * _resultobj; |
9165 | wxDC * _arg0; | |
9166 | long _arg1; | |
9167 | long _arg2; | |
9168 | long _arg3; | |
9169 | long _arg4; | |
1d99702e | 9170 | PyObject * _argo0 = 0; |
1afc06c2 | 9171 | char *_kwnames[] = { "self","x","y","width","height", NULL }; |
8ab979d7 RD |
9172 | |
9173 | self = self; | |
1afc06c2 | 9174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_SetClippingRegion",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) |
8ab979d7 | 9175 | return NULL; |
1d99702e RD |
9176 | if (_argo0) { |
9177 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9178 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
9179 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetClippingRegion. Expected _wxDC_p."); |
9180 | return NULL; | |
9181 | } | |
9182 | } | |
cf694132 | 9183 | { |
4268f798 | 9184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9185 | wxDC_SetClippingRegion(_arg0,_arg1,_arg2,_arg3,_arg4); |
cf694132 | 9186 | |
4268f798 | 9187 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9188 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9189 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9190 | _resultobj = Py_None; |
9191 | return _resultobj; | |
9192 | } | |
9193 | ||
19a97bd6 RD |
9194 | #define wxDC_SetClippingRegionAsRegion(_swigobj,_swigarg0) (_swigobj->SetClippingRegion(_swigarg0)) |
9195 | static PyObject *_wrap_wxDC_SetClippingRegionAsRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9196 | PyObject * _resultobj; | |
9197 | wxDC * _arg0; | |
9198 | wxRegion * _arg1; | |
9199 | PyObject * _argo0 = 0; | |
9200 | PyObject * _argo1 = 0; | |
9201 | char *_kwnames[] = { "self","region", NULL }; | |
9202 | ||
9203 | self = self; | |
9204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetClippingRegionAsRegion",_kwnames,&_argo0,&_argo1)) | |
9205 | return NULL; | |
9206 | if (_argo0) { | |
9207 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9208 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9209 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetClippingRegionAsRegion. Expected _wxDC_p."); | |
9210 | return NULL; | |
9211 | } | |
9212 | } | |
9213 | if (_argo1) { | |
9214 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9215 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) { | |
9216 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetClippingRegionAsRegion. Expected _wxRegion_p."); | |
9217 | return NULL; | |
9218 | } | |
9219 | } | |
9220 | { | |
4268f798 | 9221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9222 | wxDC_SetClippingRegionAsRegion(_arg0,*_arg1); |
19a97bd6 | 9223 | |
4268f798 | 9224 | wxPyEndAllowThreads(__tstate); |
19a97bd6 RD |
9225 | if (PyErr_Occurred()) return NULL; |
9226 | } Py_INCREF(Py_None); | |
9227 | _resultobj = Py_None; | |
9228 | return _resultobj; | |
9229 | } | |
9230 | ||
8ab979d7 | 9231 | #define wxDC_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0)) |
1afc06c2 | 9232 | static PyObject *_wrap_wxDC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9233 | PyObject * _resultobj; |
9234 | wxDC * _arg0; | |
9235 | wxPalette * _arg1; | |
1d99702e RD |
9236 | PyObject * _argo0 = 0; |
9237 | PyObject * _argo1 = 0; | |
1afc06c2 | 9238 | char *_kwnames[] = { "self","colourMap", NULL }; |
8ab979d7 RD |
9239 | |
9240 | self = self; | |
1afc06c2 | 9241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetPalette",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 9242 | return NULL; |
1d99702e RD |
9243 | if (_argo0) { |
9244 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9245 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
9246 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetPalette. Expected _wxDC_p."); |
9247 | return NULL; | |
9248 | } | |
9249 | } | |
1d99702e RD |
9250 | if (_argo1) { |
9251 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9252 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPalette_p")) { | |
8ab979d7 RD |
9253 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetPalette. Expected _wxPalette_p."); |
9254 | return NULL; | |
9255 | } | |
9256 | } | |
cf694132 | 9257 | { |
4268f798 | 9258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9259 | wxDC_SetPalette(_arg0,*_arg1); |
cf694132 | 9260 | |
4268f798 | 9261 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9262 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9263 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9264 | _resultobj = Py_None; |
9265 | return _resultobj; | |
9266 | } | |
9267 | ||
9268 | #define wxDC_SetBrush(_swigobj,_swigarg0) (_swigobj->SetBrush(_swigarg0)) | |
1afc06c2 | 9269 | static PyObject *_wrap_wxDC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9270 | PyObject * _resultobj; |
9271 | wxDC * _arg0; | |
9272 | wxBrush * _arg1; | |
1d99702e RD |
9273 | PyObject * _argo0 = 0; |
9274 | PyObject * _argo1 = 0; | |
1afc06c2 | 9275 | char *_kwnames[] = { "self","brush", NULL }; |
8ab979d7 RD |
9276 | |
9277 | self = self; | |
1afc06c2 | 9278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetBrush",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 9279 | return NULL; |
1d99702e RD |
9280 | if (_argo0) { |
9281 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9282 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
9283 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBrush. Expected _wxDC_p."); |
9284 | return NULL; | |
9285 | } | |
9286 | } | |
1d99702e RD |
9287 | if (_argo1) { |
9288 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9289 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) { | |
8ab979d7 RD |
9290 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetBrush. Expected _wxBrush_p."); |
9291 | return NULL; | |
9292 | } | |
9293 | } | |
cf694132 | 9294 | { |
4268f798 | 9295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9296 | wxDC_SetBrush(_arg0,*_arg1); |
cf694132 | 9297 | |
4268f798 | 9298 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9299 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9300 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9301 | _resultobj = Py_None; |
9302 | return _resultobj; | |
9303 | } | |
9304 | ||
9305 | #define wxDC_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) | |
1afc06c2 | 9306 | static PyObject *_wrap_wxDC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9307 | PyObject * _resultobj; |
9308 | wxDC * _arg0; | |
9309 | wxFont * _arg1; | |
1d99702e RD |
9310 | PyObject * _argo0 = 0; |
9311 | PyObject * _argo1 = 0; | |
1afc06c2 | 9312 | char *_kwnames[] = { "self","font", NULL }; |
8ab979d7 RD |
9313 | |
9314 | self = self; | |
1afc06c2 | 9315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetFont",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 9316 | return NULL; |
1d99702e RD |
9317 | if (_argo0) { |
9318 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9319 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
9320 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetFont. Expected _wxDC_p."); |
9321 | return NULL; | |
9322 | } | |
9323 | } | |
1d99702e RD |
9324 | if (_argo1) { |
9325 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9326 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
8ab979d7 RD |
9327 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetFont. Expected _wxFont_p."); |
9328 | return NULL; | |
9329 | } | |
9330 | } | |
cf694132 | 9331 | { |
4268f798 | 9332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9333 | wxDC_SetFont(_arg0,*_arg1); |
cf694132 | 9334 | |
4268f798 | 9335 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9336 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9337 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9338 | _resultobj = Py_None; |
9339 | return _resultobj; | |
9340 | } | |
9341 | ||
9342 | #define wxDC_SetLogicalFunction(_swigobj,_swigarg0) (_swigobj->SetLogicalFunction(_swigarg0)) | |
1afc06c2 | 9343 | static PyObject *_wrap_wxDC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9344 | PyObject * _resultobj; |
9345 | wxDC * _arg0; | |
9346 | int _arg1; | |
1d99702e | 9347 | PyObject * _argo0 = 0; |
1afc06c2 | 9348 | char *_kwnames[] = { "self","function", NULL }; |
8ab979d7 RD |
9349 | |
9350 | self = self; | |
1afc06c2 | 9351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetLogicalFunction",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 9352 | return NULL; |
1d99702e RD |
9353 | if (_argo0) { |
9354 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9355 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
9356 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalFunction. Expected _wxDC_p."); |
9357 | return NULL; | |
9358 | } | |
9359 | } | |
cf694132 | 9360 | { |
4268f798 | 9361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9362 | wxDC_SetLogicalFunction(_arg0,_arg1); |
cf694132 | 9363 | |
4268f798 | 9364 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9365 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9366 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9367 | _resultobj = Py_None; |
9368 | return _resultobj; | |
9369 | } | |
9370 | ||
eec92d76 RD |
9371 | #define wxDC_SetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalScale(_swigarg0,_swigarg1)) |
9372 | static PyObject *_wrap_wxDC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9373 | PyObject * _resultobj; | |
9374 | wxDC * _arg0; | |
9375 | double _arg1; | |
9376 | double _arg2; | |
9377 | PyObject * _argo0 = 0; | |
9378 | char *_kwnames[] = { "self","x","y", NULL }; | |
9379 | ||
9380 | self = self; | |
9381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxDC_SetLogicalScale",_kwnames,&_argo0,&_arg1,&_arg2)) | |
9382 | return NULL; | |
9383 | if (_argo0) { | |
9384 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9385 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9386 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalScale. Expected _wxDC_p."); | |
9387 | return NULL; | |
9388 | } | |
9389 | } | |
9390 | { | |
4268f798 | 9391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9392 | wxDC_SetLogicalScale(_arg0,_arg1,_arg2); |
eec92d76 | 9393 | |
4268f798 | 9394 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9395 | if (PyErr_Occurred()) return NULL; |
eec92d76 RD |
9396 | } Py_INCREF(Py_None); |
9397 | _resultobj = Py_None; | |
9398 | return _resultobj; | |
9399 | } | |
9400 | ||
8ab979d7 | 9401 | #define wxDC_SetMapMode(_swigobj,_swigarg0) (_swigobj->SetMapMode(_swigarg0)) |
1afc06c2 | 9402 | static PyObject *_wrap_wxDC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9403 | PyObject * _resultobj; |
9404 | wxDC * _arg0; | |
9405 | int _arg1; | |
1d99702e | 9406 | PyObject * _argo0 = 0; |
1afc06c2 | 9407 | char *_kwnames[] = { "self","mode", NULL }; |
8ab979d7 RD |
9408 | |
9409 | self = self; | |
1afc06c2 | 9410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetMapMode",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 9411 | return NULL; |
1d99702e RD |
9412 | if (_argo0) { |
9413 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9414 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
9415 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetMapMode. Expected _wxDC_p."); |
9416 | return NULL; | |
9417 | } | |
9418 | } | |
cf694132 | 9419 | { |
4268f798 | 9420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9421 | wxDC_SetMapMode(_arg0,_arg1); |
cf694132 | 9422 | |
4268f798 | 9423 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9424 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9425 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9426 | _resultobj = Py_None; |
9427 | return _resultobj; | |
9428 | } | |
9429 | ||
9430 | #define wxDC_SetOptimization(_swigobj,_swigarg0) (_swigobj->SetOptimization(_swigarg0)) | |
1afc06c2 | 9431 | static PyObject *_wrap_wxDC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9432 | PyObject * _resultobj; |
9433 | wxDC * _arg0; | |
9434 | bool _arg1; | |
1d99702e | 9435 | PyObject * _argo0 = 0; |
8ab979d7 | 9436 | int tempbool1; |
1afc06c2 | 9437 | char *_kwnames[] = { "self","optimize", NULL }; |
8ab979d7 RD |
9438 | |
9439 | self = self; | |
1afc06c2 | 9440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetOptimization",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 9441 | return NULL; |
1d99702e RD |
9442 | if (_argo0) { |
9443 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9444 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
9445 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetOptimization. Expected _wxDC_p."); |
9446 | return NULL; | |
9447 | } | |
9448 | } | |
9449 | _arg1 = (bool ) tempbool1; | |
cf694132 | 9450 | { |
4268f798 | 9451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9452 | wxDC_SetOptimization(_arg0,_arg1); |
cf694132 | 9453 | |
4268f798 | 9454 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9455 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9456 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9457 | _resultobj = Py_None; |
9458 | return _resultobj; | |
9459 | } | |
9460 | ||
9461 | #define wxDC_SetPen(_swigobj,_swigarg0) (_swigobj->SetPen(_swigarg0)) | |
1afc06c2 | 9462 | static PyObject *_wrap_wxDC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9463 | PyObject * _resultobj; |
9464 | wxDC * _arg0; | |
9465 | wxPen * _arg1; | |
1d99702e RD |
9466 | PyObject * _argo0 = 0; |
9467 | PyObject * _argo1 = 0; | |
1afc06c2 | 9468 | char *_kwnames[] = { "self","pen", NULL }; |
8ab979d7 RD |
9469 | |
9470 | self = self; | |
1afc06c2 | 9471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetPen",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 9472 | return NULL; |
1d99702e RD |
9473 | if (_argo0) { |
9474 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9475 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
9476 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetPen. Expected _wxDC_p."); |
9477 | return NULL; | |
9478 | } | |
9479 | } | |
1d99702e RD |
9480 | if (_argo1) { |
9481 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9482 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) { | |
8ab979d7 RD |
9483 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetPen. Expected _wxPen_p."); |
9484 | return NULL; | |
9485 | } | |
9486 | } | |
cf694132 | 9487 | { |
4268f798 | 9488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9489 | wxDC_SetPen(_arg0,*_arg1); |
cf694132 | 9490 | |
4268f798 | 9491 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9492 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9493 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9494 | _resultobj = Py_None; |
9495 | return _resultobj; | |
9496 | } | |
9497 | ||
9498 | #define wxDC_SetTextBackground(_swigobj,_swigarg0) (_swigobj->SetTextBackground(_swigarg0)) | |
1afc06c2 | 9499 | static PyObject *_wrap_wxDC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9500 | PyObject * _resultobj; |
9501 | wxDC * _arg0; | |
9502 | wxColour * _arg1; | |
1d99702e | 9503 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
9504 | wxColour temp; |
9505 | PyObject * _obj1 = 0; | |
1afc06c2 | 9506 | char *_kwnames[] = { "self","colour", NULL }; |
8ab979d7 RD |
9507 | |
9508 | self = self; | |
f6bcfd97 | 9509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetTextBackground",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 9510 | return NULL; |
1d99702e RD |
9511 | if (_argo0) { |
9512 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9513 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
9514 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetTextBackground. Expected _wxDC_p."); |
9515 | return NULL; | |
9516 | } | |
9517 | } | |
f6bcfd97 BP |
9518 | { |
9519 | _arg1 = &temp; | |
9520 | if (! wxColour_helper(_obj1, &_arg1)) | |
8ab979d7 | 9521 | return NULL; |
f6bcfd97 | 9522 | } |
cf694132 | 9523 | { |
4268f798 | 9524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9525 | wxDC_SetTextBackground(_arg0,*_arg1); |
cf694132 | 9526 | |
4268f798 | 9527 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9528 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9529 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9530 | _resultobj = Py_None; |
9531 | return _resultobj; | |
9532 | } | |
9533 | ||
9534 | #define wxDC_SetTextForeground(_swigobj,_swigarg0) (_swigobj->SetTextForeground(_swigarg0)) | |
1afc06c2 | 9535 | static PyObject *_wrap_wxDC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9536 | PyObject * _resultobj; |
9537 | wxDC * _arg0; | |
9538 | wxColour * _arg1; | |
1d99702e | 9539 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
9540 | wxColour temp; |
9541 | PyObject * _obj1 = 0; | |
1afc06c2 | 9542 | char *_kwnames[] = { "self","colour", NULL }; |
8ab979d7 RD |
9543 | |
9544 | self = self; | |
f6bcfd97 | 9545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetTextForeground",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 9546 | return NULL; |
1d99702e RD |
9547 | if (_argo0) { |
9548 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9549 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
9550 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetTextForeground. Expected _wxDC_p."); |
9551 | return NULL; | |
9552 | } | |
9553 | } | |
f6bcfd97 BP |
9554 | { |
9555 | _arg1 = &temp; | |
9556 | if (! wxColour_helper(_obj1, &_arg1)) | |
8ab979d7 | 9557 | return NULL; |
f6bcfd97 | 9558 | } |
cf694132 | 9559 | { |
4268f798 | 9560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9561 | wxDC_SetTextForeground(_arg0,*_arg1); |
cf694132 | 9562 | |
4268f798 | 9563 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9564 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9565 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9566 | _resultobj = Py_None; |
9567 | return _resultobj; | |
9568 | } | |
9569 | ||
9570 | #define wxDC_SetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetUserScale(_swigarg0,_swigarg1)) | |
1afc06c2 | 9571 | static PyObject *_wrap_wxDC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9572 | PyObject * _resultobj; |
9573 | wxDC * _arg0; | |
9574 | double _arg1; | |
9575 | double _arg2; | |
1d99702e | 9576 | PyObject * _argo0 = 0; |
1afc06c2 | 9577 | char *_kwnames[] = { "self","x_scale","y_scale", NULL }; |
8ab979d7 RD |
9578 | |
9579 | self = self; | |
1afc06c2 | 9580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxDC_SetUserScale",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 9581 | return NULL; |
1d99702e RD |
9582 | if (_argo0) { |
9583 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9584 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
9585 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetUserScale. Expected _wxDC_p."); |
9586 | return NULL; | |
9587 | } | |
9588 | } | |
cf694132 | 9589 | { |
4268f798 | 9590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9591 | wxDC_SetUserScale(_arg0,_arg1,_arg2); |
cf694132 | 9592 | |
4268f798 | 9593 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9594 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9595 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9596 | _resultobj = Py_None; |
9597 | return _resultobj; | |
9598 | } | |
9599 | ||
9600 | #define wxDC_StartDoc(_swigobj,_swigarg0) (_swigobj->StartDoc(_swigarg0)) | |
1afc06c2 | 9601 | static PyObject *_wrap_wxDC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9602 | PyObject * _resultobj; |
9603 | bool _result; | |
9604 | wxDC * _arg0; | |
9605 | wxString * _arg1; | |
1d99702e | 9606 | PyObject * _argo0 = 0; |
8ab979d7 | 9607 | PyObject * _obj1 = 0; |
1afc06c2 | 9608 | char *_kwnames[] = { "self","message", NULL }; |
8ab979d7 RD |
9609 | |
9610 | self = self; | |
1afc06c2 | 9611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_StartDoc",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 9612 | return NULL; |
1d99702e RD |
9613 | if (_argo0) { |
9614 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9615 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
9616 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_StartDoc. Expected _wxDC_p."); |
9617 | return NULL; | |
9618 | } | |
9619 | } | |
9620 | { | |
c8bc7bb8 RD |
9621 | _arg1 = wxString_in_helper(_obj1); |
9622 | if (_arg1 == NULL) | |
185d7c3e | 9623 | return NULL; |
8ab979d7 | 9624 | } |
cf694132 | 9625 | { |
4268f798 | 9626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9627 | _result = (bool )wxDC_StartDoc(_arg0,*_arg1); |
cf694132 | 9628 | |
4268f798 | 9629 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9630 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9631 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9632 | { |
9633 | if (_obj1) | |
9634 | delete _arg1; | |
9635 | } | |
9636 | return _resultobj; | |
9637 | } | |
9638 | ||
9639 | #define wxDC_StartPage(_swigobj) (_swigobj->StartPage()) | |
1afc06c2 | 9640 | static PyObject *_wrap_wxDC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9641 | PyObject * _resultobj; |
9642 | wxDC * _arg0; | |
1d99702e | 9643 | PyObject * _argo0 = 0; |
1afc06c2 | 9644 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9645 | |
9646 | self = self; | |
1afc06c2 | 9647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_StartPage",_kwnames,&_argo0)) |
8ab979d7 | 9648 | return NULL; |
1d99702e RD |
9649 | if (_argo0) { |
9650 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9651 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
9652 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_StartPage. Expected _wxDC_p."); |
9653 | return NULL; | |
9654 | } | |
9655 | } | |
cf694132 | 9656 | { |
4268f798 | 9657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9658 | wxDC_StartPage(_arg0); |
cf694132 | 9659 | |
4268f798 | 9660 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9661 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9662 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9663 | _resultobj = Py_None; |
9664 | return _resultobj; | |
9665 | } | |
9666 | ||
efc5f224 | 9667 | #define wxDC_DrawBitmap(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
1afc06c2 | 9668 | static PyObject *_wrap_wxDC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9669 | PyObject * _resultobj; |
9670 | wxDC * _arg0; | |
9671 | wxBitmap * _arg1; | |
9672 | long _arg2; | |
9673 | long _arg3; | |
efc5f224 | 9674 | int _arg4 = (int ) FALSE; |
1d99702e RD |
9675 | PyObject * _argo0 = 0; |
9676 | PyObject * _argo1 = 0; | |
1afc06c2 | 9677 | char *_kwnames[] = { "self","bitmap","x","y","useMask", NULL }; |
8ab979d7 RD |
9678 | |
9679 | self = self; | |
1afc06c2 | 9680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll|i:wxDC_DrawBitmap",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_arg4)) |
8ab979d7 | 9681 | return NULL; |
1d99702e RD |
9682 | if (_argo0) { |
9683 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9684 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
9685 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawBitmap. Expected _wxDC_p."); |
9686 | return NULL; | |
9687 | } | |
9688 | } | |
1d99702e RD |
9689 | if (_argo1) { |
9690 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9691 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
8ab979d7 RD |
9692 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_DrawBitmap. Expected _wxBitmap_p."); |
9693 | return NULL; | |
9694 | } | |
9695 | } | |
cf694132 | 9696 | { |
4268f798 | 9697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9698 | wxDC_DrawBitmap(_arg0,*_arg1,_arg2,_arg3,_arg4); |
cf694132 | 9699 | |
4268f798 | 9700 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9701 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9702 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9703 | _resultobj = Py_None; |
9704 | return _resultobj; | |
9705 | } | |
9706 | ||
eec92d76 RD |
9707 | #define wxDC_CanDrawBitmap(_swigobj) (_swigobj->CanDrawBitmap()) |
9708 | static PyObject *_wrap_wxDC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9709 | PyObject * _resultobj; | |
9710 | bool _result; | |
9711 | wxDC * _arg0; | |
9712 | PyObject * _argo0 = 0; | |
9713 | char *_kwnames[] = { "self", NULL }; | |
9714 | ||
9715 | self = self; | |
9716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_CanDrawBitmap",_kwnames,&_argo0)) | |
9717 | return NULL; | |
9718 | if (_argo0) { | |
9719 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9720 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9721 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CanDrawBitmap. Expected _wxDC_p."); | |
9722 | return NULL; | |
9723 | } | |
9724 | } | |
9725 | { | |
4268f798 | 9726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9727 | _result = (bool )wxDC_CanDrawBitmap(_arg0); |
eec92d76 | 9728 | |
4268f798 | 9729 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9730 | if (PyErr_Occurred()) return NULL; |
eec92d76 RD |
9731 | } _resultobj = Py_BuildValue("i",_result); |
9732 | return _resultobj; | |
9733 | } | |
9734 | ||
9735 | #define wxDC_CanGetTextExtent(_swigobj) (_swigobj->CanGetTextExtent()) | |
9736 | static PyObject *_wrap_wxDC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9737 | PyObject * _resultobj; | |
9738 | bool _result; | |
9739 | wxDC * _arg0; | |
9740 | PyObject * _argo0 = 0; | |
9741 | char *_kwnames[] = { "self", NULL }; | |
9742 | ||
9743 | self = self; | |
9744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_CanGetTextExtent",_kwnames,&_argo0)) | |
9745 | return NULL; | |
9746 | if (_argo0) { | |
9747 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9748 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9749 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CanGetTextExtent. Expected _wxDC_p."); | |
9750 | return NULL; | |
9751 | } | |
9752 | } | |
9753 | { | |
4268f798 | 9754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9755 | _result = (bool )wxDC_CanGetTextExtent(_arg0); |
eec92d76 | 9756 | |
4268f798 | 9757 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9758 | if (PyErr_Occurred()) return NULL; |
eec92d76 RD |
9759 | } _resultobj = Py_BuildValue("i",_result); |
9760 | return _resultobj; | |
9761 | } | |
9762 | ||
9763 | #define wxDC_GetDepth(_swigobj) (_swigobj->GetDepth()) | |
9764 | static PyObject *_wrap_wxDC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9765 | PyObject * _resultobj; | |
9766 | int _result; | |
9767 | wxDC * _arg0; | |
9768 | PyObject * _argo0 = 0; | |
9769 | char *_kwnames[] = { "self", NULL }; | |
9770 | ||
9771 | self = self; | |
9772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetDepth",_kwnames,&_argo0)) | |
9773 | return NULL; | |
9774 | if (_argo0) { | |
9775 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9776 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9777 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetDepth. Expected _wxDC_p."); | |
9778 | return NULL; | |
9779 | } | |
9780 | } | |
9781 | { | |
4268f798 | 9782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9783 | _result = (int )wxDC_GetDepth(_arg0); |
eec92d76 | 9784 | |
4268f798 | 9785 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9786 | if (PyErr_Occurred()) return NULL; |
eec92d76 RD |
9787 | } _resultobj = Py_BuildValue("i",_result); |
9788 | return _resultobj; | |
9789 | } | |
9790 | ||
9791 | #define wxDC_GetPPI(_swigobj) (_swigobj->GetPPI()) | |
9792 | static PyObject *_wrap_wxDC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9793 | PyObject * _resultobj; | |
9794 | wxSize * _result; | |
9795 | wxDC * _arg0; | |
9796 | PyObject * _argo0 = 0; | |
9797 | char *_kwnames[] = { "self", NULL }; | |
9798 | char _ptemp[128]; | |
9799 | ||
9800 | self = self; | |
9801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetPPI",_kwnames,&_argo0)) | |
9802 | return NULL; | |
9803 | if (_argo0) { | |
9804 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9805 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9806 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPPI. Expected _wxDC_p."); | |
9807 | return NULL; | |
9808 | } | |
9809 | } | |
9810 | { | |
4268f798 | 9811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9812 | _result = new wxSize (wxDC_GetPPI(_arg0)); |
eec92d76 | 9813 | |
4268f798 | 9814 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9815 | if (PyErr_Occurred()) return NULL; |
eec92d76 RD |
9816 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
9817 | _resultobj = Py_BuildValue("s",_ptemp); | |
9818 | return _resultobj; | |
9819 | } | |
9820 | ||
9821 | #define wxDC_GetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalOrigin(_swigarg0,_swigarg1)) | |
9822 | static PyObject *_wrap_wxDC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9823 | PyObject * _resultobj; | |
9824 | wxDC * _arg0; | |
9825 | int * _arg1; | |
9826 | int temp; | |
9827 | int * _arg2; | |
9828 | int temp0; | |
9829 | PyObject * _argo0 = 0; | |
9830 | char *_kwnames[] = { "self", NULL }; | |
9831 | ||
9832 | self = self; | |
9833 | { | |
9834 | _arg1 = &temp; | |
9835 | } | |
9836 | { | |
9837 | _arg2 = &temp0; | |
9838 | } | |
9839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalOrigin",_kwnames,&_argo0)) | |
9840 | return NULL; | |
9841 | if (_argo0) { | |
9842 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9843 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9844 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalOrigin. Expected _wxDC_p."); | |
9845 | return NULL; | |
9846 | } | |
9847 | } | |
9848 | { | |
4268f798 | 9849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9850 | wxDC_GetLogicalOrigin(_arg0,_arg1,_arg2); |
eec92d76 | 9851 | |
4268f798 | 9852 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9853 | if (PyErr_Occurred()) return NULL; |
eec92d76 RD |
9854 | } Py_INCREF(Py_None); |
9855 | _resultobj = Py_None; | |
9856 | { | |
9857 | PyObject *o; | |
9858 | o = PyInt_FromLong((long) (*_arg1)); | |
9859 | _resultobj = t_output_helper(_resultobj, o); | |
9860 | } | |
9861 | { | |
9862 | PyObject *o; | |
9863 | o = PyInt_FromLong((long) (*_arg2)); | |
9864 | _resultobj = t_output_helper(_resultobj, o); | |
9865 | } | |
9866 | return _resultobj; | |
9867 | } | |
9868 | ||
9869 | #define wxDC_SetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalOrigin(_swigarg0,_swigarg1)) | |
9870 | static PyObject *_wrap_wxDC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9871 | PyObject * _resultobj; | |
9872 | wxDC * _arg0; | |
9873 | int _arg1; | |
9874 | int _arg2; | |
9875 | PyObject * _argo0 = 0; | |
9876 | char *_kwnames[] = { "self","x","y", NULL }; | |
9877 | ||
9878 | self = self; | |
9879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_SetLogicalOrigin",_kwnames,&_argo0,&_arg1,&_arg2)) | |
9880 | return NULL; | |
9881 | if (_argo0) { | |
9882 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9883 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9884 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalOrigin. Expected _wxDC_p."); | |
9885 | return NULL; | |
9886 | } | |
9887 | } | |
9888 | { | |
4268f798 | 9889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9890 | wxDC_SetLogicalOrigin(_arg0,_arg1,_arg2); |
eec92d76 | 9891 | |
4268f798 | 9892 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9893 | if (PyErr_Occurred()) return NULL; |
eec92d76 RD |
9894 | } Py_INCREF(Py_None); |
9895 | _resultobj = Py_None; | |
9896 | return _resultobj; | |
9897 | } | |
9898 | ||
9899 | #define wxDC_GetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetDeviceOrigin(_swigarg0,_swigarg1)) | |
9900 | static PyObject *_wrap_wxDC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9901 | PyObject * _resultobj; | |
9902 | wxDC * _arg0; | |
9903 | int * _arg1; | |
9904 | int temp; | |
9905 | int * _arg2; | |
9906 | int temp0; | |
9907 | PyObject * _argo0 = 0; | |
9908 | char *_kwnames[] = { "self", NULL }; | |
9909 | ||
9910 | self = self; | |
9911 | { | |
9912 | _arg1 = &temp; | |
9913 | } | |
9914 | { | |
9915 | _arg2 = &temp0; | |
9916 | } | |
9917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetDeviceOrigin",_kwnames,&_argo0)) | |
9918 | return NULL; | |
9919 | if (_argo0) { | |
9920 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9921 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9922 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetDeviceOrigin. Expected _wxDC_p."); | |
9923 | return NULL; | |
9924 | } | |
9925 | } | |
9926 | { | |
4268f798 | 9927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9928 | wxDC_GetDeviceOrigin(_arg0,_arg1,_arg2); |
eec92d76 | 9929 | |
4268f798 | 9930 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9931 | if (PyErr_Occurred()) return NULL; |
eec92d76 RD |
9932 | } Py_INCREF(Py_None); |
9933 | _resultobj = Py_None; | |
9934 | { | |
9935 | PyObject *o; | |
9936 | o = PyInt_FromLong((long) (*_arg1)); | |
9937 | _resultobj = t_output_helper(_resultobj, o); | |
9938 | } | |
9939 | { | |
9940 | PyObject *o; | |
9941 | o = PyInt_FromLong((long) (*_arg2)); | |
9942 | _resultobj = t_output_helper(_resultobj, o); | |
9943 | } | |
9944 | return _resultobj; | |
9945 | } | |
9946 | ||
9947 | #define wxDC_SetAxisOrientation(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetAxisOrientation(_swigarg0,_swigarg1)) | |
9948 | static PyObject *_wrap_wxDC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9949 | PyObject * _resultobj; | |
9950 | wxDC * _arg0; | |
9951 | bool _arg1; | |
9952 | bool _arg2; | |
9953 | PyObject * _argo0 = 0; | |
9954 | int tempbool1; | |
9955 | int tempbool2; | |
9956 | char *_kwnames[] = { "self","xLeftRight","yBottomUp", NULL }; | |
9957 | ||
9958 | self = self; | |
9959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_SetAxisOrientation",_kwnames,&_argo0,&tempbool1,&tempbool2)) | |
9960 | return NULL; | |
9961 | if (_argo0) { | |
9962 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9963 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9964 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetAxisOrientation. Expected _wxDC_p."); | |
9965 | return NULL; | |
9966 | } | |
9967 | } | |
9968 | _arg1 = (bool ) tempbool1; | |
9969 | _arg2 = (bool ) tempbool2; | |
9970 | { | |
4268f798 | 9971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9972 | wxDC_SetAxisOrientation(_arg0,_arg1,_arg2); |
eec92d76 | 9973 | |
4268f798 | 9974 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9975 | if (PyErr_Occurred()) return NULL; |
eec92d76 RD |
9976 | } Py_INCREF(Py_None); |
9977 | _resultobj = Py_None; | |
9978 | return _resultobj; | |
9979 | } | |
9980 | ||
f6bcfd97 BP |
9981 | #define wxDC_CalcBoundingBox(_swigobj,_swigarg0,_swigarg1) (_swigobj->CalcBoundingBox(_swigarg0,_swigarg1)) |
9982 | static PyObject *_wrap_wxDC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9983 | PyObject * _resultobj; | |
9984 | wxDC * _arg0; | |
9985 | int _arg1; | |
9986 | int _arg2; | |
9987 | PyObject * _argo0 = 0; | |
9988 | char *_kwnames[] = { "self","x","y", NULL }; | |
9989 | ||
9990 | self = self; | |
9991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_CalcBoundingBox",_kwnames,&_argo0,&_arg1,&_arg2)) | |
9992 | return NULL; | |
9993 | if (_argo0) { | |
9994 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9995 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
9996 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CalcBoundingBox. Expected _wxDC_p."); | |
9997 | return NULL; | |
9998 | } | |
9999 | } | |
10000 | { | |
4268f798 | 10001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10002 | wxDC_CalcBoundingBox(_arg0,_arg1,_arg2); |
f6bcfd97 | 10003 | |
4268f798 | 10004 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10005 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
10006 | } Py_INCREF(Py_None); |
10007 | _resultobj = Py_None; | |
10008 | return _resultobj; | |
10009 | } | |
10010 | ||
10011 | #define wxDC_ResetBoundingBox(_swigobj) (_swigobj->ResetBoundingBox()) | |
10012 | static PyObject *_wrap_wxDC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10013 | PyObject * _resultobj; | |
10014 | wxDC * _arg0; | |
10015 | PyObject * _argo0 = 0; | |
10016 | char *_kwnames[] = { "self", NULL }; | |
10017 | ||
10018 | self = self; | |
10019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_ResetBoundingBox",_kwnames,&_argo0)) | |
10020 | return NULL; | |
10021 | if (_argo0) { | |
10022 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10023 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
10024 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_ResetBoundingBox. Expected _wxDC_p."); | |
10025 | return NULL; | |
10026 | } | |
10027 | } | |
10028 | { | |
4268f798 | 10029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10030 | wxDC_ResetBoundingBox(_arg0); |
f6bcfd97 | 10031 | |
4268f798 | 10032 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10033 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
10034 | } Py_INCREF(Py_None); |
10035 | _resultobj = Py_None; | |
10036 | return _resultobj; | |
10037 | } | |
10038 | ||
9d37f964 RD |
10039 | static PyObject *_wrap_wxDC_GetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
10040 | PyObject * _resultobj; | |
10041 | wxDC * _arg0; | |
10042 | int * _arg1; | |
10043 | int temp; | |
10044 | int * _arg2; | |
10045 | int temp0; | |
10046 | int * _arg3; | |
10047 | int temp1; | |
10048 | int * _arg4; | |
10049 | int temp2; | |
10050 | PyObject * _argo0 = 0; | |
10051 | char *_kwnames[] = { "self", NULL }; | |
10052 | ||
10053 | self = self; | |
10054 | { | |
10055 | _arg1 = &temp; | |
10056 | } | |
10057 | { | |
10058 | _arg2 = &temp0; | |
10059 | } | |
10060 | { | |
10061 | _arg3 = &temp1; | |
10062 | } | |
10063 | { | |
10064 | _arg4 = &temp2; | |
10065 | } | |
10066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBoundingBox",_kwnames,&_argo0)) | |
10067 | return NULL; | |
10068 | if (_argo0) { | |
10069 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10070 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
10071 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBoundingBox. Expected _wxDC_p."); | |
10072 | return NULL; | |
10073 | } | |
10074 | } | |
10075 | { | |
4268f798 | 10076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10077 | wxDC_GetBoundingBox(_arg0,_arg1,_arg2,_arg3,_arg4); |
9d37f964 | 10078 | |
4268f798 | 10079 | wxPyEndAllowThreads(__tstate); |
9d37f964 RD |
10080 | if (PyErr_Occurred()) return NULL; |
10081 | } Py_INCREF(Py_None); | |
10082 | _resultobj = Py_None; | |
10083 | { | |
10084 | PyObject *o; | |
10085 | o = PyInt_FromLong((long) (*_arg1)); | |
10086 | _resultobj = t_output_helper(_resultobj, o); | |
10087 | } | |
10088 | { | |
10089 | PyObject *o; | |
10090 | o = PyInt_FromLong((long) (*_arg2)); | |
10091 | _resultobj = t_output_helper(_resultobj, o); | |
10092 | } | |
10093 | { | |
10094 | PyObject *o; | |
10095 | o = PyInt_FromLong((long) (*_arg3)); | |
10096 | _resultobj = t_output_helper(_resultobj, o); | |
10097 | } | |
10098 | { | |
10099 | PyObject *o; | |
10100 | o = PyInt_FromLong((long) (*_arg4)); | |
10101 | _resultobj = t_output_helper(_resultobj, o); | |
10102 | } | |
10103 | return _resultobj; | |
10104 | } | |
10105 | ||
c7e7022c RD |
10106 | #define wxDC_GetHDC(_swigobj) (_swigobj->GetHDC()) |
10107 | static PyObject *_wrap_wxDC_GetHDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10108 | PyObject * _resultobj; | |
10109 | long _result; | |
10110 | wxDC * _arg0; | |
10111 | PyObject * _argo0 = 0; | |
10112 | char *_kwnames[] = { "self", NULL }; | |
10113 | ||
10114 | self = self; | |
10115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetHDC",_kwnames,&_argo0)) | |
10116 | return NULL; | |
10117 | if (_argo0) { | |
10118 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10119 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
10120 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetHDC. Expected _wxDC_p."); | |
10121 | return NULL; | |
10122 | } | |
10123 | } | |
10124 | { | |
4268f798 | 10125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10126 | _result = (long )wxDC_GetHDC(_arg0); |
c7e7022c | 10127 | |
4268f798 | 10128 | wxPyEndAllowThreads(__tstate); |
c7e7022c RD |
10129 | if (PyErr_Occurred()) return NULL; |
10130 | } _resultobj = Py_BuildValue("l",_result); | |
10131 | return _resultobj; | |
10132 | } | |
10133 | ||
9d37f964 RD |
10134 | static PyObject * wxDC__DrawPointList(wxDC *self,PyObject * pyPoints,PyObject * pyPens) { |
10135 | bool isFastSeq = PyList_Check(pyPoints) || PyTuple_Check(pyPoints); | |
10136 | bool isFastPens = PyList_Check(pyPens) || PyTuple_Check(pyPens); | |
10137 | int numObjs = 0; | |
10138 | int numPens = 0; | |
10139 | wxPen* pen; | |
10140 | PyObject* obj; | |
10141 | int x1, y1; | |
10142 | int i = 0; | |
10143 | ||
10144 | if (!PySequence_Check(pyPoints)) { | |
10145 | goto err0; | |
10146 | } | |
10147 | if (!PySequence_Check(pyPens)) { | |
10148 | goto err1; | |
10149 | } | |
10150 | numObjs = PySequence_Length(pyPoints); | |
10151 | numPens = PySequence_Length(pyPens); | |
10152 | ||
10153 | for (i = 0; i < numObjs; i++) { | |
10154 | // Use a new pen? | |
10155 | if (i < numPens) { | |
10156 | if (isFastPens) { | |
10157 | obj = PySequence_Fast_GET_ITEM(pyPens, i); | |
10158 | } | |
10159 | else { | |
10160 | obj = PySequence_GetItem(pyPens, i); | |
10161 | } | |
10162 | if (SWIG_GetPtrObj(obj, (void **) &pen, "_wxPen_p")) { | |
76e280e7 RD |
10163 | if (!isFastPens) |
10164 | Py_DECREF(obj); | |
9d37f964 RD |
10165 | goto err1; |
10166 | } | |
10167 | ||
10168 | self->SetPen(*pen); | |
10169 | if (!isFastPens) | |
10170 | Py_DECREF(obj); | |
10171 | } | |
10172 | ||
10173 | // Get the point coordinants | |
10174 | if (isFastSeq) { | |
10175 | obj = PySequence_Fast_GET_ITEM(pyPoints, i); | |
10176 | } | |
10177 | else { | |
10178 | obj = PySequence_GetItem(pyPoints, i); | |
10179 | } | |
10180 | if (! _2int_seq_helper(obj, &x1, &y1)) { | |
76e280e7 RD |
10181 | if (!isFastPens) |
10182 | Py_DECREF(obj); | |
9d37f964 RD |
10183 | goto err0; |
10184 | } | |
10185 | ||
10186 | // Now draw the point | |
10187 | self->DrawPoint(x1, y1); | |
10188 | ||
10189 | if (!isFastSeq) | |
10190 | Py_DECREF(obj); | |
10191 | } | |
10192 | ||
10193 | Py_INCREF(Py_None); | |
10194 | return Py_None; | |
10195 | ||
10196 | err1: | |
10197 | PyErr_SetString(PyExc_TypeError, "Expected a sequence of wxPens"); | |
10198 | return NULL; | |
10199 | err0: | |
10200 | PyErr_SetString(PyExc_TypeError, "Expected a sequence of (x,y) sequences."); | |
10201 | return NULL; | |
10202 | } | |
10203 | static PyObject *_wrap_wxDC__DrawPointList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10204 | PyObject * _resultobj; | |
10205 | PyObject * _result; | |
10206 | wxDC * _arg0; | |
10207 | PyObject * _arg1; | |
10208 | PyObject * _arg2; | |
10209 | PyObject * _argo0 = 0; | |
10210 | PyObject * _obj1 = 0; | |
10211 | PyObject * _obj2 = 0; | |
10212 | char *_kwnames[] = { "self","pyPoints","pyPens", NULL }; | |
10213 | ||
10214 | self = self; | |
10215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxDC__DrawPointList",_kwnames,&_argo0,&_obj1,&_obj2)) | |
10216 | return NULL; | |
10217 | if (_argo0) { | |
10218 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10219 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
10220 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC__DrawPointList. Expected _wxDC_p."); | |
10221 | return NULL; | |
10222 | } | |
10223 | } | |
10224 | { | |
10225 | _arg1 = _obj1; | |
10226 | } | |
10227 | { | |
10228 | _arg2 = _obj2; | |
10229 | } | |
10230 | { | |
4268f798 | 10231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10232 | _result = (PyObject *)wxDC__DrawPointList(_arg0,_arg1,_arg2); |
9d37f964 | 10233 | |
4268f798 | 10234 | wxPyEndAllowThreads(__tstate); |
9d37f964 RD |
10235 | if (PyErr_Occurred()) return NULL; |
10236 | }{ | |
10237 | _resultobj = _result; | |
10238 | } | |
10239 | return _resultobj; | |
10240 | } | |
10241 | ||
10242 | static PyObject * wxDC__DrawLineList(wxDC *self,PyObject * pyLines,PyObject * pyPens) { | |
10243 | bool isFastSeq = PyList_Check(pyLines) || PyTuple_Check(pyLines); | |
10244 | bool isFastPens = PyList_Check(pyPens) || PyTuple_Check(pyPens); | |
10245 | int numObjs = 0; | |
10246 | int numPens = 0; | |
10247 | wxPen* pen; | |
10248 | PyObject* obj; | |
10249 | int x1, y1, x2, y2; | |
10250 | int i = 0; | |
10251 | ||
10252 | if (!PySequence_Check(pyLines)) { | |
10253 | goto err0; | |
10254 | } | |
10255 | if (!PySequence_Check(pyPens)) { | |
10256 | goto err1; | |
10257 | } | |
10258 | numObjs = PySequence_Length(pyLines); | |
10259 | numPens = PySequence_Length(pyPens); | |
10260 | ||
10261 | for (i = 0; i < numObjs; i++) { | |
10262 | // Use a new pen? | |
10263 | if (i < numPens) { | |
10264 | if (isFastPens) { | |
10265 | obj = PySequence_Fast_GET_ITEM(pyPens, i); | |
10266 | } | |
10267 | else { | |
10268 | obj = PySequence_GetItem(pyPens, i); | |
10269 | } | |
10270 | if (SWIG_GetPtrObj(obj, (void **) &pen, "_wxPen_p")) { | |
76e280e7 RD |
10271 | if (!isFastPens) |
10272 | Py_DECREF(obj); | |
9d37f964 RD |
10273 | goto err1; |
10274 | } | |
10275 | ||
10276 | self->SetPen(*pen); | |
10277 | if (!isFastPens) | |
10278 | Py_DECREF(obj); | |
10279 | } | |
10280 | ||
10281 | // Get the line coordinants | |
10282 | if (isFastSeq) { | |
10283 | obj = PySequence_Fast_GET_ITEM(pyLines, i); | |
10284 | } | |
10285 | else { | |
10286 | obj = PySequence_GetItem(pyLines, i); | |
10287 | } | |
10288 | if (! _4int_seq_helper(obj, &x1, &y1, &x2, &y2)) { | |
76e280e7 RD |
10289 | if (!isFastPens) |
10290 | Py_DECREF(obj); | |
9d37f964 RD |
10291 | goto err0; |
10292 | } | |
10293 | ||
10294 | // Now draw the line | |
10295 | self->DrawLine(x1, y1, x2, y2); | |
10296 | ||
10297 | if (!isFastSeq) | |
10298 | Py_DECREF(obj); | |
10299 | } | |
10300 | ||
10301 | Py_INCREF(Py_None); | |
10302 | return Py_None; | |
10303 | ||
10304 | err1: | |
10305 | PyErr_SetString(PyExc_TypeError, "Expected a sequence of wxPens"); | |
10306 | return NULL; | |
10307 | err0: | |
10308 | PyErr_SetString(PyExc_TypeError, "Expected a sequence of (x1,y1, x2,y2) sequences."); | |
10309 | return NULL; | |
10310 | } | |
10311 | static PyObject *_wrap_wxDC__DrawLineList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10312 | PyObject * _resultobj; | |
10313 | PyObject * _result; | |
10314 | wxDC * _arg0; | |
10315 | PyObject * _arg1; | |
10316 | PyObject * _arg2; | |
10317 | PyObject * _argo0 = 0; | |
10318 | PyObject * _obj1 = 0; | |
10319 | PyObject * _obj2 = 0; | |
10320 | char *_kwnames[] = { "self","pyLines","pyPens", NULL }; | |
10321 | ||
10322 | self = self; | |
10323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxDC__DrawLineList",_kwnames,&_argo0,&_obj1,&_obj2)) | |
10324 | return NULL; | |
10325 | if (_argo0) { | |
10326 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10327 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
10328 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC__DrawLineList. Expected _wxDC_p."); | |
10329 | return NULL; | |
10330 | } | |
10331 | } | |
10332 | { | |
10333 | _arg1 = _obj1; | |
10334 | } | |
10335 | { | |
10336 | _arg2 = _obj2; | |
10337 | } | |
10338 | { | |
4268f798 | 10339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10340 | _result = (PyObject *)wxDC__DrawLineList(_arg0,_arg1,_arg2); |
9d37f964 | 10341 | |
4268f798 | 10342 | wxPyEndAllowThreads(__tstate); |
9d37f964 RD |
10343 | if (PyErr_Occurred()) return NULL; |
10344 | }{ | |
10345 | _resultobj = _result; | |
10346 | } | |
10347 | return _resultobj; | |
10348 | } | |
10349 | ||
8ab979d7 RD |
10350 | static void *SwigwxMemoryDCTowxDC(void *ptr) { |
10351 | wxMemoryDC *src; | |
10352 | wxDC *dest; | |
10353 | src = (wxMemoryDC *) ptr; | |
10354 | dest = (wxDC *) src; | |
10355 | return (void *) dest; | |
10356 | } | |
10357 | ||
9416aa89 RD |
10358 | static void *SwigwxMemoryDCTowxObject(void *ptr) { |
10359 | wxMemoryDC *src; | |
10360 | wxObject *dest; | |
10361 | src = (wxMemoryDC *) ptr; | |
10362 | dest = (wxObject *) src; | |
10363 | return (void *) dest; | |
10364 | } | |
10365 | ||
8ab979d7 | 10366 | #define new_wxMemoryDC() (new wxMemoryDC()) |
1afc06c2 | 10367 | static PyObject *_wrap_new_wxMemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
10368 | PyObject * _resultobj; |
10369 | wxMemoryDC * _result; | |
1afc06c2 | 10370 | char *_kwnames[] = { NULL }; |
8ab979d7 RD |
10371 | char _ptemp[128]; |
10372 | ||
10373 | self = self; | |
1afc06c2 | 10374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxMemoryDC",_kwnames)) |
8ab979d7 | 10375 | return NULL; |
cf694132 | 10376 | { |
4268f798 | 10377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10378 | _result = (wxMemoryDC *)new_wxMemoryDC(); |
cf694132 | 10379 | |
4268f798 | 10380 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10381 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
10382 | } if (_result) { |
10383 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMemoryDC_p"); | |
10384 | _resultobj = Py_BuildValue("s",_ptemp); | |
10385 | } else { | |
10386 | Py_INCREF(Py_None); | |
10387 | _resultobj = Py_None; | |
10388 | } | |
8ab979d7 RD |
10389 | return _resultobj; |
10390 | } | |
10391 | ||
10392 | #define wxMemoryDC_SelectObject(_swigobj,_swigarg0) (_swigobj->SelectObject(_swigarg0)) | |
1afc06c2 | 10393 | static PyObject *_wrap_wxMemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
10394 | PyObject * _resultobj; |
10395 | wxMemoryDC * _arg0; | |
10396 | wxBitmap * _arg1; | |
1d99702e RD |
10397 | PyObject * _argo0 = 0; |
10398 | PyObject * _argo1 = 0; | |
1afc06c2 | 10399 | char *_kwnames[] = { "self","bitmap", NULL }; |
8ab979d7 RD |
10400 | |
10401 | self = self; | |
1afc06c2 | 10402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMemoryDC_SelectObject",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 10403 | return NULL; |
1d99702e RD |
10404 | if (_argo0) { |
10405 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10406 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMemoryDC_p")) { | |
8ab979d7 RD |
10407 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMemoryDC_SelectObject. Expected _wxMemoryDC_p."); |
10408 | return NULL; | |
10409 | } | |
10410 | } | |
1d99702e RD |
10411 | if (_argo1) { |
10412 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10413 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
8ab979d7 RD |
10414 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMemoryDC_SelectObject. Expected _wxBitmap_p."); |
10415 | return NULL; | |
10416 | } | |
10417 | } | |
cf694132 | 10418 | { |
4268f798 | 10419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10420 | wxMemoryDC_SelectObject(_arg0,*_arg1); |
cf694132 | 10421 | |
4268f798 | 10422 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10423 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10424 | } Py_INCREF(Py_None); |
8ab979d7 RD |
10425 | _resultobj = Py_None; |
10426 | return _resultobj; | |
10427 | } | |
10428 | ||
10429 | static void *SwigwxScreenDCTowxDC(void *ptr) { | |
10430 | wxScreenDC *src; | |
10431 | wxDC *dest; | |
10432 | src = (wxScreenDC *) ptr; | |
10433 | dest = (wxDC *) src; | |
10434 | return (void *) dest; | |
10435 | } | |
10436 | ||
9416aa89 RD |
10437 | static void *SwigwxScreenDCTowxObject(void *ptr) { |
10438 | wxScreenDC *src; | |
10439 | wxObject *dest; | |
10440 | src = (wxScreenDC *) ptr; | |
10441 | dest = (wxObject *) src; | |
10442 | return (void *) dest; | |
10443 | } | |
10444 | ||
8ab979d7 | 10445 | #define new_wxScreenDC() (new wxScreenDC()) |
1afc06c2 | 10446 | static PyObject *_wrap_new_wxScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
10447 | PyObject * _resultobj; |
10448 | wxScreenDC * _result; | |
1afc06c2 | 10449 | char *_kwnames[] = { NULL }; |
8ab979d7 RD |
10450 | char _ptemp[128]; |
10451 | ||
10452 | self = self; | |
1afc06c2 | 10453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxScreenDC",_kwnames)) |
8ab979d7 | 10454 | return NULL; |
cf694132 | 10455 | { |
4268f798 | 10456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10457 | _result = (wxScreenDC *)new_wxScreenDC(); |
cf694132 | 10458 | |
4268f798 | 10459 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10460 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
10461 | } if (_result) { |
10462 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScreenDC_p"); | |
10463 | _resultobj = Py_BuildValue("s",_ptemp); | |
10464 | } else { | |
10465 | Py_INCREF(Py_None); | |
10466 | _resultobj = Py_None; | |
10467 | } | |
8ab979d7 RD |
10468 | return _resultobj; |
10469 | } | |
10470 | ||
26b9cf27 RD |
10471 | #define wxScreenDC_StartDrawingOnTopWin(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0)) |
10472 | static PyObject *_wrap_wxScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
10473 | PyObject * _resultobj; |
10474 | bool _result; | |
10475 | wxScreenDC * _arg0; | |
10476 | wxWindow * _arg1; | |
1d99702e RD |
10477 | PyObject * _argo0 = 0; |
10478 | PyObject * _argo1 = 0; | |
1afc06c2 | 10479 | char *_kwnames[] = { "self","window", NULL }; |
8ab979d7 RD |
10480 | |
10481 | self = self; | |
26b9cf27 | 10482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScreenDC_StartDrawingOnTopWin",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 10483 | return NULL; |
1d99702e RD |
10484 | if (_argo0) { |
10485 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10486 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) { | |
26b9cf27 | 10487 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_StartDrawingOnTopWin. Expected _wxScreenDC_p."); |
8ab979d7 RD |
10488 | return NULL; |
10489 | } | |
10490 | } | |
1d99702e RD |
10491 | if (_argo1) { |
10492 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10493 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
26b9cf27 | 10494 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScreenDC_StartDrawingOnTopWin. Expected _wxWindow_p."); |
8ab979d7 RD |
10495 | return NULL; |
10496 | } | |
10497 | } | |
cf694132 | 10498 | { |
4268f798 | 10499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10500 | _result = (bool )wxScreenDC_StartDrawingOnTopWin(_arg0,_arg1); |
cf694132 | 10501 | |
4268f798 | 10502 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10503 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10504 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
10505 | return _resultobj; |
10506 | } | |
10507 | ||
26b9cf27 RD |
10508 | #define wxScreenDC_StartDrawingOnTop(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0)) |
10509 | static PyObject *_wrap_wxScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
10510 | PyObject * _resultobj; |
10511 | bool _result; | |
10512 | wxScreenDC * _arg0; | |
1d99702e RD |
10513 | wxRect * _arg1 = (wxRect *) NULL; |
10514 | PyObject * _argo0 = 0; | |
2f90df85 RD |
10515 | wxRect temp; |
10516 | PyObject * _obj1 = 0; | |
1afc06c2 | 10517 | char *_kwnames[] = { "self","rect", NULL }; |
8ab979d7 RD |
10518 | |
10519 | self = self; | |
26b9cf27 | 10520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxScreenDC_StartDrawingOnTop",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 10521 | return NULL; |
1d99702e RD |
10522 | if (_argo0) { |
10523 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10524 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) { | |
26b9cf27 | 10525 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_StartDrawingOnTop. Expected _wxScreenDC_p."); |
8ab979d7 RD |
10526 | return NULL; |
10527 | } | |
10528 | } | |
2f90df85 RD |
10529 | if (_obj1) |
10530 | { | |
10531 | _arg1 = &temp; | |
10532 | if (! wxRect_helper(_obj1, &_arg1)) | |
8ab979d7 | 10533 | return NULL; |
2f90df85 | 10534 | } |
cf694132 | 10535 | { |
4268f798 | 10536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10537 | _result = (bool )wxScreenDC_StartDrawingOnTop(_arg0,_arg1); |
cf694132 | 10538 | |
4268f798 | 10539 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10540 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10541 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
10542 | return _resultobj; |
10543 | } | |
10544 | ||
10545 | #define wxScreenDC_EndDrawingOnTop(_swigobj) (_swigobj->EndDrawingOnTop()) | |
1afc06c2 | 10546 | static PyObject *_wrap_wxScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
10547 | PyObject * _resultobj; |
10548 | bool _result; | |
10549 | wxScreenDC * _arg0; | |
1d99702e | 10550 | PyObject * _argo0 = 0; |
1afc06c2 | 10551 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
10552 | |
10553 | self = self; | |
1afc06c2 | 10554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScreenDC_EndDrawingOnTop",_kwnames,&_argo0)) |
8ab979d7 | 10555 | return NULL; |
1d99702e RD |
10556 | if (_argo0) { |
10557 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10558 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) { | |
8ab979d7 RD |
10559 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_EndDrawingOnTop. Expected _wxScreenDC_p."); |
10560 | return NULL; | |
10561 | } | |
10562 | } | |
cf694132 | 10563 | { |
4268f798 | 10564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10565 | _result = (bool )wxScreenDC_EndDrawingOnTop(_arg0); |
cf694132 | 10566 | |
4268f798 | 10567 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10568 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10569 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
10570 | return _resultobj; |
10571 | } | |
10572 | ||
10573 | static void *SwigwxClientDCTowxDC(void *ptr) { | |
10574 | wxClientDC *src; | |
10575 | wxDC *dest; | |
10576 | src = (wxClientDC *) ptr; | |
10577 | dest = (wxDC *) src; | |
10578 | return (void *) dest; | |
10579 | } | |
10580 | ||
9416aa89 RD |
10581 | static void *SwigwxClientDCTowxObject(void *ptr) { |
10582 | wxClientDC *src; | |
10583 | wxObject *dest; | |
10584 | src = (wxClientDC *) ptr; | |
10585 | dest = (wxObject *) src; | |
10586 | return (void *) dest; | |
10587 | } | |
10588 | ||
8ab979d7 | 10589 | #define new_wxClientDC(_swigarg0) (new wxClientDC(_swigarg0)) |
1afc06c2 | 10590 | static PyObject *_wrap_new_wxClientDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
10591 | PyObject * _resultobj; |
10592 | wxClientDC * _result; | |
10593 | wxWindow * _arg0; | |
1d99702e | 10594 | PyObject * _argo0 = 0; |
1afc06c2 | 10595 | char *_kwnames[] = { "win", NULL }; |
8ab979d7 RD |
10596 | char _ptemp[128]; |
10597 | ||
10598 | self = self; | |
1afc06c2 | 10599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxClientDC",_kwnames,&_argo0)) |
8ab979d7 | 10600 | return NULL; |
1d99702e RD |
10601 | if (_argo0) { |
10602 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10603 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
10604 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxClientDC. Expected _wxWindow_p."); |
10605 | return NULL; | |
10606 | } | |
10607 | } | |
cf694132 | 10608 | { |
4268f798 | 10609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10610 | _result = (wxClientDC *)new_wxClientDC(_arg0); |
cf694132 | 10611 | |
4268f798 | 10612 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10613 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
10614 | } if (_result) { |
10615 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxClientDC_p"); | |
10616 | _resultobj = Py_BuildValue("s",_ptemp); | |
10617 | } else { | |
10618 | Py_INCREF(Py_None); | |
10619 | _resultobj = Py_None; | |
10620 | } | |
8ab979d7 RD |
10621 | return _resultobj; |
10622 | } | |
10623 | ||
10624 | static void *SwigwxPaintDCTowxDC(void *ptr) { | |
10625 | wxPaintDC *src; | |
10626 | wxDC *dest; | |
10627 | src = (wxPaintDC *) ptr; | |
10628 | dest = (wxDC *) src; | |
10629 | return (void *) dest; | |
10630 | } | |
10631 | ||
9416aa89 RD |
10632 | static void *SwigwxPaintDCTowxObject(void *ptr) { |
10633 | wxPaintDC *src; | |
10634 | wxObject *dest; | |
10635 | src = (wxPaintDC *) ptr; | |
10636 | dest = (wxObject *) src; | |
10637 | return (void *) dest; | |
10638 | } | |
10639 | ||
8ab979d7 | 10640 | #define new_wxPaintDC(_swigarg0) (new wxPaintDC(_swigarg0)) |
1afc06c2 | 10641 | static PyObject *_wrap_new_wxPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
10642 | PyObject * _resultobj; |
10643 | wxPaintDC * _result; | |
10644 | wxWindow * _arg0; | |
1d99702e | 10645 | PyObject * _argo0 = 0; |
1afc06c2 | 10646 | char *_kwnames[] = { "win", NULL }; |
8ab979d7 RD |
10647 | char _ptemp[128]; |
10648 | ||
10649 | self = self; | |
1afc06c2 | 10650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxPaintDC",_kwnames,&_argo0)) |
8ab979d7 | 10651 | return NULL; |
1d99702e RD |
10652 | if (_argo0) { |
10653 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10654 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
10655 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPaintDC. Expected _wxWindow_p."); |
10656 | return NULL; | |
10657 | } | |
10658 | } | |
cf694132 | 10659 | { |
4268f798 | 10660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10661 | _result = (wxPaintDC *)new_wxPaintDC(_arg0); |
cf694132 | 10662 | |
4268f798 | 10663 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10664 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
10665 | } if (_result) { |
10666 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPaintDC_p"); | |
10667 | _resultobj = Py_BuildValue("s",_ptemp); | |
10668 | } else { | |
10669 | Py_INCREF(Py_None); | |
10670 | _resultobj = Py_None; | |
10671 | } | |
8ab979d7 RD |
10672 | return _resultobj; |
10673 | } | |
10674 | ||
b639c3c5 RD |
10675 | static void *SwigwxWindowDCTowxDC(void *ptr) { |
10676 | wxWindowDC *src; | |
10677 | wxDC *dest; | |
10678 | src = (wxWindowDC *) ptr; | |
10679 | dest = (wxDC *) src; | |
10680 | return (void *) dest; | |
10681 | } | |
10682 | ||
9416aa89 RD |
10683 | static void *SwigwxWindowDCTowxObject(void *ptr) { |
10684 | wxWindowDC *src; | |
10685 | wxObject *dest; | |
10686 | src = (wxWindowDC *) ptr; | |
10687 | dest = (wxObject *) src; | |
10688 | return (void *) dest; | |
10689 | } | |
10690 | ||
b639c3c5 | 10691 | #define new_wxWindowDC(_swigarg0) (new wxWindowDC(_swigarg0)) |
1afc06c2 | 10692 | static PyObject *_wrap_new_wxWindowDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
b639c3c5 RD |
10693 | PyObject * _resultobj; |
10694 | wxWindowDC * _result; | |
10695 | wxWindow * _arg0; | |
1d99702e | 10696 | PyObject * _argo0 = 0; |
1afc06c2 | 10697 | char *_kwnames[] = { "win", NULL }; |
b639c3c5 RD |
10698 | char _ptemp[128]; |
10699 | ||
10700 | self = self; | |
1afc06c2 | 10701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxWindowDC",_kwnames,&_argo0)) |
b639c3c5 | 10702 | return NULL; |
1d99702e RD |
10703 | if (_argo0) { |
10704 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10705 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b639c3c5 RD |
10706 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxWindowDC. Expected _wxWindow_p."); |
10707 | return NULL; | |
10708 | } | |
10709 | } | |
cf694132 | 10710 | { |
4268f798 | 10711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10712 | _result = (wxWindowDC *)new_wxWindowDC(_arg0); |
cf694132 | 10713 | |
4268f798 | 10714 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10715 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
10716 | } if (_result) { |
10717 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindowDC_p"); | |
10718 | _resultobj = Py_BuildValue("s",_ptemp); | |
10719 | } else { | |
10720 | Py_INCREF(Py_None); | |
10721 | _resultobj = Py_None; | |
10722 | } | |
b639c3c5 RD |
10723 | return _resultobj; |
10724 | } | |
10725 | ||
17c0e08c RD |
10726 | static void *SwigwxMetaFileTowxObject(void *ptr) { |
10727 | wxMetaFile *src; | |
10728 | wxObject *dest; | |
10729 | src = (wxMetaFile *) ptr; | |
10730 | dest = (wxObject *) src; | |
10731 | return (void *) dest; | |
10732 | } | |
10733 | ||
10734 | #define new_wxMetaFile(_swigarg0) (new wxMetaFile(_swigarg0)) | |
10735 | static PyObject *_wrap_new_wxMetaFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10736 | PyObject * _resultobj; | |
10737 | wxMetaFile * _result; | |
23bed520 | 10738 | wxString * _arg0 = (wxString *) &wxEmptyString; |
17c0e08c RD |
10739 | PyObject * _obj0 = 0; |
10740 | char *_kwnames[] = { "filename", NULL }; | |
10741 | char _ptemp[128]; | |
10742 | ||
10743 | self = self; | |
10744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxMetaFile",_kwnames,&_obj0)) | |
10745 | return NULL; | |
10746 | if (_obj0) | |
10747 | { | |
c8bc7bb8 RD |
10748 | _arg0 = wxString_in_helper(_obj0); |
10749 | if (_arg0 == NULL) | |
17c0e08c | 10750 | return NULL; |
17c0e08c RD |
10751 | } |
10752 | { | |
4268f798 | 10753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10754 | _result = (wxMetaFile *)new_wxMetaFile(*_arg0); |
17c0e08c | 10755 | |
4268f798 | 10756 | wxPyEndAllowThreads(__tstate); |
17c0e08c RD |
10757 | if (PyErr_Occurred()) return NULL; |
10758 | } if (_result) { | |
10759 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMetaFile_p"); | |
10760 | _resultobj = Py_BuildValue("s",_ptemp); | |
10761 | } else { | |
10762 | Py_INCREF(Py_None); | |
10763 | _resultobj = Py_None; | |
10764 | } | |
10765 | { | |
10766 | if (_obj0) | |
10767 | delete _arg0; | |
10768 | } | |
10769 | return _resultobj; | |
10770 | } | |
10771 | ||
10772 | #define delete_wxMetaFile(_swigobj) (delete _swigobj) | |
10773 | static PyObject *_wrap_delete_wxMetaFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10774 | PyObject * _resultobj; | |
10775 | wxMetaFile * _arg0; | |
10776 | PyObject * _argo0 = 0; | |
10777 | char *_kwnames[] = { "self", NULL }; | |
10778 | ||
10779 | self = self; | |
10780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxMetaFile",_kwnames,&_argo0)) | |
10781 | return NULL; | |
10782 | if (_argo0) { | |
10783 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10784 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) { | |
10785 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxMetaFile. Expected _wxMetaFile_p."); | |
10786 | return NULL; | |
10787 | } | |
10788 | } | |
10789 | { | |
4268f798 | 10790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10791 | delete_wxMetaFile(_arg0); |
17c0e08c | 10792 | |
4268f798 | 10793 | wxPyEndAllowThreads(__tstate); |
17c0e08c RD |
10794 | if (PyErr_Occurred()) return NULL; |
10795 | } Py_INCREF(Py_None); | |
10796 | _resultobj = Py_None; | |
10797 | return _resultobj; | |
10798 | } | |
10799 | ||
10800 | #define wxMetaFile_Ok(_swigobj) (_swigobj->Ok()) | |
10801 | static PyObject *_wrap_wxMetaFile_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10802 | PyObject * _resultobj; | |
10803 | bool _result; | |
10804 | wxMetaFile * _arg0; | |
10805 | PyObject * _argo0 = 0; | |
10806 | char *_kwnames[] = { "self", NULL }; | |
10807 | ||
10808 | self = self; | |
10809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMetaFile_Ok",_kwnames,&_argo0)) | |
10810 | return NULL; | |
10811 | if (_argo0) { | |
10812 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10813 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) { | |
10814 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFile_Ok. Expected _wxMetaFile_p."); | |
10815 | return NULL; | |
10816 | } | |
10817 | } | |
10818 | { | |
4268f798 | 10819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10820 | _result = (bool )wxMetaFile_Ok(_arg0); |
17c0e08c | 10821 | |
4268f798 | 10822 | wxPyEndAllowThreads(__tstate); |
17c0e08c RD |
10823 | if (PyErr_Occurred()) return NULL; |
10824 | } _resultobj = Py_BuildValue("i",_result); | |
10825 | return _resultobj; | |
10826 | } | |
10827 | ||
10828 | #define wxMetaFile_SetClipboard(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetClipboard(_swigarg0,_swigarg1)) | |
10829 | static PyObject *_wrap_wxMetaFile_SetClipboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10830 | PyObject * _resultobj; | |
10831 | bool _result; | |
10832 | wxMetaFile * _arg0; | |
10833 | int _arg1 = (int ) 0; | |
10834 | int _arg2 = (int ) 0; | |
10835 | PyObject * _argo0 = 0; | |
10836 | char *_kwnames[] = { "self","width","height", NULL }; | |
10837 | ||
10838 | self = self; | |
10839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:wxMetaFile_SetClipboard",_kwnames,&_argo0,&_arg1,&_arg2)) | |
10840 | return NULL; | |
10841 | if (_argo0) { | |
10842 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10843 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) { | |
10844 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFile_SetClipboard. Expected _wxMetaFile_p."); | |
10845 | return NULL; | |
10846 | } | |
10847 | } | |
10848 | { | |
4268f798 | 10849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10850 | _result = (bool )wxMetaFile_SetClipboard(_arg0,_arg1,_arg2); |
17c0e08c | 10851 | |
4268f798 | 10852 | wxPyEndAllowThreads(__tstate); |
17c0e08c RD |
10853 | if (PyErr_Occurred()) return NULL; |
10854 | } _resultobj = Py_BuildValue("i",_result); | |
10855 | return _resultobj; | |
10856 | } | |
10857 | ||
10858 | #define wxMetaFile_GetSize(_swigobj) (_swigobj->GetSize()) | |
10859 | static PyObject *_wrap_wxMetaFile_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10860 | PyObject * _resultobj; | |
10861 | wxSize * _result; | |
10862 | wxMetaFile * _arg0; | |
10863 | PyObject * _argo0 = 0; | |
10864 | char *_kwnames[] = { "self", NULL }; | |
10865 | char _ptemp[128]; | |
10866 | ||
10867 | self = self; | |
10868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMetaFile_GetSize",_kwnames,&_argo0)) | |
10869 | return NULL; | |
10870 | if (_argo0) { | |
10871 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10872 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) { | |
10873 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFile_GetSize. Expected _wxMetaFile_p."); | |
10874 | return NULL; | |
10875 | } | |
10876 | } | |
10877 | { | |
4268f798 | 10878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10879 | _result = new wxSize (wxMetaFile_GetSize(_arg0)); |
17c0e08c | 10880 | |
4268f798 | 10881 | wxPyEndAllowThreads(__tstate); |
17c0e08c RD |
10882 | if (PyErr_Occurred()) return NULL; |
10883 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
10884 | _resultobj = Py_BuildValue("s",_ptemp); | |
10885 | return _resultobj; | |
10886 | } | |
10887 | ||
10888 | #define wxMetaFile_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
10889 | static PyObject *_wrap_wxMetaFile_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10890 | PyObject * _resultobj; | |
10891 | int _result; | |
10892 | wxMetaFile * _arg0; | |
10893 | PyObject * _argo0 = 0; | |
10894 | char *_kwnames[] = { "self", NULL }; | |
10895 | ||
10896 | self = self; | |
10897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMetaFile_GetWidth",_kwnames,&_argo0)) | |
10898 | return NULL; | |
10899 | if (_argo0) { | |
10900 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10901 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) { | |
10902 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFile_GetWidth. Expected _wxMetaFile_p."); | |
10903 | return NULL; | |
10904 | } | |
10905 | } | |
10906 | { | |
4268f798 | 10907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10908 | _result = (int )wxMetaFile_GetWidth(_arg0); |
17c0e08c | 10909 | |
4268f798 | 10910 | wxPyEndAllowThreads(__tstate); |
17c0e08c RD |
10911 | if (PyErr_Occurred()) return NULL; |
10912 | } _resultobj = Py_BuildValue("i",_result); | |
10913 | return _resultobj; | |
10914 | } | |
10915 | ||
10916 | #define wxMetaFile_GetHeight(_swigobj) (_swigobj->GetHeight()) | |
10917 | static PyObject *_wrap_wxMetaFile_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10918 | PyObject * _resultobj; | |
10919 | int _result; | |
10920 | wxMetaFile * _arg0; | |
10921 | PyObject * _argo0 = 0; | |
10922 | char *_kwnames[] = { "self", NULL }; | |
10923 | ||
10924 | self = self; | |
10925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMetaFile_GetHeight",_kwnames,&_argo0)) | |
10926 | return NULL; | |
10927 | if (_argo0) { | |
10928 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10929 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) { | |
10930 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFile_GetHeight. Expected _wxMetaFile_p."); | |
10931 | return NULL; | |
10932 | } | |
10933 | } | |
10934 | { | |
4268f798 | 10935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10936 | _result = (int )wxMetaFile_GetHeight(_arg0); |
17c0e08c | 10937 | |
4268f798 | 10938 | wxPyEndAllowThreads(__tstate); |
17c0e08c RD |
10939 | if (PyErr_Occurred()) return NULL; |
10940 | } _resultobj = Py_BuildValue("i",_result); | |
10941 | return _resultobj; | |
10942 | } | |
10943 | ||
10944 | #define wxMetaFile_GetFileName(_swigobj) (_swigobj->GetFileName()) | |
10945 | static PyObject *_wrap_wxMetaFile_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10946 | PyObject * _resultobj; | |
10947 | wxString * _result; | |
10948 | wxMetaFile * _arg0; | |
10949 | PyObject * _argo0 = 0; | |
10950 | char *_kwnames[] = { "self", NULL }; | |
10951 | ||
10952 | self = self; | |
10953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMetaFile_GetFileName",_kwnames,&_argo0)) | |
10954 | return NULL; | |
10955 | if (_argo0) { | |
10956 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10957 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) { | |
10958 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFile_GetFileName. Expected _wxMetaFile_p."); | |
10959 | return NULL; | |
10960 | } | |
10961 | } | |
10962 | { | |
4268f798 | 10963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10964 | const wxString & _result_ref = wxMetaFile_GetFileName(_arg0); |
17c0e08c RD |
10965 | _result = (wxString *) &_result_ref; |
10966 | ||
4268f798 | 10967 | wxPyEndAllowThreads(__tstate); |
17c0e08c RD |
10968 | if (PyErr_Occurred()) return NULL; |
10969 | }{ | |
c8bc7bb8 RD |
10970 | #if wxUSE_UNICODE |
10971 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
10972 | #else | |
17c0e08c | 10973 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10974 | #endif |
17c0e08c RD |
10975 | } |
10976 | return _resultobj; | |
10977 | } | |
10978 | ||
8ab979d7 RD |
10979 | static void *SwigwxMetaFileDCTowxDC(void *ptr) { |
10980 | wxMetaFileDC *src; | |
10981 | wxDC *dest; | |
10982 | src = (wxMetaFileDC *) ptr; | |
10983 | dest = (wxDC *) src; | |
10984 | return (void *) dest; | |
10985 | } | |
10986 | ||
9416aa89 RD |
10987 | static void *SwigwxMetaFileDCTowxObject(void *ptr) { |
10988 | wxMetaFileDC *src; | |
10989 | wxObject *dest; | |
10990 | src = (wxMetaFileDC *) ptr; | |
10991 | dest = (wxObject *) src; | |
10992 | return (void *) dest; | |
10993 | } | |
10994 | ||
17c0e08c | 10995 | #define new_wxMetaFileDC(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxMetaFileDC(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
1afc06c2 | 10996 | static PyObject *_wrap_new_wxMetaFileDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
10997 | PyObject * _resultobj; |
10998 | wxMetaFileDC * _result; | |
23bed520 | 10999 | wxString * _arg0 = (wxString *) &wxEmptyString; |
17c0e08c RD |
11000 | int _arg1 = (int ) 0; |
11001 | int _arg2 = (int ) 0; | |
23bed520 | 11002 | wxString * _arg3 = (wxString *) &wxEmptyString; |
8ab979d7 | 11003 | PyObject * _obj0 = 0; |
17c0e08c RD |
11004 | PyObject * _obj3 = 0; |
11005 | char *_kwnames[] = { "filename","width","height","description", NULL }; | |
8ab979d7 RD |
11006 | char _ptemp[128]; |
11007 | ||
11008 | self = self; | |
17c0e08c | 11009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OiiO:new_wxMetaFileDC",_kwnames,&_obj0,&_arg1,&_arg2,&_obj3)) |
8ab979d7 RD |
11010 | return NULL; |
11011 | if (_obj0) | |
11012 | { | |
c8bc7bb8 RD |
11013 | _arg0 = wxString_in_helper(_obj0); |
11014 | if (_arg0 == NULL) | |
185d7c3e | 11015 | return NULL; |
17c0e08c RD |
11016 | } |
11017 | if (_obj3) | |
11018 | { | |
c8bc7bb8 RD |
11019 | _arg3 = wxString_in_helper(_obj3); |
11020 | if (_arg3 == NULL) | |
17c0e08c | 11021 | return NULL; |
8ab979d7 | 11022 | } |
cf694132 | 11023 | { |
4268f798 | 11024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11025 | _result = (wxMetaFileDC *)new_wxMetaFileDC(*_arg0,_arg1,_arg2,*_arg3); |
cf694132 | 11026 | |
4268f798 | 11027 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11028 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
11029 | } if (_result) { |
11030 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMetaFileDC_p"); | |
11031 | _resultobj = Py_BuildValue("s",_ptemp); | |
11032 | } else { | |
11033 | Py_INCREF(Py_None); | |
11034 | _resultobj = Py_None; | |
11035 | } | |
8ab979d7 RD |
11036 | { |
11037 | if (_obj0) | |
11038 | delete _arg0; | |
17c0e08c RD |
11039 | } |
11040 | { | |
11041 | if (_obj3) | |
11042 | delete _arg3; | |
8ab979d7 RD |
11043 | } |
11044 | return _resultobj; | |
11045 | } | |
11046 | ||
11047 | #define wxMetaFileDC_Close(_swigobj) (_swigobj->Close()) | |
1afc06c2 | 11048 | static PyObject *_wrap_wxMetaFileDC_Close(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
11049 | PyObject * _resultobj; |
11050 | wxMetaFile * _result; | |
11051 | wxMetaFileDC * _arg0; | |
1d99702e | 11052 | PyObject * _argo0 = 0; |
1afc06c2 | 11053 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
11054 | char _ptemp[128]; |
11055 | ||
11056 | self = self; | |
1afc06c2 | 11057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMetaFileDC_Close",_kwnames,&_argo0)) |
8ab979d7 | 11058 | return NULL; |
1d99702e RD |
11059 | if (_argo0) { |
11060 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11061 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFileDC_p")) { | |
8ab979d7 RD |
11062 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFileDC_Close. Expected _wxMetaFileDC_p."); |
11063 | return NULL; | |
11064 | } | |
11065 | } | |
cf694132 | 11066 | { |
4268f798 | 11067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11068 | _result = (wxMetaFile *)wxMetaFileDC_Close(_arg0); |
cf694132 | 11069 | |
4268f798 | 11070 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11071 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
11072 | } if (_result) { |
11073 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMetaFile_p"); | |
11074 | _resultobj = Py_BuildValue("s",_ptemp); | |
11075 | } else { | |
11076 | Py_INCREF(Py_None); | |
11077 | _resultobj = Py_None; | |
11078 | } | |
8ab979d7 RD |
11079 | return _resultobj; |
11080 | } | |
11081 | ||
9416aa89 RD |
11082 | static void *SwigwxPaletteTowxGDIObject(void *ptr) { |
11083 | wxPalette *src; | |
11084 | wxGDIObject *dest; | |
11085 | src = (wxPalette *) ptr; | |
11086 | dest = (wxGDIObject *) src; | |
11087 | return (void *) dest; | |
11088 | } | |
11089 | ||
11090 | static void *SwigwxPaletteTowxObject(void *ptr) { | |
11091 | wxPalette *src; | |
11092 | wxObject *dest; | |
11093 | src = (wxPalette *) ptr; | |
11094 | dest = (wxObject *) src; | |
11095 | return (void *) dest; | |
11096 | } | |
11097 | ||
b639c3c5 | 11098 | #define new_wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
1afc06c2 | 11099 | static PyObject *_wrap_new_wxPalette(PyObject *self, PyObject *args, PyObject *kwargs) { |
b639c3c5 RD |
11100 | PyObject * _resultobj; |
11101 | wxPalette * _result; | |
11102 | int _arg0; | |
11103 | byte * _arg1; | |
11104 | byte * _arg2; | |
11105 | byte * _arg3; | |
11106 | PyObject * _obj1 = 0; | |
11107 | PyObject * _obj2 = 0; | |
11108 | PyObject * _obj3 = 0; | |
eec92d76 | 11109 | char *_kwnames[] = { "choices","choices","choices", NULL }; |
b639c3c5 RD |
11110 | char _ptemp[128]; |
11111 | ||
11112 | self = self; | |
1afc06c2 | 11113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:new_wxPalette",_kwnames,&_obj1,&_obj2,&_obj3)) |
b639c3c5 RD |
11114 | return NULL; |
11115 | { | |
11116 | _arg1 = byte_LIST_helper(_obj1); | |
11117 | if (_arg1 == NULL) { | |
11118 | return NULL; | |
11119 | } | |
11120 | } | |
11121 | { | |
11122 | _arg2 = byte_LIST_helper(_obj2); | |
11123 | if (_arg2 == NULL) { | |
11124 | return NULL; | |
11125 | } | |
11126 | } | |
11127 | if (_obj3) | |
11128 | { | |
11129 | _arg3 = byte_LIST_helper(_obj3); | |
11130 | if (_arg3 == NULL) { | |
11131 | return NULL; | |
11132 | } | |
11133 | } | |
11134 | { | |
cf694132 RD |
11135 | if (_obj1) { |
11136 | _arg0 = PyList_Size(_obj1); | |
11137 | } | |
11138 | else { | |
11139 | _arg0 = 0; | |
11140 | } | |
b639c3c5 | 11141 | } |
cf694132 | 11142 | { |
4268f798 | 11143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11144 | _result = (wxPalette *)new_wxPalette(_arg0,_arg1,_arg2,_arg3); |
cf694132 | 11145 | |
4268f798 | 11146 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11147 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
11148 | } if (_result) { |
11149 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPalette_p"); | |
11150 | _resultobj = Py_BuildValue("s",_ptemp); | |
11151 | } else { | |
11152 | Py_INCREF(Py_None); | |
11153 | _resultobj = Py_None; | |
11154 | } | |
b639c3c5 RD |
11155 | { |
11156 | delete [] _arg1; | |
11157 | } | |
11158 | { | |
11159 | delete [] _arg2; | |
11160 | } | |
11161 | { | |
11162 | delete [] _arg3; | |
11163 | } | |
11164 | return _resultobj; | |
11165 | } | |
11166 | ||
11167 | #define delete_wxPalette(_swigobj) (delete _swigobj) | |
1afc06c2 | 11168 | static PyObject *_wrap_delete_wxPalette(PyObject *self, PyObject *args, PyObject *kwargs) { |
b639c3c5 RD |
11169 | PyObject * _resultobj; |
11170 | wxPalette * _arg0; | |
1d99702e | 11171 | PyObject * _argo0 = 0; |
1afc06c2 | 11172 | char *_kwnames[] = { "self", NULL }; |
b639c3c5 RD |
11173 | |
11174 | self = self; | |
1afc06c2 | 11175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPalette",_kwnames,&_argo0)) |
b639c3c5 | 11176 | return NULL; |
1d99702e RD |
11177 | if (_argo0) { |
11178 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11179 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) { | |
b639c3c5 RD |
11180 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPalette. Expected _wxPalette_p."); |
11181 | return NULL; | |
11182 | } | |
11183 | } | |
cf694132 | 11184 | { |
4268f798 | 11185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11186 | delete_wxPalette(_arg0); |
cf694132 | 11187 | |
4268f798 | 11188 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11189 | if (PyErr_Occurred()) return NULL; |
cf694132 | 11190 | } Py_INCREF(Py_None); |
b639c3c5 RD |
11191 | _resultobj = Py_None; |
11192 | return _resultobj; | |
11193 | } | |
11194 | ||
11195 | #define wxPalette_GetPixel(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetPixel(_swigarg0,_swigarg1,_swigarg2)) | |
1afc06c2 | 11196 | static PyObject *_wrap_wxPalette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) { |
b639c3c5 RD |
11197 | PyObject * _resultobj; |
11198 | int _result; | |
11199 | wxPalette * _arg0; | |
11200 | byte _arg1; | |
11201 | byte _arg2; | |
11202 | byte _arg3; | |
1d99702e | 11203 | PyObject * _argo0 = 0; |
1afc06c2 | 11204 | char *_kwnames[] = { "self","red","green","blue", NULL }; |
b639c3c5 RD |
11205 | |
11206 | self = self; | |
1afc06c2 | 11207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Obbb:wxPalette_GetPixel",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
b639c3c5 | 11208 | return NULL; |
1d99702e RD |
11209 | if (_argo0) { |
11210 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11211 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) { | |
b639c3c5 RD |
11212 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_GetPixel. Expected _wxPalette_p."); |
11213 | return NULL; | |
11214 | } | |
11215 | } | |
cf694132 | 11216 | { |
4268f798 | 11217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11218 | _result = (int )wxPalette_GetPixel(_arg0,_arg1,_arg2,_arg3); |
cf694132 | 11219 | |
4268f798 | 11220 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11221 | if (PyErr_Occurred()) return NULL; |
cf694132 | 11222 | } _resultobj = Py_BuildValue("i",_result); |
b639c3c5 RD |
11223 | return _resultobj; |
11224 | } | |
11225 | ||
11226 | #define wxPalette_GetRGB(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetRGB(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
1afc06c2 | 11227 | static PyObject *_wrap_wxPalette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) { |
b639c3c5 RD |
11228 | PyObject * _resultobj; |
11229 | bool _result; | |
11230 | wxPalette * _arg0; | |
11231 | int _arg1; | |
11232 | byte * _arg2; | |
154747f5 | 11233 | int temp; |
b639c3c5 | 11234 | byte * _arg3; |
154747f5 | 11235 | int temp0; |
b639c3c5 | 11236 | byte * _arg4; |
154747f5 | 11237 | int temp1; |
1d99702e | 11238 | PyObject * _argo0 = 0; |
154747f5 | 11239 | char *_kwnames[] = { "self","pixel", NULL }; |
b639c3c5 RD |
11240 | |
11241 | self = self; | |
154747f5 RD |
11242 | { |
11243 | _arg2 = (byte*)&temp; | |
11244 | } | |
11245 | { | |
11246 | _arg3 = (byte*)&temp0; | |
11247 | } | |
11248 | { | |
11249 | _arg4 = (byte*)&temp1; | |
11250 | } | |
11251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPalette_GetRGB",_kwnames,&_argo0,&_arg1)) | |
b639c3c5 | 11252 | return NULL; |
1d99702e RD |
11253 | if (_argo0) { |
11254 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11255 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) { | |
b639c3c5 RD |
11256 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_GetRGB. Expected _wxPalette_p."); |
11257 | return NULL; | |
11258 | } | |
11259 | } | |
cf694132 | 11260 | { |
4268f798 | 11261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11262 | _result = (bool )wxPalette_GetRGB(_arg0,_arg1,_arg2,_arg3,_arg4); |
cf694132 | 11263 | |
4268f798 | 11264 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11265 | if (PyErr_Occurred()) return NULL; |
cf694132 | 11266 | } _resultobj = Py_BuildValue("i",_result); |
154747f5 RD |
11267 | { |
11268 | PyObject *o; | |
11269 | o = PyInt_FromLong((long) (*_arg2)); | |
11270 | _resultobj = t_output_helper(_resultobj, o); | |
11271 | } | |
11272 | { | |
11273 | PyObject *o; | |
11274 | o = PyInt_FromLong((long) (*_arg3)); | |
11275 | _resultobj = t_output_helper(_resultobj, o); | |
11276 | } | |
11277 | { | |
11278 | PyObject *o; | |
11279 | o = PyInt_FromLong((long) (*_arg4)); | |
11280 | _resultobj = t_output_helper(_resultobj, o); | |
11281 | } | |
b639c3c5 RD |
11282 | return _resultobj; |
11283 | } | |
11284 | ||
11285 | #define wxPalette_Ok(_swigobj) (_swigobj->Ok()) | |
1afc06c2 | 11286 | static PyObject *_wrap_wxPalette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { |
b639c3c5 RD |
11287 | PyObject * _resultobj; |
11288 | bool _result; | |
11289 | wxPalette * _arg0; | |
1d99702e | 11290 | PyObject * _argo0 = 0; |
1afc06c2 | 11291 | char *_kwnames[] = { "self", NULL }; |
b639c3c5 RD |
11292 | |
11293 | self = self; | |
1afc06c2 | 11294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPalette_Ok",_kwnames,&_argo0)) |
b639c3c5 | 11295 | return NULL; |
1d99702e RD |
11296 | if (_argo0) { |
11297 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11298 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) { | |
b639c3c5 RD |
11299 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_Ok. Expected _wxPalette_p."); |
11300 | return NULL; | |
11301 | } | |
11302 | } | |
cf694132 | 11303 | { |
4268f798 | 11304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11305 | _result = (bool )wxPalette_Ok(_arg0); |
cf694132 | 11306 | |
4268f798 | 11307 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11308 | if (PyErr_Occurred()) return NULL; |
cf694132 | 11309 | } _resultobj = Py_BuildValue("i",_result); |
b639c3c5 RD |
11310 | return _resultobj; |
11311 | } | |
11312 | ||
9416aa89 RD |
11313 | static void *SwigwxImageListTowxObject(void *ptr) { |
11314 | wxImageList *src; | |
11315 | wxObject *dest; | |
11316 | src = (wxImageList *) ptr; | |
11317 | dest = (wxObject *) src; | |
11318 | return (void *) dest; | |
11319 | } | |
11320 | ||
af309447 | 11321 | #define new_wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
1afc06c2 | 11322 | static PyObject *_wrap_new_wxImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
11323 | PyObject * _resultobj; |
11324 | wxImageList * _result; | |
11325 | int _arg0; | |
11326 | int _arg1; | |
dcd38683 | 11327 | int _arg2 = (int ) TRUE; |
1d99702e | 11328 | int _arg3 = (int ) 1; |
1afc06c2 | 11329 | char *_kwnames[] = { "width","height","mask","initialCount", NULL }; |
af309447 RD |
11330 | char _ptemp[128]; |
11331 | ||
11332 | self = self; | |
6999b0d8 | 11333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"ii|ii:new_wxImageList",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3)) |
af309447 | 11334 | return NULL; |
cf694132 | 11335 | { |
4268f798 | 11336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11337 | _result = (wxImageList *)new_wxImageList(_arg0,_arg1,_arg2,_arg3); |
cf694132 | 11338 | |
4268f798 | 11339 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11340 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
11341 | } if (_result) { |
11342 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxImageList_p"); | |
11343 | _resultobj = Py_BuildValue("s",_ptemp); | |
11344 | } else { | |
11345 | Py_INCREF(Py_None); | |
11346 | _resultobj = Py_None; | |
11347 | } | |
af309447 RD |
11348 | return _resultobj; |
11349 | } | |
11350 | ||
11351 | #define delete_wxImageList(_swigobj) (delete _swigobj) | |
1afc06c2 | 11352 | static PyObject *_wrap_delete_wxImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
11353 | PyObject * _resultobj; |
11354 | wxImageList * _arg0; | |
1d99702e | 11355 | PyObject * _argo0 = 0; |
1afc06c2 | 11356 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
11357 | |
11358 | self = self; | |
1afc06c2 | 11359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxImageList",_kwnames,&_argo0)) |
af309447 | 11360 | return NULL; |
1d99702e RD |
11361 | if (_argo0) { |
11362 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11363 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
af309447 RD |
11364 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxImageList. Expected _wxImageList_p."); |
11365 | return NULL; | |
11366 | } | |
11367 | } | |
cf694132 | 11368 | { |
4268f798 | 11369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11370 | delete_wxImageList(_arg0); |
cf694132 | 11371 | |
4268f798 | 11372 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11373 | if (PyErr_Occurred()) return NULL; |
cf694132 | 11374 | } Py_INCREF(Py_None); |
af309447 RD |
11375 | _resultobj = Py_None; |
11376 | return _resultobj; | |
11377 | } | |
11378 | ||
11379 | #define wxImageList_Add(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1)) | |
1afc06c2 | 11380 | static PyObject *_wrap_wxImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
11381 | PyObject * _resultobj; |
11382 | int _result; | |
11383 | wxImageList * _arg0; | |
11384 | wxBitmap * _arg1; | |
1d99702e RD |
11385 | wxBitmap * _arg2 = (wxBitmap *) &wxNullBitmap; |
11386 | PyObject * _argo0 = 0; | |
11387 | PyObject * _argo1 = 0; | |
11388 | PyObject * _argo2 = 0; | |
1afc06c2 | 11389 | char *_kwnames[] = { "self","bitmap","mask", NULL }; |
af309447 RD |
11390 | |
11391 | self = self; | |
1afc06c2 | 11392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxImageList_Add",_kwnames,&_argo0,&_argo1,&_argo2)) |
af309447 | 11393 | return NULL; |
1d99702e RD |
11394 | if (_argo0) { |
11395 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11396 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
af309447 RD |
11397 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Add. Expected _wxImageList_p."); |
11398 | return NULL; | |
11399 | } | |
11400 | } | |
1d99702e RD |
11401 | if (_argo1) { |
11402 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
11403 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
af309447 RD |
11404 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_Add. Expected _wxBitmap_p."); |
11405 | return NULL; | |
11406 | } | |
11407 | } | |
1d99702e RD |
11408 | if (_argo2) { |
11409 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
11410 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) { | |
af309447 RD |
11411 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Add. Expected _wxBitmap_p."); |
11412 | return NULL; | |
11413 | } | |
11414 | } | |
cf694132 | 11415 | { |
4268f798 | 11416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11417 | _result = (int )wxImageList_Add(_arg0,*_arg1,*_arg2); |
cf694132 | 11418 | |
4268f798 | 11419 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11420 | if (PyErr_Occurred()) return NULL; |
cf694132 | 11421 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
11422 | return _resultobj; |
11423 | } | |
11424 | ||
11425 | #define wxImageList_AddWithColourMask(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1)) | |
1afc06c2 | 11426 | static PyObject *_wrap_wxImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
11427 | PyObject * _resultobj; |
11428 | int _result; | |
11429 | wxImageList * _arg0; | |
11430 | wxBitmap * _arg1; | |
11431 | wxColour * _arg2; | |
1d99702e RD |
11432 | PyObject * _argo0 = 0; |
11433 | PyObject * _argo1 = 0; | |
f6bcfd97 BP |
11434 | wxColour temp; |
11435 | PyObject * _obj2 = 0; | |
1afc06c2 | 11436 | char *_kwnames[] = { "self","bitmap","maskColour", NULL }; |
af309447 RD |
11437 | |
11438 | self = self; | |
f6bcfd97 | 11439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxImageList_AddWithColourMask",_kwnames,&_argo0,&_argo1,&_obj2)) |
af309447 | 11440 | return NULL; |
1d99702e RD |
11441 | if (_argo0) { |
11442 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11443 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
af309447 RD |
11444 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_AddWithColourMask. Expected _wxImageList_p."); |
11445 | return NULL; | |
11446 | } | |
11447 | } | |
1d99702e RD |
11448 | if (_argo1) { |
11449 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
11450 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
af309447 RD |
11451 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_AddWithColourMask. Expected _wxBitmap_p."); |
11452 | return NULL; | |
11453 | } | |
11454 | } | |
f6bcfd97 BP |
11455 | { |
11456 | _arg2 = &temp; | |
11457 | if (! wxColour_helper(_obj2, &_arg2)) | |
af309447 | 11458 | return NULL; |
f6bcfd97 | 11459 | } |
cf694132 | 11460 | { |
4268f798 | 11461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11462 | _result = (int )wxImageList_AddWithColourMask(_arg0,*_arg1,*_arg2); |
cf694132 | 11463 | |
4268f798 | 11464 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11465 | if (PyErr_Occurred()) return NULL; |
cf694132 | 11466 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
11467 | return _resultobj; |
11468 | } | |
11469 | ||
11470 | #define wxImageList_AddIcon(_swigobj,_swigarg0) (_swigobj->Add(_swigarg0)) | |
1afc06c2 | 11471 | static PyObject *_wrap_wxImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
11472 | PyObject * _resultobj; |
11473 | int _result; | |
11474 | wxImageList * _arg0; | |
11475 | wxIcon * _arg1; | |
1d99702e RD |
11476 | PyObject * _argo0 = 0; |
11477 | PyObject * _argo1 = 0; | |
1afc06c2 | 11478 | char *_kwnames[] = { "self","icon", NULL }; |
af309447 RD |
11479 | |
11480 | self = self; | |
1afc06c2 | 11481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxImageList_AddIcon",_kwnames,&_argo0,&_argo1)) |
af309447 | 11482 | return NULL; |
1d99702e RD |
11483 | if (_argo0) { |
11484 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11485 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
af309447 RD |
11486 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_AddIcon. Expected _wxImageList_p."); |
11487 | return NULL; | |
11488 | } | |
11489 | } | |
1d99702e RD |
11490 | if (_argo1) { |
11491 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
11492 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) { | |
af309447 RD |
11493 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_AddIcon. Expected _wxIcon_p."); |
11494 | return NULL; | |
11495 | } | |
11496 | } | |
cf694132 | 11497 | { |
4268f798 | 11498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11499 | _result = (int )wxImageList_AddIcon(_arg0,*_arg1); |
cf694132 | 11500 | |
4268f798 | 11501 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11502 | if (PyErr_Occurred()) return NULL; |
cf694132 | 11503 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
11504 | return _resultobj; |
11505 | } | |
11506 | ||
21f8d7ea | 11507 | #define wxImageList_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2)) |
1afc06c2 | 11508 | static PyObject *_wrap_wxImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
11509 | PyObject * _resultobj; |
11510 | bool _result; | |
11511 | wxImageList * _arg0; | |
11512 | int _arg1; | |
21f8d7ea | 11513 | wxBitmap * _arg2; |
1d99702e RD |
11514 | wxBitmap * _arg3 = (wxBitmap *) &wxNullBitmap; |
11515 | PyObject * _argo0 = 0; | |
11516 | PyObject * _argo2 = 0; | |
11517 | PyObject * _argo3 = 0; | |
1afc06c2 | 11518 | char *_kwnames[] = { "self","index","bitmap","mask", NULL }; |
af309447 RD |
11519 | |
11520 | self = self; | |
1afc06c2 | 11521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|O:wxImageList_Replace",_kwnames,&_argo0,&_arg1,&_argo2,&_argo3)) |
af309447 | 11522 | return NULL; |
1d99702e RD |
11523 | if (_argo0) { |
11524 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11525 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
21f8d7ea | 11526 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Replace. Expected _wxImageList_p."); |
af309447 RD |
11527 | return NULL; |
11528 | } | |
11529 | } | |
1d99702e RD |
11530 | if (_argo2) { |
11531 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
11532 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) { | |
21f8d7ea | 11533 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Replace. Expected _wxBitmap_p."); |
af309447 RD |
11534 | return NULL; |
11535 | } | |
11536 | } | |
1d99702e RD |
11537 | if (_argo3) { |
11538 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
11539 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxBitmap_p")) { | |
21f8d7ea RD |
11540 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxImageList_Replace. Expected _wxBitmap_p."); |
11541 | return NULL; | |
11542 | } | |
11543 | } | |
cf694132 | 11544 | { |
4268f798 | 11545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11546 | _result = (bool )wxImageList_Replace(_arg0,_arg1,*_arg2,*_arg3); |
cf694132 | 11547 | |
4268f798 | 11548 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11549 | if (PyErr_Occurred()) return NULL; |
cf694132 | 11550 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
11551 | return _resultobj; |
11552 | } | |
11553 | ||
21f8d7ea | 11554 | #define wxImageList_Draw(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Draw(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
1afc06c2 | 11555 | static PyObject *_wrap_wxImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
11556 | PyObject * _resultobj; |
11557 | bool _result; | |
11558 | wxImageList * _arg0; | |
11559 | int _arg1; | |
21f8d7ea RD |
11560 | wxDC * _arg2; |
11561 | int _arg3; | |
11562 | int _arg4; | |
1d99702e RD |
11563 | int _arg5 = (int ) (wxIMAGELIST_DRAW_NORMAL); |
11564 | bool _arg6 = (bool ) FALSE; | |
11565 | PyObject * _argo0 = 0; | |
11566 | PyObject * _argo2 = 0; | |
11567 | int tempbool6 = (int) FALSE; | |
1afc06c2 | 11568 | char *_kwnames[] = { "self","index","dc","x","x","flags","solidBackground", NULL }; |
af309447 RD |
11569 | |
11570 | self = self; | |
1afc06c2 | 11571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOii|ii:wxImageList_Draw",_kwnames,&_argo0,&_arg1,&_argo2,&_arg3,&_arg4,&_arg5,&tempbool6)) |
af309447 | 11572 | return NULL; |
1d99702e RD |
11573 | if (_argo0) { |
11574 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11575 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
21f8d7ea | 11576 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Draw. Expected _wxImageList_p."); |
af309447 RD |
11577 | return NULL; |
11578 | } | |
11579 | } | |
1d99702e RD |
11580 | if (_argo2) { |
11581 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
11582 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxDC_p")) { | |
21f8d7ea RD |
11583 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Draw. Expected _wxDC_p."); |
11584 | return NULL; | |
11585 | } | |
11586 | } | |
11587 | _arg6 = (bool ) tempbool6; | |
cf694132 | 11588 | { |
4268f798 | 11589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11590 | _result = (bool )wxImageList_Draw(_arg0,_arg1,*_arg2,_arg3,_arg4,_arg5,_arg6); |
cf694132 | 11591 | |
4268f798 | 11592 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11593 | if (PyErr_Occurred()) return NULL; |
cf694132 | 11594 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
11595 | return _resultobj; |
11596 | } | |
11597 | ||
21f8d7ea | 11598 | #define wxImageList_GetImageCount(_swigobj) (_swigobj->GetImageCount()) |
1afc06c2 | 11599 | static PyObject *_wrap_wxImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 | 11600 | PyObject * _resultobj; |
21f8d7ea | 11601 | int _result; |
af309447 | 11602 | wxImageList * _arg0; |
1d99702e | 11603 | PyObject * _argo0 = 0; |
1afc06c2 | 11604 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
11605 | |
11606 | self = self; | |
1afc06c2 | 11607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageList_GetImageCount",_kwnames,&_argo0)) |
af309447 | 11608 | return NULL; |
1d99702e RD |
11609 | if (_argo0) { |
11610 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11611 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
21f8d7ea | 11612 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_GetImageCount. Expected _wxImageList_p."); |
af309447 RD |
11613 | return NULL; |
11614 | } | |
11615 | } | |
cf694132 | 11616 | { |
4268f798 | 11617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11618 | _result = (int )wxImageList_GetImageCount(_arg0); |
cf694132 | 11619 | |
4268f798 | 11620 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11621 | if (PyErr_Occurred()) return NULL; |
cf694132 | 11622 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
11623 | return _resultobj; |
11624 | } | |
11625 | ||
21f8d7ea | 11626 | #define wxImageList_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) |
1afc06c2 | 11627 | static PyObject *_wrap_wxImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
11628 | PyObject * _resultobj; |
11629 | bool _result; | |
11630 | wxImageList * _arg0; | |
11631 | int _arg1; | |
1d99702e | 11632 | PyObject * _argo0 = 0; |
1afc06c2 | 11633 | char *_kwnames[] = { "self","index", NULL }; |
af309447 RD |
11634 | |
11635 | self = self; | |
1afc06c2 | 11636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxImageList_Remove",_kwnames,&_argo0,&_arg1)) |
af309447 | 11637 | return NULL; |
1d99702e RD |
11638 | if (_argo0) { |
11639 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11640 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
21f8d7ea | 11641 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Remove. Expected _wxImageList_p."); |
af309447 RD |
11642 | return NULL; |
11643 | } | |
11644 | } | |
cf694132 | 11645 | { |
4268f798 | 11646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11647 | _result = (bool )wxImageList_Remove(_arg0,_arg1); |
cf694132 | 11648 | |
4268f798 | 11649 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11650 | if (PyErr_Occurred()) return NULL; |
cf694132 | 11651 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
11652 | return _resultobj; |
11653 | } | |
11654 | ||
21f8d7ea | 11655 | #define wxImageList_RemoveAll(_swigobj) (_swigobj->RemoveAll()) |
1afc06c2 | 11656 | static PyObject *_wrap_wxImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
11657 | PyObject * _resultobj; |
11658 | bool _result; | |
11659 | wxImageList * _arg0; | |
1d99702e | 11660 | PyObject * _argo0 = 0; |
1afc06c2 | 11661 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
11662 | |
11663 | self = self; | |
1afc06c2 | 11664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageList_RemoveAll",_kwnames,&_argo0)) |
af309447 | 11665 | return NULL; |
1d99702e RD |
11666 | if (_argo0) { |
11667 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11668 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
21f8d7ea | 11669 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_RemoveAll. Expected _wxImageList_p."); |
af309447 RD |
11670 | return NULL; |
11671 | } | |
11672 | } | |
cf694132 | 11673 | { |
4268f798 | 11674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11675 | _result = (bool )wxImageList_RemoveAll(_arg0); |
cf694132 | 11676 | |
4268f798 | 11677 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11678 | if (PyErr_Occurred()) return NULL; |
cf694132 | 11679 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
11680 | return _resultobj; |
11681 | } | |
11682 | ||
f6bcfd97 BP |
11683 | #define wxImageList_GetSize(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetSize(_swigarg0,_swigarg1,_swigarg2)) |
11684 | static PyObject *_wrap_wxImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11685 | PyObject * _resultobj; | |
11686 | wxImageList * _arg0; | |
11687 | int _arg1; | |
11688 | int * _arg2; | |
11689 | int temp; | |
11690 | int * _arg3; | |
11691 | int temp0; | |
11692 | PyObject * _argo0 = 0; | |
11693 | char *_kwnames[] = { "self","index", NULL }; | |
11694 | ||
11695 | self = self; | |
11696 | { | |
11697 | _arg2 = &temp; | |
11698 | } | |
11699 | { | |
11700 | _arg3 = &temp0; | |
11701 | } | |
11702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxImageList_GetSize",_kwnames,&_argo0,&_arg1)) | |
11703 | return NULL; | |
11704 | if (_argo0) { | |
11705 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11706 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
11707 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_GetSize. Expected _wxImageList_p."); | |
11708 | return NULL; | |
11709 | } | |
11710 | } | |
11711 | { | |
4268f798 | 11712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11713 | wxImageList_GetSize(_arg0,_arg1,*_arg2,*_arg3); |
f6bcfd97 | 11714 | |
4268f798 | 11715 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11716 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
11717 | } Py_INCREF(Py_None); |
11718 | _resultobj = Py_None; | |
11719 | { | |
11720 | PyObject *o; | |
11721 | o = PyInt_FromLong((long) (*_arg2)); | |
11722 | _resultobj = t_output_helper(_resultobj, o); | |
11723 | } | |
11724 | { | |
11725 | PyObject *o; | |
11726 | o = PyInt_FromLong((long) (*_arg3)); | |
11727 | _resultobj = t_output_helper(_resultobj, o); | |
11728 | } | |
11729 | return _resultobj; | |
11730 | } | |
11731 | ||
9416aa89 RD |
11732 | static void *SwigwxRegionTowxGDIObject(void *ptr) { |
11733 | wxRegion *src; | |
11734 | wxGDIObject *dest; | |
11735 | src = (wxRegion *) ptr; | |
11736 | dest = (wxGDIObject *) src; | |
11737 | return (void *) dest; | |
11738 | } | |
11739 | ||
11740 | static void *SwigwxRegionTowxObject(void *ptr) { | |
11741 | wxRegion *src; | |
11742 | wxObject *dest; | |
11743 | src = (wxRegion *) ptr; | |
11744 | dest = (wxObject *) src; | |
11745 | return (void *) dest; | |
11746 | } | |
11747 | ||
11748 | #define new_wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
11749 | static PyObject *_wrap_new_wxRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11750 | PyObject * _resultobj; | |
11751 | wxRegion * _result; | |
11752 | long _arg0 = (long ) 0; | |
11753 | long _arg1 = (long ) 0; | |
11754 | long _arg2 = (long ) 0; | |
11755 | long _arg3 = (long ) 0; | |
11756 | char *_kwnames[] = { "x","y","width","height", NULL }; | |
11757 | char _ptemp[128]; | |
11758 | ||
11759 | self = self; | |
11760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|llll:new_wxRegion",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3)) | |
11761 | return NULL; | |
11762 | { | |
4268f798 | 11763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11764 | _result = (wxRegion *)new_wxRegion(_arg0,_arg1,_arg2,_arg3); |
9416aa89 | 11765 | |
4268f798 | 11766 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11767 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
11768 | } if (_result) { |
11769 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRegion_p"); | |
11770 | _resultobj = Py_BuildValue("s",_ptemp); | |
11771 | } else { | |
11772 | Py_INCREF(Py_None); | |
11773 | _resultobj = Py_None; | |
11774 | } | |
11775 | return _resultobj; | |
11776 | } | |
11777 | ||
11778 | #define delete_wxRegion(_swigobj) (delete _swigobj) | |
11779 | static PyObject *_wrap_delete_wxRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11780 | PyObject * _resultobj; | |
11781 | wxRegion * _arg0; | |
11782 | PyObject * _argo0 = 0; | |
11783 | char *_kwnames[] = { "self", NULL }; | |
11784 | ||
11785 | self = self; | |
11786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxRegion",_kwnames,&_argo0)) | |
11787 | return NULL; | |
11788 | if (_argo0) { | |
11789 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11790 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
11791 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxRegion. Expected _wxRegion_p."); | |
11792 | return NULL; | |
11793 | } | |
11794 | } | |
11795 | { | |
4268f798 | 11796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11797 | delete_wxRegion(_arg0); |
9416aa89 | 11798 | |
4268f798 | 11799 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11800 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
11801 | } Py_INCREF(Py_None); |
11802 | _resultobj = Py_None; | |
11803 | return _resultobj; | |
11804 | } | |
11805 | ||
11806 | #define wxRegion_Clear(_swigobj) (_swigobj->Clear()) | |
11807 | static PyObject *_wrap_wxRegion_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11808 | PyObject * _resultobj; | |
11809 | wxRegion * _arg0; | |
11810 | PyObject * _argo0 = 0; | |
11811 | char *_kwnames[] = { "self", NULL }; | |
11812 | ||
11813 | self = self; | |
11814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_Clear",_kwnames,&_argo0)) | |
11815 | return NULL; | |
11816 | if (_argo0) { | |
11817 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11818 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
11819 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Clear. Expected _wxRegion_p."); | |
11820 | return NULL; | |
11821 | } | |
11822 | } | |
11823 | { | |
4268f798 | 11824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11825 | wxRegion_Clear(_arg0); |
9416aa89 | 11826 | |
4268f798 | 11827 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11828 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
11829 | } Py_INCREF(Py_None); |
11830 | _resultobj = Py_None; | |
11831 | return _resultobj; | |
11832 | } | |
11833 | ||
23bed520 RD |
11834 | #define wxRegion_Offset(_swigobj,_swigarg0,_swigarg1) (_swigobj->Offset(_swigarg0,_swigarg1)) |
11835 | static PyObject *_wrap_wxRegion_Offset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11836 | PyObject * _resultobj; | |
11837 | bool _result; | |
11838 | wxRegion * _arg0; | |
11839 | wxCoord _arg1; | |
11840 | wxCoord _arg2; | |
11841 | PyObject * _argo0 = 0; | |
11842 | char *_kwnames[] = { "self","x","y", NULL }; | |
11843 | ||
11844 | self = self; | |
11845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxRegion_Offset",_kwnames,&_argo0,&_arg1,&_arg2)) | |
11846 | return NULL; | |
11847 | if (_argo0) { | |
11848 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11849 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
11850 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Offset. Expected _wxRegion_p."); | |
11851 | return NULL; | |
11852 | } | |
11853 | } | |
11854 | { | |
11855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 11856 | _result = (bool )wxRegion_Offset(_arg0,_arg1,_arg2); |
23bed520 RD |
11857 | |
11858 | wxPyEndAllowThreads(__tstate); | |
11859 | if (PyErr_Occurred()) return NULL; | |
11860 | } _resultobj = Py_BuildValue("i",_result); | |
11861 | return _resultobj; | |
11862 | } | |
11863 | ||
9416aa89 RD |
11864 | #define wxRegion_Contains(_swigobj,_swigarg0,_swigarg1) (_swigobj->Contains(_swigarg0,_swigarg1)) |
11865 | static PyObject *_wrap_wxRegion_Contains(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11866 | PyObject * _resultobj; | |
11867 | wxRegionContain _result; | |
11868 | wxRegion * _arg0; | |
11869 | long _arg1; | |
11870 | long _arg2; | |
11871 | PyObject * _argo0 = 0; | |
11872 | char *_kwnames[] = { "self","x","y", NULL }; | |
11873 | ||
11874 | self = self; | |
11875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxRegion_Contains",_kwnames,&_argo0,&_arg1,&_arg2)) | |
11876 | return NULL; | |
11877 | if (_argo0) { | |
11878 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11879 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
11880 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Contains. Expected _wxRegion_p."); | |
11881 | return NULL; | |
11882 | } | |
11883 | } | |
11884 | { | |
4268f798 | 11885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11886 | _result = (wxRegionContain )wxRegion_Contains(_arg0,_arg1,_arg2); |
9416aa89 | 11887 | |
4268f798 | 11888 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11889 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
11890 | } _resultobj = Py_BuildValue("i",_result); |
11891 | return _resultobj; | |
11892 | } | |
11893 | ||
11894 | #define wxRegion_ContainsPoint(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0)) | |
11895 | static PyObject *_wrap_wxRegion_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11896 | PyObject * _resultobj; | |
11897 | wxRegionContain _result; | |
11898 | wxRegion * _arg0; | |
11899 | wxPoint * _arg1; | |
11900 | PyObject * _argo0 = 0; | |
11901 | wxPoint temp; | |
11902 | PyObject * _obj1 = 0; | |
11903 | char *_kwnames[] = { "self","pt", NULL }; | |
11904 | ||
11905 | self = self; | |
11906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_ContainsPoint",_kwnames,&_argo0,&_obj1)) | |
11907 | return NULL; | |
11908 | if (_argo0) { | |
11909 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11910 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
11911 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsPoint. Expected _wxRegion_p."); | |
11912 | return NULL; | |
11913 | } | |
11914 | } | |
11915 | { | |
11916 | _arg1 = &temp; | |
11917 | if (! wxPoint_helper(_obj1, &_arg1)) | |
11918 | return NULL; | |
11919 | } | |
11920 | { | |
4268f798 | 11921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11922 | _result = (wxRegionContain )wxRegion_ContainsPoint(_arg0,*_arg1); |
9416aa89 | 11923 | |
4268f798 | 11924 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11925 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
11926 | } _resultobj = Py_BuildValue("i",_result); |
11927 | return _resultobj; | |
11928 | } | |
11929 | ||
11930 | #define wxRegion_ContainsRect(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0)) | |
11931 | static PyObject *_wrap_wxRegion_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11932 | PyObject * _resultobj; | |
11933 | wxRegionContain _result; | |
11934 | wxRegion * _arg0; | |
11935 | wxRect * _arg1; | |
11936 | PyObject * _argo0 = 0; | |
11937 | wxRect temp; | |
11938 | PyObject * _obj1 = 0; | |
11939 | char *_kwnames[] = { "self","rect", NULL }; | |
11940 | ||
11941 | self = self; | |
11942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_ContainsRect",_kwnames,&_argo0,&_obj1)) | |
11943 | return NULL; | |
11944 | if (_argo0) { | |
11945 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11946 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
11947 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsRect. Expected _wxRegion_p."); | |
11948 | return NULL; | |
11949 | } | |
11950 | } | |
11951 | { | |
11952 | _arg1 = &temp; | |
11953 | if (! wxRect_helper(_obj1, &_arg1)) | |
11954 | return NULL; | |
11955 | } | |
11956 | { | |
4268f798 | 11957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11958 | _result = (wxRegionContain )wxRegion_ContainsRect(_arg0,*_arg1); |
9416aa89 | 11959 | |
4268f798 | 11960 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11961 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
11962 | } _resultobj = Py_BuildValue("i",_result); |
11963 | return _resultobj; | |
11964 | } | |
11965 | ||
11966 | #define wxRegion_ContainsRectDim(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Contains(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
11967 | static PyObject *_wrap_wxRegion_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11968 | PyObject * _resultobj; | |
11969 | wxRegionContain _result; | |
11970 | wxRegion * _arg0; | |
11971 | long _arg1; | |
11972 | long _arg2; | |
11973 | long _arg3; | |
11974 | long _arg4; | |
11975 | PyObject * _argo0 = 0; | |
11976 | char *_kwnames[] = { "self","x","y","w","h", NULL }; | |
11977 | ||
11978 | self = self; | |
11979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_ContainsRectDim",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
11980 | return NULL; | |
11981 | if (_argo0) { | |
11982 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11983 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
11984 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsRectDim. Expected _wxRegion_p."); | |
11985 | return NULL; | |
11986 | } | |
11987 | } | |
11988 | { | |
4268f798 | 11989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11990 | _result = (wxRegionContain )wxRegion_ContainsRectDim(_arg0,_arg1,_arg2,_arg3,_arg4); |
9416aa89 | 11991 | |
4268f798 | 11992 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11993 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
11994 | } _resultobj = Py_BuildValue("i",_result); |
11995 | return _resultobj; | |
11996 | } | |
11997 | ||
11998 | #define wxRegion_GetBox(_swigobj) (_swigobj->GetBox()) | |
11999 | static PyObject *_wrap_wxRegion_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12000 | PyObject * _resultobj; | |
12001 | wxRect * _result; | |
12002 | wxRegion * _arg0; | |
12003 | PyObject * _argo0 = 0; | |
12004 | char *_kwnames[] = { "self", NULL }; | |
12005 | char _ptemp[128]; | |
12006 | ||
12007 | self = self; | |
12008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_GetBox",_kwnames,&_argo0)) | |
12009 | return NULL; | |
12010 | if (_argo0) { | |
12011 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12012 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
12013 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_GetBox. Expected _wxRegion_p."); | |
12014 | return NULL; | |
12015 | } | |
12016 | } | |
12017 | { | |
4268f798 | 12018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 12019 | _result = new wxRect (wxRegion_GetBox(_arg0)); |
9416aa89 | 12020 | |
4268f798 | 12021 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12022 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12023 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); |
12024 | _resultobj = Py_BuildValue("s",_ptemp); | |
12025 | return _resultobj; | |
12026 | } | |
12027 | ||
12028 | #define wxRegion_Intersect(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Intersect(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
12029 | static PyObject *_wrap_wxRegion_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12030 | PyObject * _resultobj; | |
12031 | bool _result; | |
12032 | wxRegion * _arg0; | |
12033 | long _arg1; | |
12034 | long _arg2; | |
12035 | long _arg3; | |
12036 | long _arg4; | |
12037 | PyObject * _argo0 = 0; | |
12038 | char *_kwnames[] = { "self","x","y","width","height", NULL }; | |
12039 | ||
12040 | self = self; | |
12041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Intersect",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
12042 | return NULL; | |
12043 | if (_argo0) { | |
12044 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12045 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
12046 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Intersect. Expected _wxRegion_p."); | |
12047 | return NULL; | |
12048 | } | |
12049 | } | |
12050 | { | |
4268f798 | 12051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 12052 | _result = (bool )wxRegion_Intersect(_arg0,_arg1,_arg2,_arg3,_arg4); |
9416aa89 | 12053 | |
4268f798 | 12054 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12055 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12056 | } _resultobj = Py_BuildValue("i",_result); |
12057 | return _resultobj; | |
12058 | } | |
12059 | ||
12060 | #define wxRegion_IntersectRect(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0)) | |
12061 | static PyObject *_wrap_wxRegion_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12062 | PyObject * _resultobj; | |
12063 | bool _result; | |
12064 | wxRegion * _arg0; | |
12065 | wxRect * _arg1; | |
12066 | PyObject * _argo0 = 0; | |
12067 | wxRect temp; | |
12068 | PyObject * _obj1 = 0; | |
12069 | char *_kwnames[] = { "self","rect", NULL }; | |
12070 | ||
12071 | self = self; | |
12072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_IntersectRect",_kwnames,&_argo0,&_obj1)) | |
12073 | return NULL; | |
12074 | if (_argo0) { | |
12075 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12076 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
12077 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IntersectRect. Expected _wxRegion_p."); | |
12078 | return NULL; | |
12079 | } | |
12080 | } | |
12081 | { | |
12082 | _arg1 = &temp; | |
12083 | if (! wxRect_helper(_obj1, &_arg1)) | |
12084 | return NULL; | |
12085 | } | |
12086 | { | |
4268f798 | 12087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 12088 | _result = (bool )wxRegion_IntersectRect(_arg0,*_arg1); |
9416aa89 | 12089 | |
4268f798 | 12090 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12091 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12092 | } _resultobj = Py_BuildValue("i",_result); |
12093 | return _resultobj; | |
12094 | } | |
12095 | ||
12096 | #define wxRegion_IntersectRegion(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0)) | |
12097 | static PyObject *_wrap_wxRegion_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12098 | PyObject * _resultobj; | |
12099 | bool _result; | |
12100 | wxRegion * _arg0; | |
12101 | wxRegion * _arg1; | |
12102 | PyObject * _argo0 = 0; | |
12103 | PyObject * _argo1 = 0; | |
12104 | char *_kwnames[] = { "self","region", NULL }; | |
12105 | ||
12106 | self = self; | |
12107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_IntersectRegion",_kwnames,&_argo0,&_argo1)) | |
12108 | return NULL; | |
12109 | if (_argo0) { | |
12110 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12111 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
12112 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IntersectRegion. Expected _wxRegion_p."); | |
12113 | return NULL; | |
12114 | } | |
12115 | } | |
12116 | if (_argo1) { | |
12117 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
12118 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) { | |
12119 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_IntersectRegion. Expected _wxRegion_p."); | |
12120 | return NULL; | |
12121 | } | |
12122 | } | |
12123 | { | |
4268f798 | 12124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 12125 | _result = (bool )wxRegion_IntersectRegion(_arg0,*_arg1); |
9416aa89 | 12126 | |
4268f798 | 12127 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12128 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12129 | } _resultobj = Py_BuildValue("i",_result); |
12130 | return _resultobj; | |
12131 | } | |
12132 | ||
12133 | #define wxRegion_IsEmpty(_swigobj) (_swigobj->IsEmpty()) | |
12134 | static PyObject *_wrap_wxRegion_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12135 | PyObject * _resultobj; | |
12136 | bool _result; | |
12137 | wxRegion * _arg0; | |
12138 | PyObject * _argo0 = 0; | |
12139 | char *_kwnames[] = { "self", NULL }; | |
12140 | ||
12141 | self = self; | |
12142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_IsEmpty",_kwnames,&_argo0)) | |
12143 | return NULL; | |
12144 | if (_argo0) { | |
12145 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12146 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
12147 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IsEmpty. Expected _wxRegion_p."); | |
12148 | return NULL; | |
12149 | } | |
12150 | } | |
12151 | { | |
4268f798 | 12152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 12153 | _result = (bool )wxRegion_IsEmpty(_arg0); |
9416aa89 | 12154 | |
4268f798 | 12155 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12156 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12157 | } _resultobj = Py_BuildValue("i",_result); |
12158 | return _resultobj; | |
12159 | } | |
12160 | ||
12161 | #define wxRegion_Union(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Union(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
12162 | static PyObject *_wrap_wxRegion_Union(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12163 | PyObject * _resultobj; | |
12164 | bool _result; | |
12165 | wxRegion * _arg0; | |
12166 | long _arg1; | |
12167 | long _arg2; | |
12168 | long _arg3; | |
12169 | long _arg4; | |
12170 | PyObject * _argo0 = 0; | |
12171 | char *_kwnames[] = { "self","x","y","width","height", NULL }; | |
12172 | ||
12173 | self = self; | |
12174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Union",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
12175 | return NULL; | |
12176 | if (_argo0) { | |
12177 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12178 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
12179 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Union. Expected _wxRegion_p."); | |
12180 | return NULL; | |
12181 | } | |
12182 | } | |
12183 | { | |
4268f798 | 12184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 12185 | _result = (bool )wxRegion_Union(_arg0,_arg1,_arg2,_arg3,_arg4); |
9416aa89 | 12186 | |
4268f798 | 12187 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12188 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12189 | } _resultobj = Py_BuildValue("i",_result); |
12190 | return _resultobj; | |
12191 | } | |
12192 | ||
12193 | #define wxRegion_UnionRect(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0)) | |
12194 | static PyObject *_wrap_wxRegion_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12195 | PyObject * _resultobj; | |
12196 | bool _result; | |
12197 | wxRegion * _arg0; | |
12198 | wxRect * _arg1; | |
12199 | PyObject * _argo0 = 0; | |
12200 | wxRect temp; | |
12201 | PyObject * _obj1 = 0; | |
12202 | char *_kwnames[] = { "self","rect", NULL }; | |
12203 | ||
12204 | self = self; | |
12205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_UnionRect",_kwnames,&_argo0,&_obj1)) | |
12206 | return NULL; | |
12207 | if (_argo0) { | |
12208 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12209 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
12210 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_UnionRect. Expected _wxRegion_p."); | |
12211 | return NULL; | |
12212 | } | |
12213 | } | |
12214 | { | |
12215 | _arg1 = &temp; | |
12216 | if (! wxRect_helper(_obj1, &_arg1)) | |
12217 | return NULL; | |
12218 | } | |
12219 | { | |
4268f798 | 12220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 12221 | _result = (bool )wxRegion_UnionRect(_arg0,*_arg1); |
9416aa89 | 12222 | |
4268f798 | 12223 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12224 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12225 | } _resultobj = Py_BuildValue("i",_result); |
12226 | return _resultobj; | |
12227 | } | |
12228 | ||
12229 | #define wxRegion_UnionRegion(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0)) | |
12230 | static PyObject *_wrap_wxRegion_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12231 | PyObject * _resultobj; | |
12232 | bool _result; | |
12233 | wxRegion * _arg0; | |
12234 | wxRegion * _arg1; | |
12235 | PyObject * _argo0 = 0; | |
12236 | PyObject * _argo1 = 0; | |
12237 | char *_kwnames[] = { "self","region", NULL }; | |
12238 | ||
12239 | self = self; | |
12240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_UnionRegion",_kwnames,&_argo0,&_argo1)) | |
12241 | return NULL; | |
12242 | if (_argo0) { | |
12243 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12244 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
12245 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_UnionRegion. Expected _wxRegion_p."); | |
12246 | return NULL; | |
12247 | } | |
12248 | } | |
12249 | if (_argo1) { | |
12250 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
12251 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) { | |
12252 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_UnionRegion. Expected _wxRegion_p."); | |
12253 | return NULL; | |
12254 | } | |
12255 | } | |
12256 | { | |
4268f798 | 12257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 12258 | _result = (bool )wxRegion_UnionRegion(_arg0,*_arg1); |
9416aa89 | 12259 | |
4268f798 | 12260 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12261 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12262 | } _resultobj = Py_BuildValue("i",_result); |
12263 | return _resultobj; | |
12264 | } | |
12265 | ||
12266 | #define wxRegion_Subtract(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Subtract(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
12267 | static PyObject *_wrap_wxRegion_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12268 | PyObject * _resultobj; | |
12269 | bool _result; | |
12270 | wxRegion * _arg0; | |
12271 | long _arg1; | |
12272 | long _arg2; | |
12273 | long _arg3; | |
12274 | long _arg4; | |
12275 | PyObject * _argo0 = 0; | |
12276 | char *_kwnames[] = { "self","x","y","width","height", NULL }; | |
12277 | ||
12278 | self = self; | |
12279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Subtract",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
12280 | return NULL; | |
12281 | if (_argo0) { | |
12282 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12283 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
12284 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Subtract. Expected _wxRegion_p."); | |
12285 | return NULL; | |
12286 | } | |
12287 | } | |
12288 | { | |
4268f798 | 12289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 12290 | _result = (bool )wxRegion_Subtract(_arg0,_arg1,_arg2,_arg3,_arg4); |
9416aa89 | 12291 | |
4268f798 | 12292 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12293 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12294 | } _resultobj = Py_BuildValue("i",_result); |
12295 | return _resultobj; | |
12296 | } | |
12297 | ||
12298 | #define wxRegion_SubtractRect(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0)) | |
12299 | static PyObject *_wrap_wxRegion_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12300 | PyObject * _resultobj; | |
12301 | bool _result; | |
12302 | wxRegion * _arg0; | |
12303 | wxRect * _arg1; | |
12304 | PyObject * _argo0 = 0; | |
12305 | wxRect temp; | |
12306 | PyObject * _obj1 = 0; | |
12307 | char *_kwnames[] = { "self","rect", NULL }; | |
12308 | ||
12309 | self = self; | |
12310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_SubtractRect",_kwnames,&_argo0,&_obj1)) | |
12311 | return NULL; | |
12312 | if (_argo0) { | |
12313 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12314 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
12315 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_SubtractRect. Expected _wxRegion_p."); | |
12316 | return NULL; | |
12317 | } | |
12318 | } | |
12319 | { | |
12320 | _arg1 = &temp; | |
12321 | if (! wxRect_helper(_obj1, &_arg1)) | |
12322 | return NULL; | |
12323 | } | |
12324 | { | |
4268f798 | 12325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 12326 | _result = (bool )wxRegion_SubtractRect(_arg0,*_arg1); |
9416aa89 | 12327 | |
4268f798 | 12328 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12329 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12330 | } _resultobj = Py_BuildValue("i",_result); |
12331 | return _resultobj; | |
12332 | } | |
12333 | ||
12334 | #define wxRegion_SubtractRegion(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0)) | |
12335 | static PyObject *_wrap_wxRegion_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12336 | PyObject * _resultobj; | |
12337 | bool _result; | |
12338 | wxRegion * _arg0; | |
12339 | wxRegion * _arg1; | |
12340 | PyObject * _argo0 = 0; | |
12341 | PyObject * _argo1 = 0; | |
12342 | char *_kwnames[] = { "self","region", NULL }; | |
12343 | ||
12344 | self = self; | |
12345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_SubtractRegion",_kwnames,&_argo0,&_argo1)) | |
12346 | return NULL; | |
12347 | if (_argo0) { | |
12348 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12349 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
12350 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_SubtractRegion. Expected _wxRegion_p."); | |
12351 | return NULL; | |
12352 | } | |
12353 | } | |
12354 | if (_argo1) { | |
12355 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
12356 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) { | |
12357 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_SubtractRegion. Expected _wxRegion_p."); | |
12358 | return NULL; | |
12359 | } | |
12360 | } | |
12361 | { | |
4268f798 | 12362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 12363 | _result = (bool )wxRegion_SubtractRegion(_arg0,*_arg1); |
9416aa89 | 12364 | |
4268f798 | 12365 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12366 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12367 | } _resultobj = Py_BuildValue("i",_result); |
12368 | return _resultobj; | |
12369 | } | |
12370 | ||
12371 | #define wxRegion_Xor(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Xor(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
12372 | static PyObject *_wrap_wxRegion_Xor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12373 | PyObject * _resultobj; | |
12374 | bool _result; | |
12375 | wxRegion * _arg0; | |
12376 | long _arg1; | |
12377 | long _arg2; | |
12378 | long _arg3; | |
12379 | long _arg4; | |
12380 | PyObject * _argo0 = 0; | |
12381 | char *_kwnames[] = { "self","x","y","width","height", NULL }; | |
12382 | ||
12383 | self = self; | |
12384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Xor",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
12385 | return NULL; | |
12386 | if (_argo0) { | |
12387 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12388 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
12389 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Xor. Expected _wxRegion_p."); | |
12390 | return NULL; | |
12391 | } | |
12392 | } | |
12393 | { | |
4268f798 | 12394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 12395 | _result = (bool )wxRegion_Xor(_arg0,_arg1,_arg2,_arg3,_arg4); |
9416aa89 | 12396 | |
4268f798 | 12397 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12398 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12399 | } _resultobj = Py_BuildValue("i",_result); |
12400 | return _resultobj; | |
12401 | } | |
12402 | ||
12403 | #define wxRegion_XorRect(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0)) | |
12404 | static PyObject *_wrap_wxRegion_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12405 | PyObject * _resultobj; | |
12406 | bool _result; | |
12407 | wxRegion * _arg0; | |
12408 | wxRect * _arg1; | |
12409 | PyObject * _argo0 = 0; | |
12410 | wxRect temp; | |
12411 | PyObject * _obj1 = 0; | |
12412 | char *_kwnames[] = { "self","rect", NULL }; | |
12413 | ||
12414 | self = self; | |
12415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_XorRect",_kwnames,&_argo0,&_obj1)) | |
12416 | return NULL; | |
12417 | if (_argo0) { | |
12418 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12419 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
12420 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_XorRect. Expected _wxRegion_p."); | |
12421 | return NULL; | |
12422 | } | |
12423 | } | |
12424 | { | |
12425 | _arg1 = &temp; | |
12426 | if (! wxRect_helper(_obj1, &_arg1)) | |
12427 | return NULL; | |
12428 | } | |
12429 | { | |
4268f798 | 12430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 12431 | _result = (bool )wxRegion_XorRect(_arg0,*_arg1); |
9416aa89 | 12432 | |
4268f798 | 12433 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12434 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12435 | } _resultobj = Py_BuildValue("i",_result); |
12436 | return _resultobj; | |
12437 | } | |
12438 | ||
12439 | #define wxRegion_XorRegion(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0)) | |
12440 | static PyObject *_wrap_wxRegion_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12441 | PyObject * _resultobj; | |
12442 | bool _result; | |
12443 | wxRegion * _arg0; | |
12444 | wxRegion * _arg1; | |
12445 | PyObject * _argo0 = 0; | |
12446 | PyObject * _argo1 = 0; | |
12447 | char *_kwnames[] = { "self","region", NULL }; | |
12448 | ||
12449 | self = self; | |
12450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_XorRegion",_kwnames,&_argo0,&_argo1)) | |
12451 | return NULL; | |
12452 | if (_argo0) { | |
12453 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12454 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
12455 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_XorRegion. Expected _wxRegion_p."); | |
12456 | return NULL; | |
12457 | } | |
12458 | } | |
12459 | if (_argo1) { | |
12460 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
12461 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) { | |
12462 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_XorRegion. Expected _wxRegion_p."); | |
12463 | return NULL; | |
12464 | } | |
12465 | } | |
12466 | { | |
4268f798 | 12467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 12468 | _result = (bool )wxRegion_XorRegion(_arg0,*_arg1); |
9416aa89 | 12469 | |
4268f798 | 12470 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12471 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12472 | } _resultobj = Py_BuildValue("i",_result); |
12473 | return _resultobj; | |
12474 | } | |
12475 | ||
12476 | static void *SwigwxRegionIteratorTowxObject(void *ptr) { | |
12477 | wxRegionIterator *src; | |
12478 | wxObject *dest; | |
12479 | src = (wxRegionIterator *) ptr; | |
12480 | dest = (wxObject *) src; | |
12481 | return (void *) dest; | |
12482 | } | |
12483 | ||
12484 | #define new_wxRegionIterator(_swigarg0) (new wxRegionIterator(_swigarg0)) | |
12485 | static PyObject *_wrap_new_wxRegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12486 | PyObject * _resultobj; | |
12487 | wxRegionIterator * _result; | |
12488 | wxRegion * _arg0; | |
12489 | PyObject * _argo0 = 0; | |
12490 | char *_kwnames[] = { "region", NULL }; | |
12491 | char _ptemp[128]; | |
12492 | ||
12493 | self = self; | |
12494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxRegionIterator",_kwnames,&_argo0)) | |
12495 | return NULL; | |
12496 | if (_argo0) { | |
12497 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12498 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
12499 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxRegionIterator. Expected _wxRegion_p."); | |
12500 | return NULL; | |
12501 | } | |
12502 | } | |
12503 | { | |
4268f798 | 12504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 12505 | _result = (wxRegionIterator *)new_wxRegionIterator(*_arg0); |
9416aa89 | 12506 | |
4268f798 | 12507 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12508 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12509 | } if (_result) { |
12510 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRegionIterator_p"); | |
12511 | _resultobj = Py_BuildValue("s",_ptemp); | |
12512 | } else { | |
12513 | Py_INCREF(Py_None); | |
12514 | _resultobj = Py_None; | |
12515 | } | |
12516 | return _resultobj; | |
12517 | } | |
12518 | ||
12519 | #define delete_wxRegionIterator(_swigobj) (delete _swigobj) | |
12520 | static PyObject *_wrap_delete_wxRegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12521 | PyObject * _resultobj; | |
12522 | wxRegionIterator * _arg0; | |
12523 | PyObject * _argo0 = 0; | |
12524 | char *_kwnames[] = { "self", NULL }; | |
12525 | ||
12526 | self = self; | |
12527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxRegionIterator",_kwnames,&_argo0)) | |
12528 | return NULL; | |
12529 | if (_argo0) { | |
12530 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12531 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
12532 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxRegionIterator. Expected _wxRegionIterator_p."); | |
12533 | return NULL; | |
12534 | } | |
12535 | } | |
12536 | { | |
4268f798 | 12537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 12538 | delete_wxRegionIterator(_arg0); |
9416aa89 | 12539 | |
4268f798 | 12540 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12541 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12542 | } Py_INCREF(Py_None); |
12543 | _resultobj = Py_None; | |
12544 | return _resultobj; | |
12545 | } | |
12546 | ||
12547 | #define wxRegionIterator_GetX(_swigobj) (_swigobj->GetX()) | |
12548 | static PyObject *_wrap_wxRegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12549 | PyObject * _resultobj; | |
12550 | long _result; | |
12551 | wxRegionIterator * _arg0; | |
12552 | PyObject * _argo0 = 0; | |
12553 | char *_kwnames[] = { "self", NULL }; | |
12554 | ||
12555 | self = self; | |
12556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetX",_kwnames,&_argo0)) | |
12557 | return NULL; | |
12558 | if (_argo0) { | |
12559 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12560 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
12561 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetX. Expected _wxRegionIterator_p."); | |
12562 | return NULL; | |
12563 | } | |
12564 | } | |
12565 | { | |
4268f798 | 12566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 12567 | _result = (long )wxRegionIterator_GetX(_arg0); |
9416aa89 | 12568 | |
4268f798 | 12569 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12570 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12571 | } _resultobj = Py_BuildValue("l",_result); |
12572 | return _resultobj; | |
12573 | } | |
12574 | ||
12575 | #define wxRegionIterator_GetY(_swigobj) (_swigobj->GetY()) | |
12576 | static PyObject *_wrap_wxRegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12577 | PyObject * _resultobj; | |
12578 | long _result; | |
12579 | wxRegionIterator * _arg0; | |
12580 | PyObject * _argo0 = 0; | |
12581 | char *_kwnames[] = { "self", NULL }; | |
12582 | ||
12583 | self = self; | |
12584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetY",_kwnames,&_argo0)) | |
12585 | return NULL; | |
12586 | if (_argo0) { | |
12587 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12588 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
12589 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetY. Expected _wxRegionIterator_p."); | |
12590 | return NULL; | |
12591 | } | |
12592 | } | |
12593 | { | |
4268f798 | 12594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 12595 | _result = (long )wxRegionIterator_GetY(_arg0); |
9416aa89 | 12596 | |
4268f798 | 12597 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12598 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12599 | } _resultobj = Py_BuildValue("l",_result); |
12600 | return _resultobj; | |
12601 | } | |
12602 | ||
12603 | #define wxRegionIterator_GetW(_swigobj) (_swigobj->GetW()) | |
12604 | static PyObject *_wrap_wxRegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12605 | PyObject * _resultobj; | |
12606 | long _result; | |
12607 | wxRegionIterator * _arg0; | |
12608 | PyObject * _argo0 = 0; | |
12609 | char *_kwnames[] = { "self", NULL }; | |
12610 | ||
12611 | self = self; | |
12612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetW",_kwnames,&_argo0)) | |
12613 | return NULL; | |
12614 | if (_argo0) { | |
12615 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12616 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
12617 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetW. Expected _wxRegionIterator_p."); | |
12618 | return NULL; | |
12619 | } | |
12620 | } | |
12621 | { | |
4268f798 | 12622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 12623 | _result = (long )wxRegionIterator_GetW(_arg0); |
9416aa89 | 12624 | |
4268f798 | 12625 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12626 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12627 | } _resultobj = Py_BuildValue("l",_result); |
12628 | return _resultobj; | |
12629 | } | |
12630 | ||
12631 | #define wxRegionIterator_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
12632 | static PyObject *_wrap_wxRegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12633 | PyObject * _resultobj; | |
12634 | long _result; | |
12635 | wxRegionIterator * _arg0; | |
12636 | PyObject * _argo0 = 0; | |
12637 | char *_kwnames[] = { "self", NULL }; | |
12638 | ||
12639 | self = self; | |
12640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetWidth",_kwnames,&_argo0)) | |
12641 | return NULL; | |
12642 | if (_argo0) { | |
12643 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12644 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
12645 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetWidth. Expected _wxRegionIterator_p."); | |
12646 | return NULL; | |
12647 | } | |
12648 | } | |
12649 | { | |
4268f798 | 12650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 12651 | _result = (long )wxRegionIterator_GetWidth(_arg0); |
9416aa89 | 12652 | |
4268f798 | 12653 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12654 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12655 | } _resultobj = Py_BuildValue("l",_result); |
12656 | return _resultobj; | |
12657 | } | |
12658 | ||
12659 | #define wxRegionIterator_GetH(_swigobj) (_swigobj->GetH()) | |
12660 | static PyObject *_wrap_wxRegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12661 | PyObject * _resultobj; | |
12662 | long _result; | |
12663 | wxRegionIterator * _arg0; | |
12664 | PyObject * _argo0 = 0; | |
12665 | char *_kwnames[] = { "self", NULL }; | |
12666 | ||
12667 | self = self; | |
12668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetH",_kwnames,&_argo0)) | |
12669 | return NULL; | |
12670 | if (_argo0) { | |
12671 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12672 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
12673 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetH. Expected _wxRegionIterator_p."); | |
12674 | return NULL; | |
12675 | } | |
12676 | } | |
12677 | { | |
4268f798 | 12678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 12679 | _result = (long )wxRegionIterator_GetH(_arg0); |
9416aa89 | 12680 | |
4268f798 | 12681 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12682 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12683 | } _resultobj = Py_BuildValue("l",_result); |
12684 | return _resultobj; | |
12685 | } | |
12686 | ||
12687 | #define wxRegionIterator_GetHeight(_swigobj) (_swigobj->GetHeight()) | |
12688 | static PyObject *_wrap_wxRegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12689 | PyObject * _resultobj; | |
12690 | long _result; | |
12691 | wxRegionIterator * _arg0; | |
12692 | PyObject * _argo0 = 0; | |
12693 | char *_kwnames[] = { "self", NULL }; | |
12694 | ||
12695 | self = self; | |
12696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetHeight",_kwnames,&_argo0)) | |
12697 | return NULL; | |
12698 | if (_argo0) { | |
12699 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12700 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
12701 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetHeight. Expected _wxRegionIterator_p."); | |
12702 | return NULL; | |
12703 | } | |
12704 | } | |
12705 | { | |
4268f798 | 12706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 12707 | _result = (long )wxRegionIterator_GetHeight(_arg0); |
9416aa89 | 12708 | |
4268f798 | 12709 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12710 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12711 | } _resultobj = Py_BuildValue("l",_result); |
12712 | return _resultobj; | |
12713 | } | |
12714 | ||
12715 | #define wxRegionIterator_GetRect(_swigobj) (_swigobj->GetRect()) | |
12716 | static PyObject *_wrap_wxRegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12717 | PyObject * _resultobj; | |
12718 | wxRect * _result; | |
12719 | wxRegionIterator * _arg0; | |
12720 | PyObject * _argo0 = 0; | |
12721 | char *_kwnames[] = { "self", NULL }; | |
12722 | char _ptemp[128]; | |
12723 | ||
12724 | self = self; | |
12725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetRect",_kwnames,&_argo0)) | |
12726 | return NULL; | |
12727 | if (_argo0) { | |
12728 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12729 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
12730 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetRect. Expected _wxRegionIterator_p."); | |
12731 | return NULL; | |
12732 | } | |
12733 | } | |
12734 | { | |
4268f798 | 12735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 12736 | _result = new wxRect (wxRegionIterator_GetRect(_arg0)); |
9416aa89 | 12737 | |
4268f798 | 12738 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12739 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12740 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); |
12741 | _resultobj = Py_BuildValue("s",_ptemp); | |
12742 | return _resultobj; | |
12743 | } | |
12744 | ||
12745 | #define wxRegionIterator_HaveRects(_swigobj) (_swigobj->HaveRects()) | |
12746 | static PyObject *_wrap_wxRegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12747 | PyObject * _resultobj; | |
12748 | bool _result; | |
12749 | wxRegionIterator * _arg0; | |
12750 | PyObject * _argo0 = 0; | |
12751 | char *_kwnames[] = { "self", NULL }; | |
12752 | ||
12753 | self = self; | |
12754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_HaveRects",_kwnames,&_argo0)) | |
12755 | return NULL; | |
12756 | if (_argo0) { | |
12757 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12758 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
12759 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_HaveRects. Expected _wxRegionIterator_p."); | |
12760 | return NULL; | |
12761 | } | |
12762 | } | |
12763 | { | |
4268f798 | 12764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 12765 | _result = (bool )wxRegionIterator_HaveRects(_arg0); |
9416aa89 | 12766 | |
4268f798 | 12767 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12768 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12769 | } _resultobj = Py_BuildValue("i",_result); |
12770 | return _resultobj; | |
12771 | } | |
12772 | ||
12773 | #define wxRegionIterator_Reset(_swigobj) (_swigobj->Reset()) | |
12774 | static PyObject *_wrap_wxRegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12775 | PyObject * _resultobj; | |
12776 | wxRegionIterator * _arg0; | |
12777 | PyObject * _argo0 = 0; | |
12778 | char *_kwnames[] = { "self", NULL }; | |
12779 | ||
12780 | self = self; | |
12781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_Reset",_kwnames,&_argo0)) | |
12782 | return NULL; | |
12783 | if (_argo0) { | |
12784 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12785 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
12786 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_Reset. Expected _wxRegionIterator_p."); | |
12787 | return NULL; | |
12788 | } | |
12789 | } | |
12790 | { | |
4268f798 | 12791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 12792 | wxRegionIterator_Reset(_arg0); |
9416aa89 | 12793 | |
4268f798 | 12794 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12795 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12796 | } Py_INCREF(Py_None); |
12797 | _resultobj = Py_None; | |
12798 | return _resultobj; | |
12799 | } | |
12800 | ||
12801 | static void wxRegionIterator_Next(wxRegionIterator *self) { | |
12802 | (*self) ++; | |
12803 | } | |
12804 | static PyObject *_wrap_wxRegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12805 | PyObject * _resultobj; | |
12806 | wxRegionIterator * _arg0; | |
12807 | PyObject * _argo0 = 0; | |
12808 | char *_kwnames[] = { "self", NULL }; | |
12809 | ||
12810 | self = self; | |
12811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_Next",_kwnames,&_argo0)) | |
12812 | return NULL; | |
12813 | if (_argo0) { | |
12814 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
12815 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
12816 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_Next. Expected _wxRegionIterator_p."); | |
12817 | return NULL; | |
12818 | } | |
12819 | } | |
12820 | { | |
4268f798 | 12821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 12822 | wxRegionIterator_Next(_arg0); |
9416aa89 | 12823 | |
4268f798 | 12824 | wxPyEndAllowThreads(__tstate); |
493f1553 | 12825 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
12826 | } Py_INCREF(Py_None); |
12827 | _resultobj = Py_None; | |
12828 | return _resultobj; | |
12829 | } | |
12830 | ||
8ab979d7 | 12831 | static PyMethodDef gdicMethods[] = { |
9416aa89 RD |
12832 | { "wxRegionIterator_Next", (PyCFunction) _wrap_wxRegionIterator_Next, METH_VARARGS | METH_KEYWORDS }, |
12833 | { "wxRegionIterator_Reset", (PyCFunction) _wrap_wxRegionIterator_Reset, METH_VARARGS | METH_KEYWORDS }, | |
12834 | { "wxRegionIterator_HaveRects", (PyCFunction) _wrap_wxRegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS }, | |
12835 | { "wxRegionIterator_GetRect", (PyCFunction) _wrap_wxRegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
12836 | { "wxRegionIterator_GetHeight", (PyCFunction) _wrap_wxRegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
12837 | { "wxRegionIterator_GetH", (PyCFunction) _wrap_wxRegionIterator_GetH, METH_VARARGS | METH_KEYWORDS }, | |
12838 | { "wxRegionIterator_GetWidth", (PyCFunction) _wrap_wxRegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
12839 | { "wxRegionIterator_GetW", (PyCFunction) _wrap_wxRegionIterator_GetW, METH_VARARGS | METH_KEYWORDS }, | |
12840 | { "wxRegionIterator_GetY", (PyCFunction) _wrap_wxRegionIterator_GetY, METH_VARARGS | METH_KEYWORDS }, | |
12841 | { "wxRegionIterator_GetX", (PyCFunction) _wrap_wxRegionIterator_GetX, METH_VARARGS | METH_KEYWORDS }, | |
12842 | { "delete_wxRegionIterator", (PyCFunction) _wrap_delete_wxRegionIterator, METH_VARARGS | METH_KEYWORDS }, | |
12843 | { "new_wxRegionIterator", (PyCFunction) _wrap_new_wxRegionIterator, METH_VARARGS | METH_KEYWORDS }, | |
12844 | { "wxRegion_XorRegion", (PyCFunction) _wrap_wxRegion_XorRegion, METH_VARARGS | METH_KEYWORDS }, | |
12845 | { "wxRegion_XorRect", (PyCFunction) _wrap_wxRegion_XorRect, METH_VARARGS | METH_KEYWORDS }, | |
12846 | { "wxRegion_Xor", (PyCFunction) _wrap_wxRegion_Xor, METH_VARARGS | METH_KEYWORDS }, | |
12847 | { "wxRegion_SubtractRegion", (PyCFunction) _wrap_wxRegion_SubtractRegion, METH_VARARGS | METH_KEYWORDS }, | |
12848 | { "wxRegion_SubtractRect", (PyCFunction) _wrap_wxRegion_SubtractRect, METH_VARARGS | METH_KEYWORDS }, | |
12849 | { "wxRegion_Subtract", (PyCFunction) _wrap_wxRegion_Subtract, METH_VARARGS | METH_KEYWORDS }, | |
12850 | { "wxRegion_UnionRegion", (PyCFunction) _wrap_wxRegion_UnionRegion, METH_VARARGS | METH_KEYWORDS }, | |
12851 | { "wxRegion_UnionRect", (PyCFunction) _wrap_wxRegion_UnionRect, METH_VARARGS | METH_KEYWORDS }, | |
12852 | { "wxRegion_Union", (PyCFunction) _wrap_wxRegion_Union, METH_VARARGS | METH_KEYWORDS }, | |
12853 | { "wxRegion_IsEmpty", (PyCFunction) _wrap_wxRegion_IsEmpty, METH_VARARGS | METH_KEYWORDS }, | |
12854 | { "wxRegion_IntersectRegion", (PyCFunction) _wrap_wxRegion_IntersectRegion, METH_VARARGS | METH_KEYWORDS }, | |
12855 | { "wxRegion_IntersectRect", (PyCFunction) _wrap_wxRegion_IntersectRect, METH_VARARGS | METH_KEYWORDS }, | |
12856 | { "wxRegion_Intersect", (PyCFunction) _wrap_wxRegion_Intersect, METH_VARARGS | METH_KEYWORDS }, | |
12857 | { "wxRegion_GetBox", (PyCFunction) _wrap_wxRegion_GetBox, METH_VARARGS | METH_KEYWORDS }, | |
12858 | { "wxRegion_ContainsRectDim", (PyCFunction) _wrap_wxRegion_ContainsRectDim, METH_VARARGS | METH_KEYWORDS }, | |
12859 | { "wxRegion_ContainsRect", (PyCFunction) _wrap_wxRegion_ContainsRect, METH_VARARGS | METH_KEYWORDS }, | |
12860 | { "wxRegion_ContainsPoint", (PyCFunction) _wrap_wxRegion_ContainsPoint, METH_VARARGS | METH_KEYWORDS }, | |
12861 | { "wxRegion_Contains", (PyCFunction) _wrap_wxRegion_Contains, METH_VARARGS | METH_KEYWORDS }, | |
23bed520 | 12862 | { "wxRegion_Offset", (PyCFunction) _wrap_wxRegion_Offset, METH_VARARGS | METH_KEYWORDS }, |
9416aa89 RD |
12863 | { "wxRegion_Clear", (PyCFunction) _wrap_wxRegion_Clear, METH_VARARGS | METH_KEYWORDS }, |
12864 | { "delete_wxRegion", (PyCFunction) _wrap_delete_wxRegion, METH_VARARGS | METH_KEYWORDS }, | |
12865 | { "new_wxRegion", (PyCFunction) _wrap_new_wxRegion, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 12866 | { "wxImageList_GetSize", (PyCFunction) _wrap_wxImageList_GetSize, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 RD |
12867 | { "wxImageList_RemoveAll", (PyCFunction) _wrap_wxImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS }, |
12868 | { "wxImageList_Remove", (PyCFunction) _wrap_wxImageList_Remove, METH_VARARGS | METH_KEYWORDS }, | |
12869 | { "wxImageList_GetImageCount", (PyCFunction) _wrap_wxImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS }, | |
12870 | { "wxImageList_Draw", (PyCFunction) _wrap_wxImageList_Draw, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 RD |
12871 | { "wxImageList_Replace", (PyCFunction) _wrap_wxImageList_Replace, METH_VARARGS | METH_KEYWORDS }, |
12872 | { "wxImageList_AddIcon", (PyCFunction) _wrap_wxImageList_AddIcon, METH_VARARGS | METH_KEYWORDS }, | |
12873 | { "wxImageList_AddWithColourMask", (PyCFunction) _wrap_wxImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS }, | |
12874 | { "wxImageList_Add", (PyCFunction) _wrap_wxImageList_Add, METH_VARARGS | METH_KEYWORDS }, | |
12875 | { "delete_wxImageList", (PyCFunction) _wrap_delete_wxImageList, METH_VARARGS | METH_KEYWORDS }, | |
12876 | { "new_wxImageList", (PyCFunction) _wrap_new_wxImageList, METH_VARARGS | METH_KEYWORDS }, | |
12877 | { "wxPalette_Ok", (PyCFunction) _wrap_wxPalette_Ok, METH_VARARGS | METH_KEYWORDS }, | |
12878 | { "wxPalette_GetRGB", (PyCFunction) _wrap_wxPalette_GetRGB, METH_VARARGS | METH_KEYWORDS }, | |
12879 | { "wxPalette_GetPixel", (PyCFunction) _wrap_wxPalette_GetPixel, METH_VARARGS | METH_KEYWORDS }, | |
12880 | { "delete_wxPalette", (PyCFunction) _wrap_delete_wxPalette, METH_VARARGS | METH_KEYWORDS }, | |
12881 | { "new_wxPalette", (PyCFunction) _wrap_new_wxPalette, METH_VARARGS | METH_KEYWORDS }, | |
12882 | { "wxMetaFileDC_Close", (PyCFunction) _wrap_wxMetaFileDC_Close, METH_VARARGS | METH_KEYWORDS }, | |
12883 | { "new_wxMetaFileDC", (PyCFunction) _wrap_new_wxMetaFileDC, METH_VARARGS | METH_KEYWORDS }, | |
17c0e08c RD |
12884 | { "wxMetaFile_GetFileName", (PyCFunction) _wrap_wxMetaFile_GetFileName, METH_VARARGS | METH_KEYWORDS }, |
12885 | { "wxMetaFile_GetHeight", (PyCFunction) _wrap_wxMetaFile_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
12886 | { "wxMetaFile_GetWidth", (PyCFunction) _wrap_wxMetaFile_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
12887 | { "wxMetaFile_GetSize", (PyCFunction) _wrap_wxMetaFile_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
12888 | { "wxMetaFile_SetClipboard", (PyCFunction) _wrap_wxMetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS }, | |
12889 | { "wxMetaFile_Ok", (PyCFunction) _wrap_wxMetaFile_Ok, METH_VARARGS | METH_KEYWORDS }, | |
12890 | { "delete_wxMetaFile", (PyCFunction) _wrap_delete_wxMetaFile, METH_VARARGS | METH_KEYWORDS }, | |
12891 | { "new_wxMetaFile", (PyCFunction) _wrap_new_wxMetaFile, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 RD |
12892 | { "new_wxWindowDC", (PyCFunction) _wrap_new_wxWindowDC, METH_VARARGS | METH_KEYWORDS }, |
12893 | { "new_wxPaintDC", (PyCFunction) _wrap_new_wxPaintDC, METH_VARARGS | METH_KEYWORDS }, | |
12894 | { "new_wxClientDC", (PyCFunction) _wrap_new_wxClientDC, METH_VARARGS | METH_KEYWORDS }, | |
12895 | { "wxScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_wxScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 | 12896 | { "wxScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_wxScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS }, |
26b9cf27 | 12897 | { "wxScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_wxScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 RD |
12898 | { "new_wxScreenDC", (PyCFunction) _wrap_new_wxScreenDC, METH_VARARGS | METH_KEYWORDS }, |
12899 | { "wxMemoryDC_SelectObject", (PyCFunction) _wrap_wxMemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS }, | |
12900 | { "new_wxMemoryDC", (PyCFunction) _wrap_new_wxMemoryDC, METH_VARARGS | METH_KEYWORDS }, | |
9d37f964 RD |
12901 | { "wxDC__DrawLineList", (PyCFunction) _wrap_wxDC__DrawLineList, METH_VARARGS | METH_KEYWORDS }, |
12902 | { "wxDC__DrawPointList", (PyCFunction) _wrap_wxDC__DrawPointList, METH_VARARGS | METH_KEYWORDS }, | |
c7e7022c | 12903 | { "wxDC_GetHDC", (PyCFunction) _wrap_wxDC_GetHDC, METH_VARARGS | METH_KEYWORDS }, |
9d37f964 | 12904 | { "wxDC_GetBoundingBox", (PyCFunction) _wrap_wxDC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 BP |
12905 | { "wxDC_ResetBoundingBox", (PyCFunction) _wrap_wxDC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS }, |
12906 | { "wxDC_CalcBoundingBox", (PyCFunction) _wrap_wxDC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS }, | |
eec92d76 RD |
12907 | { "wxDC_SetAxisOrientation", (PyCFunction) _wrap_wxDC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS }, |
12908 | { "wxDC_GetDeviceOrigin", (PyCFunction) _wrap_wxDC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS }, | |
12909 | { "wxDC_SetLogicalOrigin", (PyCFunction) _wrap_wxDC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS }, | |
12910 | { "wxDC_GetLogicalOrigin", (PyCFunction) _wrap_wxDC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS }, | |
12911 | { "wxDC_GetPPI", (PyCFunction) _wrap_wxDC_GetPPI, METH_VARARGS | METH_KEYWORDS }, | |
12912 | { "wxDC_GetDepth", (PyCFunction) _wrap_wxDC_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
12913 | { "wxDC_CanGetTextExtent", (PyCFunction) _wrap_wxDC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
12914 | { "wxDC_CanDrawBitmap", (PyCFunction) _wrap_wxDC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 RD |
12915 | { "wxDC_DrawBitmap", (PyCFunction) _wrap_wxDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS }, |
12916 | { "wxDC_StartPage", (PyCFunction) _wrap_wxDC_StartPage, METH_VARARGS | METH_KEYWORDS }, | |
12917 | { "wxDC_StartDoc", (PyCFunction) _wrap_wxDC_StartDoc, METH_VARARGS | METH_KEYWORDS }, | |
12918 | { "wxDC_SetUserScale", (PyCFunction) _wrap_wxDC_SetUserScale, METH_VARARGS | METH_KEYWORDS }, | |
12919 | { "wxDC_SetTextForeground", (PyCFunction) _wrap_wxDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS }, | |
12920 | { "wxDC_SetTextBackground", (PyCFunction) _wrap_wxDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS }, | |
12921 | { "wxDC_SetPen", (PyCFunction) _wrap_wxDC_SetPen, METH_VARARGS | METH_KEYWORDS }, | |
12922 | { "wxDC_SetOptimization", (PyCFunction) _wrap_wxDC_SetOptimization, METH_VARARGS | METH_KEYWORDS }, | |
12923 | { "wxDC_SetMapMode", (PyCFunction) _wrap_wxDC_SetMapMode, METH_VARARGS | METH_KEYWORDS }, | |
eec92d76 | 12924 | { "wxDC_SetLogicalScale", (PyCFunction) _wrap_wxDC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 RD |
12925 | { "wxDC_SetLogicalFunction", (PyCFunction) _wrap_wxDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS }, |
12926 | { "wxDC_SetFont", (PyCFunction) _wrap_wxDC_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
12927 | { "wxDC_SetBrush", (PyCFunction) _wrap_wxDC_SetBrush, METH_VARARGS | METH_KEYWORDS }, | |
12928 | { "wxDC_SetPalette", (PyCFunction) _wrap_wxDC_SetPalette, METH_VARARGS | METH_KEYWORDS }, | |
19a97bd6 | 12929 | { "wxDC_SetClippingRegionAsRegion", (PyCFunction) _wrap_wxDC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 RD |
12930 | { "wxDC_SetClippingRegion", (PyCFunction) _wrap_wxDC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS }, |
12931 | { "wxDC_SetBackgroundMode", (PyCFunction) _wrap_wxDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS }, | |
12932 | { "wxDC_SetBackground", (PyCFunction) _wrap_wxDC_SetBackground, METH_VARARGS | METH_KEYWORDS }, | |
12933 | { "wxDC_SetDeviceOrigin", (PyCFunction) _wrap_wxDC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS }, | |
12934 | { "wxDC_Ok", (PyCFunction) _wrap_wxDC_Ok, METH_VARARGS | METH_KEYWORDS }, | |
12935 | { "wxDC_MinY", (PyCFunction) _wrap_wxDC_MinY, METH_VARARGS | METH_KEYWORDS }, | |
12936 | { "wxDC_MinX", (PyCFunction) _wrap_wxDC_MinX, METH_VARARGS | METH_KEYWORDS }, | |
12937 | { "wxDC_MaxY", (PyCFunction) _wrap_wxDC_MaxY, METH_VARARGS | METH_KEYWORDS }, | |
12938 | { "wxDC_MaxX", (PyCFunction) _wrap_wxDC_MaxX, METH_VARARGS | METH_KEYWORDS }, | |
12939 | { "wxDC_LogicalToDeviceYRel", (PyCFunction) _wrap_wxDC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS }, | |
12940 | { "wxDC_LogicalToDeviceY", (PyCFunction) _wrap_wxDC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS }, | |
12941 | { "wxDC_LogicalToDeviceXRel", (PyCFunction) _wrap_wxDC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS }, | |
12942 | { "wxDC_LogicalToDeviceX", (PyCFunction) _wrap_wxDC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS }, | |
eec92d76 | 12943 | { "wxDC_GetUserScale", (PyCFunction) _wrap_wxDC_GetUserScale, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 RD |
12944 | { "wxDC_GetTextForeground", (PyCFunction) _wrap_wxDC_GetTextForeground, METH_VARARGS | METH_KEYWORDS }, |
12945 | { "wxDC_GetFullTextExtent", (PyCFunction) _wrap_wxDC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
12946 | { "wxDC_GetTextExtent", (PyCFunction) _wrap_wxDC_GetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
12947 | { "wxDC_GetTextBackground", (PyCFunction) _wrap_wxDC_GetTextBackground, METH_VARARGS | METH_KEYWORDS }, | |
eec92d76 | 12948 | { "wxDC_GetSizeMM", (PyCFunction) _wrap_wxDC_GetSizeMM, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 RD |
12949 | { "wxDC_GetSize", (PyCFunction) _wrap_wxDC_GetSize, METH_VARARGS | METH_KEYWORDS }, |
12950 | { "wxDC_GetSizeTuple", (PyCFunction) _wrap_wxDC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
12951 | { "wxDC_GetPixel", (PyCFunction) _wrap_wxDC_GetPixel, METH_VARARGS | METH_KEYWORDS }, | |
12952 | { "wxDC_GetPen", (PyCFunction) _wrap_wxDC_GetPen, METH_VARARGS | METH_KEYWORDS }, | |
12953 | { "wxDC_GetOptimization", (PyCFunction) _wrap_wxDC_GetOptimization, METH_VARARGS | METH_KEYWORDS }, | |
12954 | { "wxDC_GetMapMode", (PyCFunction) _wrap_wxDC_GetMapMode, METH_VARARGS | METH_KEYWORDS }, | |
eec92d76 | 12955 | { "wxDC_GetLogicalScale", (PyCFunction) _wrap_wxDC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 RD |
12956 | { "wxDC_GetLogicalFunction", (PyCFunction) _wrap_wxDC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS }, |
12957 | { "wxDC_GetFont", (PyCFunction) _wrap_wxDC_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
12958 | { "wxDC_GetClippingBox", (PyCFunction) _wrap_wxDC_GetClippingBox, METH_VARARGS | METH_KEYWORDS }, | |
12959 | { "wxDC_GetCharWidth", (PyCFunction) _wrap_wxDC_GetCharWidth, METH_VARARGS | METH_KEYWORDS }, | |
12960 | { "wxDC_GetCharHeight", (PyCFunction) _wrap_wxDC_GetCharHeight, METH_VARARGS | METH_KEYWORDS }, | |
12961 | { "wxDC_GetBrush", (PyCFunction) _wrap_wxDC_GetBrush, METH_VARARGS | METH_KEYWORDS }, | |
12962 | { "wxDC_GetBackground", (PyCFunction) _wrap_wxDC_GetBackground, METH_VARARGS | METH_KEYWORDS }, | |
12963 | { "wxDC_FloodFill", (PyCFunction) _wrap_wxDC_FloodFill, METH_VARARGS | METH_KEYWORDS }, | |
12964 | { "wxDC_EndPage", (PyCFunction) _wrap_wxDC_EndPage, METH_VARARGS | METH_KEYWORDS }, | |
12965 | { "wxDC_EndDrawing", (PyCFunction) _wrap_wxDC_EndDrawing, METH_VARARGS | METH_KEYWORDS }, | |
12966 | { "wxDC_EndDoc", (PyCFunction) _wrap_wxDC_EndDoc, METH_VARARGS | METH_KEYWORDS }, | |
12967 | { "wxDC_DrawText", (PyCFunction) _wrap_wxDC_DrawText, METH_VARARGS | METH_KEYWORDS }, | |
12968 | { "wxDC_DrawSpline", (PyCFunction) _wrap_wxDC_DrawSpline, METH_VARARGS | METH_KEYWORDS }, | |
12969 | { "wxDC_DrawRoundedRectangle", (PyCFunction) _wrap_wxDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS }, | |
6999b0d8 | 12970 | { "wxDC_DrawRotatedText", (PyCFunction) _wrap_wxDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 RD |
12971 | { "wxDC_DrawRectangle", (PyCFunction) _wrap_wxDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS }, |
12972 | { "wxDC_DrawPoint", (PyCFunction) _wrap_wxDC_DrawPoint, METH_VARARGS | METH_KEYWORDS }, | |
12973 | { "wxDC_DrawPolygon", (PyCFunction) _wrap_wxDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS }, | |
12974 | { "wxDC_DrawLines", (PyCFunction) _wrap_wxDC_DrawLines, METH_VARARGS | METH_KEYWORDS }, | |
12975 | { "wxDC_DrawLine", (PyCFunction) _wrap_wxDC_DrawLine, METH_VARARGS | METH_KEYWORDS }, | |
23bed520 RD |
12976 | { "wxDC_DrawImageLabel", (PyCFunction) _wrap_wxDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS }, |
12977 | { "wxDC_DrawLabel", (PyCFunction) _wrap_wxDC_DrawLabel, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 RD |
12978 | { "wxDC_DrawIcon", (PyCFunction) _wrap_wxDC_DrawIcon, METH_VARARGS | METH_KEYWORDS }, |
12979 | { "wxDC_DrawEllipticArc", (PyCFunction) _wrap_wxDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS }, | |
12980 | { "wxDC_DrawEllipse", (PyCFunction) _wrap_wxDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS }, | |
12981 | { "wxDC_DrawCircle", (PyCFunction) _wrap_wxDC_DrawCircle, METH_VARARGS | METH_KEYWORDS }, | |
12982 | { "wxDC_DrawArc", (PyCFunction) _wrap_wxDC_DrawArc, METH_VARARGS | METH_KEYWORDS }, | |
12983 | { "wxDC_DeviceToLogicalYRel", (PyCFunction) _wrap_wxDC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS }, | |
12984 | { "wxDC_DeviceToLogicalY", (PyCFunction) _wrap_wxDC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS }, | |
12985 | { "wxDC_DeviceToLogicalXRel", (PyCFunction) _wrap_wxDC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS }, | |
12986 | { "wxDC_DeviceToLogicalX", (PyCFunction) _wrap_wxDC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS }, | |
12987 | { "wxDC_DestroyClippingRegion", (PyCFunction) _wrap_wxDC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS }, | |
12988 | { "wxDC_CrossHair", (PyCFunction) _wrap_wxDC_CrossHair, METH_VARARGS | METH_KEYWORDS }, | |
12989 | { "wxDC_Clear", (PyCFunction) _wrap_wxDC_Clear, METH_VARARGS | METH_KEYWORDS }, | |
12990 | { "wxDC_Blit", (PyCFunction) _wrap_wxDC_Blit, METH_VARARGS | METH_KEYWORDS }, | |
12991 | { "wxDC_BeginDrawing", (PyCFunction) _wrap_wxDC_BeginDrawing, METH_VARARGS | METH_KEYWORDS }, | |
12992 | { "delete_wxDC", (PyCFunction) _wrap_delete_wxDC, METH_VARARGS | METH_KEYWORDS }, | |
2f4e9287 | 12993 | { "wxBrushList_GetCount", (PyCFunction) _wrap_wxBrushList_GetCount, METH_VARARGS | METH_KEYWORDS }, |
0569df0f RD |
12994 | { "wxBrushList_RemoveBrush", (PyCFunction) _wrap_wxBrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS }, |
12995 | { "wxBrushList_FindOrCreateBrush", (PyCFunction) _wrap_wxBrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS }, | |
12996 | { "wxBrushList_AddBrush", (PyCFunction) _wrap_wxBrushList_AddBrush, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 RD |
12997 | { "wxBrush_SetStyle", (PyCFunction) _wrap_wxBrush_SetStyle, METH_VARARGS | METH_KEYWORDS }, |
12998 | { "wxBrush_SetStipple", (PyCFunction) _wrap_wxBrush_SetStipple, METH_VARARGS | METH_KEYWORDS }, | |
12999 | { "wxBrush_SetColour", (PyCFunction) _wrap_wxBrush_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
13000 | { "wxBrush_Ok", (PyCFunction) _wrap_wxBrush_Ok, METH_VARARGS | METH_KEYWORDS }, | |
13001 | { "wxBrush_GetStyle", (PyCFunction) _wrap_wxBrush_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
13002 | { "wxBrush_GetStipple", (PyCFunction) _wrap_wxBrush_GetStipple, METH_VARARGS | METH_KEYWORDS }, | |
13003 | { "wxBrush_GetColour", (PyCFunction) _wrap_wxBrush_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
0569df0f | 13004 | { "delete_wxBrush", (PyCFunction) _wrap_delete_wxBrush, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 | 13005 | { "new_wxBrush", (PyCFunction) _wrap_new_wxBrush, METH_VARARGS | METH_KEYWORDS }, |
2f4e9287 | 13006 | { "wxPenList_GetCount", (PyCFunction) _wrap_wxPenList_GetCount, METH_VARARGS | METH_KEYWORDS }, |
0569df0f RD |
13007 | { "wxPenList_RemovePen", (PyCFunction) _wrap_wxPenList_RemovePen, METH_VARARGS | METH_KEYWORDS }, |
13008 | { "wxPenList_FindOrCreatePen", (PyCFunction) _wrap_wxPenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS }, | |
13009 | { "wxPenList_AddPen", (PyCFunction) _wrap_wxPenList_AddPen, METH_VARARGS | METH_KEYWORDS }, | |
ecc08ead RD |
13010 | { "wxPyPen_SetDashes", (PyCFunction) _wrap_wxPyPen_SetDashes, METH_VARARGS | METH_KEYWORDS }, |
13011 | { "delete_wxPyPen", (PyCFunction) _wrap_delete_wxPyPen, METH_VARARGS | METH_KEYWORDS }, | |
13012 | { "new_wxPyPen", (PyCFunction) _wrap_new_wxPyPen, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 | 13013 | { "wxPen_SetStipple", (PyCFunction) _wrap_wxPen_SetStipple, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 | 13014 | { "wxPen_GetStipple", (PyCFunction) _wrap_wxPen_GetStipple, METH_VARARGS | METH_KEYWORDS }, |
6999b0d8 | 13015 | { "wxPen_SetDashes", (PyCFunction) _wrap_wxPen_SetDashes, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 RD |
13016 | { "wxPen_SetWidth", (PyCFunction) _wrap_wxPen_SetWidth, METH_VARARGS | METH_KEYWORDS }, |
13017 | { "wxPen_SetStyle", (PyCFunction) _wrap_wxPen_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
13018 | { "wxPen_SetJoin", (PyCFunction) _wrap_wxPen_SetJoin, METH_VARARGS | METH_KEYWORDS }, | |
13019 | { "wxPen_SetColour", (PyCFunction) _wrap_wxPen_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
13020 | { "wxPen_SetCap", (PyCFunction) _wrap_wxPen_SetCap, METH_VARARGS | METH_KEYWORDS }, | |
13021 | { "wxPen_Ok", (PyCFunction) _wrap_wxPen_Ok, METH_VARARGS | METH_KEYWORDS }, | |
13022 | { "wxPen_GetWidth", (PyCFunction) _wrap_wxPen_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
13023 | { "wxPen_GetStyle", (PyCFunction) _wrap_wxPen_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
13024 | { "wxPen_GetJoin", (PyCFunction) _wrap_wxPen_GetJoin, METH_VARARGS | METH_KEYWORDS }, | |
13025 | { "wxPen_GetColour", (PyCFunction) _wrap_wxPen_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
13026 | { "wxPen_GetCap", (PyCFunction) _wrap_wxPen_GetCap, METH_VARARGS | METH_KEYWORDS }, | |
0569df0f | 13027 | { "delete_wxPen", (PyCFunction) _wrap_delete_wxPen, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 | 13028 | { "new_wxPen", (PyCFunction) _wrap_new_wxPen, METH_VARARGS | METH_KEYWORDS }, |
0569df0f RD |
13029 | { "wxColourDatabase_Append", (PyCFunction) _wrap_wxColourDatabase_Append, METH_VARARGS | METH_KEYWORDS }, |
13030 | { "wxColourDatabase_FindName", (PyCFunction) _wrap_wxColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS }, | |
13031 | { "wxColourDatabase_FindColour", (PyCFunction) _wrap_wxColourDatabase_FindColour, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 RD |
13032 | { "wxColour_Get", (PyCFunction) _wrap_wxColour_Get, METH_VARARGS | METH_KEYWORDS }, |
13033 | { "wxColour_Set", (PyCFunction) _wrap_wxColour_Set, METH_VARARGS | METH_KEYWORDS }, | |
13034 | { "wxColour_Ok", (PyCFunction) _wrap_wxColour_Ok, METH_VARARGS | METH_KEYWORDS }, | |
13035 | { "wxColour_Blue", (PyCFunction) _wrap_wxColour_Blue, METH_VARARGS | METH_KEYWORDS }, | |
13036 | { "wxColour_Green", (PyCFunction) _wrap_wxColour_Green, METH_VARARGS | METH_KEYWORDS }, | |
13037 | { "wxColour_Red", (PyCFunction) _wrap_wxColour_Red, METH_VARARGS | METH_KEYWORDS }, | |
13038 | { "delete_wxColour", (PyCFunction) _wrap_delete_wxColour, METH_VARARGS | METH_KEYWORDS }, | |
13039 | { "new_wxColour", (PyCFunction) _wrap_new_wxColour, METH_VARARGS | METH_KEYWORDS }, | |
2f4e9287 | 13040 | { "wxFontList_GetCount", (PyCFunction) _wrap_wxFontList_GetCount, METH_VARARGS | METH_KEYWORDS }, |
0569df0f RD |
13041 | { "wxFontList_RemoveFont", (PyCFunction) _wrap_wxFontList_RemoveFont, METH_VARARGS | METH_KEYWORDS }, |
13042 | { "wxFontList_FindOrCreateFont", (PyCFunction) _wrap_wxFontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS }, | |
13043 | { "wxFontList_AddFont", (PyCFunction) _wrap_wxFontList_AddFont, METH_VARARGS | METH_KEYWORDS }, | |
6d8b4f8d RD |
13044 | { "wxFont_SetDefaultEncoding", (PyCFunction) _wrap_wxFont_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS }, |
13045 | { "wxFont_GetDefaultEncoding", (PyCFunction) _wrap_wxFont_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS }, | |
f0261a72 RD |
13046 | { "wxFont_GetWeightString", (PyCFunction) _wrap_wxFont_GetWeightString, METH_VARARGS | METH_KEYWORDS }, |
13047 | { "wxFont_GetStyleString", (PyCFunction) _wrap_wxFont_GetStyleString, METH_VARARGS | METH_KEYWORDS }, | |
13048 | { "wxFont_GetFamilyString", (PyCFunction) _wrap_wxFont_GetFamilyString, METH_VARARGS | METH_KEYWORDS }, | |
b5a5d647 | 13049 | { "wxFont_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_wxFont_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS }, |
6d8b4f8d | 13050 | { "wxFont_SetNativeFontInfo", (PyCFunction) _wrap_wxFont_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS }, |
f0261a72 | 13051 | { "wxFont_SetEncoding", (PyCFunction) _wrap_wxFont_SetEncoding, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 | 13052 | { "wxFont_SetUnderlined", (PyCFunction) _wrap_wxFont_SetUnderlined, METH_VARARGS | METH_KEYWORDS }, |
6d8b4f8d RD |
13053 | { "wxFont_SetFaceName", (PyCFunction) _wrap_wxFont_SetFaceName, METH_VARARGS | METH_KEYWORDS }, |
13054 | { "wxFont_SetWeight", (PyCFunction) _wrap_wxFont_SetWeight, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 | 13055 | { "wxFont_SetStyle", (PyCFunction) _wrap_wxFont_SetStyle, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 | 13056 | { "wxFont_SetFamily", (PyCFunction) _wrap_wxFont_SetFamily, METH_VARARGS | METH_KEYWORDS }, |
6d8b4f8d | 13057 | { "wxFont_SetPointSize", (PyCFunction) _wrap_wxFont_SetPointSize, METH_VARARGS | METH_KEYWORDS }, |
b5a5d647 RD |
13058 | { "wxFont_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_wxFont_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS }, |
13059 | { "wxFont_GetNativeFontInfoDesc", (PyCFunction) _wrap_wxFont_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS }, | |
6d8b4f8d | 13060 | { "wxFont_GetNativeFontInfo", (PyCFunction) _wrap_wxFont_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS }, |
68320e40 | 13061 | { "wxFont_IsFixedWidth", (PyCFunction) _wrap_wxFont_IsFixedWidth, METH_VARARGS | METH_KEYWORDS }, |
f0261a72 | 13062 | { "wxFont_GetEncoding", (PyCFunction) _wrap_wxFont_GetEncoding, METH_VARARGS | METH_KEYWORDS }, |
6d8b4f8d | 13063 | { "wxFont_GetFaceName", (PyCFunction) _wrap_wxFont_GetFaceName, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 | 13064 | { "wxFont_GetUnderlined", (PyCFunction) _wrap_wxFont_GetUnderlined, METH_VARARGS | METH_KEYWORDS }, |
6d8b4f8d | 13065 | { "wxFont_GetWeight", (PyCFunction) _wrap_wxFont_GetWeight, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 | 13066 | { "wxFont_GetStyle", (PyCFunction) _wrap_wxFont_GetStyle, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 | 13067 | { "wxFont_GetFamily", (PyCFunction) _wrap_wxFont_GetFamily, METH_VARARGS | METH_KEYWORDS }, |
6d8b4f8d | 13068 | { "wxFont_GetPointSize", (PyCFunction) _wrap_wxFont_GetPointSize, METH_VARARGS | METH_KEYWORDS }, |
694759cf | 13069 | { "wxFont_Ok", (PyCFunction) _wrap_wxFont_Ok, METH_VARARGS | METH_KEYWORDS }, |
0569df0f | 13070 | { "delete_wxFont", (PyCFunction) _wrap_delete_wxFont, METH_VARARGS | METH_KEYWORDS }, |
6d8b4f8d | 13071 | { "new_wxFontFromNativeInfo", (PyCFunction) _wrap_new_wxFontFromNativeInfo, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 | 13072 | { "new_wxFont", (PyCFunction) _wrap_new_wxFont, METH_VARARGS | METH_KEYWORDS }, |
6d8b4f8d RD |
13073 | { "wxFontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_wxFontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS }, |
13074 | { "wxFontMapper_SetConfigPath", (PyCFunction) _wrap_wxFontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS }, | |
13075 | { "wxFontMapper_SetConfig", (PyCFunction) _wrap_wxFontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS }, | |
13076 | { "wxFontMapper_SetDialogTitle", (PyCFunction) _wrap_wxFontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS }, | |
13077 | { "wxFontMapper_SetDialogParent", (PyCFunction) _wrap_wxFontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS }, | |
13078 | { "wxFontMapper_GetEncodingDescription", (PyCFunction) _wrap_wxFontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS }, | |
13079 | { "wxFontMapper_GetEncodingName", (PyCFunction) _wrap_wxFontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS }, | |
13080 | { "wxFontMapper_CharsetToEncoding", (PyCFunction) _wrap_wxFontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS }, | |
13081 | { "wxFontMapper_IsEncodingAvailable", (PyCFunction) _wrap_wxFontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS }, | |
13082 | { "wxFontMapper_GetAltForEncoding", (PyCFunction) _wrap_wxFontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS }, | |
13083 | { "delete_wxFontMapper", (PyCFunction) _wrap_delete_wxFontMapper, METH_VARARGS | METH_KEYWORDS }, | |
13084 | { "new_wxFontMapper", (PyCFunction) _wrap_new_wxFontMapper, METH_VARARGS | METH_KEYWORDS }, | |
b5a5d647 RD |
13085 | { "wxNativeFontInfo_ToUserString", (PyCFunction) _wrap_wxNativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS }, |
13086 | { "wxNativeFontInfo_FromUserString", (PyCFunction) _wrap_wxNativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS }, | |
6d8b4f8d RD |
13087 | { "wxNativeFontInfo___str__", (PyCFunction) _wrap_wxNativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS }, |
13088 | { "wxNativeFontInfo_ToString", (PyCFunction) _wrap_wxNativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS }, | |
13089 | { "wxNativeFontInfo_FromString", (PyCFunction) _wrap_wxNativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS }, | |
b5a5d647 RD |
13090 | { "wxNativeFontInfo_SetEncoding", (PyCFunction) _wrap_wxNativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS }, |
13091 | { "wxNativeFontInfo_SetFamily", (PyCFunction) _wrap_wxNativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS }, | |
13092 | { "wxNativeFontInfo_SetFaceName", (PyCFunction) _wrap_wxNativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS }, | |
13093 | { "wxNativeFontInfo_SetUnderlined", (PyCFunction) _wrap_wxNativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS }, | |
13094 | { "wxNativeFontInfo_SetWeight", (PyCFunction) _wrap_wxNativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS }, | |
13095 | { "wxNativeFontInfo_SetStyle", (PyCFunction) _wrap_wxNativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
13096 | { "wxNativeFontInfo_SetPointSize", (PyCFunction) _wrap_wxNativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS }, | |
13097 | { "wxNativeFontInfo_GetEncoding", (PyCFunction) _wrap_wxNativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS }, | |
13098 | { "wxNativeFontInfo_GetFamily", (PyCFunction) _wrap_wxNativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS }, | |
13099 | { "wxNativeFontInfo_GetFaceName", (PyCFunction) _wrap_wxNativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS }, | |
13100 | { "wxNativeFontInfo_GetUnderlined", (PyCFunction) _wrap_wxNativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS }, | |
13101 | { "wxNativeFontInfo_GetWeight", (PyCFunction) _wrap_wxNativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS }, | |
13102 | { "wxNativeFontInfo_GetStyle", (PyCFunction) _wrap_wxNativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
13103 | { "wxNativeFontInfo_GetPointSize", (PyCFunction) _wrap_wxNativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS }, | |
13104 | { "wxNativeFontInfo_Init", (PyCFunction) _wrap_wxNativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS }, | |
13105 | { "new_wxNativeFontInfo", (PyCFunction) _wrap_new_wxNativeFontInfo, METH_VARARGS | METH_KEYWORDS }, | |
9b3d3bc4 RD |
13106 | { "wxCursor_SetSize", (PyCFunction) _wrap_wxCursor_SetSize, METH_VARARGS | METH_KEYWORDS }, |
13107 | { "wxCursor_SetDepth", (PyCFunction) _wrap_wxCursor_SetDepth, METH_VARARGS | METH_KEYWORDS }, | |
13108 | { "wxCursor_SetHeight", (PyCFunction) _wrap_wxCursor_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
13109 | { "wxCursor_SetWidth", (PyCFunction) _wrap_wxCursor_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
13110 | { "wxCursor_GetDepth", (PyCFunction) _wrap_wxCursor_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
13111 | { "wxCursor_GetHeight", (PyCFunction) _wrap_wxCursor_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
13112 | { "wxCursor_GetWidth", (PyCFunction) _wrap_wxCursor_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
13113 | { "wxCursor_Ok", (PyCFunction) _wrap_wxCursor_Ok, METH_VARARGS | METH_KEYWORDS }, | |
13114 | { "wxCursor_SetHandle", (PyCFunction) _wrap_wxCursor_SetHandle, METH_VARARGS | METH_KEYWORDS }, | |
13115 | { "wxCursor_GetHandle", (PyCFunction) _wrap_wxCursor_GetHandle, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 RD |
13116 | { "delete_wxCursor", (PyCFunction) _wrap_delete_wxCursor, METH_VARARGS | METH_KEYWORDS }, |
13117 | { "new_wxCursor", (PyCFunction) _wrap_new_wxCursor, METH_VARARGS | METH_KEYWORDS }, | |
96bfd053 | 13118 | { "wxIcon_CopyFromBitmap", (PyCFunction) _wrap_wxIcon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS }, |
9b3d3bc4 RD |
13119 | { "wxIcon_SetSize", (PyCFunction) _wrap_wxIcon_SetSize, METH_VARARGS | METH_KEYWORDS }, |
13120 | { "wxIcon_SetDepth", (PyCFunction) _wrap_wxIcon_SetDepth, METH_VARARGS | METH_KEYWORDS }, | |
13121 | { "wxIcon_SetHeight", (PyCFunction) _wrap_wxIcon_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
13122 | { "wxIcon_SetWidth", (PyCFunction) _wrap_wxIcon_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
13123 | { "wxIcon_GetDepth", (PyCFunction) _wrap_wxIcon_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
13124 | { "wxIcon_GetHeight", (PyCFunction) _wrap_wxIcon_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
13125 | { "wxIcon_GetWidth", (PyCFunction) _wrap_wxIcon_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
13126 | { "wxIcon_Ok", (PyCFunction) _wrap_wxIcon_Ok, METH_VARARGS | METH_KEYWORDS }, | |
13127 | { "wxIcon_SetHandle", (PyCFunction) _wrap_wxIcon_SetHandle, METH_VARARGS | METH_KEYWORDS }, | |
13128 | { "wxIcon_GetHandle", (PyCFunction) _wrap_wxIcon_GetHandle, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 | 13129 | { "wxIcon_LoadFile", (PyCFunction) _wrap_wxIcon_LoadFile, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 RD |
13130 | { "delete_wxIcon", (PyCFunction) _wrap_delete_wxIcon, METH_VARARGS | METH_KEYWORDS }, |
13131 | { "new_wxIcon", (PyCFunction) _wrap_new_wxIcon, METH_VARARGS | METH_KEYWORDS }, | |
96bfd053 | 13132 | { "wxMask_Destroy", (PyCFunction) _wrap_wxMask_Destroy, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 | 13133 | { "new_wxMask", (PyCFunction) _wrap_new_wxMask, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 BP |
13134 | { "wxBitmap_SetQuality", (PyCFunction) _wrap_wxBitmap_SetQuality, METH_VARARGS | METH_KEYWORDS }, |
13135 | { "wxBitmap_GetQuality", (PyCFunction) _wrap_wxBitmap_GetQuality, METH_VARARGS | METH_KEYWORDS }, | |
13136 | { "wxBitmap_CopyFromCursor", (PyCFunction) _wrap_wxBitmap_CopyFromCursor, METH_VARARGS | METH_KEYWORDS }, | |
13137 | { "wxBitmap_CopyFromIcon", (PyCFunction) _wrap_wxBitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS }, | |
13138 | { "wxBitmap_GetSubBitmap", (PyCFunction) _wrap_wxBitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS }, | |
9b3d3bc4 RD |
13139 | { "wxBitmap_SetSize", (PyCFunction) _wrap_wxBitmap_SetSize, METH_VARARGS | METH_KEYWORDS }, |
13140 | { "wxBitmap_SetDepth", (PyCFunction) _wrap_wxBitmap_SetDepth, METH_VARARGS | METH_KEYWORDS }, | |
13141 | { "wxBitmap_SetHeight", (PyCFunction) _wrap_wxBitmap_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
13142 | { "wxBitmap_SetWidth", (PyCFunction) _wrap_wxBitmap_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
13143 | { "wxBitmap_GetDepth", (PyCFunction) _wrap_wxBitmap_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
13144 | { "wxBitmap_GetHeight", (PyCFunction) _wrap_wxBitmap_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
13145 | { "wxBitmap_GetWidth", (PyCFunction) _wrap_wxBitmap_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
13146 | { "wxBitmap_Ok", (PyCFunction) _wrap_wxBitmap_Ok, METH_VARARGS | METH_KEYWORDS }, | |
13147 | { "wxBitmap_SetHandle", (PyCFunction) _wrap_wxBitmap_SetHandle, METH_VARARGS | METH_KEYWORDS }, | |
13148 | { "wxBitmap_GetHandle", (PyCFunction) _wrap_wxBitmap_GetHandle, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 RD |
13149 | { "wxBitmap_SetPalette", (PyCFunction) _wrap_wxBitmap_SetPalette, METH_VARARGS | METH_KEYWORDS }, |
13150 | { "wxBitmap_SetMask", (PyCFunction) _wrap_wxBitmap_SetMask, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 | 13151 | { "wxBitmap_SaveFile", (PyCFunction) _wrap_wxBitmap_SaveFile, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 | 13152 | { "wxBitmap_LoadFile", (PyCFunction) _wrap_wxBitmap_LoadFile, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 RD |
13153 | { "wxBitmap_GetMask", (PyCFunction) _wrap_wxBitmap_GetMask, METH_VARARGS | METH_KEYWORDS }, |
13154 | { "wxBitmap_GetPalette", (PyCFunction) _wrap_wxBitmap_GetPalette, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 RD |
13155 | { "delete_wxBitmap", (PyCFunction) _wrap_delete_wxBitmap, METH_VARARGS | METH_KEYWORDS }, |
13156 | { "new_wxBitmap", (PyCFunction) _wrap_new_wxBitmap, METH_VARARGS | METH_KEYWORDS }, | |
9416aa89 RD |
13157 | { "wxGDIObject_IsNull", (PyCFunction) _wrap_wxGDIObject_IsNull, METH_VARARGS | METH_KEYWORDS }, |
13158 | { "wxGDIObject_SetVisible", (PyCFunction) _wrap_wxGDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS }, | |
13159 | { "wxGDIObject_GetVisible", (PyCFunction) _wrap_wxGDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS }, | |
13160 | { "delete_wxGDIObject", (PyCFunction) _wrap_delete_wxGDIObject, METH_VARARGS | METH_KEYWORDS }, | |
13161 | { "new_wxGDIObject", (PyCFunction) _wrap_new_wxGDIObject, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 RD |
13162 | { "wxMemoryDCFromDC", (PyCFunction) _wrap_wxMemoryDCFromDC, METH_VARARGS | METH_KEYWORDS }, |
13163 | { "wxNamedColour", (PyCFunction) _wrap_wxNamedColour, METH_VARARGS | METH_KEYWORDS }, | |
13164 | { "wxStockCursor", (PyCFunction) _wrap_wxStockCursor, METH_VARARGS | METH_KEYWORDS }, | |
7248a051 | 13165 | { "wxIconFromBitmap", (PyCFunction) _wrap_wxIconFromBitmap, METH_VARARGS | METH_KEYWORDS }, |
96bfd053 RD |
13166 | { "wxIconFromXPMData", (PyCFunction) _wrap_wxIconFromXPMData, METH_VARARGS | METH_KEYWORDS }, |
13167 | { "wxEmptyIcon", (PyCFunction) _wrap_wxEmptyIcon, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 | 13168 | { "wxMaskColour", (PyCFunction) _wrap_wxMaskColour, METH_VARARGS | METH_KEYWORDS }, |
d56cebe7 | 13169 | { "wxBitmapFromBits", (PyCFunction) _wrap_wxBitmapFromBits, METH_VARARGS | METH_KEYWORDS }, |
96bfd053 RD |
13170 | { "wxBitmapFromIcon", (PyCFunction) _wrap_wxBitmapFromIcon, METH_VARARGS | METH_KEYWORDS }, |
13171 | { "wxBitmapFromXPMData", (PyCFunction) _wrap_wxBitmapFromXPMData, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 | 13172 | { "wxEmptyBitmap", (PyCFunction) _wrap_wxEmptyBitmap, METH_VARARGS | METH_KEYWORDS }, |
8ab979d7 RD |
13173 | { NULL, NULL } |
13174 | }; | |
1d99702e RD |
13175 | #ifdef __cplusplus |
13176 | } | |
13177 | #endif | |
13178 | /* | |
13179 | * This table is used by the pointer type-checker | |
13180 | */ | |
13181 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
1d99702e | 13182 | { "_signed_long","_long",0}, |
b1462dfa | 13183 | { "_wxPrintQuality","_wxCoord",0}, |
1d99702e RD |
13184 | { "_wxPrintQuality","_int",0}, |
13185 | { "_wxPrintQuality","_signed_int",0}, | |
13186 | { "_wxPrintQuality","_unsigned_int",0}, | |
13187 | { "_wxPrintQuality","_wxWindowID",0}, | |
13188 | { "_wxPrintQuality","_uint",0}, | |
13189 | { "_wxPrintQuality","_EBool",0}, | |
13190 | { "_wxPrintQuality","_size_t",0}, | |
c368d904 | 13191 | { "_wxPrintQuality","_time_t",0}, |
ecc08ead | 13192 | { "_wxPen","_wxPyPen",SwigwxPyPenTowxPen}, |
1d99702e | 13193 | { "_byte","_unsigned_char",0}, |
1d99702e RD |
13194 | { "_long","_unsigned_long",0}, |
13195 | { "_long","_signed_long",0}, | |
9416aa89 | 13196 | { "_wxGDIObject","_wxRegion",SwigwxRegionTowxGDIObject}, |
9416aa89 | 13197 | { "_wxGDIObject","_wxPalette",SwigwxPaletteTowxGDIObject}, |
9416aa89 | 13198 | { "_wxGDIObject","_wxBrush",SwigwxBrushTowxGDIObject}, |
ecc08ead | 13199 | { "_wxGDIObject","_wxPyPen",SwigwxPyPenTowxGDIObject}, |
9416aa89 | 13200 | { "_wxGDIObject","_wxPen",SwigwxPenTowxGDIObject}, |
9416aa89 | 13201 | { "_wxGDIObject","_wxFont",SwigwxFontTowxGDIObject}, |
9416aa89 | 13202 | { "_wxGDIObject","_wxCursor",SwigwxCursorTowxGDIObject}, |
9416aa89 | 13203 | { "_wxGDIObject","_wxIcon",SwigwxIconTowxGDIObject}, |
9416aa89 | 13204 | { "_wxGDIObject","_wxBitmap",SwigwxBitmapTowxGDIObject}, |
1d99702e | 13205 | { "_wxDC","_wxMetaFileDC",SwigwxMetaFileDCTowxDC}, |
1d99702e | 13206 | { "_wxDC","_wxWindowDC",SwigwxWindowDCTowxDC}, |
1d99702e | 13207 | { "_wxDC","_wxPaintDC",SwigwxPaintDCTowxDC}, |
1d99702e | 13208 | { "_wxDC","_wxClientDC",SwigwxClientDCTowxDC}, |
1d99702e | 13209 | { "_wxDC","_wxScreenDC",SwigwxScreenDCTowxDC}, |
1d99702e | 13210 | { "_wxDC","_wxMemoryDC",SwigwxMemoryDCTowxDC}, |
b1462dfa | 13211 | { "_size_t","_wxCoord",0}, |
1d99702e | 13212 | { "_size_t","_wxPrintQuality",0}, |
c368d904 | 13213 | { "_size_t","_time_t",0}, |
1d99702e RD |
13214 | { "_size_t","_unsigned_int",0}, |
13215 | { "_size_t","_int",0}, | |
13216 | { "_size_t","_wxWindowID",0}, | |
13217 | { "_size_t","_uint",0}, | |
b1462dfa | 13218 | { "_uint","_wxCoord",0}, |
1d99702e | 13219 | { "_uint","_wxPrintQuality",0}, |
c368d904 | 13220 | { "_uint","_time_t",0}, |
1d99702e RD |
13221 | { "_uint","_size_t",0}, |
13222 | { "_uint","_unsigned_int",0}, | |
13223 | { "_uint","_int",0}, | |
13224 | { "_uint","_wxWindowID",0}, | |
f6bcfd97 | 13225 | { "_wxChar","_char",0}, |
f6bcfd97 | 13226 | { "_char","_wxChar",0}, |
6d8b4f8d | 13227 | { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0}, |
b1462dfa | 13228 | { "_EBool","_wxCoord",0}, |
1d99702e RD |
13229 | { "_EBool","_wxPrintQuality",0}, |
13230 | { "_EBool","_signed_int",0}, | |
13231 | { "_EBool","_int",0}, | |
13232 | { "_EBool","_wxWindowID",0}, | |
1d99702e | 13233 | { "_unsigned_long","_long",0}, |
6d8b4f8d | 13234 | { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0}, |
b1462dfa | 13235 | { "_signed_int","_wxCoord",0}, |
1d99702e RD |
13236 | { "_signed_int","_wxPrintQuality",0}, |
13237 | { "_signed_int","_EBool",0}, | |
13238 | { "_signed_int","_wxWindowID",0}, | |
13239 | { "_signed_int","_int",0}, | |
1d99702e RD |
13240 | { "_WXTYPE","_short",0}, |
13241 | { "_WXTYPE","_signed_short",0}, | |
13242 | { "_WXTYPE","_unsigned_short",0}, | |
1d99702e RD |
13243 | { "_unsigned_short","_WXTYPE",0}, |
13244 | { "_unsigned_short","_short",0}, | |
9416aa89 | 13245 | { "_wxObject","_wxRegionIterator",SwigwxRegionIteratorTowxObject}, |
9416aa89 | 13246 | { "_wxObject","_wxRegion",SwigwxRegionTowxObject}, |
9416aa89 | 13247 | { "_wxObject","_wxImageList",SwigwxImageListTowxObject}, |
9416aa89 | 13248 | { "_wxObject","_wxPalette",SwigwxPaletteTowxObject}, |
9416aa89 | 13249 | { "_wxObject","_wxMetaFileDC",SwigwxMetaFileDCTowxObject}, |
17c0e08c | 13250 | { "_wxObject","_wxMetaFile",SwigwxMetaFileTowxObject}, |
9416aa89 | 13251 | { "_wxObject","_wxWindowDC",SwigwxWindowDCTowxObject}, |
9416aa89 | 13252 | { "_wxObject","_wxPaintDC",SwigwxPaintDCTowxObject}, |
9416aa89 | 13253 | { "_wxObject","_wxClientDC",SwigwxClientDCTowxObject}, |
9416aa89 | 13254 | { "_wxObject","_wxScreenDC",SwigwxScreenDCTowxObject}, |
9416aa89 | 13255 | { "_wxObject","_wxMemoryDC",SwigwxMemoryDCTowxObject}, |
9416aa89 | 13256 | { "_wxObject","_wxDC",SwigwxDCTowxObject}, |
6ee2116b | 13257 | { "_wxObject","_wxBrushList",SwigwxBrushListTowxObject}, |
9416aa89 | 13258 | { "_wxObject","_wxBrush",SwigwxBrushTowxObject}, |
9416aa89 | 13259 | { "_wxObject","_wxPenList",SwigwxPenListTowxObject}, |
ecc08ead | 13260 | { "_wxObject","_wxPyPen",SwigwxPyPenTowxObject}, |
9416aa89 | 13261 | { "_wxObject","_wxPen",SwigwxPenTowxObject}, |
9416aa89 | 13262 | { "_wxObject","_wxColourDatabase",SwigwxColourDatabaseTowxObject}, |
9416aa89 | 13263 | { "_wxObject","_wxColour",SwigwxColourTowxObject}, |
9416aa89 | 13264 | { "_wxObject","_wxFontList",SwigwxFontListTowxObject}, |
9416aa89 | 13265 | { "_wxObject","_wxFont",SwigwxFontTowxObject}, |
9416aa89 | 13266 | { "_wxObject","_wxCursor",SwigwxCursorTowxObject}, |
9416aa89 | 13267 | { "_wxObject","_wxIcon",SwigwxIconTowxObject}, |
9416aa89 | 13268 | { "_wxObject","_wxMask",SwigwxMaskTowxObject}, |
9416aa89 | 13269 | { "_wxObject","_wxBitmap",SwigwxBitmapTowxObject}, |
9416aa89 | 13270 | { "_wxObject","_wxGDIObject",SwigwxGDIObjectTowxObject}, |
1d99702e RD |
13271 | { "_signed_short","_WXTYPE",0}, |
13272 | { "_signed_short","_short",0}, | |
1d99702e | 13273 | { "_unsigned_char","_byte",0}, |
b1462dfa | 13274 | { "_unsigned_int","_wxCoord",0}, |
1d99702e | 13275 | { "_unsigned_int","_wxPrintQuality",0}, |
c368d904 | 13276 | { "_unsigned_int","_time_t",0}, |
1d99702e RD |
13277 | { "_unsigned_int","_size_t",0}, |
13278 | { "_unsigned_int","_uint",0}, | |
13279 | { "_unsigned_int","_wxWindowID",0}, | |
13280 | { "_unsigned_int","_int",0}, | |
1d99702e RD |
13281 | { "_short","_WXTYPE",0}, |
13282 | { "_short","_unsigned_short",0}, | |
13283 | { "_short","_signed_short",0}, | |
b1462dfa | 13284 | { "_wxWindowID","_wxCoord",0}, |
1d99702e | 13285 | { "_wxWindowID","_wxPrintQuality",0}, |
c368d904 | 13286 | { "_wxWindowID","_time_t",0}, |
1d99702e RD |
13287 | { "_wxWindowID","_size_t",0}, |
13288 | { "_wxWindowID","_EBool",0}, | |
13289 | { "_wxWindowID","_uint",0}, | |
13290 | { "_wxWindowID","_int",0}, | |
13291 | { "_wxWindowID","_signed_int",0}, | |
13292 | { "_wxWindowID","_unsigned_int",0}, | |
b1462dfa | 13293 | { "_int","_wxCoord",0}, |
1d99702e | 13294 | { "_int","_wxPrintQuality",0}, |
c368d904 | 13295 | { "_int","_time_t",0}, |
1d99702e RD |
13296 | { "_int","_size_t",0}, |
13297 | { "_int","_EBool",0}, | |
13298 | { "_int","_uint",0}, | |
13299 | { "_int","_wxWindowID",0}, | |
13300 | { "_int","_unsigned_int",0}, | |
13301 | { "_int","_signed_int",0}, | |
c368d904 RD |
13302 | { "_time_t","_wxCoord",0}, |
13303 | { "_time_t","_wxPrintQuality",0}, | |
13304 | { "_time_t","_unsigned_int",0}, | |
13305 | { "_time_t","_int",0}, | |
13306 | { "_time_t","_wxWindowID",0}, | |
13307 | { "_time_t","_uint",0}, | |
13308 | { "_time_t","_size_t",0}, | |
b1462dfa RD |
13309 | { "_wxCoord","_int",0}, |
13310 | { "_wxCoord","_signed_int",0}, | |
13311 | { "_wxCoord","_unsigned_int",0}, | |
13312 | { "_wxCoord","_wxWindowID",0}, | |
13313 | { "_wxCoord","_uint",0}, | |
13314 | { "_wxCoord","_EBool",0}, | |
13315 | { "_wxCoord","_size_t",0}, | |
c368d904 | 13316 | { "_wxCoord","_time_t",0}, |
b1462dfa | 13317 | { "_wxCoord","_wxPrintQuality",0}, |
1d99702e RD |
13318 | {0,0,0}}; |
13319 | ||
8ab979d7 RD |
13320 | static PyObject *SWIG_globals; |
13321 | #ifdef __cplusplus | |
13322 | extern "C" | |
13323 | #endif | |
1d99702e | 13324 | SWIGEXPORT(void) initgdic() { |
8ab979d7 RD |
13325 | PyObject *m, *d; |
13326 | SWIG_globals = SWIG_newvarlink(); | |
13327 | m = Py_InitModule("gdic", gdicMethods); | |
13328 | d = PyModule_GetDict(m); | |
6d8b4f8d RD |
13329 | PyDict_SetItemString(d,"wxFONTFAMILY_DEFAULT", PyInt_FromLong((long) wxFONTFAMILY_DEFAULT)); |
13330 | PyDict_SetItemString(d,"wxFONTFAMILY_DECORATIVE", PyInt_FromLong((long) wxFONTFAMILY_DECORATIVE)); | |
13331 | PyDict_SetItemString(d,"wxFONTFAMILY_ROMAN", PyInt_FromLong((long) wxFONTFAMILY_ROMAN)); | |
13332 | PyDict_SetItemString(d,"wxFONTFAMILY_SCRIPT", PyInt_FromLong((long) wxFONTFAMILY_SCRIPT)); | |
13333 | PyDict_SetItemString(d,"wxFONTFAMILY_SWISS", PyInt_FromLong((long) wxFONTFAMILY_SWISS)); | |
13334 | PyDict_SetItemString(d,"wxFONTFAMILY_MODERN", PyInt_FromLong((long) wxFONTFAMILY_MODERN)); | |
13335 | PyDict_SetItemString(d,"wxFONTFAMILY_TELETYPE", PyInt_FromLong((long) wxFONTFAMILY_TELETYPE)); | |
13336 | PyDict_SetItemString(d,"wxFONTFAMILY_MAX", PyInt_FromLong((long) wxFONTFAMILY_MAX)); | |
ce914f73 | 13337 | PyDict_SetItemString(d,"wxFONTFAMILY_UNKNOWN", PyInt_FromLong((long) wxFONTFAMILY_UNKNOWN)); |
6d8b4f8d RD |
13338 | PyDict_SetItemString(d,"wxFONTSTYLE_NORMAL", PyInt_FromLong((long) wxFONTSTYLE_NORMAL)); |
13339 | PyDict_SetItemString(d,"wxFONTSTYLE_ITALIC", PyInt_FromLong((long) wxFONTSTYLE_ITALIC)); | |
13340 | PyDict_SetItemString(d,"wxFONTSTYLE_SLANT", PyInt_FromLong((long) wxFONTSTYLE_SLANT)); | |
13341 | PyDict_SetItemString(d,"wxFONTSTYLE_MAX", PyInt_FromLong((long) wxFONTSTYLE_MAX)); | |
13342 | PyDict_SetItemString(d,"wxFONTWEIGHT_NORMAL", PyInt_FromLong((long) wxFONTWEIGHT_NORMAL)); | |
13343 | PyDict_SetItemString(d,"wxFONTWEIGHT_LIGHT", PyInt_FromLong((long) wxFONTWEIGHT_LIGHT)); | |
13344 | PyDict_SetItemString(d,"wxFONTWEIGHT_BOLD", PyInt_FromLong((long) wxFONTWEIGHT_BOLD)); | |
13345 | PyDict_SetItemString(d,"wxFONTWEIGHT_MAX", PyInt_FromLong((long) wxFONTWEIGHT_MAX)); | |
f0261a72 RD |
13346 | PyDict_SetItemString(d,"wxFONTENCODING_SYSTEM", PyInt_FromLong((long) wxFONTENCODING_SYSTEM)); |
13347 | PyDict_SetItemString(d,"wxFONTENCODING_DEFAULT", PyInt_FromLong((long) wxFONTENCODING_DEFAULT)); | |
13348 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_1", PyInt_FromLong((long) wxFONTENCODING_ISO8859_1)); | |
13349 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_2", PyInt_FromLong((long) wxFONTENCODING_ISO8859_2)); | |
13350 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_3", PyInt_FromLong((long) wxFONTENCODING_ISO8859_3)); | |
13351 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_4", PyInt_FromLong((long) wxFONTENCODING_ISO8859_4)); | |
13352 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_5", PyInt_FromLong((long) wxFONTENCODING_ISO8859_5)); | |
13353 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_6", PyInt_FromLong((long) wxFONTENCODING_ISO8859_6)); | |
13354 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_7", PyInt_FromLong((long) wxFONTENCODING_ISO8859_7)); | |
13355 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_8", PyInt_FromLong((long) wxFONTENCODING_ISO8859_8)); | |
13356 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_9", PyInt_FromLong((long) wxFONTENCODING_ISO8859_9)); | |
13357 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_10", PyInt_FromLong((long) wxFONTENCODING_ISO8859_10)); | |
13358 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_11", PyInt_FromLong((long) wxFONTENCODING_ISO8859_11)); | |
13359 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_12", PyInt_FromLong((long) wxFONTENCODING_ISO8859_12)); | |
13360 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_13", PyInt_FromLong((long) wxFONTENCODING_ISO8859_13)); | |
13361 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_14", PyInt_FromLong((long) wxFONTENCODING_ISO8859_14)); | |
13362 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_15", PyInt_FromLong((long) wxFONTENCODING_ISO8859_15)); | |
6d8b4f8d | 13363 | PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_MAX", PyInt_FromLong((long) wxFONTENCODING_ISO8859_MAX)); |
f0261a72 RD |
13364 | PyDict_SetItemString(d,"wxFONTENCODING_KOI8", PyInt_FromLong((long) wxFONTENCODING_KOI8)); |
13365 | PyDict_SetItemString(d,"wxFONTENCODING_ALTERNATIVE", PyInt_FromLong((long) wxFONTENCODING_ALTERNATIVE)); | |
13366 | PyDict_SetItemString(d,"wxFONTENCODING_BULGARIAN", PyInt_FromLong((long) wxFONTENCODING_BULGARIAN)); | |
13367 | PyDict_SetItemString(d,"wxFONTENCODING_CP437", PyInt_FromLong((long) wxFONTENCODING_CP437)); | |
13368 | PyDict_SetItemString(d,"wxFONTENCODING_CP850", PyInt_FromLong((long) wxFONTENCODING_CP850)); | |
13369 | PyDict_SetItemString(d,"wxFONTENCODING_CP852", PyInt_FromLong((long) wxFONTENCODING_CP852)); | |
13370 | PyDict_SetItemString(d,"wxFONTENCODING_CP855", PyInt_FromLong((long) wxFONTENCODING_CP855)); | |
13371 | PyDict_SetItemString(d,"wxFONTENCODING_CP866", PyInt_FromLong((long) wxFONTENCODING_CP866)); | |
6d8b4f8d | 13372 | PyDict_SetItemString(d,"wxFONTENCODING_CP874", PyInt_FromLong((long) wxFONTENCODING_CP874)); |
98624b49 RD |
13373 | PyDict_SetItemString(d,"wxFONTENCODING_CP932", PyInt_FromLong((long) wxFONTENCODING_CP932)); |
13374 | PyDict_SetItemString(d,"wxFONTENCODING_CP936", PyInt_FromLong((long) wxFONTENCODING_CP936)); | |
13375 | PyDict_SetItemString(d,"wxFONTENCODING_CP949", PyInt_FromLong((long) wxFONTENCODING_CP949)); | |
13376 | PyDict_SetItemString(d,"wxFONTENCODING_CP950", PyInt_FromLong((long) wxFONTENCODING_CP950)); | |
f0261a72 RD |
13377 | PyDict_SetItemString(d,"wxFONTENCODING_CP1250", PyInt_FromLong((long) wxFONTENCODING_CP1250)); |
13378 | PyDict_SetItemString(d,"wxFONTENCODING_CP1251", PyInt_FromLong((long) wxFONTENCODING_CP1251)); | |
13379 | PyDict_SetItemString(d,"wxFONTENCODING_CP1252", PyInt_FromLong((long) wxFONTENCODING_CP1252)); | |
6d8b4f8d RD |
13380 | PyDict_SetItemString(d,"wxFONTENCODING_CP1253", PyInt_FromLong((long) wxFONTENCODING_CP1253)); |
13381 | PyDict_SetItemString(d,"wxFONTENCODING_CP1254", PyInt_FromLong((long) wxFONTENCODING_CP1254)); | |
13382 | PyDict_SetItemString(d,"wxFONTENCODING_CP1255", PyInt_FromLong((long) wxFONTENCODING_CP1255)); | |
13383 | PyDict_SetItemString(d,"wxFONTENCODING_CP1256", PyInt_FromLong((long) wxFONTENCODING_CP1256)); | |
13384 | PyDict_SetItemString(d,"wxFONTENCODING_CP1257", PyInt_FromLong((long) wxFONTENCODING_CP1257)); | |
13385 | PyDict_SetItemString(d,"wxFONTENCODING_CP12_MAX", PyInt_FromLong((long) wxFONTENCODING_CP12_MAX)); | |
13386 | PyDict_SetItemString(d,"wxFONTENCODING_UTF7", PyInt_FromLong((long) wxFONTENCODING_UTF7)); | |
13387 | PyDict_SetItemString(d,"wxFONTENCODING_UTF8", PyInt_FromLong((long) wxFONTENCODING_UTF8)); | |
13388 | PyDict_SetItemString(d,"wxFONTENCODING_UNICODE", PyInt_FromLong((long) wxFONTENCODING_UNICODE)); | |
f0261a72 | 13389 | PyDict_SetItemString(d,"wxFONTENCODING_MAX", PyInt_FromLong((long) wxFONTENCODING_MAX)); |
c5943253 RD |
13390 | PyDict_SetItemString(d,"wxIMAGELIST_DRAW_NORMAL", PyInt_FromLong((long) wxIMAGELIST_DRAW_NORMAL)); |
13391 | PyDict_SetItemString(d,"wxIMAGELIST_DRAW_TRANSPARENT", PyInt_FromLong((long) wxIMAGELIST_DRAW_TRANSPARENT)); | |
13392 | PyDict_SetItemString(d,"wxIMAGELIST_DRAW_SELECTED", PyInt_FromLong((long) wxIMAGELIST_DRAW_SELECTED)); | |
13393 | PyDict_SetItemString(d,"wxIMAGELIST_DRAW_FOCUSED", PyInt_FromLong((long) wxIMAGELIST_DRAW_FOCUSED)); | |
13394 | PyDict_SetItemString(d,"wxIMAGE_LIST_NORMAL", PyInt_FromLong((long) wxIMAGE_LIST_NORMAL)); | |
13395 | PyDict_SetItemString(d,"wxIMAGE_LIST_SMALL", PyInt_FromLong((long) wxIMAGE_LIST_SMALL)); | |
13396 | PyDict_SetItemString(d,"wxIMAGE_LIST_STATE", PyInt_FromLong((long) wxIMAGE_LIST_STATE)); | |
13397 | PyDict_SetItemString(d,"wxOutRegion", PyInt_FromLong((long) wxOutRegion)); | |
13398 | PyDict_SetItemString(d,"wxPartRegion", PyInt_FromLong((long) wxPartRegion)); | |
13399 | PyDict_SetItemString(d,"wxInRegion", PyInt_FromLong((long) wxInRegion)); | |
8ab979d7 RD |
13400 | PyDict_SetItemString(d,"cvar", SWIG_globals); |
13401 | SWIG_addvarlink(SWIG_globals,"wxNORMAL_FONT",_wrap_wxNORMAL_FONT_get, _wrap_wxNORMAL_FONT_set); | |
13402 | SWIG_addvarlink(SWIG_globals,"wxSMALL_FONT",_wrap_wxSMALL_FONT_get, _wrap_wxSMALL_FONT_set); | |
13403 | SWIG_addvarlink(SWIG_globals,"wxITALIC_FONT",_wrap_wxITALIC_FONT_get, _wrap_wxITALIC_FONT_set); | |
13404 | SWIG_addvarlink(SWIG_globals,"wxSWISS_FONT",_wrap_wxSWISS_FONT_get, _wrap_wxSWISS_FONT_set); | |
13405 | SWIG_addvarlink(SWIG_globals,"wxRED_PEN",_wrap_wxRED_PEN_get, _wrap_wxRED_PEN_set); | |
13406 | SWIG_addvarlink(SWIG_globals,"wxCYAN_PEN",_wrap_wxCYAN_PEN_get, _wrap_wxCYAN_PEN_set); | |
13407 | SWIG_addvarlink(SWIG_globals,"wxGREEN_PEN",_wrap_wxGREEN_PEN_get, _wrap_wxGREEN_PEN_set); | |
13408 | SWIG_addvarlink(SWIG_globals,"wxBLACK_PEN",_wrap_wxBLACK_PEN_get, _wrap_wxBLACK_PEN_set); | |
13409 | SWIG_addvarlink(SWIG_globals,"wxWHITE_PEN",_wrap_wxWHITE_PEN_get, _wrap_wxWHITE_PEN_set); | |
13410 | SWIG_addvarlink(SWIG_globals,"wxTRANSPARENT_PEN",_wrap_wxTRANSPARENT_PEN_get, _wrap_wxTRANSPARENT_PEN_set); | |
13411 | SWIG_addvarlink(SWIG_globals,"wxBLACK_DASHED_PEN",_wrap_wxBLACK_DASHED_PEN_get, _wrap_wxBLACK_DASHED_PEN_set); | |
13412 | SWIG_addvarlink(SWIG_globals,"wxGREY_PEN",_wrap_wxGREY_PEN_get, _wrap_wxGREY_PEN_set); | |
13413 | SWIG_addvarlink(SWIG_globals,"wxMEDIUM_GREY_PEN",_wrap_wxMEDIUM_GREY_PEN_get, _wrap_wxMEDIUM_GREY_PEN_set); | |
13414 | SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY_PEN",_wrap_wxLIGHT_GREY_PEN_get, _wrap_wxLIGHT_GREY_PEN_set); | |
13415 | SWIG_addvarlink(SWIG_globals,"wxBLUE_BRUSH",_wrap_wxBLUE_BRUSH_get, _wrap_wxBLUE_BRUSH_set); | |
13416 | SWIG_addvarlink(SWIG_globals,"wxGREEN_BRUSH",_wrap_wxGREEN_BRUSH_get, _wrap_wxGREEN_BRUSH_set); | |
13417 | SWIG_addvarlink(SWIG_globals,"wxWHITE_BRUSH",_wrap_wxWHITE_BRUSH_get, _wrap_wxWHITE_BRUSH_set); | |
13418 | SWIG_addvarlink(SWIG_globals,"wxBLACK_BRUSH",_wrap_wxBLACK_BRUSH_get, _wrap_wxBLACK_BRUSH_set); | |
13419 | SWIG_addvarlink(SWIG_globals,"wxTRANSPARENT_BRUSH",_wrap_wxTRANSPARENT_BRUSH_get, _wrap_wxTRANSPARENT_BRUSH_set); | |
13420 | SWIG_addvarlink(SWIG_globals,"wxCYAN_BRUSH",_wrap_wxCYAN_BRUSH_get, _wrap_wxCYAN_BRUSH_set); | |
13421 | SWIG_addvarlink(SWIG_globals,"wxRED_BRUSH",_wrap_wxRED_BRUSH_get, _wrap_wxRED_BRUSH_set); | |
13422 | SWIG_addvarlink(SWIG_globals,"wxGREY_BRUSH",_wrap_wxGREY_BRUSH_get, _wrap_wxGREY_BRUSH_set); | |
13423 | SWIG_addvarlink(SWIG_globals,"wxMEDIUM_GREY_BRUSH",_wrap_wxMEDIUM_GREY_BRUSH_get, _wrap_wxMEDIUM_GREY_BRUSH_set); | |
13424 | SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY_BRUSH",_wrap_wxLIGHT_GREY_BRUSH_get, _wrap_wxLIGHT_GREY_BRUSH_set); | |
13425 | SWIG_addvarlink(SWIG_globals,"wxBLACK",_wrap_wxBLACK_get, _wrap_wxBLACK_set); | |
13426 | SWIG_addvarlink(SWIG_globals,"wxWHITE",_wrap_wxWHITE_get, _wrap_wxWHITE_set); | |
13427 | SWIG_addvarlink(SWIG_globals,"wxRED",_wrap_wxRED_get, _wrap_wxRED_set); | |
13428 | SWIG_addvarlink(SWIG_globals,"wxBLUE",_wrap_wxBLUE_get, _wrap_wxBLUE_set); | |
13429 | SWIG_addvarlink(SWIG_globals,"wxGREEN",_wrap_wxGREEN_get, _wrap_wxGREEN_set); | |
13430 | SWIG_addvarlink(SWIG_globals,"wxCYAN",_wrap_wxCYAN_get, _wrap_wxCYAN_set); | |
13431 | SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY",_wrap_wxLIGHT_GREY_get, _wrap_wxLIGHT_GREY_set); | |
13432 | SWIG_addvarlink(SWIG_globals,"wxSTANDARD_CURSOR",_wrap_wxSTANDARD_CURSOR_get, _wrap_wxSTANDARD_CURSOR_set); | |
13433 | SWIG_addvarlink(SWIG_globals,"wxHOURGLASS_CURSOR",_wrap_wxHOURGLASS_CURSOR_get, _wrap_wxHOURGLASS_CURSOR_set); | |
13434 | SWIG_addvarlink(SWIG_globals,"wxCROSS_CURSOR",_wrap_wxCROSS_CURSOR_get, _wrap_wxCROSS_CURSOR_set); | |
13435 | SWIG_addvarlink(SWIG_globals,"wxNullBitmap",_wrap_wxNullBitmap_get, _wrap_wxNullBitmap_set); | |
13436 | SWIG_addvarlink(SWIG_globals,"wxNullIcon",_wrap_wxNullIcon_get, _wrap_wxNullIcon_set); | |
13437 | SWIG_addvarlink(SWIG_globals,"wxNullCursor",_wrap_wxNullCursor_get, _wrap_wxNullCursor_set); | |
13438 | SWIG_addvarlink(SWIG_globals,"wxNullPen",_wrap_wxNullPen_get, _wrap_wxNullPen_set); | |
13439 | SWIG_addvarlink(SWIG_globals,"wxNullBrush",_wrap_wxNullBrush_get, _wrap_wxNullBrush_set); | |
13440 | SWIG_addvarlink(SWIG_globals,"wxNullPalette",_wrap_wxNullPalette_get, _wrap_wxNullPalette_set); | |
13441 | SWIG_addvarlink(SWIG_globals,"wxNullFont",_wrap_wxNullFont_get, _wrap_wxNullFont_set); | |
13442 | SWIG_addvarlink(SWIG_globals,"wxNullColour",_wrap_wxNullColour_get, _wrap_wxNullColour_set); | |
0569df0f RD |
13443 | SWIG_addvarlink(SWIG_globals,"wxTheFontList",_wrap_wxTheFontList_get, _wrap_wxTheFontList_set); |
13444 | SWIG_addvarlink(SWIG_globals,"wxThePenList",_wrap_wxThePenList_get, _wrap_wxThePenList_set); | |
13445 | SWIG_addvarlink(SWIG_globals,"wxTheBrushList",_wrap_wxTheBrushList_get, _wrap_wxTheBrushList_set); | |
13446 | SWIG_addvarlink(SWIG_globals,"wxTheColourDatabase",_wrap_wxTheColourDatabase_get, _wrap_wxTheColourDatabase_set); | |
1d99702e RD |
13447 | { |
13448 | int i; | |
13449 | for (i = 0; _swig_mapping[i].n1; i++) | |
13450 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
13451 | } | |
8ab979d7 | 13452 | } |