]>
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 | |
7e50db3f RD |
22 | #include "Python.h" |
23 | ||
8ab979d7 RD |
24 | #include <string.h> |
25 | #include <stdlib.h> | |
26 | /* Definitions for Windows/Unix exporting */ | |
27 | #if defined(__WIN32__) | |
28 | # if defined(_MSC_VER) | |
1d99702e | 29 | # define SWIGEXPORT(a) __declspec(dllexport) a |
8ab979d7 RD |
30 | # else |
31 | # if defined(__BORLANDC__) | |
c368d904 | 32 | # define SWIGEXPORT(a) a _export |
8ab979d7 | 33 | # else |
c368d904 | 34 | # define SWIGEXPORT(a) a |
8ab979d7 RD |
35 | # endif |
36 | # endif | |
37 | #else | |
c368d904 | 38 | # define SWIGEXPORT(a) a |
8ab979d7 RD |
39 | #endif |
40 | ||
41 | #ifdef __cplusplus | |
42 | extern "C" { | |
43 | #endif | |
8ab979d7 RD |
44 | extern void SWIG_MakePtr(char *, void *, char *); |
45 | extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *)); | |
46 | extern char *SWIG_GetPtr(char *, void **, char *); | |
1d99702e | 47 | extern char *SWIG_GetPtrObj(PyObject *, void **, char *); |
8ab979d7 RD |
48 | extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); |
49 | extern PyObject *SWIG_newvarlink(void); | |
50 | #ifdef __cplusplus | |
51 | } | |
52 | #endif | |
8ab979d7 RD |
53 | #define SWIG_init initgdic |
54 | ||
55 | #define SWIG_name "gdic" | |
56 | ||
57 | #include "helpers.h" | |
af309447 | 58 | #include <wx/imaglist.h> |
6d8b4f8d RD |
59 | #include <wx/fontmap.h> |
60 | #include <wx/fontenc.h> | |
61 | #include <wx/fontmap.h> | |
62 | #include <wx/fontutil.h> | |
e9159fe8 | 63 | #include <wx/dcbuffer.h> |
0e9b78ce | 64 | #include <wx/iconbndl.h> |
8ab979d7 | 65 | |
8ab979d7 RD |
66 | |
67 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
68 | PyObject* o2; | |
69 | PyObject* o3; | |
70 | ||
f3d9dc1d | 71 | if (!target) { |
8ab979d7 | 72 | target = o; |
f3d9dc1d | 73 | } else if (target == Py_None) { |
8ab979d7 RD |
74 | Py_DECREF(Py_None); |
75 | target = o; | |
f3d9dc1d | 76 | } else { |
8ab979d7 RD |
77 | if (!PyTuple_Check(target)) { |
78 | o2 = target; | |
79 | target = PyTuple_New(1); | |
80 | PyTuple_SetItem(target, 0, o2); | |
81 | } | |
f3d9dc1d RD |
82 | o3 = PyTuple_New(1); |
83 | PyTuple_SetItem(o3, 0, o); | |
8ab979d7 RD |
84 | |
85 | o2 = target; | |
f3d9dc1d RD |
86 | target = PySequence_Concat(o2, o3); |
87 | Py_DECREF(o2); | |
8ab979d7 RD |
88 | Py_DECREF(o3); |
89 | } | |
90 | return target; | |
91 | } | |
137b5242 RD |
92 | |
93 | // Put some wx default wxChar* values into wxStrings. | |
94 | static const wxString wxPyEmptyString(wxT("")); | |
96bfd053 RD |
95 | // Implementations of some alternate "constructors" |
96 | ||
8ab979d7 RD |
97 | wxBitmap* wxEmptyBitmap(int width, int height, int depth=-1) { |
98 | return new wxBitmap(width, height, depth); | |
99 | } | |
100 | ||
96bfd053 RD |
101 | static char** ConvertListOfStrings(PyObject* listOfStrings) { |
102 | char** cArray = NULL; | |
103 | int count; | |
104 | ||
105 | if (!PyList_Check(listOfStrings)) { | |
106 | PyErr_SetString(PyExc_TypeError, "Expected a list of strings."); | |
107 | return NULL; | |
108 | } | |
109 | count = PyList_Size(listOfStrings); | |
110 | cArray = new char*[count]; | |
111 | ||
112 | for(int x=0; x<count; x++) { | |
113 | // TODO: Need some validation and error checking here | |
114 | cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x)); | |
115 | } | |
116 | return cArray; | |
117 | } | |
118 | ||
d56cebe7 | 119 | |
96bfd053 RD |
120 | wxBitmap* wxBitmapFromXPMData(PyObject* listOfStrings) { |
121 | char** cArray = NULL; | |
122 | wxBitmap* bmp; | |
123 | ||
124 | cArray = ConvertListOfStrings(listOfStrings); | |
125 | if (! cArray) | |
126 | return NULL; | |
127 | bmp = new wxBitmap(cArray); | |
128 | delete [] cArray; | |
129 | return bmp; | |
130 | } | |
131 | ||
132 | ||
133 | wxBitmap* wxBitmapFromIcon(const wxIcon& icon) { | |
134 | return new wxBitmap(icon); | |
135 | } | |
136 | ||
137 | ||
3eb221f6 RD |
138 | wxBitmap* wxBitmapFromBits(PyObject* bits, int width, int height, int depth = 1 ) { |
139 | char* buf; | |
140 | int length; | |
141 | PyString_AsStringAndSize(bits, &buf, &length); | |
142 | return new wxBitmap(buf, width, height, depth); | |
d56cebe7 | 143 | } |
926bb76c | 144 | |
4c9993c3 | 145 | |
d56cebe7 RD |
146 | // #ifdef __WXMSW__ |
147 | // wxBitmap* wxBitmapFromData(PyObject* data, long type, | |
148 | // int width, int height, int depth = 1) { | |
149 | // if (! PyString_Check(data)) { | |
150 | // PyErr_SetString(PyExc_TypeError, "Expected string object"); | |
151 | // return NULL; | |
152 | // } | |
153 | // return new wxBitmap((void*)PyString_AsString(data), type, width, height, depth); | |
154 | // } | |
155 | // #endif | |
8bf5d46e | 156 | |
8ab979d7 RD |
157 | wxMask* wxMaskColour(const wxBitmap& bitmap, const wxColour& colour) { |
158 | return new wxMask(bitmap, colour); | |
96bfd053 RD |
159 | } |
160 | // Implementations of some alternate "constructors" | |
161 | wxIcon* wxEmptyIcon() { | |
162 | return new wxIcon(); | |
163 | } | |
164 | ||
165 | wxIcon* wxIconFromXPMData(PyObject* listOfStrings) { | |
166 | char** cArray = NULL; | |
167 | wxIcon* icon; | |
168 | ||
169 | cArray = ConvertListOfStrings(listOfStrings); | |
170 | if (! cArray) | |
171 | return NULL; | |
172 | icon = new wxIcon(cArray); | |
173 | delete [] cArray; | |
174 | return icon; | |
8ab979d7 | 175 | } |
7248a051 RD |
176 | |
177 | wxIcon* wxIconFromBitmap(const wxBitmap& bmp) { | |
178 | wxIcon* icon = new wxIcon(); | |
179 | icon->CopyFromBitmap(bmp); | |
180 | return icon; | |
181 | } | |
8ab979d7 | 182 | // Alternate 'constructor' |
9c039d08 | 183 | wxCursor* wxPyStockCursor(int id) { |
8ab979d7 | 184 | return new wxCursor(id); |
7e50db3f RD |
185 | } |
186 | ||
187 | wxCursor* wxCursorFromImage(const wxImage& image) { | |
188 | #ifndef __WXMAC__ | |
189 | return new wxCursor(image); | |
190 | #else | |
191 | return NULL; | |
192 | #endif | |
8ab979d7 RD |
193 | } |
194 | // Alternate 'constructor' | |
195 | wxColour* wxNamedColour(const wxString& colorName) { | |
196 | return new wxColour(colorName); | |
197 | } | |
ecc08ead RD |
198 | |
199 | class wxPyPen : public wxPen { | |
200 | public: | |
201 | wxPyPen(wxColour& colour, int width=1, int style=wxSOLID) | |
202 | : wxPen(colour, width, style) | |
203 | { m_dash = NULL; } | |
204 | ~wxPyPen() { | |
205 | if (m_dash) | |
181526ac | 206 | delete [] m_dash; |
ecc08ead RD |
207 | } |
208 | ||
209 | void SetDashes(int nb_dashes, const wxDash *dash) { | |
181526ac RD |
210 | if (m_dash) |
211 | delete [] m_dash; | |
ecc08ead | 212 | m_dash = new wxDash[nb_dashes]; |
181526ac | 213 | for (int i=0; i<nb_dashes; i++) { |
ecc08ead | 214 | m_dash[i] = dash[i]; |
181526ac | 215 | } |
ecc08ead RD |
216 | wxPen::SetDashes(nb_dashes, m_dash); |
217 | } | |
218 | ||
219 | private: | |
220 | wxDash* m_dash; | |
221 | }; | |
9d37f964 RD |
222 | |
223 | static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) { | |
224 | *x1 = dc->MinX(); | |
225 | *y1 = dc->MinY(); | |
226 | *x2 = dc->MaxX(); | |
227 | *y2 = dc->MaxY(); | |
228 | } | |
8ab979d7 RD |
229 | // Alternate 'constructor' |
230 | wxMemoryDC* wxMemoryDCFromDC(wxDC* oldDC) { | |
231 | return new wxMemoryDC(oldDC); | |
232 | } | |
af309447 | 233 | |
17c0e08c RD |
234 | #include <wx/metafile.h> |
235 | ||
af309447 | 236 | #if 0 |
8ab979d7 RD |
237 | extern wxFont * wxNORMAL_FONT; |
238 | extern wxFont * wxSMALL_FONT; | |
239 | extern wxFont * wxITALIC_FONT; | |
240 | extern wxFont * wxSWISS_FONT; | |
241 | extern wxPen * wxRED_PEN; | |
242 | extern wxPen * wxCYAN_PEN; | |
243 | extern wxPen * wxGREEN_PEN; | |
244 | extern wxPen * wxBLACK_PEN; | |
245 | extern wxPen * wxWHITE_PEN; | |
246 | extern wxPen * wxTRANSPARENT_PEN; | |
247 | extern wxPen * wxBLACK_DASHED_PEN; | |
248 | extern wxPen * wxGREY_PEN; | |
249 | extern wxPen * wxMEDIUM_GREY_PEN; | |
250 | extern wxPen * wxLIGHT_GREY_PEN; | |
251 | extern wxBrush * wxBLUE_BRUSH; | |
252 | extern wxBrush * wxGREEN_BRUSH; | |
253 | extern wxBrush * wxWHITE_BRUSH; | |
254 | extern wxBrush * wxBLACK_BRUSH; | |
255 | extern wxBrush * wxTRANSPARENT_BRUSH; | |
256 | extern wxBrush * wxCYAN_BRUSH; | |
257 | extern wxBrush * wxRED_BRUSH; | |
258 | extern wxBrush * wxGREY_BRUSH; | |
259 | extern wxBrush * wxMEDIUM_GREY_BRUSH; | |
260 | extern wxBrush * wxLIGHT_GREY_BRUSH; | |
261 | extern wxColour * wxBLACK; | |
262 | extern wxColour * wxWHITE; | |
263 | extern wxColour * wxRED; | |
264 | extern wxColour * wxBLUE; | |
265 | extern wxColour * wxGREEN; | |
266 | extern wxColour * wxCYAN; | |
267 | extern wxColour * wxLIGHT_GREY; | |
268 | extern wxCursor * wxSTANDARD_CURSOR; | |
269 | extern wxCursor * wxHOURGLASS_CURSOR; | |
270 | extern wxCursor * wxCROSS_CURSOR; | |
271 | extern wxBitmap wxNullBitmap; | |
272 | extern wxIcon wxNullIcon; | |
273 | extern wxCursor wxNullCursor; | |
274 | extern wxPen wxNullPen; | |
275 | extern wxBrush wxNullBrush; | |
276 | extern wxPalette wxNullPalette; | |
277 | extern wxFont wxNullFont; | |
278 | extern wxColour wxNullColour; | |
0569df0f RD |
279 | extern wxFontList * wxTheFontList; |
280 | extern wxPenList * wxThePenList; | |
6ee2116b | 281 | extern wxBrushList * wxTheBrushList; |
0569df0f | 282 | extern wxColourDatabase * wxTheColourDatabase; |
af309447 | 283 | |
1d99702e RD |
284 | #endif |
285 | #ifdef __cplusplus | |
286 | extern "C" { | |
af309447 | 287 | #endif |
1afc06c2 | 288 | static PyObject *_wrap_wxEmptyBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
289 | PyObject * _resultobj; |
290 | wxBitmap * _result; | |
291 | int _arg0; | |
292 | int _arg1; | |
1d99702e | 293 | int _arg2 = (int ) -1; |
1afc06c2 | 294 | char *_kwnames[] = { "width","height","depth", NULL }; |
8ab979d7 RD |
295 | char _ptemp[128]; |
296 | ||
297 | self = self; | |
1afc06c2 | 298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"ii|i:wxEmptyBitmap",_kwnames,&_arg0,&_arg1,&_arg2)) |
8ab979d7 | 299 | return NULL; |
cf694132 | 300 | { |
4268f798 | 301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 302 | _result = (wxBitmap *)wxEmptyBitmap(_arg0,_arg1,_arg2); |
cf694132 | 303 | |
4268f798 | 304 | wxPyEndAllowThreads(__tstate); |
493f1553 | 305 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
306 | } if (_result) { |
307 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
308 | _resultobj = Py_BuildValue("s",_ptemp); | |
309 | } else { | |
310 | Py_INCREF(Py_None); | |
311 | _resultobj = Py_None; | |
312 | } | |
8ab979d7 RD |
313 | return _resultobj; |
314 | } | |
315 | ||
96bfd053 RD |
316 | static PyObject *_wrap_wxBitmapFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) { |
317 | PyObject * _resultobj; | |
318 | wxBitmap * _result; | |
319 | PyObject * _arg0; | |
320 | PyObject * _obj0 = 0; | |
321 | char *_kwnames[] = { "listOfStrings", NULL }; | |
322 | char _ptemp[128]; | |
323 | ||
324 | self = self; | |
325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapFromXPMData",_kwnames,&_obj0)) | |
326 | return NULL; | |
327 | { | |
328 | _arg0 = _obj0; | |
329 | } | |
330 | { | |
4268f798 | 331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 332 | _result = (wxBitmap *)wxBitmapFromXPMData(_arg0); |
96bfd053 | 333 | |
4268f798 | 334 | wxPyEndAllowThreads(__tstate); |
493f1553 | 335 | if (PyErr_Occurred()) return NULL; |
96bfd053 RD |
336 | } if (_result) { |
337 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
338 | _resultobj = Py_BuildValue("s",_ptemp); | |
339 | } else { | |
340 | Py_INCREF(Py_None); | |
341 | _resultobj = Py_None; | |
342 | } | |
343 | return _resultobj; | |
344 | } | |
345 | ||
346 | static PyObject *_wrap_wxBitmapFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
347 | PyObject * _resultobj; | |
348 | wxBitmap * _result; | |
349 | wxIcon * _arg0; | |
350 | PyObject * _argo0 = 0; | |
351 | char *_kwnames[] = { "icon", NULL }; | |
352 | char _ptemp[128]; | |
353 | ||
354 | self = self; | |
355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapFromIcon",_kwnames,&_argo0)) | |
356 | return NULL; | |
357 | if (_argo0) { | |
7e50db3f | 358 | if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { |
96bfd053 RD |
359 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapFromIcon. Expected _wxIcon_p."); |
360 | return NULL; | |
361 | } | |
362 | } | |
363 | { | |
4268f798 | 364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 365 | _result = (wxBitmap *)wxBitmapFromIcon(*_arg0); |
96bfd053 | 366 | |
4268f798 | 367 | wxPyEndAllowThreads(__tstate); |
493f1553 | 368 | if (PyErr_Occurred()) return NULL; |
96bfd053 RD |
369 | } if (_result) { |
370 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
371 | _resultobj = Py_BuildValue("s",_ptemp); | |
372 | } else { | |
373 | Py_INCREF(Py_None); | |
374 | _resultobj = Py_None; | |
375 | } | |
376 | return _resultobj; | |
377 | } | |
378 | ||
d56cebe7 | 379 | static PyObject *_wrap_wxBitmapFromBits(PyObject *self, PyObject *args, PyObject *kwargs) { |
8bf5d46e RD |
380 | PyObject * _resultobj; |
381 | wxBitmap * _result; | |
3eb221f6 | 382 | PyObject * _arg0; |
d56cebe7 | 383 | int _arg1; |
8bf5d46e | 384 | int _arg2; |
d56cebe7 | 385 | int _arg3 = (int ) 1; |
3eb221f6 | 386 | PyObject * _obj0 = 0; |
d56cebe7 | 387 | char *_kwnames[] = { "bits","width","height","depth", NULL }; |
8bf5d46e RD |
388 | char _ptemp[128]; |
389 | ||
390 | self = self; | |
3eb221f6 | 391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|i:wxBitmapFromBits",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3)) |
8bf5d46e | 392 | return NULL; |
3eb221f6 RD |
393 | { |
394 | _arg0 = _obj0; | |
395 | } | |
8bf5d46e | 396 | { |
4268f798 | 397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 398 | _result = (wxBitmap *)wxBitmapFromBits(_arg0,_arg1,_arg2,_arg3); |
8bf5d46e | 399 | |
4268f798 | 400 | wxPyEndAllowThreads(__tstate); |
493f1553 | 401 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
402 | } if (_result) { |
403 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
404 | _resultobj = Py_BuildValue("s",_ptemp); | |
405 | } else { | |
406 | Py_INCREF(Py_None); | |
407 | _resultobj = Py_None; | |
408 | } | |
8bf5d46e RD |
409 | return _resultobj; |
410 | } | |
411 | ||
1afc06c2 | 412 | static PyObject *_wrap_wxMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
413 | PyObject * _resultobj; |
414 | wxMask * _result; | |
415 | wxBitmap * _arg0; | |
416 | wxColour * _arg1; | |
1d99702e | 417 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
418 | wxColour temp; |
419 | PyObject * _obj1 = 0; | |
1afc06c2 | 420 | char *_kwnames[] = { "bitmap","colour", NULL }; |
8ab979d7 RD |
421 | char _ptemp[128]; |
422 | ||
423 | self = self; | |
f6bcfd97 | 424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMaskColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 425 | return NULL; |
1d99702e | 426 | if (_argo0) { |
7e50db3f | 427 | if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { |
8ab979d7 RD |
428 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMaskColour. Expected _wxBitmap_p."); |
429 | return NULL; | |
430 | } | |
431 | } | |
f6bcfd97 BP |
432 | { |
433 | _arg1 = &temp; | |
434 | if (! wxColour_helper(_obj1, &_arg1)) | |
8ab979d7 | 435 | return NULL; |
f6bcfd97 | 436 | } |
cf694132 | 437 | { |
4268f798 | 438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 439 | _result = (wxMask *)wxMaskColour(*_arg0,*_arg1); |
cf694132 | 440 | |
4268f798 | 441 | wxPyEndAllowThreads(__tstate); |
493f1553 | 442 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
443 | } if (_result) { |
444 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p"); | |
445 | _resultobj = Py_BuildValue("s",_ptemp); | |
446 | } else { | |
447 | Py_INCREF(Py_None); | |
448 | _resultobj = Py_None; | |
449 | } | |
8ab979d7 RD |
450 | return _resultobj; |
451 | } | |
452 | ||
96bfd053 RD |
453 | static PyObject *_wrap_wxEmptyIcon(PyObject *self, PyObject *args, PyObject *kwargs) { |
454 | PyObject * _resultobj; | |
455 | wxIcon * _result; | |
456 | char *_kwnames[] = { NULL }; | |
457 | char _ptemp[128]; | |
458 | ||
459 | self = self; | |
460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxEmptyIcon",_kwnames)) | |
461 | return NULL; | |
462 | { | |
4268f798 | 463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 464 | _result = (wxIcon *)wxEmptyIcon(); |
96bfd053 | 465 | |
4268f798 | 466 | wxPyEndAllowThreads(__tstate); |
493f1553 | 467 | if (PyErr_Occurred()) return NULL; |
96bfd053 RD |
468 | } if (_result) { |
469 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p"); | |
470 | _resultobj = Py_BuildValue("s",_ptemp); | |
471 | } else { | |
472 | Py_INCREF(Py_None); | |
473 | _resultobj = Py_None; | |
474 | } | |
475 | return _resultobj; | |
476 | } | |
477 | ||
478 | static PyObject *_wrap_wxIconFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
479 | PyObject * _resultobj; | |
480 | wxIcon * _result; | |
481 | PyObject * _arg0; | |
482 | PyObject * _obj0 = 0; | |
483 | char *_kwnames[] = { "listOfStrings", NULL }; | |
484 | char _ptemp[128]; | |
485 | ||
486 | self = self; | |
487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIconFromXPMData",_kwnames,&_obj0)) | |
488 | return NULL; | |
489 | { | |
490 | _arg0 = _obj0; | |
491 | } | |
492 | { | |
4268f798 | 493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 494 | _result = (wxIcon *)wxIconFromXPMData(_arg0); |
96bfd053 | 495 | |
4268f798 | 496 | wxPyEndAllowThreads(__tstate); |
493f1553 | 497 | if (PyErr_Occurred()) return NULL; |
96bfd053 RD |
498 | } if (_result) { |
499 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p"); | |
500 | _resultobj = Py_BuildValue("s",_ptemp); | |
501 | } else { | |
502 | Py_INCREF(Py_None); | |
503 | _resultobj = Py_None; | |
504 | } | |
505 | return _resultobj; | |
506 | } | |
507 | ||
7248a051 RD |
508 | static PyObject *_wrap_wxIconFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { |
509 | PyObject * _resultobj; | |
510 | wxIcon * _result; | |
511 | wxBitmap * _arg0; | |
512 | PyObject * _argo0 = 0; | |
513 | char *_kwnames[] = { "bmp", NULL }; | |
514 | char _ptemp[128]; | |
515 | ||
516 | self = self; | |
517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIconFromBitmap",_kwnames,&_argo0)) | |
518 | return NULL; | |
519 | if (_argo0) { | |
7e50db3f | 520 | if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { |
7248a051 RD |
521 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIconFromBitmap. Expected _wxBitmap_p."); |
522 | return NULL; | |
523 | } | |
524 | } | |
525 | { | |
526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 527 | _result = (wxIcon *)wxIconFromBitmap(*_arg0); |
7248a051 RD |
528 | |
529 | wxPyEndAllowThreads(__tstate); | |
530 | if (PyErr_Occurred()) return NULL; | |
531 | } if (_result) { | |
532 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p"); | |
533 | _resultobj = Py_BuildValue("s",_ptemp); | |
534 | } else { | |
535 | Py_INCREF(Py_None); | |
536 | _resultobj = Py_None; | |
537 | } | |
538 | return _resultobj; | |
539 | } | |
540 | ||
1afc06c2 | 541 | static PyObject *_wrap_wxStockCursor(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
542 | PyObject * _resultobj; |
543 | wxCursor * _result; | |
544 | int _arg0; | |
1afc06c2 | 545 | char *_kwnames[] = { "id", NULL }; |
8ab979d7 RD |
546 | char _ptemp[128]; |
547 | ||
548 | self = self; | |
1afc06c2 | 549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxStockCursor",_kwnames,&_arg0)) |
8ab979d7 | 550 | return NULL; |
cf694132 | 551 | { |
4268f798 | 552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 553 | _result = (wxCursor *)wxPyStockCursor(_arg0); |
cf694132 | 554 | |
4268f798 | 555 | wxPyEndAllowThreads(__tstate); |
493f1553 | 556 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
557 | } if (_result) { |
558 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCursor_p"); | |
559 | _resultobj = Py_BuildValue("s",_ptemp); | |
560 | } else { | |
561 | Py_INCREF(Py_None); | |
562 | _resultobj = Py_None; | |
563 | } | |
8ab979d7 RD |
564 | return _resultobj; |
565 | } | |
566 | ||
7e50db3f RD |
567 | static PyObject *_wrap_wxCursorFromImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
568 | PyObject * _resultobj; | |
569 | wxCursor * _result; | |
570 | wxImage * _arg0; | |
571 | PyObject * _argo0 = 0; | |
572 | char *_kwnames[] = { "image", NULL }; | |
573 | char _ptemp[128]; | |
574 | ||
575 | self = self; | |
576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursorFromImage",_kwnames,&_argo0)) | |
577 | return NULL; | |
578 | if (_argo0) { | |
579 | if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) { | |
580 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursorFromImage. Expected _wxImage_p."); | |
581 | return NULL; | |
582 | } | |
583 | } | |
584 | { | |
585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
586 | _result = (wxCursor *)wxCursorFromImage(*_arg0); | |
587 | ||
588 | wxPyEndAllowThreads(__tstate); | |
589 | if (PyErr_Occurred()) return NULL; | |
590 | } if (_result) { | |
591 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCursor_p"); | |
592 | _resultobj = Py_BuildValue("s",_ptemp); | |
593 | } else { | |
594 | Py_INCREF(Py_None); | |
595 | _resultobj = Py_None; | |
596 | } | |
597 | return _resultobj; | |
598 | } | |
599 | ||
1afc06c2 | 600 | static PyObject *_wrap_wxNamedColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
601 | PyObject * _resultobj; |
602 | wxColour * _result; | |
603 | wxString * _arg0; | |
604 | PyObject * _obj0 = 0; | |
1afc06c2 | 605 | char *_kwnames[] = { "colorName", NULL }; |
8ab979d7 RD |
606 | char _ptemp[128]; |
607 | ||
608 | self = self; | |
1afc06c2 | 609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNamedColour",_kwnames,&_obj0)) |
8ab979d7 RD |
610 | return NULL; |
611 | { | |
c8bc7bb8 RD |
612 | _arg0 = wxString_in_helper(_obj0); |
613 | if (_arg0 == NULL) | |
8ab979d7 | 614 | return NULL; |
8ab979d7 | 615 | } |
cf694132 | 616 | { |
4268f798 | 617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 618 | _result = (wxColour *)wxNamedColour(*_arg0); |
cf694132 | 619 | |
4268f798 | 620 | wxPyEndAllowThreads(__tstate); |
493f1553 | 621 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
622 | } if (_result) { |
623 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
624 | _resultobj = Py_BuildValue("s",_ptemp); | |
625 | } else { | |
626 | Py_INCREF(Py_None); | |
627 | _resultobj = Py_None; | |
628 | } | |
8ab979d7 RD |
629 | { |
630 | if (_obj0) | |
631 | delete _arg0; | |
632 | } | |
633 | return _resultobj; | |
634 | } | |
635 | ||
1afc06c2 | 636 | static PyObject *_wrap_wxMemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
637 | PyObject * _resultobj; |
638 | wxMemoryDC * _result; | |
639 | wxDC * _arg0; | |
1d99702e | 640 | PyObject * _argo0 = 0; |
1afc06c2 | 641 | char *_kwnames[] = { "oldDC", NULL }; |
8ab979d7 RD |
642 | char _ptemp[128]; |
643 | ||
644 | self = self; | |
1afc06c2 | 645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMemoryDCFromDC",_kwnames,&_argo0)) |
8ab979d7 | 646 | return NULL; |
1d99702e RD |
647 | if (_argo0) { |
648 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
649 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
650 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMemoryDCFromDC. Expected _wxDC_p."); |
651 | return NULL; | |
652 | } | |
653 | } | |
cf694132 | 654 | { |
4268f798 | 655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 656 | _result = (wxMemoryDC *)wxMemoryDCFromDC(_arg0); |
cf694132 | 657 | |
4268f798 | 658 | wxPyEndAllowThreads(__tstate); |
493f1553 | 659 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
660 | } if (_result) { |
661 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMemoryDC_p"); | |
662 | _resultobj = Py_BuildValue("s",_ptemp); | |
663 | } else { | |
664 | Py_INCREF(Py_None); | |
665 | _resultobj = Py_None; | |
666 | } | |
8ab979d7 RD |
667 | return _resultobj; |
668 | } | |
669 | ||
670 | static int _wrap_wxNORMAL_FONT_set(PyObject *val) { | |
671 | ||
672 | PyErr_SetString(PyExc_TypeError,"Variable wxNORMAL_FONT is read-only."); | |
673 | return 1; | |
674 | } | |
675 | ||
676 | static PyObject *_wrap_wxNORMAL_FONT_get() { | |
677 | PyObject * pyobj; | |
678 | char ptemp[128]; | |
679 | ||
680 | SWIG_MakePtr(ptemp, (char *) wxNORMAL_FONT,"_wxFont_p"); | |
681 | pyobj = PyString_FromString(ptemp); | |
682 | return pyobj; | |
683 | } | |
684 | ||
685 | static int _wrap_wxSMALL_FONT_set(PyObject *val) { | |
686 | ||
687 | PyErr_SetString(PyExc_TypeError,"Variable wxSMALL_FONT is read-only."); | |
688 | return 1; | |
689 | } | |
690 | ||
691 | static PyObject *_wrap_wxSMALL_FONT_get() { | |
692 | PyObject * pyobj; | |
693 | char ptemp[128]; | |
694 | ||
695 | SWIG_MakePtr(ptemp, (char *) wxSMALL_FONT,"_wxFont_p"); | |
696 | pyobj = PyString_FromString(ptemp); | |
697 | return pyobj; | |
698 | } | |
699 | ||
700 | static int _wrap_wxITALIC_FONT_set(PyObject *val) { | |
701 | ||
702 | PyErr_SetString(PyExc_TypeError,"Variable wxITALIC_FONT is read-only."); | |
703 | return 1; | |
704 | } | |
705 | ||
706 | static PyObject *_wrap_wxITALIC_FONT_get() { | |
707 | PyObject * pyobj; | |
708 | char ptemp[128]; | |
709 | ||
710 | SWIG_MakePtr(ptemp, (char *) wxITALIC_FONT,"_wxFont_p"); | |
711 | pyobj = PyString_FromString(ptemp); | |
712 | return pyobj; | |
713 | } | |
714 | ||
715 | static int _wrap_wxSWISS_FONT_set(PyObject *val) { | |
716 | ||
717 | PyErr_SetString(PyExc_TypeError,"Variable wxSWISS_FONT is read-only."); | |
718 | return 1; | |
719 | } | |
720 | ||
721 | static PyObject *_wrap_wxSWISS_FONT_get() { | |
722 | PyObject * pyobj; | |
723 | char ptemp[128]; | |
724 | ||
725 | SWIG_MakePtr(ptemp, (char *) wxSWISS_FONT,"_wxFont_p"); | |
726 | pyobj = PyString_FromString(ptemp); | |
727 | return pyobj; | |
728 | } | |
729 | ||
730 | static int _wrap_wxRED_PEN_set(PyObject *val) { | |
731 | ||
732 | PyErr_SetString(PyExc_TypeError,"Variable wxRED_PEN is read-only."); | |
733 | return 1; | |
734 | } | |
735 | ||
736 | static PyObject *_wrap_wxRED_PEN_get() { | |
737 | PyObject * pyobj; | |
738 | char ptemp[128]; | |
739 | ||
740 | SWIG_MakePtr(ptemp, (char *) wxRED_PEN,"_wxPen_p"); | |
741 | pyobj = PyString_FromString(ptemp); | |
742 | return pyobj; | |
743 | } | |
744 | ||
745 | static int _wrap_wxCYAN_PEN_set(PyObject *val) { | |
746 | ||
747 | PyErr_SetString(PyExc_TypeError,"Variable wxCYAN_PEN is read-only."); | |
748 | return 1; | |
749 | } | |
750 | ||
751 | static PyObject *_wrap_wxCYAN_PEN_get() { | |
752 | PyObject * pyobj; | |
753 | char ptemp[128]; | |
754 | ||
755 | SWIG_MakePtr(ptemp, (char *) wxCYAN_PEN,"_wxPen_p"); | |
756 | pyobj = PyString_FromString(ptemp); | |
757 | return pyobj; | |
758 | } | |
759 | ||
760 | static int _wrap_wxGREEN_PEN_set(PyObject *val) { | |
761 | ||
762 | PyErr_SetString(PyExc_TypeError,"Variable wxGREEN_PEN is read-only."); | |
763 | return 1; | |
764 | } | |
765 | ||
766 | static PyObject *_wrap_wxGREEN_PEN_get() { | |
767 | PyObject * pyobj; | |
768 | char ptemp[128]; | |
769 | ||
770 | SWIG_MakePtr(ptemp, (char *) wxGREEN_PEN,"_wxPen_p"); | |
771 | pyobj = PyString_FromString(ptemp); | |
772 | return pyobj; | |
773 | } | |
774 | ||
775 | static int _wrap_wxBLACK_PEN_set(PyObject *val) { | |
776 | ||
777 | PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_PEN is read-only."); | |
778 | return 1; | |
779 | } | |
780 | ||
781 | static PyObject *_wrap_wxBLACK_PEN_get() { | |
782 | PyObject * pyobj; | |
783 | char ptemp[128]; | |
784 | ||
785 | SWIG_MakePtr(ptemp, (char *) wxBLACK_PEN,"_wxPen_p"); | |
786 | pyobj = PyString_FromString(ptemp); | |
787 | return pyobj; | |
788 | } | |
789 | ||
790 | static int _wrap_wxWHITE_PEN_set(PyObject *val) { | |
791 | ||
792 | PyErr_SetString(PyExc_TypeError,"Variable wxWHITE_PEN is read-only."); | |
793 | return 1; | |
794 | } | |
795 | ||
796 | static PyObject *_wrap_wxWHITE_PEN_get() { | |
797 | PyObject * pyobj; | |
798 | char ptemp[128]; | |
799 | ||
800 | SWIG_MakePtr(ptemp, (char *) wxWHITE_PEN,"_wxPen_p"); | |
801 | pyobj = PyString_FromString(ptemp); | |
802 | return pyobj; | |
803 | } | |
804 | ||
805 | static int _wrap_wxTRANSPARENT_PEN_set(PyObject *val) { | |
806 | ||
807 | PyErr_SetString(PyExc_TypeError,"Variable wxTRANSPARENT_PEN is read-only."); | |
808 | return 1; | |
809 | } | |
810 | ||
811 | static PyObject *_wrap_wxTRANSPARENT_PEN_get() { | |
812 | PyObject * pyobj; | |
813 | char ptemp[128]; | |
814 | ||
815 | SWIG_MakePtr(ptemp, (char *) wxTRANSPARENT_PEN,"_wxPen_p"); | |
816 | pyobj = PyString_FromString(ptemp); | |
817 | return pyobj; | |
818 | } | |
819 | ||
820 | static int _wrap_wxBLACK_DASHED_PEN_set(PyObject *val) { | |
821 | ||
822 | PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_DASHED_PEN is read-only."); | |
823 | return 1; | |
824 | } | |
825 | ||
826 | static PyObject *_wrap_wxBLACK_DASHED_PEN_get() { | |
827 | PyObject * pyobj; | |
828 | char ptemp[128]; | |
829 | ||
830 | SWIG_MakePtr(ptemp, (char *) wxBLACK_DASHED_PEN,"_wxPen_p"); | |
831 | pyobj = PyString_FromString(ptemp); | |
832 | return pyobj; | |
833 | } | |
834 | ||
835 | static int _wrap_wxGREY_PEN_set(PyObject *val) { | |
836 | ||
837 | PyErr_SetString(PyExc_TypeError,"Variable wxGREY_PEN is read-only."); | |
838 | return 1; | |
839 | } | |
840 | ||
841 | static PyObject *_wrap_wxGREY_PEN_get() { | |
842 | PyObject * pyobj; | |
843 | char ptemp[128]; | |
844 | ||
845 | SWIG_MakePtr(ptemp, (char *) wxGREY_PEN,"_wxPen_p"); | |
846 | pyobj = PyString_FromString(ptemp); | |
847 | return pyobj; | |
848 | } | |
849 | ||
850 | static int _wrap_wxMEDIUM_GREY_PEN_set(PyObject *val) { | |
851 | ||
852 | PyErr_SetString(PyExc_TypeError,"Variable wxMEDIUM_GREY_PEN is read-only."); | |
853 | return 1; | |
854 | } | |
855 | ||
856 | static PyObject *_wrap_wxMEDIUM_GREY_PEN_get() { | |
857 | PyObject * pyobj; | |
858 | char ptemp[128]; | |
859 | ||
860 | SWIG_MakePtr(ptemp, (char *) wxMEDIUM_GREY_PEN,"_wxPen_p"); | |
861 | pyobj = PyString_FromString(ptemp); | |
862 | return pyobj; | |
863 | } | |
864 | ||
865 | static int _wrap_wxLIGHT_GREY_PEN_set(PyObject *val) { | |
866 | ||
867 | PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY_PEN is read-only."); | |
868 | return 1; | |
869 | } | |
870 | ||
871 | static PyObject *_wrap_wxLIGHT_GREY_PEN_get() { | |
872 | PyObject * pyobj; | |
873 | char ptemp[128]; | |
874 | ||
875 | SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY_PEN,"_wxPen_p"); | |
876 | pyobj = PyString_FromString(ptemp); | |
877 | return pyobj; | |
878 | } | |
879 | ||
880 | static int _wrap_wxBLUE_BRUSH_set(PyObject *val) { | |
881 | ||
882 | PyErr_SetString(PyExc_TypeError,"Variable wxBLUE_BRUSH is read-only."); | |
883 | return 1; | |
884 | } | |
885 | ||
886 | static PyObject *_wrap_wxBLUE_BRUSH_get() { | |
887 | PyObject * pyobj; | |
888 | char ptemp[128]; | |
889 | ||
890 | SWIG_MakePtr(ptemp, (char *) wxBLUE_BRUSH,"_wxBrush_p"); | |
891 | pyobj = PyString_FromString(ptemp); | |
892 | return pyobj; | |
893 | } | |
894 | ||
895 | static int _wrap_wxGREEN_BRUSH_set(PyObject *val) { | |
896 | ||
897 | PyErr_SetString(PyExc_TypeError,"Variable wxGREEN_BRUSH is read-only."); | |
898 | return 1; | |
899 | } | |
900 | ||
901 | static PyObject *_wrap_wxGREEN_BRUSH_get() { | |
902 | PyObject * pyobj; | |
903 | char ptemp[128]; | |
904 | ||
905 | SWIG_MakePtr(ptemp, (char *) wxGREEN_BRUSH,"_wxBrush_p"); | |
906 | pyobj = PyString_FromString(ptemp); | |
907 | return pyobj; | |
908 | } | |
909 | ||
910 | static int _wrap_wxWHITE_BRUSH_set(PyObject *val) { | |
911 | ||
912 | PyErr_SetString(PyExc_TypeError,"Variable wxWHITE_BRUSH is read-only."); | |
913 | return 1; | |
914 | } | |
915 | ||
916 | static PyObject *_wrap_wxWHITE_BRUSH_get() { | |
917 | PyObject * pyobj; | |
918 | char ptemp[128]; | |
919 | ||
920 | SWIG_MakePtr(ptemp, (char *) wxWHITE_BRUSH,"_wxBrush_p"); | |
921 | pyobj = PyString_FromString(ptemp); | |
922 | return pyobj; | |
923 | } | |
924 | ||
925 | static int _wrap_wxBLACK_BRUSH_set(PyObject *val) { | |
926 | ||
927 | PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_BRUSH is read-only."); | |
928 | return 1; | |
929 | } | |
930 | ||
931 | static PyObject *_wrap_wxBLACK_BRUSH_get() { | |
932 | PyObject * pyobj; | |
933 | char ptemp[128]; | |
934 | ||
935 | SWIG_MakePtr(ptemp, (char *) wxBLACK_BRUSH,"_wxBrush_p"); | |
936 | pyobj = PyString_FromString(ptemp); | |
937 | return pyobj; | |
938 | } | |
939 | ||
940 | static int _wrap_wxTRANSPARENT_BRUSH_set(PyObject *val) { | |
941 | ||
942 | PyErr_SetString(PyExc_TypeError,"Variable wxTRANSPARENT_BRUSH is read-only."); | |
943 | return 1; | |
944 | } | |
945 | ||
946 | static PyObject *_wrap_wxTRANSPARENT_BRUSH_get() { | |
947 | PyObject * pyobj; | |
948 | char ptemp[128]; | |
949 | ||
950 | SWIG_MakePtr(ptemp, (char *) wxTRANSPARENT_BRUSH,"_wxBrush_p"); | |
951 | pyobj = PyString_FromString(ptemp); | |
952 | return pyobj; | |
953 | } | |
954 | ||
955 | static int _wrap_wxCYAN_BRUSH_set(PyObject *val) { | |
956 | ||
957 | PyErr_SetString(PyExc_TypeError,"Variable wxCYAN_BRUSH is read-only."); | |
958 | return 1; | |
959 | } | |
960 | ||
961 | static PyObject *_wrap_wxCYAN_BRUSH_get() { | |
962 | PyObject * pyobj; | |
963 | char ptemp[128]; | |
964 | ||
965 | SWIG_MakePtr(ptemp, (char *) wxCYAN_BRUSH,"_wxBrush_p"); | |
966 | pyobj = PyString_FromString(ptemp); | |
967 | return pyobj; | |
968 | } | |
969 | ||
970 | static int _wrap_wxRED_BRUSH_set(PyObject *val) { | |
971 | ||
972 | PyErr_SetString(PyExc_TypeError,"Variable wxRED_BRUSH is read-only."); | |
973 | return 1; | |
974 | } | |
975 | ||
976 | static PyObject *_wrap_wxRED_BRUSH_get() { | |
977 | PyObject * pyobj; | |
978 | char ptemp[128]; | |
979 | ||
980 | SWIG_MakePtr(ptemp, (char *) wxRED_BRUSH,"_wxBrush_p"); | |
981 | pyobj = PyString_FromString(ptemp); | |
982 | return pyobj; | |
983 | } | |
984 | ||
985 | static int _wrap_wxGREY_BRUSH_set(PyObject *val) { | |
986 | ||
987 | PyErr_SetString(PyExc_TypeError,"Variable wxGREY_BRUSH is read-only."); | |
988 | return 1; | |
989 | } | |
990 | ||
991 | static PyObject *_wrap_wxGREY_BRUSH_get() { | |
992 | PyObject * pyobj; | |
993 | char ptemp[128]; | |
994 | ||
995 | SWIG_MakePtr(ptemp, (char *) wxGREY_BRUSH,"_wxBrush_p"); | |
996 | pyobj = PyString_FromString(ptemp); | |
997 | return pyobj; | |
998 | } | |
999 | ||
1000 | static int _wrap_wxMEDIUM_GREY_BRUSH_set(PyObject *val) { | |
1001 | ||
1002 | PyErr_SetString(PyExc_TypeError,"Variable wxMEDIUM_GREY_BRUSH is read-only."); | |
1003 | return 1; | |
1004 | } | |
1005 | ||
1006 | static PyObject *_wrap_wxMEDIUM_GREY_BRUSH_get() { | |
1007 | PyObject * pyobj; | |
1008 | char ptemp[128]; | |
1009 | ||
1010 | SWIG_MakePtr(ptemp, (char *) wxMEDIUM_GREY_BRUSH,"_wxBrush_p"); | |
1011 | pyobj = PyString_FromString(ptemp); | |
1012 | return pyobj; | |
1013 | } | |
1014 | ||
1015 | static int _wrap_wxLIGHT_GREY_BRUSH_set(PyObject *val) { | |
1016 | ||
1017 | PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY_BRUSH is read-only."); | |
1018 | return 1; | |
1019 | } | |
1020 | ||
1021 | static PyObject *_wrap_wxLIGHT_GREY_BRUSH_get() { | |
1022 | PyObject * pyobj; | |
1023 | char ptemp[128]; | |
1024 | ||
1025 | SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY_BRUSH,"_wxBrush_p"); | |
1026 | pyobj = PyString_FromString(ptemp); | |
1027 | return pyobj; | |
1028 | } | |
1029 | ||
1030 | static int _wrap_wxBLACK_set(PyObject *val) { | |
1031 | ||
1032 | PyErr_SetString(PyExc_TypeError,"Variable wxBLACK is read-only."); | |
1033 | return 1; | |
1034 | } | |
1035 | ||
1036 | static PyObject *_wrap_wxBLACK_get() { | |
1037 | PyObject * pyobj; | |
1038 | char ptemp[128]; | |
1039 | ||
1040 | SWIG_MakePtr(ptemp, (char *) wxBLACK,"_wxColour_p"); | |
1041 | pyobj = PyString_FromString(ptemp); | |
1042 | return pyobj; | |
1043 | } | |
1044 | ||
1045 | static int _wrap_wxWHITE_set(PyObject *val) { | |
1046 | ||
1047 | PyErr_SetString(PyExc_TypeError,"Variable wxWHITE is read-only."); | |
1048 | return 1; | |
1049 | } | |
1050 | ||
1051 | static PyObject *_wrap_wxWHITE_get() { | |
1052 | PyObject * pyobj; | |
1053 | char ptemp[128]; | |
1054 | ||
1055 | SWIG_MakePtr(ptemp, (char *) wxWHITE,"_wxColour_p"); | |
1056 | pyobj = PyString_FromString(ptemp); | |
1057 | return pyobj; | |
1058 | } | |
1059 | ||
1060 | static int _wrap_wxRED_set(PyObject *val) { | |
1061 | ||
1062 | PyErr_SetString(PyExc_TypeError,"Variable wxRED is read-only."); | |
1063 | return 1; | |
1064 | } | |
1065 | ||
1066 | static PyObject *_wrap_wxRED_get() { | |
1067 | PyObject * pyobj; | |
1068 | char ptemp[128]; | |
1069 | ||
1070 | SWIG_MakePtr(ptemp, (char *) wxRED,"_wxColour_p"); | |
1071 | pyobj = PyString_FromString(ptemp); | |
1072 | return pyobj; | |
1073 | } | |
1074 | ||
1075 | static int _wrap_wxBLUE_set(PyObject *val) { | |
1076 | ||
1077 | PyErr_SetString(PyExc_TypeError,"Variable wxBLUE is read-only."); | |
1078 | return 1; | |
1079 | } | |
1080 | ||
1081 | static PyObject *_wrap_wxBLUE_get() { | |
1082 | PyObject * pyobj; | |
1083 | char ptemp[128]; | |
1084 | ||
1085 | SWIG_MakePtr(ptemp, (char *) wxBLUE,"_wxColour_p"); | |
1086 | pyobj = PyString_FromString(ptemp); | |
1087 | return pyobj; | |
1088 | } | |
1089 | ||
1090 | static int _wrap_wxGREEN_set(PyObject *val) { | |
1091 | ||
1092 | PyErr_SetString(PyExc_TypeError,"Variable wxGREEN is read-only."); | |
1093 | return 1; | |
1094 | } | |
1095 | ||
1096 | static PyObject *_wrap_wxGREEN_get() { | |
1097 | PyObject * pyobj; | |
1098 | char ptemp[128]; | |
1099 | ||
1100 | SWIG_MakePtr(ptemp, (char *) wxGREEN,"_wxColour_p"); | |
1101 | pyobj = PyString_FromString(ptemp); | |
1102 | return pyobj; | |
1103 | } | |
1104 | ||
1105 | static int _wrap_wxCYAN_set(PyObject *val) { | |
1106 | ||
1107 | PyErr_SetString(PyExc_TypeError,"Variable wxCYAN is read-only."); | |
1108 | return 1; | |
1109 | } | |
1110 | ||
1111 | static PyObject *_wrap_wxCYAN_get() { | |
1112 | PyObject * pyobj; | |
1113 | char ptemp[128]; | |
1114 | ||
1115 | SWIG_MakePtr(ptemp, (char *) wxCYAN,"_wxColour_p"); | |
1116 | pyobj = PyString_FromString(ptemp); | |
1117 | return pyobj; | |
1118 | } | |
1119 | ||
1120 | static int _wrap_wxLIGHT_GREY_set(PyObject *val) { | |
1121 | ||
1122 | PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY is read-only."); | |
1123 | return 1; | |
1124 | } | |
1125 | ||
1126 | static PyObject *_wrap_wxLIGHT_GREY_get() { | |
1127 | PyObject * pyobj; | |
1128 | char ptemp[128]; | |
1129 | ||
1130 | SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY,"_wxColour_p"); | |
1131 | pyobj = PyString_FromString(ptemp); | |
1132 | return pyobj; | |
1133 | } | |
1134 | ||
1135 | static int _wrap_wxSTANDARD_CURSOR_set(PyObject *val) { | |
1136 | ||
1137 | PyErr_SetString(PyExc_TypeError,"Variable wxSTANDARD_CURSOR is read-only."); | |
1138 | return 1; | |
1139 | } | |
1140 | ||
1141 | static PyObject *_wrap_wxSTANDARD_CURSOR_get() { | |
1142 | PyObject * pyobj; | |
1143 | char ptemp[128]; | |
1144 | ||
1145 | SWIG_MakePtr(ptemp, (char *) wxSTANDARD_CURSOR,"_wxCursor_p"); | |
1146 | pyobj = PyString_FromString(ptemp); | |
1147 | return pyobj; | |
1148 | } | |
1149 | ||
1150 | static int _wrap_wxHOURGLASS_CURSOR_set(PyObject *val) { | |
1151 | ||
1152 | PyErr_SetString(PyExc_TypeError,"Variable wxHOURGLASS_CURSOR is read-only."); | |
1153 | return 1; | |
1154 | } | |
1155 | ||
1156 | static PyObject *_wrap_wxHOURGLASS_CURSOR_get() { | |
1157 | PyObject * pyobj; | |
1158 | char ptemp[128]; | |
1159 | ||
1160 | SWIG_MakePtr(ptemp, (char *) wxHOURGLASS_CURSOR,"_wxCursor_p"); | |
1161 | pyobj = PyString_FromString(ptemp); | |
1162 | return pyobj; | |
1163 | } | |
1164 | ||
1165 | static int _wrap_wxCROSS_CURSOR_set(PyObject *val) { | |
1166 | ||
1167 | PyErr_SetString(PyExc_TypeError,"Variable wxCROSS_CURSOR is read-only."); | |
1168 | return 1; | |
1169 | } | |
1170 | ||
1171 | static PyObject *_wrap_wxCROSS_CURSOR_get() { | |
1172 | PyObject * pyobj; | |
1173 | char ptemp[128]; | |
1174 | ||
1175 | SWIG_MakePtr(ptemp, (char *) wxCROSS_CURSOR,"_wxCursor_p"); | |
1176 | pyobj = PyString_FromString(ptemp); | |
1177 | return pyobj; | |
1178 | } | |
1179 | ||
1180 | static int _wrap_wxNullBitmap_set(PyObject *val) { | |
1181 | ||
1182 | PyErr_SetString(PyExc_TypeError,"Variable wxNullBitmap is read-only."); | |
1183 | return 1; | |
1184 | } | |
1185 | ||
1186 | static PyObject *_wrap_wxNullBitmap_get() { | |
1187 | PyObject * pyobj; | |
1188 | char ptemp[128]; | |
1189 | ||
1190 | SWIG_MakePtr(ptemp,(char *) &wxNullBitmap,"_wxBitmap_p"); | |
1191 | pyobj = PyString_FromString(ptemp); | |
1192 | return pyobj; | |
1193 | } | |
1194 | ||
1195 | static int _wrap_wxNullIcon_set(PyObject *val) { | |
1196 | ||
1197 | PyErr_SetString(PyExc_TypeError,"Variable wxNullIcon is read-only."); | |
1198 | return 1; | |
1199 | } | |
1200 | ||
1201 | static PyObject *_wrap_wxNullIcon_get() { | |
1202 | PyObject * pyobj; | |
1203 | char ptemp[128]; | |
1204 | ||
1205 | SWIG_MakePtr(ptemp,(char *) &wxNullIcon,"_wxIcon_p"); | |
1206 | pyobj = PyString_FromString(ptemp); | |
1207 | return pyobj; | |
1208 | } | |
1209 | ||
1210 | static int _wrap_wxNullCursor_set(PyObject *val) { | |
1211 | ||
1212 | PyErr_SetString(PyExc_TypeError,"Variable wxNullCursor is read-only."); | |
1213 | return 1; | |
1214 | } | |
1215 | ||
1216 | static PyObject *_wrap_wxNullCursor_get() { | |
1217 | PyObject * pyobj; | |
1218 | char ptemp[128]; | |
1219 | ||
1220 | SWIG_MakePtr(ptemp,(char *) &wxNullCursor,"_wxCursor_p"); | |
1221 | pyobj = PyString_FromString(ptemp); | |
1222 | return pyobj; | |
1223 | } | |
1224 | ||
1225 | static int _wrap_wxNullPen_set(PyObject *val) { | |
1226 | ||
1227 | PyErr_SetString(PyExc_TypeError,"Variable wxNullPen is read-only."); | |
1228 | return 1; | |
1229 | } | |
1230 | ||
1231 | static PyObject *_wrap_wxNullPen_get() { | |
1232 | PyObject * pyobj; | |
1233 | char ptemp[128]; | |
1234 | ||
1235 | SWIG_MakePtr(ptemp,(char *) &wxNullPen,"_wxPen_p"); | |
1236 | pyobj = PyString_FromString(ptemp); | |
1237 | return pyobj; | |
1238 | } | |
1239 | ||
1240 | static int _wrap_wxNullBrush_set(PyObject *val) { | |
1241 | ||
1242 | PyErr_SetString(PyExc_TypeError,"Variable wxNullBrush is read-only."); | |
1243 | return 1; | |
1244 | } | |
1245 | ||
1246 | static PyObject *_wrap_wxNullBrush_get() { | |
1247 | PyObject * pyobj; | |
1248 | char ptemp[128]; | |
1249 | ||
1250 | SWIG_MakePtr(ptemp,(char *) &wxNullBrush,"_wxBrush_p"); | |
1251 | pyobj = PyString_FromString(ptemp); | |
1252 | return pyobj; | |
1253 | } | |
1254 | ||
1255 | static int _wrap_wxNullPalette_set(PyObject *val) { | |
1256 | ||
1257 | PyErr_SetString(PyExc_TypeError,"Variable wxNullPalette is read-only."); | |
1258 | return 1; | |
1259 | } | |
1260 | ||
1261 | static PyObject *_wrap_wxNullPalette_get() { | |
1262 | PyObject * pyobj; | |
1263 | char ptemp[128]; | |
1264 | ||
1265 | SWIG_MakePtr(ptemp,(char *) &wxNullPalette,"_wxPalette_p"); | |
1266 | pyobj = PyString_FromString(ptemp); | |
1267 | return pyobj; | |
1268 | } | |
1269 | ||
1270 | static int _wrap_wxNullFont_set(PyObject *val) { | |
1271 | ||
1272 | PyErr_SetString(PyExc_TypeError,"Variable wxNullFont is read-only."); | |
1273 | return 1; | |
1274 | } | |
1275 | ||
1276 | static PyObject *_wrap_wxNullFont_get() { | |
1277 | PyObject * pyobj; | |
1278 | char ptemp[128]; | |
1279 | ||
1280 | SWIG_MakePtr(ptemp,(char *) &wxNullFont,"_wxFont_p"); | |
1281 | pyobj = PyString_FromString(ptemp); | |
1282 | return pyobj; | |
1283 | } | |
1284 | ||
1285 | static int _wrap_wxNullColour_set(PyObject *val) { | |
1286 | ||
1287 | PyErr_SetString(PyExc_TypeError,"Variable wxNullColour is read-only."); | |
1288 | return 1; | |
1289 | } | |
1290 | ||
1291 | static PyObject *_wrap_wxNullColour_get() { | |
1292 | PyObject * pyobj; | |
1293 | char ptemp[128]; | |
1294 | ||
1295 | SWIG_MakePtr(ptemp,(char *) &wxNullColour,"_wxColour_p"); | |
1296 | pyobj = PyString_FromString(ptemp); | |
1297 | return pyobj; | |
1298 | } | |
1299 | ||
0569df0f RD |
1300 | static int _wrap_wxTheFontList_set(PyObject *val) { |
1301 | ||
1302 | PyErr_SetString(PyExc_TypeError,"Variable wxTheFontList is read-only."); | |
1303 | return 1; | |
1304 | } | |
1305 | ||
1306 | static PyObject *_wrap_wxTheFontList_get() { | |
1307 | PyObject * pyobj; | |
1308 | char ptemp[128]; | |
1309 | ||
1310 | SWIG_MakePtr(ptemp, (char *) wxTheFontList,"_wxFontList_p"); | |
1311 | pyobj = PyString_FromString(ptemp); | |
1312 | return pyobj; | |
1313 | } | |
1314 | ||
1315 | static int _wrap_wxThePenList_set(PyObject *val) { | |
1316 | ||
1317 | PyErr_SetString(PyExc_TypeError,"Variable wxThePenList is read-only."); | |
1318 | return 1; | |
1319 | } | |
1320 | ||
1321 | static PyObject *_wrap_wxThePenList_get() { | |
1322 | PyObject * pyobj; | |
1323 | char ptemp[128]; | |
1324 | ||
1325 | SWIG_MakePtr(ptemp, (char *) wxThePenList,"_wxPenList_p"); | |
1326 | pyobj = PyString_FromString(ptemp); | |
1327 | return pyobj; | |
1328 | } | |
1329 | ||
1330 | static int _wrap_wxTheBrushList_set(PyObject *val) { | |
1331 | ||
1332 | PyErr_SetString(PyExc_TypeError,"Variable wxTheBrushList is read-only."); | |
1333 | return 1; | |
1334 | } | |
1335 | ||
1336 | static PyObject *_wrap_wxTheBrushList_get() { | |
1337 | PyObject * pyobj; | |
1338 | char ptemp[128]; | |
1339 | ||
6ee2116b | 1340 | SWIG_MakePtr(ptemp, (char *) wxTheBrushList,"_wxBrushList_p"); |
0569df0f RD |
1341 | pyobj = PyString_FromString(ptemp); |
1342 | return pyobj; | |
1343 | } | |
1344 | ||
1345 | static int _wrap_wxTheColourDatabase_set(PyObject *val) { | |
1346 | ||
1347 | PyErr_SetString(PyExc_TypeError,"Variable wxTheColourDatabase is read-only."); | |
1348 | return 1; | |
1349 | } | |
1350 | ||
1351 | static PyObject *_wrap_wxTheColourDatabase_get() { | |
1352 | PyObject * pyobj; | |
1353 | char ptemp[128]; | |
1354 | ||
1355 | SWIG_MakePtr(ptemp, (char *) wxTheColourDatabase,"_wxColourDatabase_p"); | |
1356 | pyobj = PyString_FromString(ptemp); | |
1357 | return pyobj; | |
1358 | } | |
1359 | ||
9416aa89 RD |
1360 | static void *SwigwxGDIObjectTowxObject(void *ptr) { |
1361 | wxGDIObject *src; | |
1362 | wxObject *dest; | |
1363 | src = (wxGDIObject *) ptr; | |
1364 | dest = (wxObject *) src; | |
1365 | return (void *) dest; | |
1366 | } | |
1367 | ||
1368 | #define new_wxGDIObject() (new wxGDIObject()) | |
1369 | static PyObject *_wrap_new_wxGDIObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1370 | PyObject * _resultobj; | |
1371 | wxGDIObject * _result; | |
1372 | char *_kwnames[] = { NULL }; | |
1373 | char _ptemp[128]; | |
1374 | ||
1375 | self = self; | |
1376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxGDIObject",_kwnames)) | |
1377 | return NULL; | |
1378 | { | |
4268f798 | 1379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1380 | _result = (wxGDIObject *)new_wxGDIObject(); |
9416aa89 | 1381 | |
4268f798 | 1382 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1383 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
1384 | } if (_result) { |
1385 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGDIObject_p"); | |
1386 | _resultobj = Py_BuildValue("s",_ptemp); | |
1387 | } else { | |
1388 | Py_INCREF(Py_None); | |
1389 | _resultobj = Py_None; | |
1390 | } | |
1391 | return _resultobj; | |
1392 | } | |
1393 | ||
1394 | #define delete_wxGDIObject(_swigobj) (delete _swigobj) | |
1395 | static PyObject *_wrap_delete_wxGDIObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1396 | PyObject * _resultobj; | |
1397 | wxGDIObject * _arg0; | |
1398 | PyObject * _argo0 = 0; | |
1399 | char *_kwnames[] = { "self", NULL }; | |
1400 | ||
1401 | self = self; | |
1402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxGDIObject",_kwnames,&_argo0)) | |
1403 | return NULL; | |
1404 | if (_argo0) { | |
1405 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1406 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) { | |
1407 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxGDIObject. Expected _wxGDIObject_p."); | |
1408 | return NULL; | |
1409 | } | |
1410 | } | |
1411 | { | |
4268f798 | 1412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1413 | delete_wxGDIObject(_arg0); |
9416aa89 | 1414 | |
4268f798 | 1415 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1416 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
1417 | } Py_INCREF(Py_None); |
1418 | _resultobj = Py_None; | |
1419 | return _resultobj; | |
1420 | } | |
1421 | ||
1422 | #define wxGDIObject_GetVisible(_swigobj) (_swigobj->GetVisible()) | |
1423 | static PyObject *_wrap_wxGDIObject_GetVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1424 | PyObject * _resultobj; | |
1425 | bool _result; | |
1426 | wxGDIObject * _arg0; | |
1427 | PyObject * _argo0 = 0; | |
1428 | char *_kwnames[] = { "self", NULL }; | |
1429 | ||
1430 | self = self; | |
1431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGDIObject_GetVisible",_kwnames,&_argo0)) | |
1432 | return NULL; | |
1433 | if (_argo0) { | |
1434 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1435 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) { | |
1436 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGDIObject_GetVisible. Expected _wxGDIObject_p."); | |
1437 | return NULL; | |
1438 | } | |
1439 | } | |
1440 | { | |
4268f798 | 1441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1442 | _result = (bool )wxGDIObject_GetVisible(_arg0); |
9416aa89 | 1443 | |
4268f798 | 1444 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1445 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
1446 | } _resultobj = Py_BuildValue("i",_result); |
1447 | return _resultobj; | |
1448 | } | |
1449 | ||
1450 | #define wxGDIObject_SetVisible(_swigobj,_swigarg0) (_swigobj->SetVisible(_swigarg0)) | |
1451 | static PyObject *_wrap_wxGDIObject_SetVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1452 | PyObject * _resultobj; | |
1453 | wxGDIObject * _arg0; | |
1454 | bool _arg1; | |
1455 | PyObject * _argo0 = 0; | |
1456 | int tempbool1; | |
1457 | char *_kwnames[] = { "self","visible", NULL }; | |
1458 | ||
1459 | self = self; | |
1460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGDIObject_SetVisible",_kwnames,&_argo0,&tempbool1)) | |
1461 | return NULL; | |
1462 | if (_argo0) { | |
1463 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1464 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) { | |
1465 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGDIObject_SetVisible. Expected _wxGDIObject_p."); | |
1466 | return NULL; | |
1467 | } | |
1468 | } | |
1469 | _arg1 = (bool ) tempbool1; | |
1470 | { | |
4268f798 | 1471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1472 | wxGDIObject_SetVisible(_arg0,_arg1); |
9416aa89 | 1473 | |
4268f798 | 1474 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1475 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
1476 | } Py_INCREF(Py_None); |
1477 | _resultobj = Py_None; | |
1478 | return _resultobj; | |
1479 | } | |
1480 | ||
1481 | #define wxGDIObject_IsNull(_swigobj) (_swigobj->IsNull()) | |
1482 | static PyObject *_wrap_wxGDIObject_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1483 | PyObject * _resultobj; | |
1484 | bool _result; | |
1485 | wxGDIObject * _arg0; | |
1486 | PyObject * _argo0 = 0; | |
1487 | char *_kwnames[] = { "self", NULL }; | |
1488 | ||
1489 | self = self; | |
1490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGDIObject_IsNull",_kwnames,&_argo0)) | |
1491 | return NULL; | |
1492 | if (_argo0) { | |
1493 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1494 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) { | |
1495 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGDIObject_IsNull. Expected _wxGDIObject_p."); | |
1496 | return NULL; | |
1497 | } | |
1498 | } | |
1499 | { | |
4268f798 | 1500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1501 | _result = (bool )wxGDIObject_IsNull(_arg0); |
9416aa89 | 1502 | |
4268f798 | 1503 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1504 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
1505 | } _resultobj = Py_BuildValue("i",_result); |
1506 | return _resultobj; | |
1507 | } | |
1508 | ||
1509 | static void *SwigwxBitmapTowxGDIObject(void *ptr) { | |
1510 | wxBitmap *src; | |
1511 | wxGDIObject *dest; | |
1512 | src = (wxBitmap *) ptr; | |
1513 | dest = (wxGDIObject *) src; | |
1514 | return (void *) dest; | |
1515 | } | |
1516 | ||
1517 | static void *SwigwxBitmapTowxObject(void *ptr) { | |
1518 | wxBitmap *src; | |
1519 | wxObject *dest; | |
1520 | src = (wxBitmap *) ptr; | |
1521 | dest = (wxObject *) src; | |
1522 | return (void *) dest; | |
1523 | } | |
1524 | ||
6999b0d8 RD |
1525 | #define new_wxBitmap(_swigarg0,_swigarg1) (new wxBitmap(_swigarg0,_swigarg1)) |
1526 | static PyObject *_wrap_new_wxBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1527 | PyObject * _resultobj; |
6999b0d8 RD |
1528 | wxBitmap * _result; |
1529 | wxString * _arg0; | |
7d0180d4 | 1530 | wxBitmapType _arg1 = (wxBitmapType ) wxBITMAP_TYPE_ANY; |
6999b0d8 RD |
1531 | PyObject * _obj0 = 0; |
1532 | char *_kwnames[] = { "name","type", NULL }; | |
1533 | char _ptemp[128]; | |
8ab979d7 RD |
1534 | |
1535 | self = self; | |
b37c7e1d | 1536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:new_wxBitmap",_kwnames,&_obj0,&_arg1)) |
8ab979d7 | 1537 | return NULL; |
6999b0d8 | 1538 | { |
c8bc7bb8 RD |
1539 | _arg0 = wxString_in_helper(_obj0); |
1540 | if (_arg0 == NULL) | |
8ab979d7 | 1541 | return NULL; |
6999b0d8 | 1542 | } |
cf694132 | 1543 | { |
4268f798 | 1544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1545 | _result = (wxBitmap *)new_wxBitmap(*_arg0,_arg1); |
cf694132 | 1546 | |
4268f798 | 1547 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1548 | if (PyErr_Occurred()) return NULL; |
6999b0d8 RD |
1549 | } if (_result) { |
1550 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
1551 | _resultobj = Py_BuildValue("s",_ptemp); | |
1552 | } else { | |
1553 | Py_INCREF(Py_None); | |
1554 | _resultobj = Py_None; | |
1555 | } | |
1556 | { | |
1557 | if (_obj0) | |
1558 | delete _arg0; | |
1559 | } | |
8ab979d7 RD |
1560 | return _resultobj; |
1561 | } | |
1562 | ||
6999b0d8 RD |
1563 | #define delete_wxBitmap(_swigobj) (delete _swigobj) |
1564 | static PyObject *_wrap_delete_wxBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
1565 | PyObject * _resultobj; |
1566 | wxBitmap * _arg0; | |
1d99702e | 1567 | PyObject * _argo0 = 0; |
6999b0d8 | 1568 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1569 | |
1570 | self = self; | |
6999b0d8 | 1571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxBitmap",_kwnames,&_argo0)) |
8ab979d7 | 1572 | return NULL; |
1d99702e RD |
1573 | if (_argo0) { |
1574 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1575 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
6999b0d8 | 1576 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxBitmap. Expected _wxBitmap_p."); |
8ab979d7 RD |
1577 | return NULL; |
1578 | } | |
1579 | } | |
cf694132 | 1580 | { |
4268f798 | 1581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1582 | delete_wxBitmap(_arg0); |
cf694132 | 1583 | |
4268f798 | 1584 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1585 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1586 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1587 | _resultobj = Py_None; |
1588 | return _resultobj; | |
1589 | } | |
1590 | ||
6999b0d8 RD |
1591 | #define wxBitmap_GetPalette(_swigobj) (_swigobj->GetPalette()) |
1592 | static PyObject *_wrap_wxBitmap_GetPalette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1593 | PyObject * _resultobj; |
6999b0d8 | 1594 | wxPalette * _result; |
8ab979d7 | 1595 | wxBitmap * _arg0; |
1d99702e | 1596 | PyObject * _argo0 = 0; |
6999b0d8 RD |
1597 | char *_kwnames[] = { "self", NULL }; |
1598 | char _ptemp[128]; | |
8ab979d7 RD |
1599 | |
1600 | self = self; | |
6999b0d8 | 1601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetPalette",_kwnames,&_argo0)) |
8ab979d7 | 1602 | return NULL; |
1d99702e RD |
1603 | if (_argo0) { |
1604 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1605 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
6999b0d8 | 1606 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetPalette. Expected _wxBitmap_p."); |
8ab979d7 RD |
1607 | return NULL; |
1608 | } | |
1609 | } | |
cf694132 | 1610 | { |
4268f798 | 1611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1612 | _result = (wxPalette *)wxBitmap_GetPalette(_arg0); |
cf694132 | 1613 | |
4268f798 | 1614 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1615 | if (PyErr_Occurred()) return NULL; |
6999b0d8 RD |
1616 | } if (_result) { |
1617 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPalette_p"); | |
1618 | _resultobj = Py_BuildValue("s",_ptemp); | |
1619 | } else { | |
1620 | Py_INCREF(Py_None); | |
1621 | _resultobj = Py_None; | |
1622 | } | |
8ab979d7 RD |
1623 | return _resultobj; |
1624 | } | |
1625 | ||
6999b0d8 RD |
1626 | #define wxBitmap_GetMask(_swigobj) (_swigobj->GetMask()) |
1627 | static PyObject *_wrap_wxBitmap_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
1628 | PyObject * _resultobj; |
1629 | wxMask * _result; | |
1630 | wxBitmap * _arg0; | |
1d99702e | 1631 | PyObject * _argo0 = 0; |
6999b0d8 | 1632 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1633 | char _ptemp[128]; |
1634 | ||
1635 | self = self; | |
6999b0d8 | 1636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetMask",_kwnames,&_argo0)) |
8ab979d7 | 1637 | return NULL; |
1d99702e RD |
1638 | if (_argo0) { |
1639 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1640 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
6999b0d8 | 1641 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetMask. Expected _wxBitmap_p."); |
8ab979d7 RD |
1642 | return NULL; |
1643 | } | |
1644 | } | |
cf694132 | 1645 | { |
4268f798 | 1646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1647 | _result = (wxMask *)wxBitmap_GetMask(_arg0); |
cf694132 | 1648 | |
4268f798 | 1649 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1650 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
1651 | } if (_result) { |
1652 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p"); | |
1653 | _resultobj = Py_BuildValue("s",_ptemp); | |
1654 | } else { | |
1655 | Py_INCREF(Py_None); | |
1656 | _resultobj = Py_None; | |
1657 | } | |
8ab979d7 RD |
1658 | return _resultobj; |
1659 | } | |
1660 | ||
6999b0d8 RD |
1661 | #define wxBitmap_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1)) |
1662 | static PyObject *_wrap_wxBitmap_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1663 | PyObject * _resultobj; |
6999b0d8 RD |
1664 | bool _result; |
1665 | wxBitmap * _arg0; | |
1666 | wxString * _arg1; | |
7d0180d4 | 1667 | wxBitmapType _arg2 = (wxBitmapType ) wxBITMAP_TYPE_ANY; |
6999b0d8 RD |
1668 | PyObject * _argo0 = 0; |
1669 | PyObject * _obj1 = 0; | |
b37c7e1d | 1670 | char *_kwnames[] = { "self","name","type", NULL }; |
8ab979d7 RD |
1671 | |
1672 | self = self; | |
b37c7e1d | 1673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxBitmap_LoadFile",_kwnames,&_argo0,&_obj1,&_arg2)) |
6999b0d8 RD |
1674 | return NULL; |
1675 | if (_argo0) { | |
1676 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1677 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1678 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_LoadFile. Expected _wxBitmap_p."); | |
8ab979d7 | 1679 | return NULL; |
6999b0d8 RD |
1680 | } |
1681 | } | |
8ab979d7 | 1682 | { |
c8bc7bb8 RD |
1683 | _arg1 = wxString_in_helper(_obj1); |
1684 | if (_arg1 == NULL) | |
185d7c3e | 1685 | return NULL; |
8ab979d7 | 1686 | } |
cf694132 | 1687 | { |
4268f798 | 1688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1689 | _result = (bool )wxBitmap_LoadFile(_arg0,*_arg1,_arg2); |
cf694132 | 1690 | |
4268f798 | 1691 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1692 | if (PyErr_Occurred()) return NULL; |
6999b0d8 | 1693 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 | 1694 | { |
6999b0d8 RD |
1695 | if (_obj1) |
1696 | delete _arg1; | |
8ab979d7 RD |
1697 | } |
1698 | return _resultobj; | |
1699 | } | |
1700 | ||
6999b0d8 RD |
1701 | #define wxBitmap_SaveFile(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SaveFile(_swigarg0,_swigarg1,_swigarg2)) |
1702 | static PyObject *_wrap_wxBitmap_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1703 | PyObject * _resultobj; |
6999b0d8 RD |
1704 | bool _result; |
1705 | wxBitmap * _arg0; | |
1706 | wxString * _arg1; | |
b37c7e1d | 1707 | wxBitmapType _arg2; |
6999b0d8 | 1708 | wxPalette * _arg3 = (wxPalette *) NULL; |
1d99702e | 1709 | PyObject * _argo0 = 0; |
6999b0d8 RD |
1710 | PyObject * _obj1 = 0; |
1711 | PyObject * _argo3 = 0; | |
1712 | char *_kwnames[] = { "self","name","type","palette", NULL }; | |
8ab979d7 RD |
1713 | |
1714 | self = self; | |
6999b0d8 | 1715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|O:wxBitmap_SaveFile",_kwnames,&_argo0,&_obj1,&_arg2,&_argo3)) |
8ab979d7 | 1716 | return NULL; |
1d99702e RD |
1717 | if (_argo0) { |
1718 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6999b0d8 RD |
1719 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { |
1720 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SaveFile. Expected _wxBitmap_p."); | |
8ab979d7 RD |
1721 | return NULL; |
1722 | } | |
1723 | } | |
cf694132 | 1724 | { |
c8bc7bb8 RD |
1725 | _arg1 = wxString_in_helper(_obj1); |
1726 | if (_arg1 == NULL) | |
185d7c3e | 1727 | return NULL; |
6999b0d8 RD |
1728 | } |
1729 | if (_argo3) { | |
1730 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
1731 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxPalette_p")) { | |
1732 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxBitmap_SaveFile. Expected _wxPalette_p."); | |
8ab979d7 RD |
1733 | return NULL; |
1734 | } | |
1735 | } | |
cf694132 | 1736 | { |
4268f798 | 1737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1738 | _result = (bool )wxBitmap_SaveFile(_arg0,*_arg1,_arg2,_arg3); |
cf694132 | 1739 | |
4268f798 | 1740 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1741 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1742 | } _resultobj = Py_BuildValue("i",_result); |
6999b0d8 RD |
1743 | { |
1744 | if (_obj1) | |
1745 | delete _arg1; | |
1746 | } | |
8ab979d7 RD |
1747 | return _resultobj; |
1748 | } | |
1749 | ||
6999b0d8 RD |
1750 | #define wxBitmap_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0)) |
1751 | static PyObject *_wrap_wxBitmap_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1752 | PyObject * _resultobj; |
6999b0d8 RD |
1753 | wxBitmap * _arg0; |
1754 | wxMask * _arg1; | |
1d99702e | 1755 | PyObject * _argo0 = 0; |
6999b0d8 RD |
1756 | PyObject * _argo1 = 0; |
1757 | char *_kwnames[] = { "self","mask", NULL }; | |
8ab979d7 RD |
1758 | |
1759 | self = self; | |
6999b0d8 | 1760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_SetMask",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 1761 | return NULL; |
1d99702e RD |
1762 | if (_argo0) { |
1763 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6999b0d8 RD |
1764 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { |
1765 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetMask. Expected _wxBitmap_p."); | |
8ab979d7 RD |
1766 | return NULL; |
1767 | } | |
1768 | } | |
6999b0d8 RD |
1769 | if (_argo1) { |
1770 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1771 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMask_p")) { | |
1772 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_SetMask. Expected _wxMask_p."); | |
8ab979d7 RD |
1773 | return NULL; |
1774 | } | |
1775 | } | |
cf694132 | 1776 | { |
4268f798 | 1777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1778 | wxBitmap_SetMask(_arg0,_arg1); |
cf694132 | 1779 | |
4268f798 | 1780 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1781 | if (PyErr_Occurred()) return NULL; |
6999b0d8 RD |
1782 | } Py_INCREF(Py_None); |
1783 | _resultobj = Py_None; | |
8ab979d7 RD |
1784 | return _resultobj; |
1785 | } | |
1786 | ||
6999b0d8 RD |
1787 | #define wxBitmap_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0)) |
1788 | static PyObject *_wrap_wxBitmap_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1789 | PyObject * _resultobj; | |
1790 | wxBitmap * _arg0; | |
1791 | wxPalette * _arg1; | |
1d99702e | 1792 | PyObject * _argo0 = 0; |
6999b0d8 RD |
1793 | PyObject * _argo1 = 0; |
1794 | char *_kwnames[] = { "self","palette", NULL }; | |
8ab979d7 RD |
1795 | |
1796 | self = self; | |
6999b0d8 | 1797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_SetPalette",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 1798 | return NULL; |
1d99702e RD |
1799 | if (_argo0) { |
1800 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6999b0d8 RD |
1801 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { |
1802 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetPalette. Expected _wxBitmap_p."); | |
8ab979d7 RD |
1803 | return NULL; |
1804 | } | |
1805 | } | |
6999b0d8 | 1806 | if (_argo1) { |
7e50db3f | 1807 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPalette_p")) { |
6999b0d8 | 1808 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_SetPalette. Expected _wxPalette_p."); |
8ab979d7 | 1809 | return NULL; |
6999b0d8 | 1810 | } |
8ab979d7 | 1811 | } |
cf694132 | 1812 | { |
4268f798 | 1813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1814 | wxBitmap_SetPalette(_arg0,*_arg1); |
cf694132 | 1815 | |
4268f798 | 1816 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1817 | if (PyErr_Occurred()) return NULL; |
6999b0d8 RD |
1818 | } Py_INCREF(Py_None); |
1819 | _resultobj = Py_None; | |
8ab979d7 RD |
1820 | return _resultobj; |
1821 | } | |
1822 | ||
9b3d3bc4 RD |
1823 | #define wxBitmap_GetHandle(_swigobj) (_swigobj->GetHandle()) |
1824 | static PyObject *_wrap_wxBitmap_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1825 | PyObject * _resultobj; |
9b3d3bc4 | 1826 | long _result; |
6999b0d8 | 1827 | wxBitmap * _arg0; |
1d99702e | 1828 | PyObject * _argo0 = 0; |
9b3d3bc4 | 1829 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1830 | |
1831 | self = self; | |
9b3d3bc4 | 1832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetHandle",_kwnames,&_argo0)) |
8ab979d7 | 1833 | return NULL; |
1d99702e RD |
1834 | if (_argo0) { |
1835 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6999b0d8 | 1836 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { |
9b3d3bc4 | 1837 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetHandle. Expected _wxBitmap_p."); |
8ab979d7 RD |
1838 | return NULL; |
1839 | } | |
1840 | } | |
cf694132 | 1841 | { |
4268f798 | 1842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1843 | _result = (long )wxBitmap_GetHandle(_arg0); |
cf694132 | 1844 | |
4268f798 | 1845 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1846 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 | 1847 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
1848 | return _resultobj; |
1849 | } | |
1850 | ||
9b3d3bc4 RD |
1851 | #define wxBitmap_SetHandle(_swigobj,_swigarg0) (_swigobj->SetHandle(_swigarg0)) |
1852 | static PyObject *_wrap_wxBitmap_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1853 | PyObject * _resultobj; |
9b3d3bc4 | 1854 | wxBitmap * _arg0; |
6999b0d8 | 1855 | long _arg1; |
9b3d3bc4 RD |
1856 | PyObject * _argo0 = 0; |
1857 | char *_kwnames[] = { "self","handle", NULL }; | |
8ab979d7 RD |
1858 | |
1859 | self = self; | |
9b3d3bc4 | 1860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxBitmap_SetHandle",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1861 | return NULL; |
9b3d3bc4 RD |
1862 | if (_argo0) { |
1863 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1864 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1865 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetHandle. Expected _wxBitmap_p."); | |
8ab979d7 | 1866 | return NULL; |
9b3d3bc4 | 1867 | } |
8ab979d7 | 1868 | } |
9b3d3bc4 | 1869 | { |
4268f798 | 1870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1871 | wxBitmap_SetHandle(_arg0,_arg1); |
9b3d3bc4 | 1872 | |
4268f798 | 1873 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1874 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
1875 | } Py_INCREF(Py_None); |
1876 | _resultobj = Py_None; | |
1877 | return _resultobj; | |
6999b0d8 | 1878 | } |
9b3d3bc4 RD |
1879 | |
1880 | #define wxBitmap_Ok(_swigobj) (_swigobj->Ok()) | |
1881 | static PyObject *_wrap_wxBitmap_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1882 | PyObject * _resultobj; | |
1883 | bool _result; | |
1884 | wxBitmap * _arg0; | |
1885 | PyObject * _argo0 = 0; | |
1886 | char *_kwnames[] = { "self", NULL }; | |
1887 | ||
1888 | self = self; | |
1889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_Ok",_kwnames,&_argo0)) | |
1890 | return NULL; | |
1891 | if (_argo0) { | |
1892 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1893 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1894 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_Ok. Expected _wxBitmap_p."); | |
1895 | return NULL; | |
1896 | } | |
1897 | } | |
cf694132 | 1898 | { |
4268f798 | 1899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1900 | _result = (bool )wxBitmap_Ok(_arg0); |
cf694132 | 1901 | |
4268f798 | 1902 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1903 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
1904 | } _resultobj = Py_BuildValue("i",_result); |
1905 | return _resultobj; | |
1906 | } | |
1907 | ||
1908 | #define wxBitmap_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
1909 | static PyObject *_wrap_wxBitmap_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1910 | PyObject * _resultobj; | |
1911 | int _result; | |
1912 | wxBitmap * _arg0; | |
1913 | PyObject * _argo0 = 0; | |
1914 | char *_kwnames[] = { "self", NULL }; | |
1915 | ||
1916 | self = self; | |
1917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetWidth",_kwnames,&_argo0)) | |
1918 | return NULL; | |
1919 | if (_argo0) { | |
1920 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1921 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1922 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetWidth. Expected _wxBitmap_p."); | |
1923 | return NULL; | |
1924 | } | |
6999b0d8 RD |
1925 | } |
1926 | { | |
4268f798 | 1927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1928 | _result = (int )wxBitmap_GetWidth(_arg0); |
9b3d3bc4 | 1929 | |
4268f798 | 1930 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1931 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
1932 | } _resultobj = Py_BuildValue("i",_result); |
1933 | return _resultobj; | |
6999b0d8 | 1934 | } |
9b3d3bc4 RD |
1935 | |
1936 | #define wxBitmap_GetHeight(_swigobj) (_swigobj->GetHeight()) | |
1937 | static PyObject *_wrap_wxBitmap_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1938 | PyObject * _resultobj; | |
1939 | int _result; | |
1940 | wxBitmap * _arg0; | |
1941 | PyObject * _argo0 = 0; | |
1942 | char *_kwnames[] = { "self", NULL }; | |
1943 | ||
1944 | self = self; | |
1945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetHeight",_kwnames,&_argo0)) | |
1946 | return NULL; | |
1947 | if (_argo0) { | |
1948 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1949 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
1950 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetHeight. Expected _wxBitmap_p."); | |
1951 | return NULL; | |
1952 | } | |
1953 | } | |
1954 | { | |
4268f798 | 1955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1956 | _result = (int )wxBitmap_GetHeight(_arg0); |
9b3d3bc4 | 1957 | |
4268f798 | 1958 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1959 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 | 1960 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
1961 | return _resultobj; |
1962 | } | |
1963 | ||
9b3d3bc4 RD |
1964 | #define wxBitmap_GetDepth(_swigobj) (_swigobj->GetDepth()) |
1965 | static PyObject *_wrap_wxBitmap_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1966 | PyObject * _resultobj; |
9b3d3bc4 RD |
1967 | int _result; |
1968 | wxBitmap * _arg0; | |
1d99702e | 1969 | PyObject * _argo0 = 0; |
6999b0d8 | 1970 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1971 | |
1972 | self = self; | |
9b3d3bc4 | 1973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetDepth",_kwnames,&_argo0)) |
8ab979d7 | 1974 | return NULL; |
1d99702e RD |
1975 | if (_argo0) { |
1976 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9b3d3bc4 RD |
1977 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { |
1978 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetDepth. Expected _wxBitmap_p."); | |
8ab979d7 RD |
1979 | return NULL; |
1980 | } | |
1981 | } | |
cf694132 | 1982 | { |
4268f798 | 1983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1984 | _result = (int )wxBitmap_GetDepth(_arg0); |
9b3d3bc4 | 1985 | |
4268f798 | 1986 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1987 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
1988 | } _resultobj = Py_BuildValue("i",_result); |
1989 | return _resultobj; | |
1990 | } | |
1991 | ||
1992 | #define wxBitmap_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0)) | |
1993 | static PyObject *_wrap_wxBitmap_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1994 | PyObject * _resultobj; | |
1995 | wxBitmap * _arg0; | |
1996 | int _arg1; | |
1997 | PyObject * _argo0 = 0; | |
1998 | char *_kwnames[] = { "self","w", NULL }; | |
1999 | ||
2000 | self = self; | |
2001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetWidth",_kwnames,&_argo0,&_arg1)) | |
2002 | return NULL; | |
2003 | if (_argo0) { | |
2004 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2005 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
2006 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetWidth. Expected _wxBitmap_p."); | |
2007 | return NULL; | |
2008 | } | |
2009 | } | |
2010 | { | |
4268f798 | 2011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2012 | wxBitmap_SetWidth(_arg0,_arg1); |
cf694132 | 2013 | |
4268f798 | 2014 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2015 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2016 | } Py_INCREF(Py_None); |
8ab979d7 RD |
2017 | _resultobj = Py_None; |
2018 | return _resultobj; | |
2019 | } | |
2020 | ||
9b3d3bc4 RD |
2021 | #define wxBitmap_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0)) |
2022 | static PyObject *_wrap_wxBitmap_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2023 | PyObject * _resultobj; |
9b3d3bc4 RD |
2024 | wxBitmap * _arg0; |
2025 | int _arg1; | |
1d99702e | 2026 | PyObject * _argo0 = 0; |
9b3d3bc4 | 2027 | char *_kwnames[] = { "self","h", NULL }; |
8ab979d7 RD |
2028 | |
2029 | self = self; | |
9b3d3bc4 | 2030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetHeight",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 2031 | return NULL; |
1d99702e RD |
2032 | if (_argo0) { |
2033 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9b3d3bc4 RD |
2034 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { |
2035 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetHeight. Expected _wxBitmap_p."); | |
8ab979d7 RD |
2036 | return NULL; |
2037 | } | |
2038 | } | |
6999b0d8 | 2039 | { |
4268f798 | 2040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2041 | wxBitmap_SetHeight(_arg0,_arg1); |
9b3d3bc4 | 2042 | |
4268f798 | 2043 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2044 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2045 | } Py_INCREF(Py_None); |
2046 | _resultobj = Py_None; | |
2047 | return _resultobj; | |
2048 | } | |
2049 | ||
2050 | #define wxBitmap_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0)) | |
2051 | static PyObject *_wrap_wxBitmap_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2052 | PyObject * _resultobj; | |
2053 | wxBitmap * _arg0; | |
2054 | int _arg1; | |
2055 | PyObject * _argo0 = 0; | |
2056 | char *_kwnames[] = { "self","d", NULL }; | |
2057 | ||
2058 | self = self; | |
2059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetDepth",_kwnames,&_argo0,&_arg1)) | |
2060 | return NULL; | |
2061 | if (_argo0) { | |
2062 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2063 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
2064 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetDepth. Expected _wxBitmap_p."); | |
6999b0d8 | 2065 | return NULL; |
9b3d3bc4 | 2066 | } |
6999b0d8 | 2067 | } |
cf694132 | 2068 | { |
4268f798 | 2069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2070 | wxBitmap_SetDepth(_arg0,_arg1); |
cf694132 | 2071 | |
4268f798 | 2072 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2073 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2074 | } Py_INCREF(Py_None); |
2075 | _resultobj = Py_None; | |
2076 | return _resultobj; | |
2077 | } | |
2078 | ||
2079 | #define wxBitmap_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0)) | |
2080 | static PyObject *_wrap_wxBitmap_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2081 | PyObject * _resultobj; | |
2082 | wxBitmap * _arg0; | |
2083 | wxSize * _arg1; | |
2084 | PyObject * _argo0 = 0; | |
2085 | wxSize temp; | |
2086 | PyObject * _obj1 = 0; | |
2087 | char *_kwnames[] = { "self","size", NULL }; | |
2088 | ||
2089 | self = self; | |
2090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_SetSize",_kwnames,&_argo0,&_obj1)) | |
2091 | return NULL; | |
2092 | if (_argo0) { | |
2093 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2094 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
2095 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetSize. Expected _wxBitmap_p."); | |
2096 | return NULL; | |
2097 | } | |
2098 | } | |
6999b0d8 | 2099 | { |
9b3d3bc4 RD |
2100 | _arg1 = &temp; |
2101 | if (! wxSize_helper(_obj1, &_arg1)) | |
2102 | return NULL; | |
6999b0d8 | 2103 | } |
9b3d3bc4 | 2104 | { |
4268f798 | 2105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2106 | wxBitmap_SetSize(_arg0,*_arg1); |
9b3d3bc4 | 2107 | |
4268f798 | 2108 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2109 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2110 | } Py_INCREF(Py_None); |
2111 | _resultobj = Py_None; | |
8ab979d7 RD |
2112 | return _resultobj; |
2113 | } | |
2114 | ||
f6bcfd97 BP |
2115 | #define wxBitmap_GetSubBitmap(_swigobj,_swigarg0) (_swigobj->GetSubBitmap(_swigarg0)) |
2116 | static PyObject *_wrap_wxBitmap_GetSubBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2117 | PyObject * _resultobj; | |
2118 | wxBitmap * _result; | |
2119 | wxBitmap * _arg0; | |
2120 | wxRect * _arg1; | |
2121 | PyObject * _argo0 = 0; | |
2122 | wxRect temp; | |
2123 | PyObject * _obj1 = 0; | |
2124 | char *_kwnames[] = { "self","rect", NULL }; | |
2125 | char _ptemp[128]; | |
2126 | ||
2127 | self = self; | |
2128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_GetSubBitmap",_kwnames,&_argo0,&_obj1)) | |
2129 | return NULL; | |
2130 | if (_argo0) { | |
2131 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2132 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
2133 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetSubBitmap. Expected _wxBitmap_p."); | |
2134 | return NULL; | |
2135 | } | |
2136 | } | |
2137 | { | |
2138 | _arg1 = &temp; | |
2139 | if (! wxRect_helper(_obj1, &_arg1)) | |
2140 | return NULL; | |
2141 | } | |
2142 | { | |
4268f798 | 2143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2144 | _result = new wxBitmap (wxBitmap_GetSubBitmap(_arg0,*_arg1)); |
f6bcfd97 | 2145 | |
4268f798 | 2146 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2147 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2148 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); |
2149 | _resultobj = Py_BuildValue("s",_ptemp); | |
2150 | return _resultobj; | |
2151 | } | |
2152 | ||
2153 | #define wxBitmap_CopyFromIcon(_swigobj,_swigarg0) (_swigobj->CopyFromIcon(_swigarg0)) | |
2154 | static PyObject *_wrap_wxBitmap_CopyFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2155 | PyObject * _resultobj; | |
2156 | bool _result; | |
2157 | wxBitmap * _arg0; | |
2158 | wxIcon * _arg1; | |
2159 | PyObject * _argo0 = 0; | |
2160 | PyObject * _argo1 = 0; | |
2161 | char *_kwnames[] = { "self","icon", NULL }; | |
2162 | ||
2163 | self = self; | |
2164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_CopyFromIcon",_kwnames,&_argo0,&_argo1)) | |
2165 | return NULL; | |
2166 | if (_argo0) { | |
2167 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2168 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
2169 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_CopyFromIcon. Expected _wxBitmap_p."); | |
2170 | return NULL; | |
2171 | } | |
2172 | } | |
2173 | if (_argo1) { | |
7e50db3f | 2174 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) { |
f6bcfd97 BP |
2175 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_CopyFromIcon. Expected _wxIcon_p."); |
2176 | return NULL; | |
2177 | } | |
2178 | } | |
2179 | { | |
4268f798 | 2180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2181 | _result = (bool )wxBitmap_CopyFromIcon(_arg0,*_arg1); |
f6bcfd97 | 2182 | |
4268f798 | 2183 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2184 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2185 | } _resultobj = Py_BuildValue("i",_result); |
2186 | return _resultobj; | |
2187 | } | |
2188 | ||
2189 | #define wxBitmap_CopyFromCursor(_swigobj,_swigarg0) (_swigobj->CopyFromCursor(_swigarg0)) | |
2190 | static PyObject *_wrap_wxBitmap_CopyFromCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2191 | PyObject * _resultobj; | |
2192 | bool _result; | |
2193 | wxBitmap * _arg0; | |
2194 | wxCursor * _arg1; | |
2195 | PyObject * _argo0 = 0; | |
2196 | PyObject * _argo1 = 0; | |
2197 | char *_kwnames[] = { "self","cursor", NULL }; | |
2198 | ||
2199 | self = self; | |
2200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_CopyFromCursor",_kwnames,&_argo0,&_argo1)) | |
2201 | return NULL; | |
2202 | if (_argo0) { | |
2203 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2204 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
2205 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_CopyFromCursor. Expected _wxBitmap_p."); | |
2206 | return NULL; | |
2207 | } | |
2208 | } | |
2209 | if (_argo1) { | |
7e50db3f | 2210 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) { |
f6bcfd97 BP |
2211 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_CopyFromCursor. Expected _wxCursor_p."); |
2212 | return NULL; | |
2213 | } | |
2214 | } | |
2215 | { | |
4268f798 | 2216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2217 | _result = (bool )wxBitmap_CopyFromCursor(_arg0,*_arg1); |
f6bcfd97 | 2218 | |
4268f798 | 2219 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2220 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2221 | } _resultobj = Py_BuildValue("i",_result); |
2222 | return _resultobj; | |
2223 | } | |
2224 | ||
2225 | #define wxBitmap_GetQuality(_swigobj) (_swigobj->GetQuality()) | |
2226 | static PyObject *_wrap_wxBitmap_GetQuality(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2227 | PyObject * _resultobj; | |
2228 | int _result; | |
2229 | wxBitmap * _arg0; | |
2230 | PyObject * _argo0 = 0; | |
2231 | char *_kwnames[] = { "self", NULL }; | |
2232 | ||
2233 | self = self; | |
2234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetQuality",_kwnames,&_argo0)) | |
2235 | return NULL; | |
2236 | if (_argo0) { | |
2237 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2238 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
2239 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetQuality. Expected _wxBitmap_p."); | |
2240 | return NULL; | |
2241 | } | |
2242 | } | |
2243 | { | |
4268f798 | 2244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2245 | _result = (int )wxBitmap_GetQuality(_arg0); |
f6bcfd97 | 2246 | |
4268f798 | 2247 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2248 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2249 | } _resultobj = Py_BuildValue("i",_result); |
2250 | return _resultobj; | |
2251 | } | |
2252 | ||
2253 | #define wxBitmap_SetQuality(_swigobj,_swigarg0) (_swigobj->SetQuality(_swigarg0)) | |
2254 | static PyObject *_wrap_wxBitmap_SetQuality(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2255 | PyObject * _resultobj; | |
2256 | wxBitmap * _arg0; | |
2257 | int _arg1; | |
2258 | PyObject * _argo0 = 0; | |
2259 | char *_kwnames[] = { "self","q", NULL }; | |
2260 | ||
2261 | self = self; | |
2262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetQuality",_kwnames,&_argo0,&_arg1)) | |
2263 | return NULL; | |
2264 | if (_argo0) { | |
2265 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2266 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
2267 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetQuality. Expected _wxBitmap_p."); | |
2268 | return NULL; | |
2269 | } | |
2270 | } | |
2271 | { | |
4268f798 | 2272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2273 | wxBitmap_SetQuality(_arg0,_arg1); |
f6bcfd97 | 2274 | |
4268f798 | 2275 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2276 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2277 | } Py_INCREF(Py_None); |
2278 | _resultobj = Py_None; | |
2279 | return _resultobj; | |
2280 | } | |
2281 | ||
9416aa89 RD |
2282 | static void *SwigwxMaskTowxObject(void *ptr) { |
2283 | wxMask *src; | |
2284 | wxObject *dest; | |
2285 | src = (wxMask *) ptr; | |
2286 | dest = (wxObject *) src; | |
2287 | return (void *) dest; | |
2288 | } | |
2289 | ||
9b3d3bc4 RD |
2290 | #define new_wxMask(_swigarg0) (new wxMask(_swigarg0)) |
2291 | static PyObject *_wrap_new_wxMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2292 | PyObject * _resultobj; | |
2293 | wxMask * _result; | |
2294 | wxBitmap * _arg0; | |
2295 | PyObject * _argo0 = 0; | |
2296 | char *_kwnames[] = { "bitmap", NULL }; | |
2297 | char _ptemp[128]; | |
2298 | ||
2299 | self = self; | |
2300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxMask",_kwnames,&_argo0)) | |
2301 | return NULL; | |
2302 | if (_argo0) { | |
7e50db3f | 2303 | if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { |
9b3d3bc4 RD |
2304 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMask. Expected _wxBitmap_p."); |
2305 | return NULL; | |
2306 | } | |
2307 | } | |
2308 | { | |
4268f798 | 2309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2310 | _result = (wxMask *)new_wxMask(*_arg0); |
9b3d3bc4 | 2311 | |
4268f798 | 2312 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2313 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2314 | } if (_result) { |
2315 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p"); | |
2316 | _resultobj = Py_BuildValue("s",_ptemp); | |
2317 | } else { | |
2318 | Py_INCREF(Py_None); | |
2319 | _resultobj = Py_None; | |
2320 | } | |
2321 | return _resultobj; | |
8ab979d7 RD |
2322 | } |
2323 | ||
96bfd053 RD |
2324 | static void wxMask_Destroy(wxMask *self) { delete self; } |
2325 | static PyObject *_wrap_wxMask_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2326 | PyObject * _resultobj; | |
2327 | wxMask * _arg0; | |
2328 | PyObject * _argo0 = 0; | |
2329 | char *_kwnames[] = { "self", NULL }; | |
2330 | ||
2331 | self = self; | |
2332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMask_Destroy",_kwnames,&_argo0)) | |
2333 | return NULL; | |
2334 | if (_argo0) { | |
2335 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2336 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMask_p")) { | |
2337 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMask_Destroy. Expected _wxMask_p."); | |
2338 | return NULL; | |
2339 | } | |
2340 | } | |
2341 | { | |
4268f798 | 2342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2343 | wxMask_Destroy(_arg0); |
96bfd053 | 2344 | |
4268f798 | 2345 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2346 | if (PyErr_Occurred()) return NULL; |
96bfd053 RD |
2347 | } Py_INCREF(Py_None); |
2348 | _resultobj = Py_None; | |
2349 | return _resultobj; | |
2350 | } | |
2351 | ||
9416aa89 RD |
2352 | static void *SwigwxIconTowxGDIObject(void *ptr) { |
2353 | wxIcon *src; | |
2354 | wxGDIObject *dest; | |
2355 | src = (wxIcon *) ptr; | |
2356 | dest = (wxGDIObject *) src; | |
2357 | return (void *) dest; | |
2358 | } | |
2359 | ||
2360 | static void *SwigwxIconTowxObject(void *ptr) { | |
2361 | wxIcon *src; | |
2362 | wxObject *dest; | |
2363 | src = (wxIcon *) ptr; | |
2364 | dest = (wxObject *) src; | |
2365 | return (void *) dest; | |
2366 | } | |
2367 | ||
9b3d3bc4 RD |
2368 | #define new_wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
2369 | static PyObject *_wrap_new_wxIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2370 | PyObject * _resultobj; |
9b3d3bc4 | 2371 | wxIcon * _result; |
8ab979d7 RD |
2372 | wxString * _arg0; |
2373 | long _arg1; | |
9b3d3bc4 RD |
2374 | int _arg2 = (int ) -1; |
2375 | int _arg3 = (int ) -1; | |
8ab979d7 | 2376 | PyObject * _obj0 = 0; |
9b3d3bc4 | 2377 | char *_kwnames[] = { "name","flags","desiredWidth","desiredHeight", NULL }; |
8ab979d7 RD |
2378 | char _ptemp[128]; |
2379 | ||
2380 | self = self; | |
9b3d3bc4 | 2381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|ii:new_wxIcon",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3)) |
8ab979d7 RD |
2382 | return NULL; |
2383 | { | |
c8bc7bb8 RD |
2384 | _arg0 = wxString_in_helper(_obj0); |
2385 | if (_arg0 == NULL) | |
185d7c3e | 2386 | return NULL; |
8ab979d7 | 2387 | } |
cf694132 | 2388 | { |
4268f798 | 2389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2390 | _result = (wxIcon *)new_wxIcon(*_arg0,_arg1,_arg2,_arg3); |
cf694132 | 2391 | |
4268f798 | 2392 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2393 | if (PyErr_Occurred()) return NULL; |
1d99702e | 2394 | } if (_result) { |
9b3d3bc4 | 2395 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p"); |
1d99702e RD |
2396 | _resultobj = Py_BuildValue("s",_ptemp); |
2397 | } else { | |
2398 | Py_INCREF(Py_None); | |
2399 | _resultobj = Py_None; | |
2400 | } | |
8ab979d7 RD |
2401 | { |
2402 | if (_obj0) | |
2403 | delete _arg0; | |
2404 | } | |
2405 | return _resultobj; | |
2406 | } | |
2407 | ||
9b3d3bc4 RD |
2408 | #define delete_wxIcon(_swigobj) (delete _swigobj) |
2409 | static PyObject *_wrap_delete_wxIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2410 | PyObject * _resultobj; |
9b3d3bc4 | 2411 | wxIcon * _arg0; |
1d99702e | 2412 | PyObject * _argo0 = 0; |
1afc06c2 | 2413 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2414 | |
2415 | self = self; | |
9b3d3bc4 | 2416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxIcon",_kwnames,&_argo0)) |
8ab979d7 | 2417 | return NULL; |
1d99702e RD |
2418 | if (_argo0) { |
2419 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9b3d3bc4 RD |
2420 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { |
2421 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxIcon. Expected _wxIcon_p."); | |
8ab979d7 RD |
2422 | return NULL; |
2423 | } | |
2424 | } | |
cf694132 | 2425 | { |
4268f798 | 2426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2427 | delete_wxIcon(_arg0); |
9b3d3bc4 | 2428 | |
4268f798 | 2429 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2430 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2431 | } Py_INCREF(Py_None); |
2432 | _resultobj = Py_None; | |
2433 | return _resultobj; | |
2434 | } | |
2435 | ||
2436 | #define wxIcon_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1)) | |
2437 | static PyObject *_wrap_wxIcon_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2438 | PyObject * _resultobj; | |
2439 | bool _result; | |
2440 | wxIcon * _arg0; | |
2441 | wxString * _arg1; | |
2442 | long _arg2; | |
2443 | PyObject * _argo0 = 0; | |
2444 | PyObject * _obj1 = 0; | |
2445 | char *_kwnames[] = { "self","name","flags", NULL }; | |
2446 | ||
2447 | self = self; | |
2448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOl:wxIcon_LoadFile",_kwnames,&_argo0,&_obj1,&_arg2)) | |
2449 | return NULL; | |
2450 | if (_argo0) { | |
2451 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2452 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2453 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_LoadFile. Expected _wxIcon_p."); | |
2454 | return NULL; | |
2455 | } | |
2456 | } | |
2457 | { | |
c8bc7bb8 RD |
2458 | _arg1 = wxString_in_helper(_obj1); |
2459 | if (_arg1 == NULL) | |
185d7c3e | 2460 | return NULL; |
9b3d3bc4 RD |
2461 | } |
2462 | { | |
4268f798 | 2463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2464 | _result = (bool )wxIcon_LoadFile(_arg0,*_arg1,_arg2); |
9b3d3bc4 | 2465 | |
4268f798 | 2466 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2467 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2468 | } _resultobj = Py_BuildValue("i",_result); |
2469 | { | |
2470 | if (_obj1) | |
2471 | delete _arg1; | |
2472 | } | |
2473 | return _resultobj; | |
2474 | } | |
2475 | ||
2476 | #define wxIcon_GetHandle(_swigobj) (_swigobj->GetHandle()) | |
2477 | static PyObject *_wrap_wxIcon_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2478 | PyObject * _resultobj; | |
2479 | long _result; | |
2480 | wxIcon * _arg0; | |
2481 | PyObject * _argo0 = 0; | |
2482 | char *_kwnames[] = { "self", NULL }; | |
2483 | ||
2484 | self = self; | |
2485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetHandle",_kwnames,&_argo0)) | |
2486 | return NULL; | |
2487 | if (_argo0) { | |
2488 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2489 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2490 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetHandle. Expected _wxIcon_p."); | |
2491 | return NULL; | |
2492 | } | |
2493 | } | |
2494 | { | |
4268f798 | 2495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2496 | _result = (long )wxIcon_GetHandle(_arg0); |
9b3d3bc4 | 2497 | |
4268f798 | 2498 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2499 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2500 | } _resultobj = Py_BuildValue("l",_result); |
2501 | return _resultobj; | |
2502 | } | |
2503 | ||
2504 | #define wxIcon_SetHandle(_swigobj,_swigarg0) (_swigobj->SetHandle(_swigarg0)) | |
2505 | static PyObject *_wrap_wxIcon_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2506 | PyObject * _resultobj; | |
2507 | wxIcon * _arg0; | |
2508 | long _arg1; | |
2509 | PyObject * _argo0 = 0; | |
2510 | char *_kwnames[] = { "self","handle", NULL }; | |
2511 | ||
2512 | self = self; | |
2513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxIcon_SetHandle",_kwnames,&_argo0,&_arg1)) | |
2514 | return NULL; | |
2515 | if (_argo0) { | |
2516 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2517 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2518 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetHandle. Expected _wxIcon_p."); | |
2519 | return NULL; | |
2520 | } | |
2521 | } | |
2522 | { | |
4268f798 | 2523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2524 | wxIcon_SetHandle(_arg0,_arg1); |
9b3d3bc4 | 2525 | |
4268f798 | 2526 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2527 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2528 | } Py_INCREF(Py_None); |
2529 | _resultobj = Py_None; | |
2530 | return _resultobj; | |
2531 | } | |
2532 | ||
2533 | #define wxIcon_Ok(_swigobj) (_swigobj->Ok()) | |
2534 | static PyObject *_wrap_wxIcon_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2535 | PyObject * _resultobj; | |
2536 | bool _result; | |
2537 | wxIcon * _arg0; | |
2538 | PyObject * _argo0 = 0; | |
2539 | char *_kwnames[] = { "self", NULL }; | |
2540 | ||
2541 | self = self; | |
2542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_Ok",_kwnames,&_argo0)) | |
2543 | return NULL; | |
2544 | if (_argo0) { | |
2545 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2546 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2547 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_Ok. Expected _wxIcon_p."); | |
2548 | return NULL; | |
2549 | } | |
2550 | } | |
2551 | { | |
4268f798 | 2552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2553 | _result = (bool )wxIcon_Ok(_arg0); |
9b3d3bc4 | 2554 | |
4268f798 | 2555 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2556 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2557 | } _resultobj = Py_BuildValue("i",_result); |
2558 | return _resultobj; | |
2559 | } | |
2560 | ||
2561 | #define wxIcon_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
2562 | static PyObject *_wrap_wxIcon_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2563 | PyObject * _resultobj; | |
2564 | int _result; | |
2565 | wxIcon * _arg0; | |
2566 | PyObject * _argo0 = 0; | |
2567 | char *_kwnames[] = { "self", NULL }; | |
2568 | ||
2569 | self = self; | |
2570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetWidth",_kwnames,&_argo0)) | |
2571 | return NULL; | |
2572 | if (_argo0) { | |
2573 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2574 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2575 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetWidth. Expected _wxIcon_p."); | |
2576 | return NULL; | |
2577 | } | |
2578 | } | |
2579 | { | |
4268f798 | 2580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2581 | _result = (int )wxIcon_GetWidth(_arg0); |
9b3d3bc4 | 2582 | |
4268f798 | 2583 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2584 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2585 | } _resultobj = Py_BuildValue("i",_result); |
2586 | return _resultobj; | |
2587 | } | |
2588 | ||
2589 | #define wxIcon_GetHeight(_swigobj) (_swigobj->GetHeight()) | |
2590 | static PyObject *_wrap_wxIcon_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2591 | PyObject * _resultobj; | |
2592 | int _result; | |
2593 | wxIcon * _arg0; | |
2594 | PyObject * _argo0 = 0; | |
2595 | char *_kwnames[] = { "self", NULL }; | |
2596 | ||
2597 | self = self; | |
2598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetHeight",_kwnames,&_argo0)) | |
2599 | return NULL; | |
2600 | if (_argo0) { | |
2601 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2602 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2603 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetHeight. Expected _wxIcon_p."); | |
2604 | return NULL; | |
2605 | } | |
2606 | } | |
2607 | { | |
4268f798 | 2608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2609 | _result = (int )wxIcon_GetHeight(_arg0); |
9b3d3bc4 | 2610 | |
4268f798 | 2611 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2612 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2613 | } _resultobj = Py_BuildValue("i",_result); |
2614 | return _resultobj; | |
2615 | } | |
2616 | ||
2617 | #define wxIcon_GetDepth(_swigobj) (_swigobj->GetDepth()) | |
2618 | static PyObject *_wrap_wxIcon_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2619 | PyObject * _resultobj; | |
2620 | int _result; | |
2621 | wxIcon * _arg0; | |
2622 | PyObject * _argo0 = 0; | |
2623 | char *_kwnames[] = { "self", NULL }; | |
2624 | ||
2625 | self = self; | |
2626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetDepth",_kwnames,&_argo0)) | |
2627 | return NULL; | |
2628 | if (_argo0) { | |
2629 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2630 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2631 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetDepth. Expected _wxIcon_p."); | |
2632 | return NULL; | |
2633 | } | |
2634 | } | |
2635 | { | |
4268f798 | 2636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2637 | _result = (int )wxIcon_GetDepth(_arg0); |
9b3d3bc4 | 2638 | |
4268f798 | 2639 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2640 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2641 | } _resultobj = Py_BuildValue("i",_result); |
2642 | return _resultobj; | |
2643 | } | |
2644 | ||
2645 | #define wxIcon_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0)) | |
2646 | static PyObject *_wrap_wxIcon_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2647 | PyObject * _resultobj; | |
2648 | wxIcon * _arg0; | |
2649 | int _arg1; | |
2650 | PyObject * _argo0 = 0; | |
2651 | char *_kwnames[] = { "self","w", NULL }; | |
2652 | ||
2653 | self = self; | |
2654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetWidth",_kwnames,&_argo0,&_arg1)) | |
2655 | return NULL; | |
2656 | if (_argo0) { | |
2657 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2658 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2659 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetWidth. Expected _wxIcon_p."); | |
2660 | return NULL; | |
2661 | } | |
2662 | } | |
2663 | { | |
4268f798 | 2664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2665 | wxIcon_SetWidth(_arg0,_arg1); |
9b3d3bc4 | 2666 | |
4268f798 | 2667 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2668 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2669 | } Py_INCREF(Py_None); |
2670 | _resultobj = Py_None; | |
2671 | return _resultobj; | |
2672 | } | |
2673 | ||
2674 | #define wxIcon_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0)) | |
2675 | static PyObject *_wrap_wxIcon_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2676 | PyObject * _resultobj; | |
2677 | wxIcon * _arg0; | |
2678 | int _arg1; | |
2679 | PyObject * _argo0 = 0; | |
2680 | char *_kwnames[] = { "self","h", NULL }; | |
2681 | ||
2682 | self = self; | |
2683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetHeight",_kwnames,&_argo0,&_arg1)) | |
2684 | return NULL; | |
2685 | if (_argo0) { | |
2686 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2687 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2688 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetHeight. Expected _wxIcon_p."); | |
2689 | return NULL; | |
2690 | } | |
2691 | } | |
2692 | { | |
4268f798 | 2693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2694 | wxIcon_SetHeight(_arg0,_arg1); |
9b3d3bc4 | 2695 | |
4268f798 | 2696 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2697 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2698 | } Py_INCREF(Py_None); |
2699 | _resultobj = Py_None; | |
2700 | return _resultobj; | |
2701 | } | |
2702 | ||
2703 | #define wxIcon_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0)) | |
2704 | static PyObject *_wrap_wxIcon_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2705 | PyObject * _resultobj; | |
2706 | wxIcon * _arg0; | |
2707 | int _arg1; | |
2708 | PyObject * _argo0 = 0; | |
2709 | char *_kwnames[] = { "self","d", NULL }; | |
2710 | ||
2711 | self = self; | |
2712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetDepth",_kwnames,&_argo0,&_arg1)) | |
2713 | return NULL; | |
2714 | if (_argo0) { | |
2715 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2716 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2717 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetDepth. Expected _wxIcon_p."); | |
2718 | return NULL; | |
2719 | } | |
2720 | } | |
2721 | { | |
4268f798 | 2722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2723 | wxIcon_SetDepth(_arg0,_arg1); |
9b3d3bc4 | 2724 | |
4268f798 | 2725 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2726 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2727 | } Py_INCREF(Py_None); |
2728 | _resultobj = Py_None; | |
2729 | return _resultobj; | |
2730 | } | |
2731 | ||
2732 | #define wxIcon_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0)) | |
2733 | static PyObject *_wrap_wxIcon_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2734 | PyObject * _resultobj; | |
2735 | wxIcon * _arg0; | |
2736 | wxSize * _arg1; | |
2737 | PyObject * _argo0 = 0; | |
2738 | wxSize temp; | |
2739 | PyObject * _obj1 = 0; | |
2740 | char *_kwnames[] = { "self","size", NULL }; | |
2741 | ||
2742 | self = self; | |
2743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxIcon_SetSize",_kwnames,&_argo0,&_obj1)) | |
2744 | return NULL; | |
2745 | if (_argo0) { | |
2746 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2747 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2748 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetSize. Expected _wxIcon_p."); | |
2749 | return NULL; | |
2750 | } | |
2751 | } | |
2752 | { | |
2753 | _arg1 = &temp; | |
2754 | if (! wxSize_helper(_obj1, &_arg1)) | |
2755 | return NULL; | |
2756 | } | |
2757 | { | |
4268f798 | 2758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2759 | wxIcon_SetSize(_arg0,*_arg1); |
9b3d3bc4 | 2760 | |
4268f798 | 2761 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2762 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
2763 | } Py_INCREF(Py_None); |
2764 | _resultobj = Py_None; | |
2765 | return _resultobj; | |
2766 | } | |
2767 | ||
96bfd053 RD |
2768 | #define wxIcon_CopyFromBitmap(_swigobj,_swigarg0) (_swigobj->CopyFromBitmap(_swigarg0)) |
2769 | static PyObject *_wrap_wxIcon_CopyFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2770 | PyObject * _resultobj; | |
2771 | wxIcon * _arg0; | |
2772 | wxBitmap * _arg1; | |
2773 | PyObject * _argo0 = 0; | |
2774 | PyObject * _argo1 = 0; | |
2775 | char *_kwnames[] = { "self","bmp", NULL }; | |
2776 | ||
2777 | self = self; | |
2778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxIcon_CopyFromBitmap",_kwnames,&_argo0,&_argo1)) | |
2779 | return NULL; | |
2780 | if (_argo0) { | |
2781 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2782 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
2783 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_CopyFromBitmap. Expected _wxIcon_p."); | |
2784 | return NULL; | |
2785 | } | |
2786 | } | |
2787 | if (_argo1) { | |
7e50db3f | 2788 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { |
96bfd053 RD |
2789 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxIcon_CopyFromBitmap. Expected _wxBitmap_p."); |
2790 | return NULL; | |
2791 | } | |
2792 | } | |
2793 | { | |
4268f798 | 2794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2795 | wxIcon_CopyFromBitmap(_arg0,*_arg1); |
96bfd053 | 2796 | |
4268f798 | 2797 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2798 | if (PyErr_Occurred()) return NULL; |
96bfd053 RD |
2799 | } Py_INCREF(Py_None); |
2800 | _resultobj = Py_None; | |
2801 | return _resultobj; | |
2802 | } | |
2803 | ||
0e9b78ce RD |
2804 | #define new_wxIconBundle() (new wxIconBundle()) |
2805 | static PyObject *_wrap_new_wxIconBundle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2806 | PyObject * _resultobj; | |
2807 | wxIconBundle * _result; | |
2808 | char *_kwnames[] = { NULL }; | |
2809 | char _ptemp[128]; | |
2810 | ||
2811 | self = self; | |
2812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxIconBundle",_kwnames)) | |
2813 | return NULL; | |
2814 | { | |
2815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2816 | _result = (wxIconBundle *)new_wxIconBundle(); | |
2817 | ||
2818 | wxPyEndAllowThreads(__tstate); | |
2819 | if (PyErr_Occurred()) return NULL; | |
2820 | } if (_result) { | |
2821 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIconBundle_p"); | |
2822 | _resultobj = Py_BuildValue("s",_ptemp); | |
2823 | } else { | |
2824 | Py_INCREF(Py_None); | |
2825 | _resultobj = Py_None; | |
2826 | } | |
2827 | return _resultobj; | |
2828 | } | |
2829 | ||
2830 | #define new_wxIconBundleFromFile(_swigarg0,_swigarg1) (new wxIconBundle(_swigarg0,_swigarg1)) | |
2831 | static PyObject *_wrap_new_wxIconBundleFromFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2832 | PyObject * _resultobj; | |
2833 | wxIconBundle * _result; | |
2834 | wxString * _arg0; | |
2835 | long _arg1; | |
2836 | PyObject * _obj0 = 0; | |
2837 | char *_kwnames[] = { "file","type", NULL }; | |
2838 | char _ptemp[128]; | |
2839 | ||
2840 | self = self; | |
2841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:new_wxIconBundleFromFile",_kwnames,&_obj0,&_arg1)) | |
2842 | return NULL; | |
2843 | { | |
2844 | _arg0 = wxString_in_helper(_obj0); | |
2845 | if (_arg0 == NULL) | |
2846 | return NULL; | |
2847 | } | |
2848 | { | |
2849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2850 | _result = (wxIconBundle *)new_wxIconBundleFromFile(*_arg0,_arg1); | |
2851 | ||
2852 | wxPyEndAllowThreads(__tstate); | |
2853 | if (PyErr_Occurred()) return NULL; | |
2854 | } if (_result) { | |
2855 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIconBundle_p"); | |
2856 | _resultobj = Py_BuildValue("s",_ptemp); | |
2857 | } else { | |
2858 | Py_INCREF(Py_None); | |
2859 | _resultobj = Py_None; | |
2860 | } | |
2861 | { | |
2862 | if (_obj0) | |
2863 | delete _arg0; | |
2864 | } | |
2865 | return _resultobj; | |
2866 | } | |
2867 | ||
2868 | #define new_wxIconBundleFromIcon(_swigarg0) (new wxIconBundle(_swigarg0)) | |
2869 | static PyObject *_wrap_new_wxIconBundleFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2870 | PyObject * _resultobj; | |
2871 | wxIconBundle * _result; | |
2872 | wxIcon * _arg0; | |
2873 | PyObject * _argo0 = 0; | |
2874 | char *_kwnames[] = { "icon", NULL }; | |
2875 | char _ptemp[128]; | |
2876 | ||
2877 | self = self; | |
2878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxIconBundleFromIcon",_kwnames,&_argo0)) | |
2879 | return NULL; | |
2880 | if (_argo0) { | |
7e50db3f | 2881 | if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { |
0e9b78ce RD |
2882 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxIconBundleFromIcon. Expected _wxIcon_p."); |
2883 | return NULL; | |
2884 | } | |
2885 | } | |
2886 | { | |
2887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2888 | _result = (wxIconBundle *)new_wxIconBundleFromIcon(*_arg0); | |
2889 | ||
2890 | wxPyEndAllowThreads(__tstate); | |
2891 | if (PyErr_Occurred()) return NULL; | |
2892 | } if (_result) { | |
2893 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIconBundle_p"); | |
2894 | _resultobj = Py_BuildValue("s",_ptemp); | |
2895 | } else { | |
2896 | Py_INCREF(Py_None); | |
2897 | _resultobj = Py_None; | |
2898 | } | |
2899 | return _resultobj; | |
2900 | } | |
2901 | ||
2902 | #define delete_wxIconBundle(_swigobj) (delete _swigobj) | |
2903 | static PyObject *_wrap_delete_wxIconBundle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2904 | PyObject * _resultobj; | |
2905 | wxIconBundle * _arg0; | |
2906 | PyObject * _argo0 = 0; | |
2907 | char *_kwnames[] = { "self", NULL }; | |
2908 | ||
2909 | self = self; | |
2910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxIconBundle",_kwnames,&_argo0)) | |
2911 | return NULL; | |
2912 | if (_argo0) { | |
2913 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2914 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIconBundle_p")) { | |
2915 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxIconBundle. Expected _wxIconBundle_p."); | |
2916 | return NULL; | |
2917 | } | |
2918 | } | |
2919 | { | |
2920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2921 | delete_wxIconBundle(_arg0); | |
2922 | ||
2923 | wxPyEndAllowThreads(__tstate); | |
2924 | if (PyErr_Occurred()) return NULL; | |
2925 | } Py_INCREF(Py_None); | |
2926 | _resultobj = Py_None; | |
2927 | return _resultobj; | |
2928 | } | |
2929 | ||
2930 | #define wxIconBundle_AddIcon(_swigobj,_swigarg0) (_swigobj->AddIcon(_swigarg0)) | |
2931 | static PyObject *_wrap_wxIconBundle_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2932 | PyObject * _resultobj; | |
2933 | wxIconBundle * _arg0; | |
2934 | wxIcon * _arg1; | |
2935 | PyObject * _argo0 = 0; | |
2936 | PyObject * _argo1 = 0; | |
2937 | char *_kwnames[] = { "self","icon", NULL }; | |
2938 | ||
2939 | self = self; | |
2940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxIconBundle_AddIcon",_kwnames,&_argo0,&_argo1)) | |
2941 | return NULL; | |
2942 | if (_argo0) { | |
2943 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2944 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIconBundle_p")) { | |
2945 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIconBundle_AddIcon. Expected _wxIconBundle_p."); | |
2946 | return NULL; | |
2947 | } | |
2948 | } | |
2949 | if (_argo1) { | |
7e50db3f | 2950 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) { |
0e9b78ce RD |
2951 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxIconBundle_AddIcon. Expected _wxIcon_p."); |
2952 | return NULL; | |
2953 | } | |
2954 | } | |
2955 | { | |
2956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2957 | wxIconBundle_AddIcon(_arg0,*_arg1); | |
2958 | ||
2959 | wxPyEndAllowThreads(__tstate); | |
2960 | if (PyErr_Occurred()) return NULL; | |
2961 | } Py_INCREF(Py_None); | |
2962 | _resultobj = Py_None; | |
2963 | return _resultobj; | |
2964 | } | |
2965 | ||
2966 | #define wxIconBundle_AddIconFromFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->AddIcon(_swigarg0,_swigarg1)) | |
2967 | static PyObject *_wrap_wxIconBundle_AddIconFromFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2968 | PyObject * _resultobj; | |
2969 | wxIconBundle * _arg0; | |
2970 | wxString * _arg1; | |
2971 | long _arg2; | |
2972 | PyObject * _argo0 = 0; | |
2973 | PyObject * _obj1 = 0; | |
2974 | char *_kwnames[] = { "self","file","type", NULL }; | |
2975 | ||
2976 | self = self; | |
2977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOl:wxIconBundle_AddIconFromFile",_kwnames,&_argo0,&_obj1,&_arg2)) | |
2978 | return NULL; | |
2979 | if (_argo0) { | |
2980 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2981 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIconBundle_p")) { | |
2982 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIconBundle_AddIconFromFile. Expected _wxIconBundle_p."); | |
2983 | return NULL; | |
2984 | } | |
2985 | } | |
2986 | { | |
2987 | _arg1 = wxString_in_helper(_obj1); | |
2988 | if (_arg1 == NULL) | |
2989 | return NULL; | |
2990 | } | |
2991 | { | |
2992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2993 | wxIconBundle_AddIconFromFile(_arg0,*_arg1,_arg2); | |
2994 | ||
2995 | wxPyEndAllowThreads(__tstate); | |
2996 | if (PyErr_Occurred()) return NULL; | |
2997 | } Py_INCREF(Py_None); | |
2998 | _resultobj = Py_None; | |
2999 | { | |
3000 | if (_obj1) | |
3001 | delete _arg1; | |
3002 | } | |
3003 | return _resultobj; | |
3004 | } | |
3005 | ||
3006 | #define wxIconBundle_GetIcon(_swigobj,_swigarg0) (_swigobj->GetIcon(_swigarg0)) | |
3007 | static PyObject *_wrap_wxIconBundle_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3008 | PyObject * _resultobj; | |
3009 | wxIcon * _result; | |
3010 | wxIconBundle * _arg0; | |
3011 | wxSize * _arg1; | |
3012 | PyObject * _argo0 = 0; | |
3013 | wxSize temp; | |
3014 | PyObject * _obj1 = 0; | |
3015 | char *_kwnames[] = { "self","size", NULL }; | |
3016 | char _ptemp[128]; | |
3017 | ||
3018 | self = self; | |
3019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxIconBundle_GetIcon",_kwnames,&_argo0,&_obj1)) | |
3020 | return NULL; | |
3021 | if (_argo0) { | |
3022 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3023 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIconBundle_p")) { | |
3024 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIconBundle_GetIcon. Expected _wxIconBundle_p."); | |
3025 | return NULL; | |
3026 | } | |
3027 | } | |
3028 | { | |
3029 | _arg1 = &temp; | |
3030 | if (! wxSize_helper(_obj1, &_arg1)) | |
3031 | return NULL; | |
3032 | } | |
3033 | { | |
3034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3035 | const wxIcon & _result_ref = wxIconBundle_GetIcon(_arg0,*_arg1); | |
3036 | _result = (wxIcon *) &_result_ref; | |
3037 | ||
3038 | wxPyEndAllowThreads(__tstate); | |
3039 | if (PyErr_Occurred()) return NULL; | |
3040 | } if (_result) { | |
3041 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p"); | |
3042 | _resultobj = Py_BuildValue("s",_ptemp); | |
3043 | } else { | |
3044 | Py_INCREF(Py_None); | |
3045 | _resultobj = Py_None; | |
3046 | } | |
3047 | return _resultobj; | |
3048 | } | |
3049 | ||
9416aa89 RD |
3050 | static void *SwigwxCursorTowxGDIObject(void *ptr) { |
3051 | wxCursor *src; | |
3052 | wxGDIObject *dest; | |
3053 | src = (wxCursor *) ptr; | |
3054 | dest = (wxGDIObject *) src; | |
3055 | return (void *) dest; | |
3056 | } | |
3057 | ||
3058 | static void *SwigwxCursorTowxObject(void *ptr) { | |
3059 | wxCursor *src; | |
3060 | wxObject *dest; | |
3061 | src = (wxCursor *) ptr; | |
3062 | dest = (wxObject *) src; | |
3063 | return (void *) dest; | |
3064 | } | |
3065 | ||
9b3d3bc4 RD |
3066 | #define new_wxCursor(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxCursor(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
3067 | static PyObject *_wrap_new_wxCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3068 | PyObject * _resultobj; | |
3069 | wxCursor * _result; | |
3070 | wxString * _arg0; | |
3071 | long _arg1; | |
3072 | int _arg2 = (int ) 0; | |
3073 | int _arg3 = (int ) 0; | |
3074 | PyObject * _obj0 = 0; | |
3075 | char *_kwnames[] = { "cursorName","flags","hotSpotX","hotSpotY", NULL }; | |
3076 | char _ptemp[128]; | |
3077 | ||
3078 | self = self; | |
3079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|ii:new_wxCursor",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3)) | |
3080 | return NULL; | |
3081 | { | |
c8bc7bb8 RD |
3082 | _arg0 = wxString_in_helper(_obj0); |
3083 | if (_arg0 == NULL) | |
185d7c3e | 3084 | return NULL; |
9b3d3bc4 RD |
3085 | } |
3086 | { | |
4268f798 | 3087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3088 | _result = (wxCursor *)new_wxCursor(*_arg0,_arg1,_arg2,_arg3); |
9b3d3bc4 | 3089 | |
4268f798 | 3090 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3091 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
3092 | } if (_result) { |
3093 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCursor_p"); | |
3094 | _resultobj = Py_BuildValue("s",_ptemp); | |
3095 | } else { | |
3096 | Py_INCREF(Py_None); | |
3097 | _resultobj = Py_None; | |
3098 | } | |
3099 | { | |
3100 | if (_obj0) | |
3101 | delete _arg0; | |
3102 | } | |
3103 | return _resultobj; | |
3104 | } | |
3105 | ||
3106 | #define delete_wxCursor(_swigobj) (delete _swigobj) | |
3107 | static PyObject *_wrap_delete_wxCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3108 | PyObject * _resultobj; | |
3109 | wxCursor * _arg0; | |
3110 | PyObject * _argo0 = 0; | |
3111 | char *_kwnames[] = { "self", NULL }; | |
3112 | ||
3113 | self = self; | |
3114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxCursor",_kwnames,&_argo0)) | |
3115 | return NULL; | |
3116 | if (_argo0) { | |
3117 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3118 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
3119 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxCursor. Expected _wxCursor_p."); | |
3120 | return NULL; | |
3121 | } | |
3122 | } | |
3123 | { | |
4268f798 | 3124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3125 | delete_wxCursor(_arg0); |
9b3d3bc4 | 3126 | |
4268f798 | 3127 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3128 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
3129 | } Py_INCREF(Py_None); |
3130 | _resultobj = Py_None; | |
3131 | return _resultobj; | |
3132 | } | |
3133 | ||
3134 | #define wxCursor_GetHandle(_swigobj) (_swigobj->GetHandle()) | |
3135 | static PyObject *_wrap_wxCursor_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3136 | PyObject * _resultobj; | |
3137 | long _result; | |
3138 | wxCursor * _arg0; | |
3139 | PyObject * _argo0 = 0; | |
3140 | char *_kwnames[] = { "self", NULL }; | |
3141 | ||
3142 | self = self; | |
3143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_GetHandle",_kwnames,&_argo0)) | |
3144 | return NULL; | |
3145 | if (_argo0) { | |
3146 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3147 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
3148 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_GetHandle. Expected _wxCursor_p."); | |
3149 | return NULL; | |
3150 | } | |
3151 | } | |
3152 | { | |
4268f798 | 3153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3154 | _result = (long )wxCursor_GetHandle(_arg0); |
9b3d3bc4 | 3155 | |
4268f798 | 3156 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3157 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
3158 | } _resultobj = Py_BuildValue("l",_result); |
3159 | return _resultobj; | |
3160 | } | |
3161 | ||
3162 | #define wxCursor_SetHandle(_swigobj,_swigarg0) (_swigobj->SetHandle(_swigarg0)) | |
3163 | static PyObject *_wrap_wxCursor_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3164 | PyObject * _resultobj; | |
3165 | wxCursor * _arg0; | |
3166 | long _arg1; | |
3167 | PyObject * _argo0 = 0; | |
3168 | char *_kwnames[] = { "self","handle", NULL }; | |
3169 | ||
3170 | self = self; | |
3171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxCursor_SetHandle",_kwnames,&_argo0,&_arg1)) | |
3172 | return NULL; | |
3173 | if (_argo0) { | |
3174 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3175 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
3176 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_SetHandle. Expected _wxCursor_p."); | |
3177 | return NULL; | |
3178 | } | |
3179 | } | |
3180 | { | |
4268f798 | 3181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3182 | wxCursor_SetHandle(_arg0,_arg1); |
9b3d3bc4 | 3183 | |
4268f798 | 3184 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3185 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
3186 | } Py_INCREF(Py_None); |
3187 | _resultobj = Py_None; | |
3188 | return _resultobj; | |
3189 | } | |
3190 | ||
3191 | #define wxCursor_Ok(_swigobj) (_swigobj->Ok()) | |
3192 | static PyObject *_wrap_wxCursor_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3193 | PyObject * _resultobj; | |
3194 | bool _result; | |
3195 | wxCursor * _arg0; | |
3196 | PyObject * _argo0 = 0; | |
3197 | char *_kwnames[] = { "self", NULL }; | |
3198 | ||
3199 | self = self; | |
3200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_Ok",_kwnames,&_argo0)) | |
3201 | return NULL; | |
3202 | if (_argo0) { | |
3203 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3204 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
3205 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_Ok. Expected _wxCursor_p."); | |
3206 | return NULL; | |
3207 | } | |
3208 | } | |
3209 | { | |
4268f798 | 3210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3211 | _result = (bool )wxCursor_Ok(_arg0); |
9b3d3bc4 | 3212 | |
4268f798 | 3213 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3214 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
3215 | } _resultobj = Py_BuildValue("i",_result); |
3216 | return _resultobj; | |
3217 | } | |
3218 | ||
3219 | #define wxCursor_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
3220 | static PyObject *_wrap_wxCursor_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3221 | PyObject * _resultobj; | |
3222 | int _result; | |
3223 | wxCursor * _arg0; | |
3224 | PyObject * _argo0 = 0; | |
3225 | char *_kwnames[] = { "self", NULL }; | |
3226 | ||
3227 | self = self; | |
3228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_GetWidth",_kwnames,&_argo0)) | |
3229 | return NULL; | |
3230 | if (_argo0) { | |
3231 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3232 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
3233 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_GetWidth. Expected _wxCursor_p."); | |
3234 | return NULL; | |
3235 | } | |
3236 | } | |
3237 | { | |
4268f798 | 3238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3239 | _result = (int )wxCursor_GetWidth(_arg0); |
9b3d3bc4 | 3240 | |
4268f798 | 3241 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3242 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
3243 | } _resultobj = Py_BuildValue("i",_result); |
3244 | return _resultobj; | |
3245 | } | |
3246 | ||
3247 | #define wxCursor_GetHeight(_swigobj) (_swigobj->GetHeight()) | |
3248 | static PyObject *_wrap_wxCursor_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3249 | PyObject * _resultobj; | |
3250 | int _result; | |
3251 | wxCursor * _arg0; | |
3252 | PyObject * _argo0 = 0; | |
3253 | char *_kwnames[] = { "self", NULL }; | |
3254 | ||
3255 | self = self; | |
3256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_GetHeight",_kwnames,&_argo0)) | |
3257 | return NULL; | |
3258 | if (_argo0) { | |
3259 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3260 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
3261 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_GetHeight. Expected _wxCursor_p."); | |
3262 | return NULL; | |
3263 | } | |
3264 | } | |
3265 | { | |
4268f798 | 3266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3267 | _result = (int )wxCursor_GetHeight(_arg0); |
9b3d3bc4 | 3268 | |
4268f798 | 3269 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3270 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
3271 | } _resultobj = Py_BuildValue("i",_result); |
3272 | return _resultobj; | |
3273 | } | |
3274 | ||
3275 | #define wxCursor_GetDepth(_swigobj) (_swigobj->GetDepth()) | |
3276 | static PyObject *_wrap_wxCursor_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3277 | PyObject * _resultobj; | |
3278 | int _result; | |
3279 | wxCursor * _arg0; | |
3280 | PyObject * _argo0 = 0; | |
3281 | char *_kwnames[] = { "self", NULL }; | |
3282 | ||
3283 | self = self; | |
3284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_GetDepth",_kwnames,&_argo0)) | |
3285 | return NULL; | |
3286 | if (_argo0) { | |
3287 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3288 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
3289 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_GetDepth. Expected _wxCursor_p."); | |
3290 | return NULL; | |
3291 | } | |
3292 | } | |
3293 | { | |
4268f798 | 3294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3295 | _result = (int )wxCursor_GetDepth(_arg0); |
9b3d3bc4 | 3296 | |
4268f798 | 3297 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3298 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
3299 | } _resultobj = Py_BuildValue("i",_result); |
3300 | return _resultobj; | |
3301 | } | |
3302 | ||
3303 | #define wxCursor_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0)) | |
3304 | static PyObject *_wrap_wxCursor_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3305 | PyObject * _resultobj; | |
3306 | wxCursor * _arg0; | |
3307 | int _arg1; | |
3308 | PyObject * _argo0 = 0; | |
3309 | char *_kwnames[] = { "self","w", NULL }; | |
3310 | ||
3311 | self = self; | |
3312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCursor_SetWidth",_kwnames,&_argo0,&_arg1)) | |
3313 | return NULL; | |
3314 | if (_argo0) { | |
3315 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3316 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
3317 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_SetWidth. Expected _wxCursor_p."); | |
3318 | return NULL; | |
3319 | } | |
3320 | } | |
3321 | { | |
4268f798 | 3322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3323 | wxCursor_SetWidth(_arg0,_arg1); |
9b3d3bc4 | 3324 | |
4268f798 | 3325 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3326 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
3327 | } Py_INCREF(Py_None); |
3328 | _resultobj = Py_None; | |
3329 | return _resultobj; | |
3330 | } | |
3331 | ||
3332 | #define wxCursor_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0)) | |
3333 | static PyObject *_wrap_wxCursor_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3334 | PyObject * _resultobj; | |
3335 | wxCursor * _arg0; | |
3336 | int _arg1; | |
3337 | PyObject * _argo0 = 0; | |
3338 | char *_kwnames[] = { "self","h", NULL }; | |
3339 | ||
3340 | self = self; | |
3341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCursor_SetHeight",_kwnames,&_argo0,&_arg1)) | |
3342 | return NULL; | |
3343 | if (_argo0) { | |
3344 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3345 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
3346 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_SetHeight. Expected _wxCursor_p."); | |
3347 | return NULL; | |
3348 | } | |
3349 | } | |
3350 | { | |
4268f798 | 3351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3352 | wxCursor_SetHeight(_arg0,_arg1); |
9b3d3bc4 | 3353 | |
4268f798 | 3354 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3355 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
3356 | } Py_INCREF(Py_None); |
3357 | _resultobj = Py_None; | |
3358 | return _resultobj; | |
3359 | } | |
3360 | ||
3361 | #define wxCursor_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0)) | |
3362 | static PyObject *_wrap_wxCursor_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3363 | PyObject * _resultobj; | |
3364 | wxCursor * _arg0; | |
3365 | int _arg1; | |
3366 | PyObject * _argo0 = 0; | |
3367 | char *_kwnames[] = { "self","d", NULL }; | |
3368 | ||
3369 | self = self; | |
3370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCursor_SetDepth",_kwnames,&_argo0,&_arg1)) | |
3371 | return NULL; | |
3372 | if (_argo0) { | |
3373 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3374 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
3375 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_SetDepth. Expected _wxCursor_p."); | |
3376 | return NULL; | |
3377 | } | |
3378 | } | |
3379 | { | |
4268f798 | 3380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3381 | wxCursor_SetDepth(_arg0,_arg1); |
9b3d3bc4 | 3382 | |
4268f798 | 3383 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3384 | if (PyErr_Occurred()) return NULL; |
9b3d3bc4 RD |
3385 | } Py_INCREF(Py_None); |
3386 | _resultobj = Py_None; | |
3387 | return _resultobj; | |
3388 | } | |
3389 | ||
3390 | #define wxCursor_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0)) | |
3391 | static PyObject *_wrap_wxCursor_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3392 | PyObject * _resultobj; | |
3393 | wxCursor * _arg0; | |
3394 | wxSize * _arg1; | |
3395 | PyObject * _argo0 = 0; | |
3396 | wxSize temp; | |
3397 | PyObject * _obj1 = 0; | |
3398 | char *_kwnames[] = { "self","size", NULL }; | |
3399 | ||
3400 | self = self; | |
3401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxCursor_SetSize",_kwnames,&_argo0,&_obj1)) | |
3402 | return NULL; | |
3403 | if (_argo0) { | |
3404 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3405 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
3406 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_SetSize. Expected _wxCursor_p."); | |
3407 | return NULL; | |
3408 | } | |
3409 | } | |
3410 | { | |
3411 | _arg1 = &temp; | |
3412 | if (! wxSize_helper(_obj1, &_arg1)) | |
3413 | return NULL; | |
3414 | } | |
3415 | { | |
4268f798 | 3416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3417 | wxCursor_SetSize(_arg0,*_arg1); |
cf694132 | 3418 | |
4268f798 | 3419 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3420 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3421 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3422 | _resultobj = Py_None; |
3423 | return _resultobj; | |
3424 | } | |
3425 | ||
9416aa89 RD |
3426 | static void *SwigwxColourTowxObject(void *ptr) { |
3427 | wxColour *src; | |
3428 | wxObject *dest; | |
3429 | src = (wxColour *) ptr; | |
3430 | dest = (wxObject *) src; | |
3431 | return (void *) dest; | |
3432 | } | |
3433 | ||
8ab979d7 | 3434 | #define new_wxColour(_swigarg0,_swigarg1,_swigarg2) (new wxColour(_swigarg0,_swigarg1,_swigarg2)) |
1afc06c2 | 3435 | static PyObject *_wrap_new_wxColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3436 | PyObject * _resultobj; |
3437 | wxColour * _result; | |
1d99702e RD |
3438 | unsigned char _arg0 = (unsigned char ) 0; |
3439 | unsigned char _arg1 = (unsigned char ) 0; | |
3440 | unsigned char _arg2 = (unsigned char ) 0; | |
1afc06c2 | 3441 | char *_kwnames[] = { "red","green","blue", NULL }; |
8ab979d7 RD |
3442 | char _ptemp[128]; |
3443 | ||
3444 | self = self; | |
1afc06c2 | 3445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|bbb:new_wxColour",_kwnames,&_arg0,&_arg1,&_arg2)) |
8ab979d7 | 3446 | return NULL; |
cf694132 | 3447 | { |
4268f798 | 3448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3449 | _result = (wxColour *)new_wxColour(_arg0,_arg1,_arg2); |
cf694132 | 3450 | |
4268f798 | 3451 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3452 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
3453 | } if (_result) { |
3454 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
3455 | _resultobj = Py_BuildValue("s",_ptemp); | |
3456 | } else { | |
3457 | Py_INCREF(Py_None); | |
3458 | _resultobj = Py_None; | |
3459 | } | |
8ab979d7 RD |
3460 | return _resultobj; |
3461 | } | |
3462 | ||
3463 | #define delete_wxColour(_swigobj) (delete _swigobj) | |
1afc06c2 | 3464 | static PyObject *_wrap_delete_wxColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3465 | PyObject * _resultobj; |
3466 | wxColour * _arg0; | |
f6bcfd97 BP |
3467 | wxColour temp; |
3468 | PyObject * _obj0 = 0; | |
1afc06c2 | 3469 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3470 | |
3471 | self = self; | |
f6bcfd97 | 3472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxColour",_kwnames,&_obj0)) |
8ab979d7 | 3473 | return NULL; |
f6bcfd97 BP |
3474 | { |
3475 | _arg0 = &temp; | |
3476 | if (! wxColour_helper(_obj0, &_arg0)) | |
8ab979d7 | 3477 | return NULL; |
f6bcfd97 | 3478 | } |
cf694132 | 3479 | { |
4268f798 | 3480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3481 | delete_wxColour(_arg0); |
cf694132 | 3482 | |
4268f798 | 3483 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3484 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3485 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3486 | _resultobj = Py_None; |
3487 | return _resultobj; | |
3488 | } | |
3489 | ||
3490 | #define wxColour_Red(_swigobj) (_swigobj->Red()) | |
1afc06c2 | 3491 | static PyObject *_wrap_wxColour_Red(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3492 | PyObject * _resultobj; |
3493 | unsigned char _result; | |
3494 | wxColour * _arg0; | |
f6bcfd97 BP |
3495 | wxColour temp; |
3496 | PyObject * _obj0 = 0; | |
1afc06c2 | 3497 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3498 | |
3499 | self = self; | |
f6bcfd97 | 3500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Red",_kwnames,&_obj0)) |
8ab979d7 | 3501 | return NULL; |
f6bcfd97 BP |
3502 | { |
3503 | _arg0 = &temp; | |
3504 | if (! wxColour_helper(_obj0, &_arg0)) | |
8ab979d7 | 3505 | return NULL; |
f6bcfd97 | 3506 | } |
cf694132 | 3507 | { |
4268f798 | 3508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3509 | _result = (unsigned char )wxColour_Red(_arg0); |
cf694132 | 3510 | |
4268f798 | 3511 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3512 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3513 | } _resultobj = Py_BuildValue("b",_result); |
8ab979d7 RD |
3514 | return _resultobj; |
3515 | } | |
3516 | ||
3517 | #define wxColour_Green(_swigobj) (_swigobj->Green()) | |
1afc06c2 | 3518 | static PyObject *_wrap_wxColour_Green(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3519 | PyObject * _resultobj; |
3520 | unsigned char _result; | |
3521 | wxColour * _arg0; | |
f6bcfd97 BP |
3522 | wxColour temp; |
3523 | PyObject * _obj0 = 0; | |
1afc06c2 | 3524 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3525 | |
3526 | self = self; | |
f6bcfd97 | 3527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Green",_kwnames,&_obj0)) |
8ab979d7 | 3528 | return NULL; |
f6bcfd97 BP |
3529 | { |
3530 | _arg0 = &temp; | |
3531 | if (! wxColour_helper(_obj0, &_arg0)) | |
8ab979d7 | 3532 | return NULL; |
f6bcfd97 | 3533 | } |
cf694132 | 3534 | { |
4268f798 | 3535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3536 | _result = (unsigned char )wxColour_Green(_arg0); |
cf694132 | 3537 | |
4268f798 | 3538 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3539 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3540 | } _resultobj = Py_BuildValue("b",_result); |
8ab979d7 RD |
3541 | return _resultobj; |
3542 | } | |
3543 | ||
3544 | #define wxColour_Blue(_swigobj) (_swigobj->Blue()) | |
1afc06c2 | 3545 | static PyObject *_wrap_wxColour_Blue(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3546 | PyObject * _resultobj; |
3547 | unsigned char _result; | |
3548 | wxColour * _arg0; | |
f6bcfd97 BP |
3549 | wxColour temp; |
3550 | PyObject * _obj0 = 0; | |
1afc06c2 | 3551 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3552 | |
3553 | self = self; | |
f6bcfd97 | 3554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Blue",_kwnames,&_obj0)) |
8ab979d7 | 3555 | return NULL; |
f6bcfd97 BP |
3556 | { |
3557 | _arg0 = &temp; | |
3558 | if (! wxColour_helper(_obj0, &_arg0)) | |
8ab979d7 | 3559 | return NULL; |
f6bcfd97 | 3560 | } |
cf694132 | 3561 | { |
4268f798 | 3562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3563 | _result = (unsigned char )wxColour_Blue(_arg0); |
cf694132 | 3564 | |
4268f798 | 3565 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3566 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3567 | } _resultobj = Py_BuildValue("b",_result); |
8ab979d7 RD |
3568 | return _resultobj; |
3569 | } | |
3570 | ||
3571 | #define wxColour_Ok(_swigobj) (_swigobj->Ok()) | |
1afc06c2 | 3572 | static PyObject *_wrap_wxColour_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3573 | PyObject * _resultobj; |
3574 | bool _result; | |
3575 | wxColour * _arg0; | |
f6bcfd97 BP |
3576 | wxColour temp; |
3577 | PyObject * _obj0 = 0; | |
1afc06c2 | 3578 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3579 | |
3580 | self = self; | |
f6bcfd97 | 3581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Ok",_kwnames,&_obj0)) |
8ab979d7 | 3582 | return NULL; |
f6bcfd97 BP |
3583 | { |
3584 | _arg0 = &temp; | |
3585 | if (! wxColour_helper(_obj0, &_arg0)) | |
8ab979d7 | 3586 | return NULL; |
f6bcfd97 | 3587 | } |
cf694132 | 3588 | { |
4268f798 | 3589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3590 | _result = (bool )wxColour_Ok(_arg0); |
cf694132 | 3591 | |
4268f798 | 3592 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3593 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3594 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3595 | return _resultobj; |
3596 | } | |
3597 | ||
3598 | #define wxColour_Set(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Set(_swigarg0,_swigarg1,_swigarg2)) | |
1afc06c2 | 3599 | static PyObject *_wrap_wxColour_Set(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3600 | PyObject * _resultobj; |
3601 | wxColour * _arg0; | |
3602 | unsigned char _arg1; | |
3603 | unsigned char _arg2; | |
3604 | unsigned char _arg3; | |
f6bcfd97 BP |
3605 | wxColour temp; |
3606 | PyObject * _obj0 = 0; | |
1afc06c2 | 3607 | char *_kwnames[] = { "self","red","green","blue", NULL }; |
8ab979d7 RD |
3608 | |
3609 | self = self; | |
f6bcfd97 | 3610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Obbb:wxColour_Set",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3)) |
8ab979d7 | 3611 | return NULL; |
f6bcfd97 BP |
3612 | { |
3613 | _arg0 = &temp; | |
3614 | if (! wxColour_helper(_obj0, &_arg0)) | |
8ab979d7 | 3615 | return NULL; |
f6bcfd97 | 3616 | } |
cf694132 | 3617 | { |
4268f798 | 3618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3619 | wxColour_Set(_arg0,_arg1,_arg2,_arg3); |
cf694132 | 3620 | |
4268f798 | 3621 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3622 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3623 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3624 | _resultobj = Py_None; |
3625 | return _resultobj; | |
3626 | } | |
3627 | ||
3628 | static PyObject * wxColour_Get(wxColour *self) { | |
3629 | PyObject* rv = PyTuple_New(3); | |
7e50db3f RD |
3630 | int red = -1; |
3631 | int green = -1; | |
3632 | int blue = -1; | |
3633 | if (self->Ok()) { | |
3634 | red = self->Red(); | |
3635 | green = self->Green(); | |
3636 | blue = self->Blue(); | |
3637 | } | |
3638 | PyTuple_SetItem(rv, 0, PyInt_FromLong(red)); | |
3639 | PyTuple_SetItem(rv, 1, PyInt_FromLong(green)); | |
3640 | PyTuple_SetItem(rv, 2, PyInt_FromLong(blue)); | |
8ab979d7 RD |
3641 | return rv; |
3642 | } | |
1afc06c2 | 3643 | static PyObject *_wrap_wxColour_Get(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3644 | PyObject * _resultobj; |
3645 | PyObject * _result; | |
3646 | wxColour * _arg0; | |
f6bcfd97 BP |
3647 | wxColour temp; |
3648 | PyObject * _obj0 = 0; | |
1afc06c2 | 3649 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3650 | |
3651 | self = self; | |
f6bcfd97 | 3652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Get",_kwnames,&_obj0)) |
8ab979d7 | 3653 | return NULL; |
f6bcfd97 BP |
3654 | { |
3655 | _arg0 = &temp; | |
3656 | if (! wxColour_helper(_obj0, &_arg0)) | |
8ab979d7 | 3657 | return NULL; |
f6bcfd97 | 3658 | } |
8ab979d7 | 3659 | { |
4268f798 | 3660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3661 | _result = (PyObject *)wxColour_Get(_arg0); |
cf694132 | 3662 | |
4268f798 | 3663 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3664 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3665 | }{ |
8ab979d7 RD |
3666 | _resultobj = _result; |
3667 | } | |
3668 | return _resultobj; | |
3669 | } | |
3670 | ||
7e50db3f RD |
3671 | static bool wxColour___eq__(wxColour *self,PyObject * obj) { |
3672 | wxColour tmp; | |
3673 | wxColour* ptr = &tmp; | |
3674 | if (obj == Py_None) return FALSE; | |
3675 | wxPyBLOCK_THREADS(bool success = wxColour_helper(obj, &ptr); PyErr_Clear()); | |
3676 | if (! success) return FALSE; | |
3677 | return *self == *ptr; | |
3678 | } | |
3679 | static PyObject *_wrap_wxColour___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3680 | PyObject * _resultobj; | |
3681 | bool _result; | |
3682 | wxColour * _arg0; | |
3683 | PyObject * _arg1; | |
3684 | wxColour temp; | |
3685 | PyObject * _obj0 = 0; | |
3686 | PyObject * _obj1 = 0; | |
3687 | char *_kwnames[] = { "self","obj", NULL }; | |
3688 | ||
3689 | self = self; | |
3690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxColour___eq__",_kwnames,&_obj0,&_obj1)) | |
3691 | return NULL; | |
3692 | { | |
3693 | _arg0 = &temp; | |
3694 | if (! wxColour_helper(_obj0, &_arg0)) | |
3695 | return NULL; | |
3696 | } | |
3697 | { | |
3698 | _arg1 = _obj1; | |
3699 | } | |
3700 | { | |
3701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3702 | _result = (bool )wxColour___eq__(_arg0,_arg1); | |
3703 | ||
3704 | wxPyEndAllowThreads(__tstate); | |
3705 | if (PyErr_Occurred()) return NULL; | |
3706 | } _resultobj = Py_BuildValue("i",_result); | |
3707 | return _resultobj; | |
3708 | } | |
3709 | ||
3710 | static bool wxColour___ne__(wxColour *self,PyObject * obj) { | |
3711 | wxColour tmp; | |
3712 | wxColour* ptr = &tmp; | |
3713 | if (obj == Py_None) return TRUE; | |
3714 | wxPyBLOCK_THREADS(bool success = wxColour_helper(obj, &ptr); PyErr_Clear()); | |
3715 | if (! success) return TRUE; | |
3716 | return *self != *ptr; | |
3717 | } | |
3718 | static PyObject *_wrap_wxColour___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3719 | PyObject * _resultobj; | |
3720 | bool _result; | |
3721 | wxColour * _arg0; | |
3722 | PyObject * _arg1; | |
3723 | wxColour temp; | |
3724 | PyObject * _obj0 = 0; | |
3725 | PyObject * _obj1 = 0; | |
3726 | char *_kwnames[] = { "self","obj", NULL }; | |
3727 | ||
3728 | self = self; | |
3729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxColour___ne__",_kwnames,&_obj0,&_obj1)) | |
3730 | return NULL; | |
3731 | { | |
3732 | _arg0 = &temp; | |
3733 | if (! wxColour_helper(_obj0, &_arg0)) | |
3734 | return NULL; | |
3735 | } | |
3736 | { | |
3737 | _arg1 = _obj1; | |
3738 | } | |
3739 | { | |
3740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3741 | _result = (bool )wxColour___ne__(_arg0,_arg1); | |
3742 | ||
3743 | wxPyEndAllowThreads(__tstate); | |
3744 | if (PyErr_Occurred()) return NULL; | |
3745 | } _resultobj = Py_BuildValue("i",_result); | |
3746 | return _resultobj; | |
3747 | } | |
3748 | ||
9416aa89 RD |
3749 | static void *SwigwxColourDatabaseTowxObject(void *ptr) { |
3750 | wxColourDatabase *src; | |
3751 | wxObject *dest; | |
3752 | src = (wxColourDatabase *) ptr; | |
3753 | dest = (wxObject *) src; | |
3754 | return (void *) dest; | |
3755 | } | |
3756 | ||
0569df0f RD |
3757 | #define wxColourDatabase_FindColour(_swigobj,_swigarg0) (_swigobj->FindColour(_swigarg0)) |
3758 | static PyObject *_wrap_wxColourDatabase_FindColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3759 | PyObject * _resultobj; | |
3760 | wxColour * _result; | |
3761 | wxColourDatabase * _arg0; | |
3762 | wxString * _arg1; | |
3763 | PyObject * _argo0 = 0; | |
3764 | PyObject * _obj1 = 0; | |
3765 | char *_kwnames[] = { "self","colour", NULL }; | |
3766 | char _ptemp[128]; | |
3767 | ||
3768 | self = self; | |
3769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxColourDatabase_FindColour",_kwnames,&_argo0,&_obj1)) | |
3770 | return NULL; | |
3771 | if (_argo0) { | |
3772 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3773 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) { | |
3774 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_FindColour. Expected _wxColourDatabase_p."); | |
3775 | return NULL; | |
8ab979d7 | 3776 | } |
0569df0f RD |
3777 | } |
3778 | { | |
c8bc7bb8 RD |
3779 | _arg1 = wxString_in_helper(_obj1); |
3780 | if (_arg1 == NULL) | |
0569df0f | 3781 | return NULL; |
0569df0f RD |
3782 | } |
3783 | { | |
4268f798 | 3784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3785 | _result = (wxColour *)wxColourDatabase_FindColour(_arg0,*_arg1); |
8ab979d7 | 3786 | |
4268f798 | 3787 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3788 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
3789 | } if (_result) { |
3790 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
3791 | _resultobj = Py_BuildValue("s",_ptemp); | |
3792 | } else { | |
3793 | Py_INCREF(Py_None); | |
3794 | _resultobj = Py_None; | |
3795 | } | |
3796 | { | |
3797 | if (_obj1) | |
3798 | delete _arg1; | |
3799 | } | |
3800 | return _resultobj; | |
3801 | } | |
3802 | ||
3803 | #define wxColourDatabase_FindName(_swigobj,_swigarg0) (_swigobj->FindName(_swigarg0)) | |
3804 | static PyObject *_wrap_wxColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3805 | PyObject * _resultobj; | |
3806 | wxString * _result; | |
3807 | wxColourDatabase * _arg0; | |
3808 | wxColour * _arg1; | |
3809 | PyObject * _argo0 = 0; | |
3810 | wxColour temp; | |
3811 | PyObject * _obj1 = 0; | |
3812 | char *_kwnames[] = { "self","colour", NULL }; | |
3813 | ||
3814 | self = self; | |
3815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxColourDatabase_FindName",_kwnames,&_argo0,&_obj1)) | |
3816 | return NULL; | |
3817 | if (_argo0) { | |
3818 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3819 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) { | |
3820 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_FindName. Expected _wxColourDatabase_p."); | |
3821 | return NULL; | |
3822 | } | |
3823 | } | |
3824 | { | |
3825 | _arg1 = &temp; | |
3826 | if (! wxColour_helper(_obj1, &_arg1)) | |
3827 | return NULL; | |
3828 | } | |
3829 | { | |
4268f798 | 3830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3831 | _result = new wxString (wxColourDatabase_FindName(_arg0,*_arg1)); |
0569df0f | 3832 | |
4268f798 | 3833 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3834 | if (PyErr_Occurred()) return NULL; |
0569df0f | 3835 | }{ |
c8bc7bb8 | 3836 | #if wxUSE_UNICODE |
7e50db3f | 3837 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 3838 | #else |
0569df0f | 3839 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 3840 | #endif |
0569df0f RD |
3841 | } |
3842 | { | |
3843 | delete _result; | |
3844 | } | |
3845 | return _resultobj; | |
3846 | } | |
3847 | ||
3848 | static void wxColourDatabase_Append(wxColourDatabase *self,const wxString & name,int red,int green,int blue) { | |
fe40185d RD |
3849 | // first see if the name is already there |
3850 | wxString cName = name; | |
3851 | cName.MakeUpper(); | |
3852 | wxString cName2 = cName; | |
a541c325 | 3853 | if ( !cName2.Replace(wxT("GRAY"), wxT("GREY")) ) |
fe40185d RD |
3854 | cName2.clear(); |
3855 | ||
7e50db3f | 3856 | wxNode *node = self->GetFirst(); |
fe40185d RD |
3857 | while ( node ) { |
3858 | const wxChar *key = node->GetKeyString(); | |
3859 | if ( cName == key || cName2 == key ) { | |
7e50db3f | 3860 | wxColour* c = (wxColour *)node->GetData(); |
fe40185d RD |
3861 | c->Set(red, green, blue); |
3862 | return; | |
3863 | } | |
7e50db3f | 3864 | node = node->GetNext(); |
fe40185d RD |
3865 | } |
3866 | ||
3867 | // otherwise append the new colour | |
0569df0f RD |
3868 | self->Append(name.c_str(), new wxColour(red, green, blue)); |
3869 | } | |
3870 | static PyObject *_wrap_wxColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3871 | PyObject * _resultobj; | |
3872 | wxColourDatabase * _arg0; | |
3873 | wxString * _arg1; | |
3874 | int _arg2; | |
3875 | int _arg3; | |
3876 | int _arg4; | |
3877 | PyObject * _argo0 = 0; | |
3878 | PyObject * _obj1 = 0; | |
3879 | char *_kwnames[] = { "self","name","red","green","blue", NULL }; | |
3880 | ||
3881 | self = self; | |
3882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiii:wxColourDatabase_Append",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_arg4)) | |
3883 | return NULL; | |
3884 | if (_argo0) { | |
3885 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3886 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) { | |
3887 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_Append. Expected _wxColourDatabase_p."); | |
3888 | return NULL; | |
3889 | } | |
3890 | } | |
3891 | { | |
c8bc7bb8 RD |
3892 | _arg1 = wxString_in_helper(_obj1); |
3893 | if (_arg1 == NULL) | |
0569df0f | 3894 | return NULL; |
0569df0f RD |
3895 | } |
3896 | { | |
4268f798 | 3897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3898 | wxColourDatabase_Append(_arg0,*_arg1,_arg2,_arg3,_arg4); |
0569df0f | 3899 | |
4268f798 | 3900 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3901 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
3902 | } Py_INCREF(Py_None); |
3903 | _resultobj = Py_None; | |
3904 | { | |
3905 | if (_obj1) | |
3906 | delete _arg1; | |
3907 | } | |
3908 | return _resultobj; | |
3909 | } | |
3910 | ||
9416aa89 RD |
3911 | static void *SwigwxPenTowxGDIObject(void *ptr) { |
3912 | wxPen *src; | |
3913 | wxGDIObject *dest; | |
3914 | src = (wxPen *) ptr; | |
3915 | dest = (wxGDIObject *) src; | |
3916 | return (void *) dest; | |
3917 | } | |
3918 | ||
3919 | static void *SwigwxPenTowxObject(void *ptr) { | |
3920 | wxPen *src; | |
3921 | wxObject *dest; | |
3922 | src = (wxPen *) ptr; | |
3923 | dest = (wxObject *) src; | |
3924 | return (void *) dest; | |
3925 | } | |
3926 | ||
0569df0f | 3927 | #define new_wxPen(_swigarg0,_swigarg1,_swigarg2) (new wxPen(_swigarg0,_swigarg1,_swigarg2)) |
1afc06c2 | 3928 | static PyObject *_wrap_new_wxPen(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3929 | PyObject * _resultobj; |
3930 | wxPen * _result; | |
3931 | wxColour * _arg0; | |
1d99702e RD |
3932 | int _arg1 = (int ) 1; |
3933 | int _arg2 = (int ) wxSOLID; | |
f6bcfd97 BP |
3934 | wxColour temp; |
3935 | PyObject * _obj0 = 0; | |
1afc06c2 | 3936 | char *_kwnames[] = { "colour","width","style", NULL }; |
8ab979d7 RD |
3937 | char _ptemp[128]; |
3938 | ||
3939 | self = self; | |
f6bcfd97 | 3940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:new_wxPen",_kwnames,&_obj0,&_arg1,&_arg2)) |
8ab979d7 | 3941 | return NULL; |
f6bcfd97 BP |
3942 | { |
3943 | _arg0 = &temp; | |
3944 | if (! wxColour_helper(_obj0, &_arg0)) | |
8ab979d7 | 3945 | return NULL; |
f6bcfd97 | 3946 | } |
cf694132 | 3947 | { |
4268f798 | 3948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3949 | _result = (wxPen *)new_wxPen(*_arg0,_arg1,_arg2); |
cf694132 | 3950 | |
4268f798 | 3951 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3952 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
3953 | } if (_result) { |
3954 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPen_p"); | |
3955 | _resultobj = Py_BuildValue("s",_ptemp); | |
3956 | } else { | |
3957 | Py_INCREF(Py_None); | |
3958 | _resultobj = Py_None; | |
3959 | } | |
8ab979d7 RD |
3960 | return _resultobj; |
3961 | } | |
3962 | ||
0569df0f RD |
3963 | #define delete_wxPen(_swigobj) (delete _swigobj) |
3964 | static PyObject *_wrap_delete_wxPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3965 | PyObject * _resultobj; | |
3966 | wxPen * _arg0; | |
3967 | PyObject * _argo0 = 0; | |
3968 | char *_kwnames[] = { "self", NULL }; | |
3969 | ||
3970 | self = self; | |
3971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPen",_kwnames,&_argo0)) | |
3972 | return NULL; | |
3973 | if (_argo0) { | |
3974 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3975 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
3976 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPen. Expected _wxPen_p."); | |
3977 | return NULL; | |
3978 | } | |
3979 | } | |
3980 | { | |
4268f798 | 3981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3982 | delete_wxPen(_arg0); |
0569df0f | 3983 | |
4268f798 | 3984 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3985 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
3986 | } Py_INCREF(Py_None); |
3987 | _resultobj = Py_None; | |
3988 | return _resultobj; | |
3989 | } | |
3990 | ||
8ab979d7 | 3991 | #define wxPen_GetCap(_swigobj) (_swigobj->GetCap()) |
1afc06c2 | 3992 | static PyObject *_wrap_wxPen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3993 | PyObject * _resultobj; |
3994 | int _result; | |
3995 | wxPen * _arg0; | |
1d99702e | 3996 | PyObject * _argo0 = 0; |
1afc06c2 | 3997 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3998 | |
3999 | self = self; | |
1afc06c2 | 4000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetCap",_kwnames,&_argo0)) |
8ab979d7 | 4001 | return NULL; |
1d99702e RD |
4002 | if (_argo0) { |
4003 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4004 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
8ab979d7 RD |
4005 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetCap. Expected _wxPen_p."); |
4006 | return NULL; | |
4007 | } | |
4008 | } | |
cf694132 | 4009 | { |
4268f798 | 4010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4011 | _result = (int )wxPen_GetCap(_arg0); |
cf694132 | 4012 | |
4268f798 | 4013 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4014 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4015 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4016 | return _resultobj; |
4017 | } | |
4018 | ||
4019 | #define wxPen_GetColour(_swigobj) (_swigobj->GetColour()) | |
1afc06c2 | 4020 | static PyObject *_wrap_wxPen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4021 | PyObject * _resultobj; |
4022 | wxColour * _result; | |
4023 | wxPen * _arg0; | |
1d99702e | 4024 | PyObject * _argo0 = 0; |
1afc06c2 | 4025 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4026 | char _ptemp[128]; |
4027 | ||
4028 | self = self; | |
1afc06c2 | 4029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetColour",_kwnames,&_argo0)) |
8ab979d7 | 4030 | return NULL; |
1d99702e RD |
4031 | if (_argo0) { |
4032 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4033 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
8ab979d7 RD |
4034 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetColour. Expected _wxPen_p."); |
4035 | return NULL; | |
4036 | } | |
4037 | } | |
cf694132 | 4038 | { |
4268f798 | 4039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4040 | _result = new wxColour (wxPen_GetColour(_arg0)); |
cf694132 | 4041 | |
4268f798 | 4042 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4043 | if (PyErr_Occurred()) return NULL; |
25832b3f RD |
4044 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
4045 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
4046 | return _resultobj; |
4047 | } | |
4048 | ||
8ab979d7 | 4049 | #define wxPen_GetJoin(_swigobj) (_swigobj->GetJoin()) |
1afc06c2 | 4050 | static PyObject *_wrap_wxPen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4051 | PyObject * _resultobj; |
4052 | int _result; | |
4053 | wxPen * _arg0; | |
1d99702e | 4054 | PyObject * _argo0 = 0; |
1afc06c2 | 4055 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4056 | |
4057 | self = self; | |
1afc06c2 | 4058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetJoin",_kwnames,&_argo0)) |
8ab979d7 | 4059 | return NULL; |
1d99702e RD |
4060 | if (_argo0) { |
4061 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4062 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
8ab979d7 RD |
4063 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetJoin. Expected _wxPen_p."); |
4064 | return NULL; | |
4065 | } | |
4066 | } | |
cf694132 | 4067 | { |
4268f798 | 4068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4069 | _result = (int )wxPen_GetJoin(_arg0); |
cf694132 | 4070 | |
4268f798 | 4071 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4072 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4073 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4074 | return _resultobj; |
4075 | } | |
4076 | ||
4077 | #define wxPen_GetStyle(_swigobj) (_swigobj->GetStyle()) | |
1afc06c2 | 4078 | static PyObject *_wrap_wxPen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4079 | PyObject * _resultobj; |
4080 | int _result; | |
4081 | wxPen * _arg0; | |
1d99702e | 4082 | PyObject * _argo0 = 0; |
1afc06c2 | 4083 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4084 | |
4085 | self = self; | |
1afc06c2 | 4086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetStyle",_kwnames,&_argo0)) |
8ab979d7 | 4087 | return NULL; |
1d99702e RD |
4088 | if (_argo0) { |
4089 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4090 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
8ab979d7 RD |
4091 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetStyle. Expected _wxPen_p."); |
4092 | return NULL; | |
4093 | } | |
4094 | } | |
cf694132 | 4095 | { |
4268f798 | 4096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4097 | _result = (int )wxPen_GetStyle(_arg0); |
cf694132 | 4098 | |
4268f798 | 4099 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4100 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4101 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4102 | return _resultobj; |
4103 | } | |
4104 | ||
4105 | #define wxPen_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
1afc06c2 | 4106 | static PyObject *_wrap_wxPen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4107 | PyObject * _resultobj; |
4108 | int _result; | |
4109 | wxPen * _arg0; | |
1d99702e | 4110 | PyObject * _argo0 = 0; |
1afc06c2 | 4111 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4112 | |
4113 | self = self; | |
1afc06c2 | 4114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetWidth",_kwnames,&_argo0)) |
8ab979d7 | 4115 | return NULL; |
1d99702e RD |
4116 | if (_argo0) { |
4117 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4118 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
8ab979d7 RD |
4119 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetWidth. Expected _wxPen_p."); |
4120 | return NULL; | |
4121 | } | |
4122 | } | |
cf694132 | 4123 | { |
4268f798 | 4124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4125 | _result = (int )wxPen_GetWidth(_arg0); |
cf694132 | 4126 | |
4268f798 | 4127 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4128 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4129 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4130 | return _resultobj; |
4131 | } | |
4132 | ||
4133 | #define wxPen_Ok(_swigobj) (_swigobj->Ok()) | |
1afc06c2 | 4134 | static PyObject *_wrap_wxPen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4135 | PyObject * _resultobj; |
4136 | bool _result; | |
4137 | wxPen * _arg0; | |
1d99702e | 4138 | PyObject * _argo0 = 0; |
1afc06c2 | 4139 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4140 | |
4141 | self = self; | |
1afc06c2 | 4142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_Ok",_kwnames,&_argo0)) |
8ab979d7 | 4143 | return NULL; |
1d99702e RD |
4144 | if (_argo0) { |
4145 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4146 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
8ab979d7 RD |
4147 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_Ok. Expected _wxPen_p."); |
4148 | return NULL; | |
4149 | } | |
4150 | } | |
cf694132 | 4151 | { |
4268f798 | 4152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4153 | _result = (bool )wxPen_Ok(_arg0); |
cf694132 | 4154 | |
4268f798 | 4155 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4156 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4157 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4158 | return _resultobj; |
4159 | } | |
4160 | ||
4161 | #define wxPen_SetCap(_swigobj,_swigarg0) (_swigobj->SetCap(_swigarg0)) | |
1afc06c2 | 4162 | static PyObject *_wrap_wxPen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4163 | PyObject * _resultobj; |
4164 | wxPen * _arg0; | |
4165 | int _arg1; | |
1d99702e | 4166 | PyObject * _argo0 = 0; |
1afc06c2 | 4167 | char *_kwnames[] = { "self","cap_style", NULL }; |
8ab979d7 RD |
4168 | |
4169 | self = self; | |
1afc06c2 | 4170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetCap",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4171 | return NULL; |
1d99702e RD |
4172 | if (_argo0) { |
4173 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4174 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
8ab979d7 RD |
4175 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetCap. Expected _wxPen_p."); |
4176 | return NULL; | |
4177 | } | |
4178 | } | |
cf694132 | 4179 | { |
4268f798 | 4180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4181 | wxPen_SetCap(_arg0,_arg1); |
cf694132 | 4182 | |
4268f798 | 4183 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4184 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4185 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4186 | _resultobj = Py_None; |
4187 | return _resultobj; | |
4188 | } | |
4189 | ||
4190 | #define wxPen_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0)) | |
1afc06c2 | 4191 | static PyObject *_wrap_wxPen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4192 | PyObject * _resultobj; |
4193 | wxPen * _arg0; | |
4194 | wxColour * _arg1; | |
1d99702e | 4195 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
4196 | wxColour temp; |
4197 | PyObject * _obj1 = 0; | |
1afc06c2 | 4198 | char *_kwnames[] = { "self","colour", NULL }; |
8ab979d7 RD |
4199 | |
4200 | self = self; | |
f6bcfd97 | 4201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_SetColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4202 | return NULL; |
1d99702e RD |
4203 | if (_argo0) { |
4204 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4205 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
8ab979d7 RD |
4206 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetColour. Expected _wxPen_p."); |
4207 | return NULL; | |
4208 | } | |
4209 | } | |
f6bcfd97 BP |
4210 | { |
4211 | _arg1 = &temp; | |
4212 | if (! wxColour_helper(_obj1, &_arg1)) | |
8ab979d7 | 4213 | return NULL; |
f6bcfd97 | 4214 | } |
cf694132 | 4215 | { |
4268f798 | 4216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4217 | wxPen_SetColour(_arg0,*_arg1); |
cf694132 | 4218 | |
4268f798 | 4219 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4220 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4221 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4222 | _resultobj = Py_None; |
4223 | return _resultobj; | |
4224 | } | |
4225 | ||
2ea09579 | 4226 | #define wxPen_SetJoin(_swigobj,_swigarg0) (_swigobj->SetJoin(_swigarg0)) |
1afc06c2 | 4227 | static PyObject *_wrap_wxPen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4228 | PyObject * _resultobj; |
4229 | wxPen * _arg0; | |
4230 | int _arg1; | |
1d99702e | 4231 | PyObject * _argo0 = 0; |
1afc06c2 | 4232 | char *_kwnames[] = { "self","join_style", NULL }; |
8ab979d7 RD |
4233 | |
4234 | self = self; | |
1afc06c2 | 4235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetJoin",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4236 | return NULL; |
1d99702e RD |
4237 | if (_argo0) { |
4238 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4239 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
2ea09579 | 4240 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetJoin. Expected _wxPen_p."); |
8ab979d7 RD |
4241 | return NULL; |
4242 | } | |
4243 | } | |
cf694132 | 4244 | { |
4268f798 | 4245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4246 | wxPen_SetJoin(_arg0,_arg1); |
cf694132 | 4247 | |
4268f798 | 4248 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4249 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4250 | } Py_INCREF(Py_None); |
2ea09579 RD |
4251 | _resultobj = Py_None; |
4252 | return _resultobj; | |
4253 | } | |
4254 | ||
4255 | #define wxPen_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0)) | |
1afc06c2 | 4256 | static PyObject *_wrap_wxPen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { |
2ea09579 RD |
4257 | PyObject * _resultobj; |
4258 | wxPen * _arg0; | |
4259 | int _arg1; | |
1d99702e | 4260 | PyObject * _argo0 = 0; |
1afc06c2 | 4261 | char *_kwnames[] = { "self","style", NULL }; |
2ea09579 RD |
4262 | |
4263 | self = self; | |
1afc06c2 | 4264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetStyle",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4265 | return NULL; |
1d99702e RD |
4266 | if (_argo0) { |
4267 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4268 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
2ea09579 RD |
4269 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetStyle. Expected _wxPen_p."); |
4270 | return NULL; | |
4271 | } | |
8ab979d7 | 4272 | } |
cf694132 | 4273 | { |
4268f798 | 4274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4275 | wxPen_SetStyle(_arg0,_arg1); |
cf694132 | 4276 | |
4268f798 | 4277 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4278 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4279 | } Py_INCREF(Py_None); |
8ab979d7 | 4280 | _resultobj = Py_None; |
2ea09579 | 4281 | return _resultobj; |
8ab979d7 | 4282 | } |
2ea09579 RD |
4283 | |
4284 | #define wxPen_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0)) | |
1afc06c2 | 4285 | static PyObject *_wrap_wxPen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
2ea09579 RD |
4286 | PyObject * _resultobj; |
4287 | wxPen * _arg0; | |
4288 | int _arg1; | |
1d99702e | 4289 | PyObject * _argo0 = 0; |
1afc06c2 | 4290 | char *_kwnames[] = { "self","width", NULL }; |
2ea09579 RD |
4291 | |
4292 | self = self; | |
1afc06c2 | 4293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetWidth",_kwnames,&_argo0,&_arg1)) |
2ea09579 | 4294 | return NULL; |
1d99702e RD |
4295 | if (_argo0) { |
4296 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4297 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
2ea09579 RD |
4298 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetWidth. Expected _wxPen_p."); |
4299 | return NULL; | |
4300 | } | |
4301 | } | |
cf694132 | 4302 | { |
4268f798 | 4303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4304 | wxPen_SetWidth(_arg0,_arg1); |
cf694132 | 4305 | |
4268f798 | 4306 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4307 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4308 | } Py_INCREF(Py_None); |
2ea09579 | 4309 | _resultobj = Py_None; |
8ab979d7 RD |
4310 | return _resultobj; |
4311 | } | |
4312 | ||
2ea09579 | 4313 | #define wxPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1)) |
1afc06c2 | 4314 | static PyObject *_wrap_wxPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4315 | PyObject * _resultobj; |
4316 | wxPen * _arg0; | |
4317 | int _arg1; | |
2ea09579 | 4318 | wxDash * _arg2; |
1d99702e | 4319 | PyObject * _argo0 = 0; |
2ea09579 | 4320 | PyObject * _obj2 = 0; |
eec92d76 | 4321 | char *_kwnames[] = { "self","choices", NULL }; |
8ab979d7 RD |
4322 | |
4323 | self = self; | |
1afc06c2 | 4324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_SetDashes",_kwnames,&_argo0,&_obj2)) |
8ab979d7 | 4325 | return NULL; |
1d99702e RD |
4326 | if (_argo0) { |
4327 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4328 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
2ea09579 | 4329 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetDashes. Expected _wxPen_p."); |
8ab979d7 RD |
4330 | return NULL; |
4331 | } | |
4332 | } | |
2ea09579 RD |
4333 | if (_obj2) |
4334 | { | |
f6bcfd97 | 4335 | _arg2 = (wxDash*)byte_LIST_helper(_obj2); |
2ea09579 RD |
4336 | if (_arg2 == NULL) { |
4337 | return NULL; | |
4338 | } | |
4339 | } | |
4340 | { | |
cf694132 RD |
4341 | if (_obj2) { |
4342 | _arg1 = PyList_Size(_obj2); | |
4343 | } | |
4344 | else { | |
4345 | _arg1 = 0; | |
4346 | } | |
2ea09579 | 4347 | } |
cf694132 | 4348 | { |
4268f798 | 4349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4350 | wxPen_SetDashes(_arg0,_arg1,_arg2); |
cf694132 | 4351 | |
4268f798 | 4352 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4353 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4354 | } Py_INCREF(Py_None); |
8ab979d7 | 4355 | _resultobj = Py_None; |
2ea09579 RD |
4356 | { |
4357 | delete [] _arg2; | |
4358 | } | |
8ab979d7 RD |
4359 | return _resultobj; |
4360 | } | |
4361 | ||
756ed80c RD |
4362 | static PyObject * wxPen_GetDashes(wxPen *self) { |
4363 | wxDash* dashes; | |
4364 | int count = self->GetDashes(&dashes); | |
4365 | wxPyBeginBlockThreads(); | |
4366 | PyObject* retval = PyList_New(0); | |
4367 | for (int x=0; x<count; x++) | |
4368 | PyList_Append(retval, PyInt_FromLong(dashes[x])); | |
4369 | wxPyEndBlockThreads(); | |
4370 | return retval; | |
4371 | } | |
4372 | static PyObject *_wrap_wxPen_GetDashes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4373 | PyObject * _resultobj; | |
4374 | PyObject * _result; | |
4375 | wxPen * _arg0; | |
4376 | PyObject * _argo0 = 0; | |
4377 | char *_kwnames[] = { "self", NULL }; | |
4378 | ||
4379 | self = self; | |
4380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetDashes",_kwnames,&_argo0)) | |
4381 | return NULL; | |
4382 | if (_argo0) { | |
4383 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4384 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
4385 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetDashes. Expected _wxPen_p."); | |
4386 | return NULL; | |
4387 | } | |
4388 | } | |
4389 | { | |
4390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4391 | _result = (PyObject *)wxPen_GetDashes(_arg0); | |
4392 | ||
4393 | wxPyEndAllowThreads(__tstate); | |
4394 | if (PyErr_Occurred()) return NULL; | |
4395 | }{ | |
4396 | _resultobj = _result; | |
4397 | } | |
4398 | return _resultobj; | |
4399 | } | |
4400 | ||
6999b0d8 RD |
4401 | #define wxPen_GetStipple(_swigobj) (_swigobj->GetStipple()) |
4402 | static PyObject *_wrap_wxPen_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4403 | PyObject * _resultobj; | |
4404 | wxBitmap * _result; | |
4405 | wxPen * _arg0; | |
4406 | PyObject * _argo0 = 0; | |
4407 | char *_kwnames[] = { "self", NULL }; | |
4408 | char _ptemp[128]; | |
4409 | ||
4410 | self = self; | |
4411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetStipple",_kwnames,&_argo0)) | |
4412 | return NULL; | |
4413 | if (_argo0) { | |
4414 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4415 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
4416 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetStipple. Expected _wxPen_p."); | |
4417 | return NULL; | |
4418 | } | |
4419 | } | |
4420 | { | |
4268f798 | 4421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4422 | _result = (wxBitmap *)wxPen_GetStipple(_arg0); |
6999b0d8 | 4423 | |
4268f798 | 4424 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4425 | if (PyErr_Occurred()) return NULL; |
6999b0d8 RD |
4426 | } if (_result) { |
4427 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
4428 | _resultobj = Py_BuildValue("s",_ptemp); | |
4429 | } else { | |
4430 | Py_INCREF(Py_None); | |
4431 | _resultobj = Py_None; | |
4432 | } | |
4433 | return _resultobj; | |
4434 | } | |
4435 | ||
2ea09579 | 4436 | #define wxPen_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0)) |
1afc06c2 | 4437 | static PyObject *_wrap_wxPen_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4438 | PyObject * _resultobj; |
4439 | wxPen * _arg0; | |
2ea09579 | 4440 | wxBitmap * _arg1; |
1d99702e RD |
4441 | PyObject * _argo0 = 0; |
4442 | PyObject * _argo1 = 0; | |
1afc06c2 | 4443 | char *_kwnames[] = { "self","stipple", NULL }; |
8ab979d7 RD |
4444 | |
4445 | self = self; | |
1afc06c2 | 4446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_SetStipple",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 4447 | return NULL; |
1d99702e RD |
4448 | if (_argo0) { |
4449 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4450 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) { | |
2ea09579 | 4451 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetStipple. Expected _wxPen_p."); |
8ab979d7 RD |
4452 | return NULL; |
4453 | } | |
4454 | } | |
1d99702e | 4455 | if (_argo1) { |
7e50db3f | 4456 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { |
2ea09579 RD |
4457 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPen_SetStipple. Expected _wxBitmap_p."); |
4458 | return NULL; | |
4459 | } | |
4460 | } | |
cf694132 | 4461 | { |
4268f798 | 4462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4463 | wxPen_SetStipple(_arg0,*_arg1); |
cf694132 | 4464 | |
4268f798 | 4465 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4466 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4467 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4468 | _resultobj = Py_None; |
4469 | return _resultobj; | |
4470 | } | |
4471 | ||
ecc08ead RD |
4472 | static void *SwigwxPyPenTowxPen(void *ptr) { |
4473 | wxPyPen *src; | |
4474 | wxPen *dest; | |
4475 | src = (wxPyPen *) ptr; | |
4476 | dest = (wxPen *) src; | |
4477 | return (void *) dest; | |
4478 | } | |
4479 | ||
4480 | static void *SwigwxPyPenTowxGDIObject(void *ptr) { | |
4481 | wxPyPen *src; | |
4482 | wxGDIObject *dest; | |
4483 | src = (wxPyPen *) ptr; | |
4484 | dest = (wxGDIObject *) src; | |
4485 | return (void *) dest; | |
4486 | } | |
4487 | ||
4488 | static void *SwigwxPyPenTowxObject(void *ptr) { | |
4489 | wxPyPen *src; | |
4490 | wxObject *dest; | |
4491 | src = (wxPyPen *) ptr; | |
4492 | dest = (wxObject *) src; | |
4493 | return (void *) dest; | |
4494 | } | |
4495 | ||
4496 | #define new_wxPyPen(_swigarg0,_swigarg1,_swigarg2) (new wxPyPen(_swigarg0,_swigarg1,_swigarg2)) | |
4497 | static PyObject *_wrap_new_wxPyPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4498 | PyObject * _resultobj; | |
4499 | wxPyPen * _result; | |
4500 | wxColour * _arg0; | |
4501 | int _arg1 = (int ) 1; | |
4502 | int _arg2 = (int ) wxSOLID; | |
4503 | wxColour temp; | |
4504 | PyObject * _obj0 = 0; | |
4505 | char *_kwnames[] = { "colour","width","style", NULL }; | |
4506 | char _ptemp[128]; | |
4507 | ||
4508 | self = self; | |
4509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:new_wxPyPen",_kwnames,&_obj0,&_arg1,&_arg2)) | |
4510 | return NULL; | |
4511 | { | |
4512 | _arg0 = &temp; | |
4513 | if (! wxColour_helper(_obj0, &_arg0)) | |
4514 | return NULL; | |
4515 | } | |
4516 | { | |
4268f798 | 4517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4518 | _result = (wxPyPen *)new_wxPyPen(*_arg0,_arg1,_arg2); |
ecc08ead | 4519 | |
4268f798 | 4520 | wxPyEndAllowThreads(__tstate); |
ecc08ead RD |
4521 | if (PyErr_Occurred()) return NULL; |
4522 | } if (_result) { | |
4523 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyPen_p"); | |
4524 | _resultobj = Py_BuildValue("s",_ptemp); | |
4525 | } else { | |
4526 | Py_INCREF(Py_None); | |
4527 | _resultobj = Py_None; | |
4528 | } | |
4529 | return _resultobj; | |
4530 | } | |
4531 | ||
4532 | #define delete_wxPyPen(_swigobj) (delete _swigobj) | |
4533 | static PyObject *_wrap_delete_wxPyPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4534 | PyObject * _resultobj; | |
4535 | wxPyPen * _arg0; | |
4536 | PyObject * _argo0 = 0; | |
4537 | char *_kwnames[] = { "self", NULL }; | |
4538 | ||
4539 | self = self; | |
4540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPyPen",_kwnames,&_argo0)) | |
4541 | return NULL; | |
4542 | if (_argo0) { | |
4543 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4544 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPen_p")) { | |
4545 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPyPen. Expected _wxPyPen_p."); | |
4546 | return NULL; | |
4547 | } | |
4548 | } | |
4549 | { | |
4268f798 | 4550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4551 | delete_wxPyPen(_arg0); |
ecc08ead | 4552 | |
4268f798 | 4553 | wxPyEndAllowThreads(__tstate); |
ecc08ead RD |
4554 | if (PyErr_Occurred()) return NULL; |
4555 | } Py_INCREF(Py_None); | |
4556 | _resultobj = Py_None; | |
4557 | return _resultobj; | |
4558 | } | |
4559 | ||
4560 | #define wxPyPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1)) | |
4561 | static PyObject *_wrap_wxPyPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4562 | PyObject * _resultobj; | |
4563 | wxPyPen * _arg0; | |
4564 | int _arg1; | |
4565 | wxDash * _arg2; | |
4566 | PyObject * _argo0 = 0; | |
4567 | PyObject * _obj2 = 0; | |
4568 | char *_kwnames[] = { "self","choices", NULL }; | |
4569 | ||
4570 | self = self; | |
4571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyPen_SetDashes",_kwnames,&_argo0,&_obj2)) | |
4572 | return NULL; | |
4573 | if (_argo0) { | |
4574 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4575 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPen_p")) { | |
4576 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyPen_SetDashes. Expected _wxPyPen_p."); | |
4577 | return NULL; | |
4578 | } | |
4579 | } | |
4580 | if (_obj2) | |
4581 | { | |
4582 | _arg2 = (wxDash*)byte_LIST_helper(_obj2); | |
4583 | if (_arg2 == NULL) { | |
4584 | return NULL; | |
4585 | } | |
4586 | } | |
4587 | { | |
4588 | if (_obj2) { | |
4589 | _arg1 = PyList_Size(_obj2); | |
4590 | } | |
4591 | else { | |
4592 | _arg1 = 0; | |
4593 | } | |
4594 | } | |
4595 | { | |
4268f798 | 4596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4597 | wxPyPen_SetDashes(_arg0,_arg1,_arg2); |
ecc08ead | 4598 | |
4268f798 | 4599 | wxPyEndAllowThreads(__tstate); |
ecc08ead RD |
4600 | if (PyErr_Occurred()) return NULL; |
4601 | } Py_INCREF(Py_None); | |
4602 | _resultobj = Py_None; | |
4603 | { | |
4604 | delete [] _arg2; | |
4605 | } | |
4606 | return _resultobj; | |
4607 | } | |
4608 | ||
9416aa89 RD |
4609 | static void *SwigwxPenListTowxObject(void *ptr) { |
4610 | wxPenList *src; | |
4611 | wxObject *dest; | |
4612 | src = (wxPenList *) ptr; | |
4613 | dest = (wxObject *) src; | |
4614 | return (void *) dest; | |
4615 | } | |
4616 | ||
0569df0f RD |
4617 | #define wxPenList_AddPen(_swigobj,_swigarg0) (_swigobj->AddPen(_swigarg0)) |
4618 | static PyObject *_wrap_wxPenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4619 | PyObject * _resultobj; | |
4620 | wxPenList * _arg0; | |
4621 | wxPen * _arg1; | |
4622 | PyObject * _argo0 = 0; | |
4623 | PyObject * _argo1 = 0; | |
4624 | char *_kwnames[] = { "self","pen", NULL }; | |
4625 | ||
4626 | self = self; | |
4627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPenList_AddPen",_kwnames,&_argo0,&_argo1)) | |
4628 | return NULL; | |
4629 | if (_argo0) { | |
4630 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4631 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) { | |
4632 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_AddPen. Expected _wxPenList_p."); | |
4633 | return NULL; | |
4634 | } | |
4635 | } | |
4636 | if (_argo1) { | |
4637 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4638 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) { | |
4639 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPenList_AddPen. Expected _wxPen_p."); | |
4640 | return NULL; | |
4641 | } | |
4642 | } | |
4643 | { | |
4268f798 | 4644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4645 | wxPenList_AddPen(_arg0,_arg1); |
0569df0f | 4646 | |
4268f798 | 4647 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4648 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
4649 | } Py_INCREF(Py_None); |
4650 | _resultobj = Py_None; | |
4651 | return _resultobj; | |
4652 | } | |
4653 | ||
4654 | #define wxPenList_FindOrCreatePen(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindOrCreatePen(_swigarg0,_swigarg1,_swigarg2)) | |
4655 | static PyObject *_wrap_wxPenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4656 | PyObject * _resultobj; | |
4657 | wxPen * _result; | |
4658 | wxPenList * _arg0; | |
4659 | wxColour * _arg1; | |
4660 | int _arg2; | |
4661 | int _arg3; | |
4662 | PyObject * _argo0 = 0; | |
4663 | wxColour temp; | |
4664 | PyObject * _obj1 = 0; | |
4665 | char *_kwnames[] = { "self","colour","width","style", NULL }; | |
4666 | char _ptemp[128]; | |
4667 | ||
4668 | self = self; | |
4669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii:wxPenList_FindOrCreatePen",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3)) | |
4670 | return NULL; | |
4671 | if (_argo0) { | |
4672 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4673 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) { | |
4674 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_FindOrCreatePen. Expected _wxPenList_p."); | |
4675 | return NULL; | |
4676 | } | |
4677 | } | |
4678 | { | |
4679 | _arg1 = &temp; | |
4680 | if (! wxColour_helper(_obj1, &_arg1)) | |
4681 | return NULL; | |
4682 | } | |
4683 | { | |
4268f798 | 4684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4685 | _result = (wxPen *)wxPenList_FindOrCreatePen(_arg0,*_arg1,_arg2,_arg3); |
0569df0f | 4686 | |
4268f798 | 4687 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4688 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
4689 | } if (_result) { |
4690 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPen_p"); | |
4691 | _resultobj = Py_BuildValue("s",_ptemp); | |
4692 | } else { | |
4693 | Py_INCREF(Py_None); | |
4694 | _resultobj = Py_None; | |
4695 | } | |
4696 | return _resultobj; | |
4697 | } | |
4698 | ||
4699 | #define wxPenList_RemovePen(_swigobj,_swigarg0) (_swigobj->RemovePen(_swigarg0)) | |
4700 | static PyObject *_wrap_wxPenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4701 | PyObject * _resultobj; | |
4702 | wxPenList * _arg0; | |
4703 | wxPen * _arg1; | |
4704 | PyObject * _argo0 = 0; | |
4705 | PyObject * _argo1 = 0; | |
4706 | char *_kwnames[] = { "self","pen", NULL }; | |
4707 | ||
4708 | self = self; | |
4709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPenList_RemovePen",_kwnames,&_argo0,&_argo1)) | |
4710 | return NULL; | |
4711 | if (_argo0) { | |
4712 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4713 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) { | |
4714 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_RemovePen. Expected _wxPenList_p."); | |
4715 | return NULL; | |
4716 | } | |
4717 | } | |
4718 | if (_argo1) { | |
4719 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4720 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) { | |
4721 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPenList_RemovePen. Expected _wxPen_p."); | |
4722 | return NULL; | |
8ab979d7 | 4723 | } |
0569df0f RD |
4724 | } |
4725 | { | |
4268f798 | 4726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4727 | wxPenList_RemovePen(_arg0,_arg1); |
8ab979d7 | 4728 | |
4268f798 | 4729 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4730 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
4731 | } Py_INCREF(Py_None); |
4732 | _resultobj = Py_None; | |
4733 | return _resultobj; | |
4734 | } | |
4735 | ||
2f4e9287 RD |
4736 | #define wxPenList_GetCount(_swigobj) (_swigobj->GetCount()) |
4737 | static PyObject *_wrap_wxPenList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4738 | PyObject * _resultobj; | |
4739 | int _result; | |
4740 | wxPenList * _arg0; | |
4741 | PyObject * _argo0 = 0; | |
4742 | char *_kwnames[] = { "self", NULL }; | |
4743 | ||
4744 | self = self; | |
4745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPenList_GetCount",_kwnames,&_argo0)) | |
4746 | return NULL; | |
4747 | if (_argo0) { | |
4748 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4749 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) { | |
4750 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_GetCount. Expected _wxPenList_p."); | |
4751 | return NULL; | |
4752 | } | |
4753 | } | |
4754 | { | |
4268f798 | 4755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4756 | _result = (int )wxPenList_GetCount(_arg0); |
2f4e9287 | 4757 | |
4268f798 | 4758 | wxPyEndAllowThreads(__tstate); |
2f4e9287 RD |
4759 | if (PyErr_Occurred()) return NULL; |
4760 | } _resultobj = Py_BuildValue("i",_result); | |
4761 | return _resultobj; | |
4762 | } | |
4763 | ||
9416aa89 RD |
4764 | static void *SwigwxBrushTowxGDIObject(void *ptr) { |
4765 | wxBrush *src; | |
4766 | wxGDIObject *dest; | |
4767 | src = (wxBrush *) ptr; | |
4768 | dest = (wxGDIObject *) src; | |
4769 | return (void *) dest; | |
4770 | } | |
4771 | ||
4772 | static void *SwigwxBrushTowxObject(void *ptr) { | |
4773 | wxBrush *src; | |
4774 | wxObject *dest; | |
4775 | src = (wxBrush *) ptr; | |
4776 | dest = (wxObject *) src; | |
4777 | return (void *) dest; | |
4778 | } | |
4779 | ||
0569df0f | 4780 | #define new_wxBrush(_swigarg0,_swigarg1) (new wxBrush(_swigarg0,_swigarg1)) |
1afc06c2 | 4781 | static PyObject *_wrap_new_wxBrush(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4782 | PyObject * _resultobj; |
4783 | wxBrush * _result; | |
4784 | wxColour * _arg0; | |
1d99702e | 4785 | int _arg1 = (int ) wxSOLID; |
f6bcfd97 BP |
4786 | wxColour temp; |
4787 | PyObject * _obj0 = 0; | |
1afc06c2 | 4788 | char *_kwnames[] = { "colour","style", NULL }; |
8ab979d7 RD |
4789 | char _ptemp[128]; |
4790 | ||
4791 | self = self; | |
f6bcfd97 | 4792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:new_wxBrush",_kwnames,&_obj0,&_arg1)) |
8ab979d7 | 4793 | return NULL; |
f6bcfd97 BP |
4794 | { |
4795 | _arg0 = &temp; | |
4796 | if (! wxColour_helper(_obj0, &_arg0)) | |
8ab979d7 | 4797 | return NULL; |
f6bcfd97 | 4798 | } |
cf694132 | 4799 | { |
4268f798 | 4800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4801 | _result = (wxBrush *)new_wxBrush(*_arg0,_arg1); |
cf694132 | 4802 | |
4268f798 | 4803 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4804 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
4805 | } if (_result) { |
4806 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p"); | |
4807 | _resultobj = Py_BuildValue("s",_ptemp); | |
4808 | } else { | |
4809 | Py_INCREF(Py_None); | |
4810 | _resultobj = Py_None; | |
4811 | } | |
8ab979d7 RD |
4812 | return _resultobj; |
4813 | } | |
4814 | ||
0569df0f RD |
4815 | #define delete_wxBrush(_swigobj) (delete _swigobj) |
4816 | static PyObject *_wrap_delete_wxBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4817 | PyObject * _resultobj; | |
4818 | wxBrush * _arg0; | |
4819 | PyObject * _argo0 = 0; | |
4820 | char *_kwnames[] = { "self", NULL }; | |
4821 | ||
4822 | self = self; | |
4823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxBrush",_kwnames,&_argo0)) | |
4824 | return NULL; | |
4825 | if (_argo0) { | |
4826 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4827 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
4828 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxBrush. Expected _wxBrush_p."); | |
4829 | return NULL; | |
4830 | } | |
4831 | } | |
4832 | { | |
4268f798 | 4833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4834 | delete_wxBrush(_arg0); |
0569df0f | 4835 | |
4268f798 | 4836 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4837 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
4838 | } Py_INCREF(Py_None); |
4839 | _resultobj = Py_None; | |
4840 | return _resultobj; | |
4841 | } | |
4842 | ||
8ab979d7 | 4843 | #define wxBrush_GetColour(_swigobj) (_swigobj->GetColour()) |
1afc06c2 | 4844 | static PyObject *_wrap_wxBrush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4845 | PyObject * _resultobj; |
4846 | wxColour * _result; | |
4847 | wxBrush * _arg0; | |
1d99702e | 4848 | PyObject * _argo0 = 0; |
1afc06c2 | 4849 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4850 | char _ptemp[128]; |
4851 | ||
4852 | self = self; | |
1afc06c2 | 4853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetColour",_kwnames,&_argo0)) |
8ab979d7 | 4854 | return NULL; |
1d99702e RD |
4855 | if (_argo0) { |
4856 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4857 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
8ab979d7 RD |
4858 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetColour. Expected _wxBrush_p."); |
4859 | return NULL; | |
4860 | } | |
4861 | } | |
cf694132 | 4862 | { |
4268f798 | 4863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4864 | _result = new wxColour (wxBrush_GetColour(_arg0)); |
cf694132 | 4865 | |
4268f798 | 4866 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4867 | if (PyErr_Occurred()) return NULL; |
25832b3f RD |
4868 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
4869 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
4870 | return _resultobj; |
4871 | } | |
4872 | ||
4873 | #define wxBrush_GetStipple(_swigobj) (_swigobj->GetStipple()) | |
1afc06c2 | 4874 | static PyObject *_wrap_wxBrush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4875 | PyObject * _resultobj; |
4876 | wxBitmap * _result; | |
4877 | wxBrush * _arg0; | |
1d99702e | 4878 | PyObject * _argo0 = 0; |
1afc06c2 | 4879 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4880 | char _ptemp[128]; |
4881 | ||
4882 | self = self; | |
1afc06c2 | 4883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetStipple",_kwnames,&_argo0)) |
8ab979d7 | 4884 | return NULL; |
1d99702e RD |
4885 | if (_argo0) { |
4886 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4887 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
8ab979d7 RD |
4888 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetStipple. Expected _wxBrush_p."); |
4889 | return NULL; | |
4890 | } | |
4891 | } | |
cf694132 | 4892 | { |
4268f798 | 4893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4894 | _result = (wxBitmap *)wxBrush_GetStipple(_arg0); |
cf694132 | 4895 | |
4268f798 | 4896 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4897 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
4898 | } if (_result) { |
4899 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
4900 | _resultobj = Py_BuildValue("s",_ptemp); | |
4901 | } else { | |
4902 | Py_INCREF(Py_None); | |
4903 | _resultobj = Py_None; | |
4904 | } | |
8ab979d7 RD |
4905 | return _resultobj; |
4906 | } | |
4907 | ||
4908 | #define wxBrush_GetStyle(_swigobj) (_swigobj->GetStyle()) | |
1afc06c2 | 4909 | static PyObject *_wrap_wxBrush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4910 | PyObject * _resultobj; |
4911 | int _result; | |
4912 | wxBrush * _arg0; | |
1d99702e | 4913 | PyObject * _argo0 = 0; |
1afc06c2 | 4914 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4915 | |
4916 | self = self; | |
1afc06c2 | 4917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetStyle",_kwnames,&_argo0)) |
8ab979d7 | 4918 | return NULL; |
1d99702e RD |
4919 | if (_argo0) { |
4920 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4921 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
8ab979d7 RD |
4922 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetStyle. Expected _wxBrush_p."); |
4923 | return NULL; | |
4924 | } | |
4925 | } | |
cf694132 | 4926 | { |
4268f798 | 4927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4928 | _result = (int )wxBrush_GetStyle(_arg0); |
cf694132 | 4929 | |
4268f798 | 4930 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4931 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4932 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4933 | return _resultobj; |
4934 | } | |
4935 | ||
4936 | #define wxBrush_Ok(_swigobj) (_swigobj->Ok()) | |
1afc06c2 | 4937 | static PyObject *_wrap_wxBrush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4938 | PyObject * _resultobj; |
4939 | bool _result; | |
4940 | wxBrush * _arg0; | |
1d99702e | 4941 | PyObject * _argo0 = 0; |
1afc06c2 | 4942 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4943 | |
4944 | self = self; | |
1afc06c2 | 4945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_Ok",_kwnames,&_argo0)) |
8ab979d7 | 4946 | return NULL; |
1d99702e RD |
4947 | if (_argo0) { |
4948 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4949 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
8ab979d7 RD |
4950 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_Ok. Expected _wxBrush_p."); |
4951 | return NULL; | |
4952 | } | |
4953 | } | |
cf694132 | 4954 | { |
4268f798 | 4955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4956 | _result = (bool )wxBrush_Ok(_arg0); |
cf694132 | 4957 | |
4268f798 | 4958 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4959 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4960 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4961 | return _resultobj; |
4962 | } | |
4963 | ||
4964 | #define wxBrush_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0)) | |
1afc06c2 | 4965 | static PyObject *_wrap_wxBrush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4966 | PyObject * _resultobj; |
4967 | wxBrush * _arg0; | |
4968 | wxColour * _arg1; | |
1d99702e | 4969 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
4970 | wxColour temp; |
4971 | PyObject * _obj1 = 0; | |
1afc06c2 | 4972 | char *_kwnames[] = { "self","colour", NULL }; |
8ab979d7 RD |
4973 | |
4974 | self = self; | |
f6bcfd97 | 4975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrush_SetColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4976 | return NULL; |
1d99702e RD |
4977 | if (_argo0) { |
4978 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4979 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
8ab979d7 RD |
4980 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetColour. Expected _wxBrush_p."); |
4981 | return NULL; | |
4982 | } | |
4983 | } | |
f6bcfd97 BP |
4984 | { |
4985 | _arg1 = &temp; | |
4986 | if (! wxColour_helper(_obj1, &_arg1)) | |
8ab979d7 | 4987 | return NULL; |
f6bcfd97 | 4988 | } |
cf694132 | 4989 | { |
4268f798 | 4990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4991 | wxBrush_SetColour(_arg0,*_arg1); |
cf694132 | 4992 | |
4268f798 | 4993 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4994 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4995 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4996 | _resultobj = Py_None; |
4997 | return _resultobj; | |
4998 | } | |
4999 | ||
5000 | #define wxBrush_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0)) | |
1afc06c2 | 5001 | static PyObject *_wrap_wxBrush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5002 | PyObject * _resultobj; |
5003 | wxBrush * _arg0; | |
5004 | wxBitmap * _arg1; | |
1d99702e RD |
5005 | PyObject * _argo0 = 0; |
5006 | PyObject * _argo1 = 0; | |
1afc06c2 | 5007 | char *_kwnames[] = { "self","bitmap", NULL }; |
8ab979d7 RD |
5008 | |
5009 | self = self; | |
1afc06c2 | 5010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrush_SetStipple",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 5011 | return NULL; |
1d99702e RD |
5012 | if (_argo0) { |
5013 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5014 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
8ab979d7 RD |
5015 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetStipple. Expected _wxBrush_p."); |
5016 | return NULL; | |
5017 | } | |
5018 | } | |
1d99702e | 5019 | if (_argo1) { |
7e50db3f | 5020 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { |
8ab979d7 RD |
5021 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrush_SetStipple. Expected _wxBitmap_p."); |
5022 | return NULL; | |
5023 | } | |
5024 | } | |
cf694132 | 5025 | { |
4268f798 | 5026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5027 | wxBrush_SetStipple(_arg0,*_arg1); |
cf694132 | 5028 | |
4268f798 | 5029 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5030 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5031 | } Py_INCREF(Py_None); |
8ab979d7 RD |
5032 | _resultobj = Py_None; |
5033 | return _resultobj; | |
5034 | } | |
5035 | ||
5036 | #define wxBrush_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0)) | |
1afc06c2 | 5037 | static PyObject *_wrap_wxBrush_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5038 | PyObject * _resultobj; |
5039 | wxBrush * _arg0; | |
5040 | int _arg1; | |
1d99702e | 5041 | PyObject * _argo0 = 0; |
1afc06c2 | 5042 | char *_kwnames[] = { "self","style", NULL }; |
8ab979d7 RD |
5043 | |
5044 | self = self; | |
1afc06c2 | 5045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBrush_SetStyle",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 5046 | return NULL; |
1d99702e RD |
5047 | if (_argo0) { |
5048 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5049 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) { | |
8ab979d7 RD |
5050 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetStyle. Expected _wxBrush_p."); |
5051 | return NULL; | |
5052 | } | |
5053 | } | |
cf694132 | 5054 | { |
4268f798 | 5055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5056 | wxBrush_SetStyle(_arg0,_arg1); |
cf694132 | 5057 | |
4268f798 | 5058 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5059 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5060 | } Py_INCREF(Py_None); |
8ab979d7 RD |
5061 | _resultobj = Py_None; |
5062 | return _resultobj; | |
5063 | } | |
5064 | ||
6ee2116b RD |
5065 | static void *SwigwxBrushListTowxObject(void *ptr) { |
5066 | wxBrushList *src; | |
5067 | wxObject *dest; | |
5068 | src = (wxBrushList *) ptr; | |
5069 | dest = (wxObject *) src; | |
5070 | return (void *) dest; | |
5071 | } | |
5072 | ||
0569df0f RD |
5073 | #define wxBrushList_AddBrush(_swigobj,_swigarg0) (_swigobj->AddBrush(_swigarg0)) |
5074 | static PyObject *_wrap_wxBrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5075 | PyObject * _resultobj; | |
5076 | wxBrushList * _arg0; | |
5077 | wxBrush * _arg1; | |
5078 | PyObject * _argo0 = 0; | |
5079 | PyObject * _argo1 = 0; | |
5080 | char *_kwnames[] = { "self","brush", NULL }; | |
5081 | ||
5082 | self = self; | |
5083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrushList_AddBrush",_kwnames,&_argo0,&_argo1)) | |
5084 | return NULL; | |
5085 | if (_argo0) { | |
5086 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5087 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) { | |
5088 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_AddBrush. Expected _wxBrushList_p."); | |
5089 | return NULL; | |
5090 | } | |
5091 | } | |
5092 | if (_argo1) { | |
5093 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5094 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) { | |
5095 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrushList_AddBrush. Expected _wxBrush_p."); | |
5096 | return NULL; | |
5097 | } | |
5098 | } | |
5099 | { | |
4268f798 | 5100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5101 | wxBrushList_AddBrush(_arg0,_arg1); |
0569df0f | 5102 | |
4268f798 | 5103 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5104 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
5105 | } Py_INCREF(Py_None); |
5106 | _resultobj = Py_None; | |
5107 | return _resultobj; | |
5108 | } | |
5109 | ||
5110 | #define wxBrushList_FindOrCreateBrush(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindOrCreateBrush(_swigarg0,_swigarg1)) | |
5111 | static PyObject *_wrap_wxBrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5112 | PyObject * _resultobj; | |
5113 | wxBrush * _result; | |
5114 | wxBrushList * _arg0; | |
5115 | wxColour * _arg1; | |
5116 | int _arg2; | |
5117 | PyObject * _argo0 = 0; | |
5118 | wxColour temp; | |
5119 | PyObject * _obj1 = 0; | |
5120 | char *_kwnames[] = { "self","colour","style", NULL }; | |
5121 | char _ptemp[128]; | |
5122 | ||
5123 | self = self; | |
5124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxBrushList_FindOrCreateBrush",_kwnames,&_argo0,&_obj1,&_arg2)) | |
5125 | return NULL; | |
5126 | if (_argo0) { | |
5127 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5128 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) { | |
5129 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_FindOrCreateBrush. Expected _wxBrushList_p."); | |
5130 | return NULL; | |
5131 | } | |
5132 | } | |
5133 | { | |
5134 | _arg1 = &temp; | |
5135 | if (! wxColour_helper(_obj1, &_arg1)) | |
5136 | return NULL; | |
5137 | } | |
5138 | { | |
4268f798 | 5139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5140 | _result = (wxBrush *)wxBrushList_FindOrCreateBrush(_arg0,*_arg1,_arg2); |
0569df0f | 5141 | |
4268f798 | 5142 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5143 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
5144 | } if (_result) { |
5145 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p"); | |
5146 | _resultobj = Py_BuildValue("s",_ptemp); | |
5147 | } else { | |
5148 | Py_INCREF(Py_None); | |
5149 | _resultobj = Py_None; | |
5150 | } | |
5151 | return _resultobj; | |
5152 | } | |
5153 | ||
5154 | #define wxBrushList_RemoveBrush(_swigobj,_swigarg0) (_swigobj->RemoveBrush(_swigarg0)) | |
5155 | static PyObject *_wrap_wxBrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5156 | PyObject * _resultobj; | |
5157 | wxBrushList * _arg0; | |
5158 | wxBrush * _arg1; | |
5159 | PyObject * _argo0 = 0; | |
5160 | PyObject * _argo1 = 0; | |
5161 | char *_kwnames[] = { "self","brush", NULL }; | |
5162 | ||
5163 | self = self; | |
5164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrushList_RemoveBrush",_kwnames,&_argo0,&_argo1)) | |
5165 | return NULL; | |
5166 | if (_argo0) { | |
5167 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5168 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) { | |
5169 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_RemoveBrush. Expected _wxBrushList_p."); | |
5170 | return NULL; | |
5171 | } | |
5172 | } | |
5173 | if (_argo1) { | |
5174 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5175 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) { | |
5176 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrushList_RemoveBrush. Expected _wxBrush_p."); | |
5177 | return NULL; | |
5178 | } | |
5179 | } | |
5180 | { | |
4268f798 | 5181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5182 | wxBrushList_RemoveBrush(_arg0,_arg1); |
0569df0f | 5183 | |
4268f798 | 5184 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5185 | if (PyErr_Occurred()) return NULL; |
0569df0f RD |
5186 | } Py_INCREF(Py_None); |
5187 | _resultobj = Py_None; | |
5188 | return _resultobj; | |
5189 | } | |
5190 | ||
2f4e9287 RD |
5191 | #define wxBrushList_GetCount(_swigobj) (_swigobj->GetCount()) |
5192 | static PyObject *_wrap_wxBrushList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5193 | PyObject * _resultobj; | |
5194 | int _result; | |
5195 | wxBrushList * _arg0; | |
5196 | PyObject * _argo0 = 0; | |
5197 | char *_kwnames[] = { "self", NULL }; | |
5198 | ||
5199 | self = self; | |
5200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrushList_GetCount",_kwnames,&_argo0)) | |
5201 | return NULL; | |
5202 | if (_argo0) { | |
5203 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5204 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) { | |
5205 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_GetCount. Expected _wxBrushList_p."); | |
5206 | return NULL; | |
5207 | } | |
5208 | } | |
5209 | { | |
4268f798 | 5210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5211 | _result = (int )wxBrushList_GetCount(_arg0); |
2f4e9287 | 5212 | |
4268f798 | 5213 | wxPyEndAllowThreads(__tstate); |
2f4e9287 RD |
5214 | if (PyErr_Occurred()) return NULL; |
5215 | } _resultobj = Py_BuildValue("i",_result); | |
5216 | return _resultobj; | |
5217 | } | |
5218 | ||
9416aa89 RD |
5219 | static void *SwigwxDCTowxObject(void *ptr) { |
5220 | wxDC *src; | |
5221 | wxObject *dest; | |
5222 | src = (wxDC *) ptr; | |
5223 | dest = (wxObject *) src; | |
5224 | return (void *) dest; | |
5225 | } | |
5226 | ||
8ab979d7 | 5227 | #define delete_wxDC(_swigobj) (delete _swigobj) |
1afc06c2 | 5228 | static PyObject *_wrap_delete_wxDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5229 | PyObject * _resultobj; |
5230 | wxDC * _arg0; | |
1d99702e | 5231 | PyObject * _argo0 = 0; |
1afc06c2 | 5232 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5233 | |
5234 | self = self; | |
1afc06c2 | 5235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxDC",_kwnames,&_argo0)) |
8ab979d7 | 5236 | return NULL; |
1d99702e RD |
5237 | if (_argo0) { |
5238 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5239 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
5240 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxDC. Expected _wxDC_p."); |
5241 | return NULL; | |
5242 | } | |
5243 | } | |
cf694132 | 5244 | { |
4268f798 | 5245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5246 | delete_wxDC(_arg0); |
cf694132 | 5247 | |
4268f798 | 5248 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5249 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5250 | } Py_INCREF(Py_None); |
8ab979d7 RD |
5251 | _resultobj = Py_None; |
5252 | return _resultobj; | |
5253 | } | |
5254 | ||
5255 | #define wxDC_BeginDrawing(_swigobj) (_swigobj->BeginDrawing()) | |
1afc06c2 | 5256 | static PyObject *_wrap_wxDC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5257 | PyObject * _resultobj; |
5258 | wxDC * _arg0; | |
1d99702e | 5259 | PyObject * _argo0 = 0; |
1afc06c2 | 5260 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5261 | |
5262 | self = self; | |
1afc06c2 | 5263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_BeginDrawing",_kwnames,&_argo0)) |
8ab979d7 | 5264 | return NULL; |
1d99702e RD |
5265 | if (_argo0) { |
5266 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5267 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
5268 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_BeginDrawing. Expected _wxDC_p."); |
5269 | return NULL; | |
5270 | } | |
5271 | } | |
cf694132 | 5272 | { |
4268f798 | 5273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5274 | wxDC_BeginDrawing(_arg0); |
cf694132 | 5275 | |
4268f798 | 5276 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5277 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5278 | } Py_INCREF(Py_None); |
8ab979d7 RD |
5279 | _resultobj = Py_None; |
5280 | return _resultobj; | |
5281 | } | |
5282 | ||
efc5f224 | 5283 | #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 | 5284 | static PyObject *_wrap_wxDC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5285 | PyObject * _resultobj; |
5286 | bool _result; | |
5287 | wxDC * _arg0; | |
7e50db3f RD |
5288 | wxCoord _arg1; |
5289 | wxCoord _arg2; | |
5290 | wxCoord _arg3; | |
5291 | wxCoord _arg4; | |
8ab979d7 | 5292 | wxDC * _arg5; |
7e50db3f RD |
5293 | wxCoord _arg6; |
5294 | wxCoord _arg7; | |
efc5f224 RD |
5295 | int _arg8 = (int ) wxCOPY; |
5296 | int _arg9 = (int ) FALSE; | |
1d99702e RD |
5297 | PyObject * _argo0 = 0; |
5298 | PyObject * _argo5 = 0; | |
1afc06c2 | 5299 | char *_kwnames[] = { "self","xdest","ydest","width","height","source","xsrc","ysrc","logicalFunc","useMask", NULL }; |
8ab979d7 RD |
5300 | |
5301 | self = self; | |
7e50db3f | 5302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiiiOii|ii:wxDC_Blit",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_argo5,&_arg6,&_arg7,&_arg8,&_arg9)) |
8ab979d7 | 5303 | return NULL; |
1d99702e RD |
5304 | if (_argo0) { |
5305 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5306 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
5307 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Blit. Expected _wxDC_p."); |
5308 | return NULL; | |
5309 | } | |
5310 | } | |
1d99702e RD |
5311 | if (_argo5) { |
5312 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
5313 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxDC_p")) { | |
8ab979d7 RD |
5314 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxDC_Blit. Expected _wxDC_p."); |
5315 | return NULL; | |
5316 | } | |
5317 | } | |
cf694132 | 5318 | { |
4268f798 | 5319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5320 | _result = (bool )wxDC_Blit(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7,_arg8,_arg9); |
cf694132 | 5321 | |
4268f798 | 5322 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5323 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5324 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5325 | return _resultobj; |
5326 | } | |
5327 | ||
5328 | #define wxDC_Clear(_swigobj) (_swigobj->Clear()) | |
1afc06c2 | 5329 | static PyObject *_wrap_wxDC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5330 | PyObject * _resultobj; |
5331 | wxDC * _arg0; | |
1d99702e | 5332 | PyObject * _argo0 = 0; |
1afc06c2 | 5333 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5334 | |
5335 | self = self; | |
1afc06c2 | 5336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_Clear",_kwnames,&_argo0)) |
8ab979d7 | 5337 | return NULL; |
1d99702e RD |
5338 | if (_argo0) { |
5339 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5340 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
5341 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Clear. Expected _wxDC_p."); |
5342 | return NULL; | |
5343 | } | |
5344 | } | |
cf694132 | 5345 | { |
4268f798 | 5346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5347 | wxDC_Clear(_arg0); |
cf694132 | 5348 | |
4268f798 | 5349 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5350 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5351 | } Py_INCREF(Py_None); |
8ab979d7 RD |
5352 | _resultobj = Py_None; |
5353 | return _resultobj; | |
5354 | } | |
5355 | ||
5356 | #define wxDC_CrossHair(_swigobj,_swigarg0,_swigarg1) (_swigobj->CrossHair(_swigarg0,_swigarg1)) | |
1afc06c2 | 5357 | static PyObject *_wrap_wxDC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5358 | PyObject * _resultobj; |
5359 | wxDC * _arg0; | |
7e50db3f RD |
5360 | wxCoord _arg1; |
5361 | wxCoord _arg2; | |
1d99702e | 5362 | PyObject * _argo0 = 0; |
1afc06c2 | 5363 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
5364 | |
5365 | self = self; | |
7e50db3f | 5366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_CrossHair",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 5367 | return NULL; |
1d99702e RD |
5368 | if (_argo0) { |
5369 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5370 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
5371 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CrossHair. Expected _wxDC_p."); |
5372 | return NULL; | |
5373 | } | |
5374 | } | |
cf694132 | 5375 | { |
4268f798 | 5376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5377 | wxDC_CrossHair(_arg0,_arg1,_arg2); |
cf694132 | 5378 | |
4268f798 | 5379 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5380 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5381 | } Py_INCREF(Py_None); |
8ab979d7 RD |
5382 | _resultobj = Py_None; |
5383 | return _resultobj; | |
5384 | } | |
5385 | ||
5386 | #define wxDC_DestroyClippingRegion(_swigobj) (_swigobj->DestroyClippingRegion()) | |
1afc06c2 | 5387 | static PyObject *_wrap_wxDC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5388 | PyObject * _resultobj; |
5389 | wxDC * _arg0; | |
1d99702e | 5390 | PyObject * _argo0 = 0; |
1afc06c2 | 5391 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5392 | |
5393 | self = self; | |
1afc06c2 | 5394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_DestroyClippingRegion",_kwnames,&_argo0)) |
8ab979d7 | 5395 | return NULL; |
1d99702e RD |
5396 | if (_argo0) { |
5397 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5398 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
5399 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DestroyClippingRegion. Expected _wxDC_p."); |
5400 | return NULL; | |
5401 | } | |
5402 | } | |
cf694132 | 5403 | { |
4268f798 | 5404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5405 | wxDC_DestroyClippingRegion(_arg0); |
cf694132 | 5406 | |
4268f798 | 5407 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5408 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5409 | } Py_INCREF(Py_None); |
8ab979d7 RD |
5410 | _resultobj = Py_None; |
5411 | return _resultobj; | |
5412 | } | |
5413 | ||
5414 | #define wxDC_DeviceToLogicalX(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalX(_swigarg0)) | |
1afc06c2 | 5415 | static PyObject *_wrap_wxDC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5416 | PyObject * _resultobj; |
7e50db3f | 5417 | wxCoord _result; |
8ab979d7 | 5418 | wxDC * _arg0; |
7e50db3f | 5419 | wxCoord _arg1; |
1d99702e | 5420 | PyObject * _argo0 = 0; |
1afc06c2 | 5421 | char *_kwnames[] = { "self","x", NULL }; |
8ab979d7 RD |
5422 | |
5423 | self = self; | |
7e50db3f | 5424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_DeviceToLogicalX",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 5425 | return NULL; |
1d99702e RD |
5426 | if (_argo0) { |
5427 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5428 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
5429 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalX. Expected _wxDC_p."); |
5430 | return NULL; | |
5431 | } | |
5432 | } | |
cf694132 | 5433 | { |
4268f798 | 5434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7e50db3f | 5435 | _result = (wxCoord )wxDC_DeviceToLogicalX(_arg0,_arg1); |
cf694132 | 5436 | |
4268f798 | 5437 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5438 | if (PyErr_Occurred()) return NULL; |
7e50db3f | 5439 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5440 | return _resultobj; |
5441 | } | |
5442 | ||
5443 | #define wxDC_DeviceToLogicalXRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalXRel(_swigarg0)) | |
1afc06c2 | 5444 | static PyObject *_wrap_wxDC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5445 | PyObject * _resultobj; |
7e50db3f | 5446 | wxCoord _result; |
8ab979d7 | 5447 | wxDC * _arg0; |
7e50db3f | 5448 | wxCoord _arg1; |
1d99702e | 5449 | PyObject * _argo0 = 0; |
1afc06c2 | 5450 | char *_kwnames[] = { "self","x", NULL }; |
8ab979d7 RD |
5451 | |
5452 | self = self; | |
7e50db3f | 5453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_DeviceToLogicalXRel",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 5454 | return NULL; |
1d99702e RD |
5455 | if (_argo0) { |
5456 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5457 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
5458 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalXRel. Expected _wxDC_p."); |
5459 | return NULL; | |
5460 | } | |
5461 | } | |
cf694132 | 5462 | { |
4268f798 | 5463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7e50db3f | 5464 | _result = (wxCoord )wxDC_DeviceToLogicalXRel(_arg0,_arg1); |
cf694132 | 5465 | |
4268f798 | 5466 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5467 | if (PyErr_Occurred()) return NULL; |
7e50db3f | 5468 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5469 | return _resultobj; |
5470 | } | |
5471 | ||
5472 | #define wxDC_DeviceToLogicalY(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalY(_swigarg0)) | |
1afc06c2 | 5473 | static PyObject *_wrap_wxDC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5474 | PyObject * _resultobj; |
7e50db3f | 5475 | wxCoord _result; |
8ab979d7 | 5476 | wxDC * _arg0; |
7e50db3f | 5477 | wxCoord _arg1; |
1d99702e | 5478 | PyObject * _argo0 = 0; |
1afc06c2 | 5479 | char *_kwnames[] = { "self","y", NULL }; |
8ab979d7 RD |
5480 | |
5481 | self = self; | |
7e50db3f | 5482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_DeviceToLogicalY",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 5483 | return NULL; |
1d99702e RD |
5484 | if (_argo0) { |
5485 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5486 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
5487 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalY. Expected _wxDC_p."); |
5488 | return NULL; | |
5489 | } | |
5490 | } | |
cf694132 | 5491 | { |
4268f798 | 5492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7e50db3f | 5493 | _result = (wxCoord )wxDC_DeviceToLogicalY(_arg0,_arg1); |
cf694132 | 5494 | |
4268f798 | 5495 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5496 | if (PyErr_Occurred()) return NULL; |
7e50db3f | 5497 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5498 | return _resultobj; |
5499 | } | |
5500 | ||
5501 | #define wxDC_DeviceToLogicalYRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalYRel(_swigarg0)) | |
1afc06c2 | 5502 | static PyObject *_wrap_wxDC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5503 | PyObject * _resultobj; |
7e50db3f | 5504 | wxCoord _result; |
8ab979d7 | 5505 | wxDC * _arg0; |
7e50db3f | 5506 | wxCoord _arg1; |
1d99702e | 5507 | PyObject * _argo0 = 0; |
1afc06c2 | 5508 | char *_kwnames[] = { "self","y", NULL }; |
8ab979d7 RD |
5509 | |
5510 | self = self; | |
7e50db3f | 5511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_DeviceToLogicalYRel",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 5512 | return NULL; |
1d99702e RD |
5513 | if (_argo0) { |
5514 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5515 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
5516 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalYRel. Expected _wxDC_p."); |
5517 | return NULL; | |
5518 | } | |
5519 | } | |
cf694132 | 5520 | { |
4268f798 | 5521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7e50db3f | 5522 | _result = (wxCoord )wxDC_DeviceToLogicalYRel(_arg0,_arg1); |
cf694132 | 5523 | |
4268f798 | 5524 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5525 | if (PyErr_Occurred()) return NULL; |
7e50db3f | 5526 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5527 | return _resultobj; |
5528 | } | |
5529 | ||
5530 | #define wxDC_DrawArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
1afc06c2 | 5531 | static PyObject *_wrap_wxDC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5532 | PyObject * _resultobj; |
5533 | wxDC * _arg0; | |
7e50db3f RD |
5534 | wxCoord _arg1; |
5535 | wxCoord _arg2; | |
5536 | wxCoord _arg3; | |
5537 | wxCoord _arg4; | |
5538 | wxCoord _arg5; | |
5539 | wxCoord _arg6; | |
1d99702e | 5540 | PyObject * _argo0 = 0; |
1afc06c2 | 5541 | char *_kwnames[] = { "self","x1","y1","x2","y2","xc","yc", NULL }; |
8ab979d7 RD |
5542 | |
5543 | self = self; | |
7e50db3f | 5544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiiiii:wxDC_DrawArc",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6)) |
8ab979d7 | 5545 | return NULL; |
1d99702e RD |
5546 | if (_argo0) { |
5547 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5548 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
5549 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawArc. Expected _wxDC_p."); |
5550 | return NULL; | |
5551 | } | |
5552 | } | |
cf694132 | 5553 | { |
4268f798 | 5554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5555 | wxDC_DrawArc(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); |
cf694132 | 5556 | |
4268f798 | 5557 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5558 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5559 | } Py_INCREF(Py_None); |
8ab979d7 RD |
5560 | _resultobj = Py_None; |
5561 | return _resultobj; | |
5562 | } | |
5563 | ||
bb0054cd | 5564 | #define wxDC_DrawCircle(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawCircle(_swigarg0,_swigarg1,_swigarg2)) |
1afc06c2 | 5565 | static PyObject *_wrap_wxDC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
5566 | PyObject * _resultobj; |
5567 | wxDC * _arg0; | |
7e50db3f RD |
5568 | wxCoord _arg1; |
5569 | wxCoord _arg2; | |
5570 | wxCoord _arg3; | |
1d99702e | 5571 | PyObject * _argo0 = 0; |
1afc06c2 | 5572 | char *_kwnames[] = { "self","x","y","radius", NULL }; |
bb0054cd RD |
5573 | |
5574 | self = self; | |
7e50db3f | 5575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiii:wxDC_DrawCircle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
bb0054cd | 5576 | return NULL; |
1d99702e RD |
5577 | if (_argo0) { |
5578 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5579 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
bb0054cd RD |
5580 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawCircle. Expected _wxDC_p."); |
5581 | return NULL; | |
5582 | } | |
5583 | } | |
5584 | { | |
4268f798 | 5585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5586 | wxDC_DrawCircle(_arg0,_arg1,_arg2,_arg3); |
bb0054cd | 5587 | |
4268f798 | 5588 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5589 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
5590 | } Py_INCREF(Py_None); |
5591 | _resultobj = Py_None; | |
5592 | return _resultobj; | |
5593 | } | |
5594 | ||
8ab979d7 | 5595 | #define wxDC_DrawEllipse(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawEllipse(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
1afc06c2 | 5596 | static PyObject *_wrap_wxDC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5597 | PyObject * _resultobj; |
5598 | wxDC * _arg0; | |
7e50db3f RD |
5599 | wxCoord _arg1; |
5600 | wxCoord _arg2; | |
5601 | wxCoord _arg3; | |
5602 | wxCoord _arg4; | |
1d99702e | 5603 | PyObject * _argo0 = 0; |
1afc06c2 | 5604 | char *_kwnames[] = { "self","x","y","width","height", NULL }; |
8ab979d7 RD |
5605 | |
5606 | self = self; | |
7e50db3f | 5607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii:wxDC_DrawEllipse",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) |
8ab979d7 | 5608 | return NULL; |
1d99702e RD |
5609 | if (_argo0) { |
5610 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5611 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
5612 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawEllipse. Expected _wxDC_p."); |
5613 | return NULL; | |
5614 | } | |
5615 | } | |
cf694132 | 5616 | { |
4268f798 | 5617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5618 | wxDC_DrawEllipse(_arg0,_arg1,_arg2,_arg3,_arg4); |
cf694132 | 5619 | |
4268f798 | 5620 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5621 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5622 | } Py_INCREF(Py_None); |
8ab979d7 RD |
5623 | _resultobj = Py_None; |
5624 | return _resultobj; | |
5625 | } | |
5626 | ||
5627 | #define wxDC_DrawEllipticArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawEllipticArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
1afc06c2 | 5628 | static PyObject *_wrap_wxDC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5629 | PyObject * _resultobj; |
5630 | wxDC * _arg0; | |
7e50db3f RD |
5631 | wxCoord _arg1; |
5632 | wxCoord _arg2; | |
5633 | wxCoord _arg3; | |
5634 | wxCoord _arg4; | |
5635 | wxCoord _arg5; | |
5636 | wxCoord _arg6; | |
1d99702e | 5637 | PyObject * _argo0 = 0; |
1afc06c2 | 5638 | char *_kwnames[] = { "self","x","y","width","height","start","end", NULL }; |
8ab979d7 RD |
5639 | |
5640 | self = self; | |
7e50db3f | 5641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiiiii:wxDC_DrawEllipticArc",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6)) |
8ab979d7 | 5642 | return NULL; |
1d99702e RD |
5643 | if (_argo0) { |
5644 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5645 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
5646 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawEllipticArc. Expected _wxDC_p."); |
5647 | return NULL; | |
5648 | } | |
5649 | } | |
cf694132 | 5650 | { |
4268f798 | 5651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5652 | wxDC_DrawEllipticArc(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); |
cf694132 | 5653 | |
4268f798 | 5654 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5655 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5656 | } Py_INCREF(Py_None); |
8ab979d7 RD |
5657 | _resultobj = Py_None; |
5658 | return _resultobj; | |
5659 | } | |
5660 | ||
5661 | #define wxDC_DrawIcon(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawIcon(_swigarg0,_swigarg1,_swigarg2)) | |
1afc06c2 | 5662 | static PyObject *_wrap_wxDC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5663 | PyObject * _resultobj; |
5664 | wxDC * _arg0; | |
5665 | wxIcon * _arg1; | |
7e50db3f RD |
5666 | wxCoord _arg2; |
5667 | wxCoord _arg3; | |
1d99702e RD |
5668 | PyObject * _argo0 = 0; |
5669 | PyObject * _argo1 = 0; | |
1afc06c2 | 5670 | char *_kwnames[] = { "self","icon","x","y", NULL }; |
8ab979d7 RD |
5671 | |
5672 | self = self; | |
7e50db3f | 5673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii:wxDC_DrawIcon",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3)) |
8ab979d7 | 5674 | return NULL; |
1d99702e RD |
5675 | if (_argo0) { |
5676 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5677 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
5678 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawIcon. Expected _wxDC_p."); |
5679 | return NULL; | |
5680 | } | |
5681 | } | |
1d99702e | 5682 | if (_argo1) { |
7e50db3f | 5683 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) { |
8ab979d7 RD |
5684 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_DrawIcon. Expected _wxIcon_p."); |
5685 | return NULL; | |
5686 | } | |
5687 | } | |
cf694132 | 5688 | { |
4268f798 | 5689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5690 | wxDC_DrawIcon(_arg0,*_arg1,_arg2,_arg3); |
cf694132 | 5691 | |
4268f798 | 5692 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5693 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5694 | } Py_INCREF(Py_None); |
8ab979d7 RD |
5695 | _resultobj = Py_None; |
5696 | return _resultobj; | |
5697 | } | |
5698 | ||
23bed520 RD |
5699 | #define wxDC_DrawLabel(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLabel(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
5700 | static PyObject *_wrap_wxDC_DrawLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5701 | PyObject * _resultobj; | |
5702 | wxDC * _arg0; | |
5703 | wxString * _arg1; | |
5704 | wxRect * _arg2; | |
5705 | int _arg3 = (int ) wxALIGN_LEFT|wxALIGN_TOP; | |
5706 | int _arg4 = (int ) -1; | |
5707 | PyObject * _argo0 = 0; | |
5708 | PyObject * _obj1 = 0; | |
5709 | wxRect temp; | |
5710 | PyObject * _obj2 = 0; | |
5711 | char *_kwnames[] = { "self","text","rect","alignment","indexAccel", NULL }; | |
5712 | ||
5713 | self = self; | |
5714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|ii:wxDC_DrawLabel",_kwnames,&_argo0,&_obj1,&_obj2,&_arg3,&_arg4)) | |
5715 | return NULL; | |
5716 | if (_argo0) { | |
5717 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5718 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5719 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLabel. Expected _wxDC_p."); | |
5720 | return NULL; | |
5721 | } | |
5722 | } | |
5723 | { | |
c8bc7bb8 RD |
5724 | _arg1 = wxString_in_helper(_obj1); |
5725 | if (_arg1 == NULL) | |
23bed520 | 5726 | return NULL; |
23bed520 RD |
5727 | } |
5728 | { | |
5729 | _arg2 = &temp; | |
5730 | if (! wxRect_helper(_obj2, &_arg2)) | |
5731 | return NULL; | |
5732 | } | |
5733 | { | |
5734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 5735 | wxDC_DrawLabel(_arg0,*_arg1,*_arg2,_arg3,_arg4); |
23bed520 RD |
5736 | |
5737 | wxPyEndAllowThreads(__tstate); | |
5738 | if (PyErr_Occurred()) return NULL; | |
5739 | } Py_INCREF(Py_None); | |
5740 | _resultobj = Py_None; | |
5741 | { | |
5742 | if (_obj1) | |
5743 | delete _arg1; | |
5744 | } | |
5745 | return _resultobj; | |
5746 | } | |
5747 | ||
5748 | static wxRect wxDC_DrawImageLabel(wxDC *self,const wxString & text,const wxBitmap & image,const wxRect & rect,int alignment,int indexAccel) { | |
5749 | wxRect rv; | |
5750 | self->DrawLabel(text, image, rect, alignment, indexAccel, &rv); | |
5751 | return rv; | |
5752 | } | |
5753 | static PyObject *_wrap_wxDC_DrawImageLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5754 | PyObject * _resultobj; | |
5755 | wxRect * _result; | |
5756 | wxDC * _arg0; | |
5757 | wxString * _arg1; | |
5758 | wxBitmap * _arg2; | |
5759 | wxRect * _arg3; | |
5760 | int _arg4 = (int ) wxALIGN_LEFT|wxALIGN_TOP; | |
5761 | int _arg5 = (int ) -1; | |
5762 | PyObject * _argo0 = 0; | |
5763 | PyObject * _obj1 = 0; | |
5764 | PyObject * _argo2 = 0; | |
5765 | wxRect temp; | |
5766 | PyObject * _obj3 = 0; | |
5767 | char *_kwnames[] = { "self","text","image","rect","alignment","indexAccel", NULL }; | |
5768 | char _ptemp[128]; | |
5769 | ||
5770 | self = self; | |
5771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO|ii:wxDC_DrawImageLabel",_kwnames,&_argo0,&_obj1,&_argo2,&_obj3,&_arg4,&_arg5)) | |
5772 | return NULL; | |
5773 | if (_argo0) { | |
5774 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5775 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
5776 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawImageLabel. Expected _wxDC_p."); | |
5777 | return NULL; | |
5778 | } | |
5779 | } | |
5780 | { | |
c8bc7bb8 RD |
5781 | _arg1 = wxString_in_helper(_obj1); |
5782 | if (_arg1 == NULL) | |
23bed520 | 5783 | return NULL; |
23bed520 RD |
5784 | } |
5785 | if (_argo2) { | |
7e50db3f | 5786 | if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) { |
23bed520 RD |
5787 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxDC_DrawImageLabel. Expected _wxBitmap_p."); |
5788 | return NULL; | |
5789 | } | |
5790 | } | |
5791 | { | |
5792 | _arg3 = &temp; | |
5793 | if (! wxRect_helper(_obj3, &_arg3)) | |
5794 | return NULL; | |
5795 | } | |
5796 | { | |
5797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 5798 | _result = new wxRect (wxDC_DrawImageLabel(_arg0,*_arg1,*_arg2,*_arg3,_arg4,_arg5)); |
23bed520 RD |
5799 | |
5800 | wxPyEndAllowThreads(__tstate); | |
5801 | if (PyErr_Occurred()) return NULL; | |
5802 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); | |
5803 | _resultobj = Py_BuildValue("s",_ptemp); | |
5804 | { | |
5805 | if (_obj1) | |
5806 | delete _arg1; | |
5807 | } | |
5808 | return _resultobj; | |
5809 | } | |
5810 | ||
8ab979d7 | 5811 | #define wxDC_DrawLine(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
1afc06c2 | 5812 | static PyObject *_wrap_wxDC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5813 | PyObject * _resultobj; |
5814 | wxDC * _arg0; | |
7e50db3f RD |
5815 | wxCoord _arg1; |
5816 | wxCoord _arg2; | |
5817 | wxCoord _arg3; | |
5818 | wxCoord _arg4; | |
1d99702e | 5819 | PyObject * _argo0 = 0; |
1afc06c2 | 5820 | char *_kwnames[] = { "self","x1","y1","x2","y2", NULL }; |
8ab979d7 RD |
5821 | |
5822 | self = self; | |
7e50db3f | 5823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii:wxDC_DrawLine",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) |
8ab979d7 | 5824 | return NULL; |
1d99702e RD |
5825 | if (_argo0) { |
5826 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5827 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
5828 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLine. Expected _wxDC_p."); |
5829 | return NULL; | |
5830 | } | |
5831 | } | |
cf694132 | 5832 | { |
4268f798 | 5833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5834 | wxDC_DrawLine(_arg0,_arg1,_arg2,_arg3,_arg4); |
cf694132 | 5835 | |
4268f798 | 5836 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5837 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5838 | } Py_INCREF(Py_None); |
8ab979d7 RD |
5839 | _resultobj = Py_None; |
5840 | return _resultobj; | |
5841 | } | |
5842 | ||
5843 | #define wxDC_DrawLines(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLines(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
1afc06c2 | 5844 | static PyObject *_wrap_wxDC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5845 | PyObject * _resultobj; |
5846 | wxDC * _arg0; | |
5847 | int _arg1; | |
5848 | wxPoint * _arg2; | |
7e50db3f RD |
5849 | wxCoord _arg3 = (wxCoord ) 0; |
5850 | wxCoord _arg4 = (wxCoord ) 0; | |
1d99702e | 5851 | PyObject * _argo0 = 0; |
e0672e2f | 5852 | int NPOINTS; |
8ab979d7 | 5853 | PyObject * _obj2 = 0; |
eec92d76 | 5854 | char *_kwnames[] = { "self","points","xoffset","yoffset", NULL }; |
8ab979d7 RD |
5855 | |
5856 | self = self; | |
7e50db3f | 5857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|ii:wxDC_DrawLines",_kwnames,&_argo0,&_obj2,&_arg3,&_arg4)) |
8ab979d7 | 5858 | return NULL; |
1d99702e RD |
5859 | if (_argo0) { |
5860 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5861 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
5862 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLines. Expected _wxDC_p."); |
5863 | return NULL; | |
5864 | } | |
5865 | } | |
5866 | if (_obj2) | |
5867 | { | |
e0672e2f RD |
5868 | _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS); |
5869 | if (_arg2 == NULL) { | |
5870 | return NULL; | |
5871 | } | |
8ab979d7 RD |
5872 | } |
5873 | { | |
e0672e2f | 5874 | _arg1 = NPOINTS; |
8ab979d7 | 5875 | } |
cf694132 | 5876 | { |
4268f798 | 5877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5878 | wxDC_DrawLines(_arg0,_arg1,_arg2,_arg3,_arg4); |
cf694132 | 5879 | |
4268f798 | 5880 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5881 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5882 | } Py_INCREF(Py_None); |
8ab979d7 RD |
5883 | _resultobj = Py_None; |
5884 | { | |
5885 | delete [] _arg2; | |
5886 | } | |
5887 | return _resultobj; | |
5888 | } | |
5889 | ||
5890 | #define wxDC_DrawPolygon(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawPolygon(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
1afc06c2 | 5891 | static PyObject *_wrap_wxDC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5892 | PyObject * _resultobj; |
5893 | wxDC * _arg0; | |
5894 | int _arg1; | |
5895 | wxPoint * _arg2; | |
7e50db3f RD |
5896 | wxCoord _arg3 = (wxCoord ) 0; |
5897 | wxCoord _arg4 = (wxCoord ) 0; | |
1d99702e RD |
5898 | int _arg5 = (int ) wxODDEVEN_RULE; |
5899 | PyObject * _argo0 = 0; | |
e0672e2f | 5900 | int NPOINTS; |
8ab979d7 | 5901 | PyObject * _obj2 = 0; |
eec92d76 | 5902 | char *_kwnames[] = { "self","points","xoffset","yoffset","fill_style", NULL }; |
8ab979d7 RD |
5903 | |
5904 | self = self; | |
7e50db3f | 5905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iii:wxDC_DrawPolygon",_kwnames,&_argo0,&_obj2,&_arg3,&_arg4,&_arg5)) |
8ab979d7 | 5906 | return NULL; |
1d99702e RD |
5907 | if (_argo0) { |
5908 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5909 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
5910 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawPolygon. Expected _wxDC_p."); |
5911 | return NULL; | |
5912 | } | |
5913 | } | |
5914 | if (_obj2) | |
5915 | { | |
e0672e2f RD |
5916 | _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS); |
5917 | if (_arg2 == NULL) { | |
5918 | return NULL; | |
5919 | } | |
8ab979d7 RD |
5920 | } |
5921 | { | |
e0672e2f | 5922 | _arg1 = NPOINTS; |
8ab979d7 | 5923 | } |
cf694132 | 5924 | { |
4268f798 | 5925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5926 | wxDC_DrawPolygon(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); |
cf694132 | 5927 | |
4268f798 | 5928 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5929 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5930 | } Py_INCREF(Py_None); |
8ab979d7 RD |
5931 | _resultobj = Py_None; |
5932 | { | |
5933 | delete [] _arg2; | |
5934 | } | |
5935 | return _resultobj; | |
5936 | } | |
5937 | ||
5938 | #define wxDC_DrawPoint(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawPoint(_swigarg0,_swigarg1)) | |
1afc06c2 | 5939 | static PyObject *_wrap_wxDC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5940 | PyObject * _resultobj; |
5941 | wxDC * _arg0; | |
7e50db3f RD |
5942 | wxCoord _arg1; |
5943 | wxCoord _arg2; | |
1d99702e | 5944 | PyObject * _argo0 = 0; |
1afc06c2 | 5945 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
5946 | |
5947 | self = self; | |
7e50db3f | 5948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_DrawPoint",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 5949 | return NULL; |
1d99702e RD |
5950 | if (_argo0) { |
5951 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5952 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
5953 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawPoint. Expected _wxDC_p."); |
5954 | return NULL; | |
5955 | } | |
5956 | } | |
cf694132 | 5957 | { |
4268f798 | 5958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5959 | wxDC_DrawPoint(_arg0,_arg1,_arg2); |
cf694132 | 5960 | |
4268f798 | 5961 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5962 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5963 | } Py_INCREF(Py_None); |
8ab979d7 RD |
5964 | _resultobj = Py_None; |
5965 | return _resultobj; | |
5966 | } | |
5967 | ||
5968 | #define wxDC_DrawRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
1afc06c2 | 5969 | static PyObject *_wrap_wxDC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5970 | PyObject * _resultobj; |
5971 | wxDC * _arg0; | |
7e50db3f RD |
5972 | wxCoord _arg1; |
5973 | wxCoord _arg2; | |
5974 | wxCoord _arg3; | |
5975 | wxCoord _arg4; | |
1d99702e | 5976 | PyObject * _argo0 = 0; |
1afc06c2 | 5977 | char *_kwnames[] = { "self","x","y","width","height", NULL }; |
8ab979d7 RD |
5978 | |
5979 | self = self; | |
7e50db3f | 5980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii:wxDC_DrawRectangle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) |
8ab979d7 | 5981 | return NULL; |
1d99702e RD |
5982 | if (_argo0) { |
5983 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5984 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
5985 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRectangle. Expected _wxDC_p."); |
5986 | return NULL; | |
5987 | } | |
5988 | } | |
cf694132 | 5989 | { |
4268f798 | 5990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5991 | wxDC_DrawRectangle(_arg0,_arg1,_arg2,_arg3,_arg4); |
cf694132 | 5992 | |
4268f798 | 5993 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5994 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5995 | } Py_INCREF(Py_None); |
8ab979d7 RD |
5996 | _resultobj = Py_None; |
5997 | return _resultobj; | |
5998 | } | |
5999 | ||
efe12e95 RD |
6000 | #define wxDC_DrawRectangleRect(_swigobj,_swigarg0) (_swigobj->DrawRectangle(_swigarg0)) |
6001 | static PyObject *_wrap_wxDC_DrawRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6002 | PyObject * _resultobj; | |
6003 | wxDC * _arg0; | |
6004 | wxRect * _arg1; | |
6005 | PyObject * _argo0 = 0; | |
6006 | wxRect temp; | |
6007 | PyObject * _obj1 = 0; | |
6008 | char *_kwnames[] = { "self","rect", NULL }; | |
6009 | ||
6010 | self = self; | |
6011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_DrawRectangleRect",_kwnames,&_argo0,&_obj1)) | |
6012 | return NULL; | |
6013 | if (_argo0) { | |
6014 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6015 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6016 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRectangleRect. Expected _wxDC_p."); | |
6017 | return NULL; | |
6018 | } | |
6019 | } | |
6020 | { | |
6021 | _arg1 = &temp; | |
6022 | if (! wxRect_helper(_obj1, &_arg1)) | |
6023 | return NULL; | |
6024 | } | |
6025 | { | |
6026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6027 | wxDC_DrawRectangleRect(_arg0,*_arg1); | |
6028 | ||
6029 | wxPyEndAllowThreads(__tstate); | |
6030 | if (PyErr_Occurred()) return NULL; | |
6031 | } Py_INCREF(Py_None); | |
6032 | _resultobj = Py_None; | |
6033 | return _resultobj; | |
6034 | } | |
6035 | ||
6999b0d8 RD |
6036 | #define wxDC_DrawRotatedText(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRotatedText(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
6037 | static PyObject *_wrap_wxDC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6038 | PyObject * _resultobj; | |
6039 | wxDC * _arg0; | |
6040 | wxString * _arg1; | |
6041 | wxCoord _arg2; | |
6042 | wxCoord _arg3; | |
6043 | double _arg4; | |
6044 | PyObject * _argo0 = 0; | |
6045 | PyObject * _obj1 = 0; | |
6046 | char *_kwnames[] = { "self","text","x","y","angle", NULL }; | |
6047 | ||
6048 | self = self; | |
6049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiid:wxDC_DrawRotatedText",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_arg4)) | |
6050 | return NULL; | |
6051 | if (_argo0) { | |
6052 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6053 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6054 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRotatedText. Expected _wxDC_p."); | |
6055 | return NULL; | |
6056 | } | |
6057 | } | |
6058 | { | |
c8bc7bb8 RD |
6059 | _arg1 = wxString_in_helper(_obj1); |
6060 | if (_arg1 == NULL) | |
185d7c3e | 6061 | return NULL; |
6999b0d8 RD |
6062 | } |
6063 | { | |
4268f798 | 6064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6065 | wxDC_DrawRotatedText(_arg0,*_arg1,_arg2,_arg3,_arg4); |
6999b0d8 | 6066 | |
4268f798 | 6067 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6068 | if (PyErr_Occurred()) return NULL; |
6999b0d8 RD |
6069 | } Py_INCREF(Py_None); |
6070 | _resultobj = Py_None; | |
6071 | { | |
6072 | if (_obj1) | |
6073 | delete _arg1; | |
6074 | } | |
6075 | return _resultobj; | |
6076 | } | |
6077 | ||
8ab979d7 | 6078 | #define wxDC_DrawRoundedRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawRoundedRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
1afc06c2 | 6079 | static PyObject *_wrap_wxDC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6080 | PyObject * _resultobj; |
6081 | wxDC * _arg0; | |
7e50db3f RD |
6082 | wxCoord _arg1; |
6083 | wxCoord _arg2; | |
6084 | wxCoord _arg3; | |
6085 | wxCoord _arg4; | |
6086 | wxCoord _arg5 = (wxCoord ) 20; | |
1d99702e | 6087 | PyObject * _argo0 = 0; |
1afc06c2 | 6088 | char *_kwnames[] = { "self","x","y","width","height","radius", NULL }; |
8ab979d7 RD |
6089 | |
6090 | self = self; | |
7e50db3f | 6091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxDC_DrawRoundedRectangle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5)) |
8ab979d7 | 6092 | return NULL; |
1d99702e RD |
6093 | if (_argo0) { |
6094 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6095 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
6096 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRoundedRectangle. Expected _wxDC_p."); |
6097 | return NULL; | |
6098 | } | |
6099 | } | |
cf694132 | 6100 | { |
4268f798 | 6101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6102 | wxDC_DrawRoundedRectangle(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); |
cf694132 | 6103 | |
4268f798 | 6104 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6105 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6106 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6107 | _resultobj = Py_None; |
6108 | return _resultobj; | |
6109 | } | |
6110 | ||
6111 | #define wxDC_DrawSpline(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawSpline(_swigarg0,_swigarg1)) | |
1afc06c2 | 6112 | static PyObject *_wrap_wxDC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6113 | PyObject * _resultobj; |
6114 | wxDC * _arg0; | |
6115 | int _arg1; | |
6116 | wxPoint * _arg2; | |
1d99702e | 6117 | PyObject * _argo0 = 0; |
e0672e2f | 6118 | int NPOINTS; |
8ab979d7 | 6119 | PyObject * _obj2 = 0; |
eec92d76 | 6120 | char *_kwnames[] = { "self","points", NULL }; |
8ab979d7 RD |
6121 | |
6122 | self = self; | |
1afc06c2 | 6123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_DrawSpline",_kwnames,&_argo0,&_obj2)) |
8ab979d7 | 6124 | return NULL; |
1d99702e RD |
6125 | if (_argo0) { |
6126 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6127 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
6128 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawSpline. Expected _wxDC_p."); |
6129 | return NULL; | |
6130 | } | |
6131 | } | |
6132 | if (_obj2) | |
6133 | { | |
e0672e2f RD |
6134 | _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS); |
6135 | if (_arg2 == NULL) { | |
6136 | return NULL; | |
6137 | } | |
8ab979d7 RD |
6138 | } |
6139 | { | |
e0672e2f | 6140 | _arg1 = NPOINTS; |
8ab979d7 | 6141 | } |
cf694132 | 6142 | { |
4268f798 | 6143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6144 | wxDC_DrawSpline(_arg0,_arg1,_arg2); |
cf694132 | 6145 | |
4268f798 | 6146 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6147 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6148 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6149 | _resultobj = Py_None; |
6150 | { | |
6151 | delete [] _arg2; | |
6152 | } | |
6153 | return _resultobj; | |
6154 | } | |
6155 | ||
6156 | #define wxDC_DrawText(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawText(_swigarg0,_swigarg1,_swigarg2)) | |
1afc06c2 | 6157 | static PyObject *_wrap_wxDC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6158 | PyObject * _resultobj; |
6159 | wxDC * _arg0; | |
6160 | wxString * _arg1; | |
7e50db3f RD |
6161 | wxCoord _arg2; |
6162 | wxCoord _arg3; | |
1d99702e | 6163 | PyObject * _argo0 = 0; |
8ab979d7 | 6164 | PyObject * _obj1 = 0; |
1afc06c2 | 6165 | char *_kwnames[] = { "self","text","x","y", NULL }; |
8ab979d7 RD |
6166 | |
6167 | self = self; | |
7e50db3f | 6168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii:wxDC_DrawText",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3)) |
8ab979d7 | 6169 | return NULL; |
1d99702e RD |
6170 | if (_argo0) { |
6171 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6172 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
6173 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawText. Expected _wxDC_p."); |
6174 | return NULL; | |
6175 | } | |
6176 | } | |
6177 | { | |
c8bc7bb8 RD |
6178 | _arg1 = wxString_in_helper(_obj1); |
6179 | if (_arg1 == NULL) | |
185d7c3e | 6180 | return NULL; |
8ab979d7 | 6181 | } |
cf694132 | 6182 | { |
4268f798 | 6183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6184 | wxDC_DrawText(_arg0,*_arg1,_arg2,_arg3); |
cf694132 | 6185 | |
4268f798 | 6186 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6187 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6188 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6189 | _resultobj = Py_None; |
6190 | { | |
6191 | if (_obj1) | |
6192 | delete _arg1; | |
6193 | } | |
6194 | return _resultobj; | |
6195 | } | |
6196 | ||
6197 | #define wxDC_EndDoc(_swigobj) (_swigobj->EndDoc()) | |
1afc06c2 | 6198 | static PyObject *_wrap_wxDC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6199 | PyObject * _resultobj; |
6200 | wxDC * _arg0; | |
1d99702e | 6201 | PyObject * _argo0 = 0; |
1afc06c2 | 6202 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6203 | |
6204 | self = self; | |
1afc06c2 | 6205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndDoc",_kwnames,&_argo0)) |
8ab979d7 | 6206 | return NULL; |
1d99702e RD |
6207 | if (_argo0) { |
6208 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6209 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
6210 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndDoc. Expected _wxDC_p."); |
6211 | return NULL; | |
6212 | } | |
6213 | } | |
cf694132 | 6214 | { |
4268f798 | 6215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6216 | wxDC_EndDoc(_arg0); |
cf694132 | 6217 | |
4268f798 | 6218 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6219 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6220 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6221 | _resultobj = Py_None; |
6222 | return _resultobj; | |
6223 | } | |
6224 | ||
6225 | #define wxDC_EndDrawing(_swigobj) (_swigobj->EndDrawing()) | |
1afc06c2 | 6226 | static PyObject *_wrap_wxDC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6227 | PyObject * _resultobj; |
6228 | wxDC * _arg0; | |
1d99702e | 6229 | PyObject * _argo0 = 0; |
1afc06c2 | 6230 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6231 | |
6232 | self = self; | |
1afc06c2 | 6233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndDrawing",_kwnames,&_argo0)) |
8ab979d7 | 6234 | return NULL; |
1d99702e RD |
6235 | if (_argo0) { |
6236 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6237 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
6238 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndDrawing. Expected _wxDC_p."); |
6239 | return NULL; | |
6240 | } | |
6241 | } | |
cf694132 | 6242 | { |
4268f798 | 6243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6244 | wxDC_EndDrawing(_arg0); |
cf694132 | 6245 | |
4268f798 | 6246 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6247 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6248 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6249 | _resultobj = Py_None; |
6250 | return _resultobj; | |
6251 | } | |
6252 | ||
6253 | #define wxDC_EndPage(_swigobj) (_swigobj->EndPage()) | |
1afc06c2 | 6254 | static PyObject *_wrap_wxDC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6255 | PyObject * _resultobj; |
6256 | wxDC * _arg0; | |
1d99702e | 6257 | PyObject * _argo0 = 0; |
1afc06c2 | 6258 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6259 | |
6260 | self = self; | |
1afc06c2 | 6261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndPage",_kwnames,&_argo0)) |
8ab979d7 | 6262 | return NULL; |
1d99702e RD |
6263 | if (_argo0) { |
6264 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6265 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
6266 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndPage. Expected _wxDC_p."); |
6267 | return NULL; | |
6268 | } | |
6269 | } | |
cf694132 | 6270 | { |
4268f798 | 6271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6272 | wxDC_EndPage(_arg0); |
cf694132 | 6273 | |
4268f798 | 6274 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6275 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6276 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6277 | _resultobj = Py_None; |
6278 | return _resultobj; | |
6279 | } | |
6280 | ||
be4d9c1f | 6281 | #define wxDC_FloodFill(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->FloodFill(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
1afc06c2 | 6282 | static PyObject *_wrap_wxDC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) { |
be4d9c1f | 6283 | PyObject * _resultobj; |
d394edca | 6284 | bool _result; |
be4d9c1f | 6285 | wxDC * _arg0; |
7e50db3f RD |
6286 | wxCoord _arg1; |
6287 | wxCoord _arg2; | |
be4d9c1f | 6288 | wxColour * _arg3; |
1d99702e RD |
6289 | int _arg4 = (int ) wxFLOOD_SURFACE; |
6290 | PyObject * _argo0 = 0; | |
f6bcfd97 BP |
6291 | wxColour temp; |
6292 | PyObject * _obj3 = 0; | |
1afc06c2 | 6293 | char *_kwnames[] = { "self","x","y","colour","style", NULL }; |
be4d9c1f RD |
6294 | |
6295 | self = self; | |
7e50db3f | 6296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiO|i:wxDC_FloodFill",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_arg4)) |
be4d9c1f | 6297 | return NULL; |
1d99702e RD |
6298 | if (_argo0) { |
6299 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6300 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
be4d9c1f RD |
6301 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_FloodFill. Expected _wxDC_p."); |
6302 | return NULL; | |
6303 | } | |
6304 | } | |
f6bcfd97 BP |
6305 | { |
6306 | _arg3 = &temp; | |
6307 | if (! wxColour_helper(_obj3, &_arg3)) | |
be4d9c1f | 6308 | return NULL; |
f6bcfd97 | 6309 | } |
cf694132 | 6310 | { |
4268f798 | 6311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
d394edca | 6312 | _result = (bool )wxDC_FloodFill(_arg0,_arg1,_arg2,*_arg3,_arg4); |
cf694132 | 6313 | |
4268f798 | 6314 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6315 | if (PyErr_Occurred()) return NULL; |
d394edca | 6316 | } _resultobj = Py_BuildValue("i",_result); |
be4d9c1f RD |
6317 | return _resultobj; |
6318 | } | |
6319 | ||
8ab979d7 | 6320 | #define wxDC_GetBackground(_swigobj) (_swigobj->GetBackground()) |
1afc06c2 | 6321 | static PyObject *_wrap_wxDC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6322 | PyObject * _resultobj; |
6323 | wxBrush * _result; | |
6324 | wxDC * _arg0; | |
1d99702e | 6325 | PyObject * _argo0 = 0; |
1afc06c2 | 6326 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6327 | char _ptemp[128]; |
6328 | ||
6329 | self = self; | |
1afc06c2 | 6330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBackground",_kwnames,&_argo0)) |
8ab979d7 | 6331 | return NULL; |
1d99702e RD |
6332 | if (_argo0) { |
6333 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6334 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
6335 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBackground. Expected _wxDC_p."); |
6336 | return NULL; | |
6337 | } | |
6338 | } | |
cf694132 | 6339 | { |
4268f798 | 6340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6341 | _result = new wxBrush (wxDC_GetBackground(_arg0)); |
cf694132 | 6342 | |
4268f798 | 6343 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6344 | if (PyErr_Occurred()) return NULL; |
c5943253 RD |
6345 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBrush_p"); |
6346 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
6347 | return _resultobj; |
6348 | } | |
6349 | ||
6350 | #define wxDC_GetBrush(_swigobj) (_swigobj->GetBrush()) | |
1afc06c2 | 6351 | static PyObject *_wrap_wxDC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6352 | PyObject * _resultobj; |
6353 | wxBrush * _result; | |
6354 | wxDC * _arg0; | |
1d99702e | 6355 | PyObject * _argo0 = 0; |
1afc06c2 | 6356 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6357 | char _ptemp[128]; |
6358 | ||
6359 | self = self; | |
1afc06c2 | 6360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBrush",_kwnames,&_argo0)) |
8ab979d7 | 6361 | return NULL; |
1d99702e RD |
6362 | if (_argo0) { |
6363 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6364 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
6365 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBrush. Expected _wxDC_p."); |
6366 | return NULL; | |
6367 | } | |
6368 | } | |
cf694132 | 6369 | { |
4268f798 | 6370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6371 | _result = new wxBrush (wxDC_GetBrush(_arg0)); |
cf694132 | 6372 | |
4268f798 | 6373 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6374 | if (PyErr_Occurred()) return NULL; |
c5943253 RD |
6375 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBrush_p"); |
6376 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
6377 | return _resultobj; |
6378 | } | |
6379 | ||
6380 | #define wxDC_GetCharHeight(_swigobj) (_swigobj->GetCharHeight()) | |
1afc06c2 | 6381 | static PyObject *_wrap_wxDC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6382 | PyObject * _resultobj; |
7e50db3f | 6383 | wxCoord _result; |
8ab979d7 | 6384 | wxDC * _arg0; |
1d99702e | 6385 | PyObject * _argo0 = 0; |
1afc06c2 | 6386 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6387 | |
6388 | self = self; | |
1afc06c2 | 6389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetCharHeight",_kwnames,&_argo0)) |
8ab979d7 | 6390 | return NULL; |
1d99702e RD |
6391 | if (_argo0) { |
6392 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6393 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
6394 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetCharHeight. Expected _wxDC_p."); |
6395 | return NULL; | |
6396 | } | |
6397 | } | |
cf694132 | 6398 | { |
4268f798 | 6399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7e50db3f | 6400 | _result = (wxCoord )wxDC_GetCharHeight(_arg0); |
cf694132 | 6401 | |
4268f798 | 6402 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6403 | if (PyErr_Occurred()) return NULL; |
7e50db3f | 6404 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6405 | return _resultobj; |
6406 | } | |
6407 | ||
6408 | #define wxDC_GetCharWidth(_swigobj) (_swigobj->GetCharWidth()) | |
1afc06c2 | 6409 | static PyObject *_wrap_wxDC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6410 | PyObject * _resultobj; |
7e50db3f | 6411 | wxCoord _result; |
8ab979d7 | 6412 | wxDC * _arg0; |
1d99702e | 6413 | PyObject * _argo0 = 0; |
1afc06c2 | 6414 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6415 | |
6416 | self = self; | |
1afc06c2 | 6417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetCharWidth",_kwnames,&_argo0)) |
8ab979d7 | 6418 | return NULL; |
1d99702e RD |
6419 | if (_argo0) { |
6420 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6421 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
6422 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetCharWidth. Expected _wxDC_p."); |
6423 | return NULL; | |
6424 | } | |
6425 | } | |
cf694132 | 6426 | { |
4268f798 | 6427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7e50db3f | 6428 | _result = (wxCoord )wxDC_GetCharWidth(_arg0); |
cf694132 | 6429 | |
4268f798 | 6430 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6431 | if (PyErr_Occurred()) return NULL; |
7e50db3f | 6432 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6433 | return _resultobj; |
6434 | } | |
6435 | ||
6436 | #define wxDC_GetClippingBox(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetClippingBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
1afc06c2 | 6437 | static PyObject *_wrap_wxDC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6438 | PyObject * _resultobj; |
6439 | wxDC * _arg0; | |
7e50db3f RD |
6440 | wxCoord * _arg1; |
6441 | int temp; | |
6442 | wxCoord * _arg2; | |
6443 | int temp0; | |
6444 | wxCoord * _arg3; | |
6445 | int temp1; | |
6446 | wxCoord * _arg4; | |
6447 | int temp2; | |
1d99702e | 6448 | PyObject * _argo0 = 0; |
1afc06c2 | 6449 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6450 | |
6451 | self = self; | |
6452 | { | |
6453 | _arg1 = &temp; | |
6454 | } | |
6455 | { | |
6456 | _arg2 = &temp0; | |
6457 | } | |
6458 | { | |
6459 | _arg3 = &temp1; | |
6460 | } | |
6461 | { | |
6462 | _arg4 = &temp2; | |
6463 | } | |
1afc06c2 | 6464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetClippingBox",_kwnames,&_argo0)) |
8ab979d7 | 6465 | return NULL; |
1d99702e RD |
6466 | if (_argo0) { |
6467 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6468 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
6469 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetClippingBox. Expected _wxDC_p."); |
6470 | return NULL; | |
6471 | } | |
6472 | } | |
cf694132 | 6473 | { |
4268f798 | 6474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6475 | wxDC_GetClippingBox(_arg0,_arg1,_arg2,_arg3,_arg4); |
cf694132 | 6476 | |
4268f798 | 6477 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6478 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6479 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6480 | _resultobj = Py_None; |
6481 | { | |
6482 | PyObject *o; | |
6483 | o = PyInt_FromLong((long) (*_arg1)); | |
6484 | _resultobj = t_output_helper(_resultobj, o); | |
6485 | } | |
6486 | { | |
6487 | PyObject *o; | |
6488 | o = PyInt_FromLong((long) (*_arg2)); | |
6489 | _resultobj = t_output_helper(_resultobj, o); | |
6490 | } | |
6491 | { | |
6492 | PyObject *o; | |
6493 | o = PyInt_FromLong((long) (*_arg3)); | |
6494 | _resultobj = t_output_helper(_resultobj, o); | |
6495 | } | |
6496 | { | |
6497 | PyObject *o; | |
6498 | o = PyInt_FromLong((long) (*_arg4)); | |
6499 | _resultobj = t_output_helper(_resultobj, o); | |
6500 | } | |
6501 | return _resultobj; | |
6502 | } | |
6503 | ||
6504 | #define wxDC_GetFont(_swigobj) (_swigobj->GetFont()) | |
1afc06c2 | 6505 | static PyObject *_wrap_wxDC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6506 | PyObject * _resultobj; |
6507 | wxFont * _result; | |
6508 | wxDC * _arg0; | |
1d99702e | 6509 | PyObject * _argo0 = 0; |
1afc06c2 | 6510 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6511 | char _ptemp[128]; |
6512 | ||
6513 | self = self; | |
1afc06c2 | 6514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetFont",_kwnames,&_argo0)) |
8ab979d7 | 6515 | return NULL; |
1d99702e RD |
6516 | if (_argo0) { |
6517 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6518 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
6519 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetFont. Expected _wxDC_p."); |
6520 | return NULL; | |
6521 | } | |
6522 | } | |
cf694132 | 6523 | { |
4268f798 | 6524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6525 | _result = new wxFont (wxDC_GetFont(_arg0)); |
cf694132 | 6526 | |
4268f798 | 6527 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6528 | if (PyErr_Occurred()) return NULL; |
c5943253 RD |
6529 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); |
6530 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
6531 | return _resultobj; |
6532 | } | |
6533 | ||
6534 | #define wxDC_GetLogicalFunction(_swigobj) (_swigobj->GetLogicalFunction()) | |
1afc06c2 | 6535 | static PyObject *_wrap_wxDC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6536 | PyObject * _resultobj; |
6537 | int _result; | |
6538 | wxDC * _arg0; | |
1d99702e | 6539 | PyObject * _argo0 = 0; |
1afc06c2 | 6540 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6541 | |
6542 | self = self; | |
1afc06c2 | 6543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalFunction",_kwnames,&_argo0)) |
8ab979d7 | 6544 | return NULL; |
1d99702e RD |
6545 | if (_argo0) { |
6546 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6547 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
6548 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalFunction. Expected _wxDC_p."); |
6549 | return NULL; | |
6550 | } | |
6551 | } | |
cf694132 | 6552 | { |
4268f798 | 6553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6554 | _result = (int )wxDC_GetLogicalFunction(_arg0); |
cf694132 | 6555 | |
4268f798 | 6556 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6557 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6558 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6559 | return _resultobj; |
6560 | } | |
6561 | ||
eec92d76 RD |
6562 | #define wxDC_GetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalScale(_swigarg0,_swigarg1)) |
6563 | static PyObject *_wrap_wxDC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6564 | PyObject * _resultobj; | |
6565 | wxDC * _arg0; | |
6566 | double * _arg1; | |
6567 | double temp; | |
6568 | double * _arg2; | |
6569 | double temp0; | |
6570 | PyObject * _argo0 = 0; | |
6571 | char *_kwnames[] = { "self", NULL }; | |
6572 | ||
6573 | self = self; | |
6574 | { | |
6575 | _arg1 = &temp; | |
6576 | } | |
6577 | { | |
6578 | _arg2 = &temp0; | |
6579 | } | |
6580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalScale",_kwnames,&_argo0)) | |
6581 | return NULL; | |
6582 | if (_argo0) { | |
6583 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6584 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6585 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalScale. Expected _wxDC_p."); | |
6586 | return NULL; | |
6587 | } | |
6588 | } | |
6589 | { | |
4268f798 | 6590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6591 | wxDC_GetLogicalScale(_arg0,_arg1,_arg2); |
eec92d76 | 6592 | |
4268f798 | 6593 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6594 | if (PyErr_Occurred()) return NULL; |
eec92d76 RD |
6595 | } Py_INCREF(Py_None); |
6596 | _resultobj = Py_None; | |
6597 | { | |
6598 | PyObject *o; | |
6599 | o = PyFloat_FromDouble((double) (*_arg1)); | |
6600 | _resultobj = t_output_helper(_resultobj, o); | |
6601 | } | |
6602 | { | |
6603 | PyObject *o; | |
6604 | o = PyFloat_FromDouble((double) (*_arg2)); | |
6605 | _resultobj = t_output_helper(_resultobj, o); | |
6606 | } | |
6607 | return _resultobj; | |
6608 | } | |
6609 | ||
8ab979d7 | 6610 | #define wxDC_GetMapMode(_swigobj) (_swigobj->GetMapMode()) |
1afc06c2 | 6611 | static PyObject *_wrap_wxDC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6612 | PyObject * _resultobj; |
6613 | int _result; | |
6614 | wxDC * _arg0; | |
1d99702e | 6615 | PyObject * _argo0 = 0; |
1afc06c2 | 6616 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6617 | |
6618 | self = self; | |
1afc06c2 | 6619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetMapMode",_kwnames,&_argo0)) |
8ab979d7 | 6620 | return NULL; |
1d99702e RD |
6621 | if (_argo0) { |
6622 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6623 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
6624 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetMapMode. Expected _wxDC_p."); |
6625 | return NULL; | |
6626 | } | |
6627 | } | |
cf694132 | 6628 | { |
4268f798 | 6629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6630 | _result = (int )wxDC_GetMapMode(_arg0); |
cf694132 | 6631 | |
4268f798 | 6632 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6633 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6634 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6635 | return _resultobj; |
6636 | } | |
6637 | ||
6638 | #define wxDC_GetOptimization(_swigobj) (_swigobj->GetOptimization()) | |
1afc06c2 | 6639 | static PyObject *_wrap_wxDC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6640 | PyObject * _resultobj; |
6641 | bool _result; | |
6642 | wxDC * _arg0; | |
1d99702e | 6643 | PyObject * _argo0 = 0; |
1afc06c2 | 6644 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6645 | |
6646 | self = self; | |
1afc06c2 | 6647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetOptimization",_kwnames,&_argo0)) |
8ab979d7 | 6648 | return NULL; |
1d99702e RD |
6649 | if (_argo0) { |
6650 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6651 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
6652 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetOptimization. Expected _wxDC_p."); |
6653 | return NULL; | |
6654 | } | |
6655 | } | |
cf694132 | 6656 | { |
4268f798 | 6657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6658 | _result = (bool )wxDC_GetOptimization(_arg0); |
cf694132 | 6659 | |
4268f798 | 6660 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6661 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6662 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6663 | return _resultobj; |
6664 | } | |
6665 | ||
6666 | #define wxDC_GetPen(_swigobj) (_swigobj->GetPen()) | |
1afc06c2 | 6667 | static PyObject *_wrap_wxDC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6668 | PyObject * _resultobj; |
6669 | wxPen * _result; | |
6670 | wxDC * _arg0; | |
1d99702e | 6671 | PyObject * _argo0 = 0; |
1afc06c2 | 6672 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6673 | char _ptemp[128]; |
6674 | ||
6675 | self = self; | |
1afc06c2 | 6676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetPen",_kwnames,&_argo0)) |
8ab979d7 | 6677 | return NULL; |
1d99702e RD |
6678 | if (_argo0) { |
6679 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6680 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
6681 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPen. Expected _wxDC_p."); |
6682 | return NULL; | |
6683 | } | |
6684 | } | |
cf694132 | 6685 | { |
4268f798 | 6686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6687 | _result = new wxPen (wxDC_GetPen(_arg0)); |
cf694132 | 6688 | |
4268f798 | 6689 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6690 | if (PyErr_Occurred()) return NULL; |
c5943253 RD |
6691 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPen_p"); |
6692 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
6693 | return _resultobj; |
6694 | } | |
6695 | ||
7e50db3f | 6696 | static wxColour * wxDC_GetPixel(wxDC *self,wxCoord x,wxCoord y) { |
8ab979d7 RD |
6697 | wxColour* wc = new wxColour(); |
6698 | self->GetPixel(x, y, wc); | |
6699 | return wc; | |
6700 | } | |
1afc06c2 | 6701 | static PyObject *_wrap_wxDC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6702 | PyObject * _resultobj; |
6703 | wxColour * _result; | |
6704 | wxDC * _arg0; | |
7e50db3f RD |
6705 | wxCoord _arg1; |
6706 | wxCoord _arg2; | |
1d99702e | 6707 | PyObject * _argo0 = 0; |
1afc06c2 | 6708 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
6709 | char _ptemp[128]; |
6710 | ||
6711 | self = self; | |
7e50db3f | 6712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_GetPixel",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 6713 | return NULL; |
1d99702e RD |
6714 | if (_argo0) { |
6715 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6716 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
6717 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPixel. Expected _wxDC_p."); |
6718 | return NULL; | |
6719 | } | |
6720 | } | |
cf694132 | 6721 | { |
4268f798 | 6722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6723 | _result = (wxColour *)wxDC_GetPixel(_arg0,_arg1,_arg2); |
cf694132 | 6724 | |
4268f798 | 6725 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6726 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
6727 | } if (_result) { |
6728 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
6729 | _resultobj = Py_BuildValue("s",_ptemp); | |
6730 | } else { | |
6731 | Py_INCREF(Py_None); | |
6732 | _resultobj = Py_None; | |
6733 | } | |
8ab979d7 RD |
6734 | return _resultobj; |
6735 | } | |
6736 | ||
bb0054cd | 6737 | #define wxDC_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1)) |
1afc06c2 | 6738 | static PyObject *_wrap_wxDC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6739 | PyObject * _resultobj; |
6740 | wxDC * _arg0; | |
6741 | int * _arg1; | |
6742 | int temp; | |
6743 | int * _arg2; | |
6744 | int temp0; | |
1d99702e | 6745 | PyObject * _argo0 = 0; |
1afc06c2 | 6746 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6747 | |
6748 | self = self; | |
6749 | { | |
6750 | _arg1 = &temp; | |
6751 | } | |
6752 | { | |
6753 | _arg2 = &temp0; | |
6754 | } | |
1afc06c2 | 6755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSizeTuple",_kwnames,&_argo0)) |
8ab979d7 | 6756 | return NULL; |
1d99702e RD |
6757 | if (_argo0) { |
6758 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6759 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
bb0054cd | 6760 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSizeTuple. Expected _wxDC_p."); |
8ab979d7 RD |
6761 | return NULL; |
6762 | } | |
6763 | } | |
cf694132 | 6764 | { |
4268f798 | 6765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6766 | wxDC_GetSizeTuple(_arg0,_arg1,_arg2); |
cf694132 | 6767 | |
4268f798 | 6768 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6769 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6770 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6771 | _resultobj = Py_None; |
6772 | { | |
6773 | PyObject *o; | |
6774 | o = PyInt_FromLong((long) (*_arg1)); | |
6775 | _resultobj = t_output_helper(_resultobj, o); | |
6776 | } | |
6777 | { | |
6778 | PyObject *o; | |
6779 | o = PyInt_FromLong((long) (*_arg2)); | |
6780 | _resultobj = t_output_helper(_resultobj, o); | |
6781 | } | |
6782 | return _resultobj; | |
6783 | } | |
6784 | ||
bb0054cd | 6785 | #define wxDC_GetSize(_swigobj) (_swigobj->GetSize()) |
1afc06c2 | 6786 | static PyObject *_wrap_wxDC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
6787 | PyObject * _resultobj; |
6788 | wxSize * _result; | |
6789 | wxDC * _arg0; | |
1d99702e | 6790 | PyObject * _argo0 = 0; |
1afc06c2 | 6791 | char *_kwnames[] = { "self", NULL }; |
bb0054cd RD |
6792 | char _ptemp[128]; |
6793 | ||
6794 | self = self; | |
1afc06c2 | 6795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSize",_kwnames,&_argo0)) |
bb0054cd | 6796 | return NULL; |
1d99702e RD |
6797 | if (_argo0) { |
6798 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6799 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
bb0054cd RD |
6800 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSize. Expected _wxDC_p."); |
6801 | return NULL; | |
6802 | } | |
6803 | } | |
6804 | { | |
4268f798 | 6805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6806 | _result = new wxSize (wxDC_GetSize(_arg0)); |
bb0054cd | 6807 | |
4268f798 | 6808 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6809 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
6810 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
6811 | _resultobj = Py_BuildValue("s",_ptemp); | |
6812 | return _resultobj; | |
6813 | } | |
6814 | ||
eec92d76 RD |
6815 | #define wxDC_GetSizeMM(_swigobj) (_swigobj->GetSizeMM()) |
6816 | static PyObject *_wrap_wxDC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6817 | PyObject * _resultobj; | |
6818 | wxSize * _result; | |
6819 | wxDC * _arg0; | |
6820 | PyObject * _argo0 = 0; | |
6821 | char *_kwnames[] = { "self", NULL }; | |
6822 | char _ptemp[128]; | |
6823 | ||
6824 | self = self; | |
6825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSizeMM",_kwnames,&_argo0)) | |
6826 | return NULL; | |
6827 | if (_argo0) { | |
6828 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6829 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
6830 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSizeMM. Expected _wxDC_p."); | |
6831 | return NULL; | |
6832 | } | |
6833 | } | |
6834 | { | |
4268f798 | 6835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6836 | _result = new wxSize (wxDC_GetSizeMM(_arg0)); |
eec92d76 | 6837 | |
4268f798 | 6838 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6839 | if (PyErr_Occurred()) return NULL; |
eec92d76 RD |
6840 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
6841 | _resultobj = Py_BuildValue("s",_ptemp); | |
6842 | return _resultobj; | |
6843 | } | |
6844 | ||
8ab979d7 | 6845 | #define wxDC_GetTextBackground(_swigobj) (_swigobj->GetTextBackground()) |
1afc06c2 | 6846 | static PyObject *_wrap_wxDC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6847 | PyObject * _resultobj; |
6848 | wxColour * _result; | |
6849 | wxDC * _arg0; | |
1d99702e | 6850 | PyObject * _argo0 = 0; |
1afc06c2 | 6851 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6852 | char _ptemp[128]; |
6853 | ||
6854 | self = self; | |
1afc06c2 | 6855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetTextBackground",_kwnames,&_argo0)) |
8ab979d7 | 6856 | return NULL; |
1d99702e RD |
6857 | if (_argo0) { |
6858 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6859 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
6860 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextBackground. Expected _wxDC_p."); |
6861 | return NULL; | |
6862 | } | |
6863 | } | |
cf694132 | 6864 | { |
4268f798 | 6865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6866 | _result = new wxColour (wxDC_GetTextBackground(_arg0)); |
cf694132 | 6867 | |
4268f798 | 6868 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6869 | if (PyErr_Occurred()) return NULL; |
25832b3f RD |
6870 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
6871 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
6872 | return _resultobj; |
6873 | } | |
6874 | ||
af309447 | 6875 | #define wxDC_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2)) |
1afc06c2 | 6876 | static PyObject *_wrap_wxDC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
6877 | PyObject * _resultobj; |
6878 | wxDC * _arg0; | |
6879 | wxString * _arg1; | |
7e50db3f RD |
6880 | wxCoord * _arg2; |
6881 | int temp; | |
6882 | wxCoord * _arg3; | |
6883 | int temp0; | |
1d99702e | 6884 | PyObject * _argo0 = 0; |
af309447 | 6885 | PyObject * _obj1 = 0; |
1afc06c2 | 6886 | char *_kwnames[] = { "self","string", NULL }; |
af309447 RD |
6887 | |
6888 | self = self; | |
6889 | { | |
6890 | _arg2 = &temp; | |
6891 | } | |
6892 | { | |
6893 | _arg3 = &temp0; | |
6894 | } | |
1afc06c2 | 6895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_GetTextExtent",_kwnames,&_argo0,&_obj1)) |
af309447 | 6896 | return NULL; |
1d99702e RD |
6897 | if (_argo0) { |
6898 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6899 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
af309447 RD |
6900 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextExtent. Expected _wxDC_p."); |
6901 | return NULL; | |
6902 | } | |
6903 | } | |
6904 | { | |
c8bc7bb8 RD |
6905 | _arg1 = wxString_in_helper(_obj1); |
6906 | if (_arg1 == NULL) | |
185d7c3e | 6907 | return NULL; |
af309447 | 6908 | } |
cf694132 | 6909 | { |
4268f798 | 6910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6911 | wxDC_GetTextExtent(_arg0,*_arg1,_arg2,_arg3); |
cf694132 | 6912 | |
4268f798 | 6913 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6914 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6915 | } Py_INCREF(Py_None); |
af309447 RD |
6916 | _resultobj = Py_None; |
6917 | { | |
6918 | PyObject *o; | |
6919 | o = PyInt_FromLong((long) (*_arg2)); | |
6920 | _resultobj = t_output_helper(_resultobj, o); | |
6921 | } | |
6922 | { | |
6923 | PyObject *o; | |
6924 | o = PyInt_FromLong((long) (*_arg3)); | |
6925 | _resultobj = t_output_helper(_resultobj, o); | |
6926 | } | |
6927 | { | |
6928 | if (_obj1) | |
6929 | delete _arg1; | |
6930 | } | |
6931 | return _resultobj; | |
6932 | } | |
6933 | ||
6934 | #define wxDC_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
1afc06c2 | 6935 | static PyObject *_wrap_wxDC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6936 | PyObject * _resultobj; |
6937 | wxDC * _arg0; | |
6938 | wxString * _arg1; | |
7e50db3f RD |
6939 | wxCoord * _arg2; |
6940 | int temp; | |
6941 | wxCoord * _arg3; | |
6942 | int temp0; | |
6943 | wxCoord * _arg4; | |
6944 | int temp1; | |
6945 | wxCoord * _arg5; | |
6946 | int temp2; | |
1d99702e RD |
6947 | wxFont * _arg6 = (wxFont *) NULL; |
6948 | PyObject * _argo0 = 0; | |
8ab979d7 | 6949 | PyObject * _obj1 = 0; |
1d99702e | 6950 | PyObject * _argo6 = 0; |
1afc06c2 | 6951 | char *_kwnames[] = { "self","string","font", NULL }; |
8ab979d7 RD |
6952 | |
6953 | self = self; | |
6954 | { | |
6955 | _arg2 = &temp; | |
6956 | } | |
6957 | { | |
6958 | _arg3 = &temp0; | |
6959 | } | |
6960 | { | |
6961 | _arg4 = &temp1; | |
6962 | } | |
6963 | { | |
6964 | _arg5 = &temp2; | |
6965 | } | |
1afc06c2 | 6966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxDC_GetFullTextExtent",_kwnames,&_argo0,&_obj1,&_argo6)) |
8ab979d7 | 6967 | return NULL; |
1d99702e RD |
6968 | if (_argo0) { |
6969 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6970 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
af309447 | 6971 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetFullTextExtent. Expected _wxDC_p."); |
8ab979d7 RD |
6972 | return NULL; |
6973 | } | |
6974 | } | |
6975 | { | |
c8bc7bb8 RD |
6976 | _arg1 = wxString_in_helper(_obj1); |
6977 | if (_arg1 == NULL) | |
185d7c3e | 6978 | return NULL; |
8ab979d7 | 6979 | } |
1d99702e RD |
6980 | if (_argo6) { |
6981 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
6982 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxFont_p")) { | |
af309447 RD |
6983 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxDC_GetFullTextExtent. Expected _wxFont_p."); |
6984 | return NULL; | |
6985 | } | |
6986 | } | |
cf694132 | 6987 | { |
4268f798 | 6988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6989 | wxDC_GetFullTextExtent(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); |
cf694132 | 6990 | |
4268f798 | 6991 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6992 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6993 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6994 | _resultobj = Py_None; |
6995 | { | |
6996 | PyObject *o; | |
6997 | o = PyInt_FromLong((long) (*_arg2)); | |
6998 | _resultobj = t_output_helper(_resultobj, o); | |
6999 | } | |
7000 | { | |
7001 | PyObject *o; | |
7002 | o = PyInt_FromLong((long) (*_arg3)); | |
7003 | _resultobj = t_output_helper(_resultobj, o); | |
7004 | } | |
7005 | { | |
7006 | PyObject *o; | |
7007 | o = PyInt_FromLong((long) (*_arg4)); | |
7008 | _resultobj = t_output_helper(_resultobj, o); | |
7009 | } | |
7010 | { | |
7011 | PyObject *o; | |
7012 | o = PyInt_FromLong((long) (*_arg5)); | |
7013 | _resultobj = t_output_helper(_resultobj, o); | |
7014 | } | |
7015 | { | |
7016 | if (_obj1) | |
7017 | delete _arg1; | |
7018 | } | |
7019 | return _resultobj; | |
7020 | } | |
7021 | ||
7e50db3f RD |
7022 | #define wxDC_GetMultiLineTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->GetMultiLineTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
7023 | static PyObject *_wrap_wxDC_GetMultiLineTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7024 | PyObject * _resultobj; |
8ab979d7 | 7025 | wxDC * _arg0; |
7e50db3f RD |
7026 | wxString * _arg1; |
7027 | wxCoord * _arg2; | |
7028 | int temp; | |
7029 | wxCoord * _arg3; | |
7030 | int temp0; | |
7031 | wxCoord * _arg4; | |
7032 | int temp1; | |
7033 | wxFont * _arg5 = (wxFont *) NULL; | |
1d99702e | 7034 | PyObject * _argo0 = 0; |
7e50db3f RD |
7035 | PyObject * _obj1 = 0; |
7036 | PyObject * _argo5 = 0; | |
7037 | char *_kwnames[] = { "self","text","font", NULL }; | |
8ab979d7 RD |
7038 | |
7039 | self = self; | |
cf694132 | 7040 | { |
7e50db3f | 7041 | _arg2 = &temp; |
8ab979d7 | 7042 | } |
eec92d76 | 7043 | { |
7e50db3f | 7044 | _arg3 = &temp0; |
eec92d76 RD |
7045 | } |
7046 | { | |
7e50db3f | 7047 | _arg4 = &temp1; |
eec92d76 | 7048 | } |
7e50db3f | 7049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxDC_GetMultiLineTextExtent",_kwnames,&_argo0,&_obj1,&_argo5)) |
eec92d76 RD |
7050 | return NULL; |
7051 | if (_argo0) { | |
7052 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7053 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7e50db3f | 7054 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetMultiLineTextExtent. Expected _wxDC_p."); |
eec92d76 RD |
7055 | return NULL; |
7056 | } | |
7057 | } | |
7058 | { | |
7e50db3f RD |
7059 | _arg1 = wxString_in_helper(_obj1); |
7060 | if (_arg1 == NULL) | |
7061 | return NULL; | |
7062 | } | |
7063 | if (_argo5) { | |
7064 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
7065 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxFont_p")) { | |
7066 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxDC_GetMultiLineTextExtent. Expected _wxFont_p."); | |
7067 | return NULL; | |
7068 | } | |
7069 | } | |
7070 | { | |
7071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7072 | wxDC_GetMultiLineTextExtent(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5); | |
7073 | ||
7074 | wxPyEndAllowThreads(__tstate); | |
7075 | if (PyErr_Occurred()) return NULL; | |
7076 | } Py_INCREF(Py_None); | |
7077 | _resultobj = Py_None; | |
7078 | { | |
7079 | PyObject *o; | |
7080 | o = PyInt_FromLong((long) (*_arg2)); | |
7081 | _resultobj = t_output_helper(_resultobj, o); | |
7082 | } | |
7083 | { | |
7084 | PyObject *o; | |
7085 | o = PyInt_FromLong((long) (*_arg3)); | |
7086 | _resultobj = t_output_helper(_resultobj, o); | |
7087 | } | |
7088 | { | |
7089 | PyObject *o; | |
7090 | o = PyInt_FromLong((long) (*_arg4)); | |
7091 | _resultobj = t_output_helper(_resultobj, o); | |
7092 | } | |
7093 | { | |
7094 | if (_obj1) | |
7095 | delete _arg1; | |
7096 | } | |
7097 | return _resultobj; | |
7098 | } | |
7099 | ||
7100 | #define wxDC_GetTextForeground(_swigobj) (_swigobj->GetTextForeground()) | |
7101 | static PyObject *_wrap_wxDC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7102 | PyObject * _resultobj; | |
7103 | wxColour * _result; | |
7104 | wxDC * _arg0; | |
7105 | PyObject * _argo0 = 0; | |
7106 | char *_kwnames[] = { "self", NULL }; | |
7107 | char _ptemp[128]; | |
7108 | ||
7109 | self = self; | |
7110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetTextForeground",_kwnames,&_argo0)) | |
7111 | return NULL; | |
7112 | if (_argo0) { | |
7113 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7114 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7115 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextForeground. Expected _wxDC_p."); | |
7116 | return NULL; | |
7117 | } | |
7118 | } | |
7119 | { | |
7120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7121 | _result = new wxColour (wxDC_GetTextForeground(_arg0)); | |
7122 | ||
7123 | wxPyEndAllowThreads(__tstate); | |
7124 | if (PyErr_Occurred()) return NULL; | |
7125 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
7126 | _resultobj = Py_BuildValue("s",_ptemp); | |
7127 | return _resultobj; | |
7128 | } | |
7129 | ||
7130 | #define wxDC_GetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetUserScale(_swigarg0,_swigarg1)) | |
7131 | static PyObject *_wrap_wxDC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7132 | PyObject * _resultobj; | |
7133 | wxDC * _arg0; | |
7134 | double * _arg1; | |
7135 | double temp; | |
7136 | double * _arg2; | |
7137 | double temp0; | |
7138 | PyObject * _argo0 = 0; | |
7139 | char *_kwnames[] = { "self", NULL }; | |
7140 | ||
7141 | self = self; | |
7142 | { | |
7143 | _arg1 = &temp; | |
7144 | } | |
7145 | { | |
7146 | _arg2 = &temp0; | |
7147 | } | |
7148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetUserScale",_kwnames,&_argo0)) | |
7149 | return NULL; | |
7150 | if (_argo0) { | |
7151 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7152 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7153 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetUserScale. Expected _wxDC_p."); | |
7154 | return NULL; | |
7155 | } | |
7156 | } | |
7157 | { | |
7158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 7159 | wxDC_GetUserScale(_arg0,_arg1,_arg2); |
eec92d76 | 7160 | |
4268f798 | 7161 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7162 | if (PyErr_Occurred()) return NULL; |
eec92d76 RD |
7163 | } Py_INCREF(Py_None); |
7164 | _resultobj = Py_None; | |
7165 | { | |
7166 | PyObject *o; | |
7167 | o = PyFloat_FromDouble((double) (*_arg1)); | |
7168 | _resultobj = t_output_helper(_resultobj, o); | |
7169 | } | |
7170 | { | |
7171 | PyObject *o; | |
7172 | o = PyFloat_FromDouble((double) (*_arg2)); | |
7173 | _resultobj = t_output_helper(_resultobj, o); | |
7174 | } | |
7175 | return _resultobj; | |
7176 | } | |
7177 | ||
8ab979d7 | 7178 | #define wxDC_LogicalToDeviceX(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceX(_swigarg0)) |
1afc06c2 | 7179 | static PyObject *_wrap_wxDC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7180 | PyObject * _resultobj; |
7e50db3f | 7181 | wxCoord _result; |
8ab979d7 | 7182 | wxDC * _arg0; |
7e50db3f | 7183 | wxCoord _arg1; |
1d99702e | 7184 | PyObject * _argo0 = 0; |
1afc06c2 | 7185 | char *_kwnames[] = { "self","x", NULL }; |
8ab979d7 RD |
7186 | |
7187 | self = self; | |
7e50db3f | 7188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_LogicalToDeviceX",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 7189 | return NULL; |
1d99702e RD |
7190 | if (_argo0) { |
7191 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7192 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7193 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceX. Expected _wxDC_p."); |
7194 | return NULL; | |
7195 | } | |
7196 | } | |
cf694132 | 7197 | { |
4268f798 | 7198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7e50db3f | 7199 | _result = (wxCoord )wxDC_LogicalToDeviceX(_arg0,_arg1); |
cf694132 | 7200 | |
4268f798 | 7201 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7202 | if (PyErr_Occurred()) return NULL; |
7e50db3f | 7203 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7204 | return _resultobj; |
7205 | } | |
7206 | ||
7207 | #define wxDC_LogicalToDeviceXRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceXRel(_swigarg0)) | |
1afc06c2 | 7208 | static PyObject *_wrap_wxDC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7209 | PyObject * _resultobj; |
7e50db3f | 7210 | wxCoord _result; |
8ab979d7 | 7211 | wxDC * _arg0; |
7e50db3f | 7212 | wxCoord _arg1; |
1d99702e | 7213 | PyObject * _argo0 = 0; |
1afc06c2 | 7214 | char *_kwnames[] = { "self","x", NULL }; |
8ab979d7 RD |
7215 | |
7216 | self = self; | |
7e50db3f | 7217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_LogicalToDeviceXRel",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 7218 | return NULL; |
1d99702e RD |
7219 | if (_argo0) { |
7220 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7221 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7222 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceXRel. Expected _wxDC_p."); |
7223 | return NULL; | |
7224 | } | |
7225 | } | |
cf694132 | 7226 | { |
4268f798 | 7227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7e50db3f | 7228 | _result = (wxCoord )wxDC_LogicalToDeviceXRel(_arg0,_arg1); |
cf694132 | 7229 | |
4268f798 | 7230 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7231 | if (PyErr_Occurred()) return NULL; |
7e50db3f | 7232 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7233 | return _resultobj; |
7234 | } | |
7235 | ||
7236 | #define wxDC_LogicalToDeviceY(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceY(_swigarg0)) | |
1afc06c2 | 7237 | static PyObject *_wrap_wxDC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7238 | PyObject * _resultobj; |
7e50db3f | 7239 | wxCoord _result; |
8ab979d7 | 7240 | wxDC * _arg0; |
7e50db3f | 7241 | wxCoord _arg1; |
1d99702e | 7242 | PyObject * _argo0 = 0; |
1afc06c2 | 7243 | char *_kwnames[] = { "self","y", NULL }; |
8ab979d7 RD |
7244 | |
7245 | self = self; | |
7e50db3f | 7246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_LogicalToDeviceY",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 7247 | return NULL; |
1d99702e RD |
7248 | if (_argo0) { |
7249 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7250 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7251 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceY. Expected _wxDC_p."); |
7252 | return NULL; | |
7253 | } | |
7254 | } | |
cf694132 | 7255 | { |
4268f798 | 7256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7e50db3f | 7257 | _result = (wxCoord )wxDC_LogicalToDeviceY(_arg0,_arg1); |
cf694132 | 7258 | |
4268f798 | 7259 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7260 | if (PyErr_Occurred()) return NULL; |
7e50db3f | 7261 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7262 | return _resultobj; |
7263 | } | |
7264 | ||
7265 | #define wxDC_LogicalToDeviceYRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceYRel(_swigarg0)) | |
1afc06c2 | 7266 | static PyObject *_wrap_wxDC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7267 | PyObject * _resultobj; |
7e50db3f | 7268 | wxCoord _result; |
8ab979d7 | 7269 | wxDC * _arg0; |
7e50db3f | 7270 | wxCoord _arg1; |
1d99702e | 7271 | PyObject * _argo0 = 0; |
1afc06c2 | 7272 | char *_kwnames[] = { "self","y", NULL }; |
8ab979d7 RD |
7273 | |
7274 | self = self; | |
7e50db3f | 7275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_LogicalToDeviceYRel",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 7276 | return NULL; |
1d99702e RD |
7277 | if (_argo0) { |
7278 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7279 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7280 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceYRel. Expected _wxDC_p."); |
7281 | return NULL; | |
7282 | } | |
7283 | } | |
cf694132 | 7284 | { |
4268f798 | 7285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7e50db3f | 7286 | _result = (wxCoord )wxDC_LogicalToDeviceYRel(_arg0,_arg1); |
cf694132 | 7287 | |
4268f798 | 7288 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7289 | if (PyErr_Occurred()) return NULL; |
7e50db3f | 7290 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7291 | return _resultobj; |
7292 | } | |
7293 | ||
7294 | #define wxDC_MaxX(_swigobj) (_swigobj->MaxX()) | |
1afc06c2 | 7295 | static PyObject *_wrap_wxDC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7296 | PyObject * _resultobj; |
7e50db3f | 7297 | wxCoord _result; |
8ab979d7 | 7298 | wxDC * _arg0; |
1d99702e | 7299 | PyObject * _argo0 = 0; |
1afc06c2 | 7300 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7301 | |
7302 | self = self; | |
1afc06c2 | 7303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MaxX",_kwnames,&_argo0)) |
8ab979d7 | 7304 | return NULL; |
1d99702e RD |
7305 | if (_argo0) { |
7306 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7307 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7308 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MaxX. Expected _wxDC_p."); |
7309 | return NULL; | |
7310 | } | |
7311 | } | |
cf694132 | 7312 | { |
4268f798 | 7313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7e50db3f | 7314 | _result = (wxCoord )wxDC_MaxX(_arg0); |
cf694132 | 7315 | |
4268f798 | 7316 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7317 | if (PyErr_Occurred()) return NULL; |
7e50db3f | 7318 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7319 | return _resultobj; |
7320 | } | |
7321 | ||
7322 | #define wxDC_MaxY(_swigobj) (_swigobj->MaxY()) | |
1afc06c2 | 7323 | static PyObject *_wrap_wxDC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7324 | PyObject * _resultobj; |
7e50db3f | 7325 | wxCoord _result; |
8ab979d7 | 7326 | wxDC * _arg0; |
1d99702e | 7327 | PyObject * _argo0 = 0; |
1afc06c2 | 7328 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7329 | |
7330 | self = self; | |
1afc06c2 | 7331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MaxY",_kwnames,&_argo0)) |
8ab979d7 | 7332 | return NULL; |
1d99702e RD |
7333 | if (_argo0) { |
7334 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7335 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7336 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MaxY. Expected _wxDC_p."); |
7337 | return NULL; | |
7338 | } | |
7339 | } | |
cf694132 | 7340 | { |
4268f798 | 7341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7e50db3f | 7342 | _result = (wxCoord )wxDC_MaxY(_arg0); |
cf694132 | 7343 | |
4268f798 | 7344 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7345 | if (PyErr_Occurred()) return NULL; |
7e50db3f | 7346 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7347 | return _resultobj; |
7348 | } | |
7349 | ||
7350 | #define wxDC_MinX(_swigobj) (_swigobj->MinX()) | |
1afc06c2 | 7351 | static PyObject *_wrap_wxDC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7352 | PyObject * _resultobj; |
7e50db3f | 7353 | wxCoord _result; |
8ab979d7 | 7354 | wxDC * _arg0; |
1d99702e | 7355 | PyObject * _argo0 = 0; |
1afc06c2 | 7356 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7357 | |
7358 | self = self; | |
1afc06c2 | 7359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MinX",_kwnames,&_argo0)) |
8ab979d7 | 7360 | return NULL; |
1d99702e RD |
7361 | if (_argo0) { |
7362 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7363 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7364 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MinX. Expected _wxDC_p."); |
7365 | return NULL; | |
7366 | } | |
7367 | } | |
cf694132 | 7368 | { |
4268f798 | 7369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7e50db3f | 7370 | _result = (wxCoord )wxDC_MinX(_arg0); |
cf694132 | 7371 | |
4268f798 | 7372 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7373 | if (PyErr_Occurred()) return NULL; |
7e50db3f | 7374 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7375 | return _resultobj; |
7376 | } | |
7377 | ||
7378 | #define wxDC_MinY(_swigobj) (_swigobj->MinY()) | |
1afc06c2 | 7379 | static PyObject *_wrap_wxDC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7380 | PyObject * _resultobj; |
7e50db3f | 7381 | wxCoord _result; |
8ab979d7 | 7382 | wxDC * _arg0; |
1d99702e | 7383 | PyObject * _argo0 = 0; |
1afc06c2 | 7384 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7385 | |
7386 | self = self; | |
1afc06c2 | 7387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MinY",_kwnames,&_argo0)) |
8ab979d7 | 7388 | return NULL; |
1d99702e RD |
7389 | if (_argo0) { |
7390 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7391 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7392 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MinY. Expected _wxDC_p."); |
7393 | return NULL; | |
7394 | } | |
7395 | } | |
cf694132 | 7396 | { |
4268f798 | 7397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7e50db3f | 7398 | _result = (wxCoord )wxDC_MinY(_arg0); |
cf694132 | 7399 | |
4268f798 | 7400 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7401 | if (PyErr_Occurred()) return NULL; |
7e50db3f | 7402 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7403 | return _resultobj; |
7404 | } | |
7405 | ||
7406 | #define wxDC_Ok(_swigobj) (_swigobj->Ok()) | |
1afc06c2 | 7407 | static PyObject *_wrap_wxDC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7408 | PyObject * _resultobj; |
7409 | bool _result; | |
7410 | wxDC * _arg0; | |
1d99702e | 7411 | PyObject * _argo0 = 0; |
1afc06c2 | 7412 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7413 | |
7414 | self = self; | |
1afc06c2 | 7415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_Ok",_kwnames,&_argo0)) |
8ab979d7 | 7416 | return NULL; |
1d99702e RD |
7417 | if (_argo0) { |
7418 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7419 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7420 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Ok. Expected _wxDC_p."); |
7421 | return NULL; | |
7422 | } | |
7423 | } | |
cf694132 | 7424 | { |
4268f798 | 7425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7426 | _result = (bool )wxDC_Ok(_arg0); |
cf694132 | 7427 | |
4268f798 | 7428 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7429 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7430 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7431 | return _resultobj; |
7432 | } | |
7433 | ||
7434 | #define wxDC_SetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDeviceOrigin(_swigarg0,_swigarg1)) | |
1afc06c2 | 7435 | static PyObject *_wrap_wxDC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7436 | PyObject * _resultobj; |
7437 | wxDC * _arg0; | |
7e50db3f RD |
7438 | wxCoord _arg1; |
7439 | wxCoord _arg2; | |
1d99702e | 7440 | PyObject * _argo0 = 0; |
1afc06c2 | 7441 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
7442 | |
7443 | self = self; | |
7e50db3f | 7444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_SetDeviceOrigin",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 7445 | return NULL; |
1d99702e RD |
7446 | if (_argo0) { |
7447 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7448 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7449 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetDeviceOrigin. Expected _wxDC_p."); |
7450 | return NULL; | |
7451 | } | |
7452 | } | |
cf694132 | 7453 | { |
4268f798 | 7454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7455 | wxDC_SetDeviceOrigin(_arg0,_arg1,_arg2); |
cf694132 | 7456 | |
4268f798 | 7457 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7458 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7459 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7460 | _resultobj = Py_None; |
7461 | return _resultobj; | |
7462 | } | |
7463 | ||
7464 | #define wxDC_SetBackground(_swigobj,_swigarg0) (_swigobj->SetBackground(_swigarg0)) | |
1afc06c2 | 7465 | static PyObject *_wrap_wxDC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7466 | PyObject * _resultobj; |
7467 | wxDC * _arg0; | |
7468 | wxBrush * _arg1; | |
1d99702e RD |
7469 | PyObject * _argo0 = 0; |
7470 | PyObject * _argo1 = 0; | |
1afc06c2 | 7471 | char *_kwnames[] = { "self","brush", NULL }; |
8ab979d7 RD |
7472 | |
7473 | self = self; | |
1afc06c2 | 7474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetBackground",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7475 | return NULL; |
1d99702e RD |
7476 | if (_argo0) { |
7477 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7478 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7479 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBackground. Expected _wxDC_p."); |
7480 | return NULL; | |
7481 | } | |
7482 | } | |
1d99702e | 7483 | if (_argo1) { |
7e50db3f | 7484 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) { |
8ab979d7 RD |
7485 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetBackground. Expected _wxBrush_p."); |
7486 | return NULL; | |
7487 | } | |
7488 | } | |
cf694132 | 7489 | { |
4268f798 | 7490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7491 | wxDC_SetBackground(_arg0,*_arg1); |
cf694132 | 7492 | |
4268f798 | 7493 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7494 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7495 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7496 | _resultobj = Py_None; |
7497 | return _resultobj; | |
7498 | } | |
7499 | ||
7500 | #define wxDC_SetBackgroundMode(_swigobj,_swigarg0) (_swigobj->SetBackgroundMode(_swigarg0)) | |
1afc06c2 | 7501 | static PyObject *_wrap_wxDC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7502 | PyObject * _resultobj; |
7503 | wxDC * _arg0; | |
7504 | int _arg1; | |
1d99702e | 7505 | PyObject * _argo0 = 0; |
1afc06c2 | 7506 | char *_kwnames[] = { "self","mode", NULL }; |
8ab979d7 RD |
7507 | |
7508 | self = self; | |
1afc06c2 | 7509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetBackgroundMode",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 7510 | return NULL; |
1d99702e RD |
7511 | if (_argo0) { |
7512 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7513 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7514 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBackgroundMode. Expected _wxDC_p."); |
7515 | return NULL; | |
7516 | } | |
7517 | } | |
cf694132 | 7518 | { |
4268f798 | 7519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7520 | wxDC_SetBackgroundMode(_arg0,_arg1); |
cf694132 | 7521 | |
4268f798 | 7522 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7523 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7524 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7525 | _resultobj = Py_None; |
7526 | return _resultobj; | |
7527 | } | |
7528 | ||
7529 | #define wxDC_SetClippingRegion(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetClippingRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
1afc06c2 | 7530 | static PyObject *_wrap_wxDC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7531 | PyObject * _resultobj; |
7532 | wxDC * _arg0; | |
7e50db3f RD |
7533 | wxCoord _arg1; |
7534 | wxCoord _arg2; | |
7535 | wxCoord _arg3; | |
7536 | wxCoord _arg4; | |
1d99702e | 7537 | PyObject * _argo0 = 0; |
1afc06c2 | 7538 | char *_kwnames[] = { "self","x","y","width","height", NULL }; |
8ab979d7 RD |
7539 | |
7540 | self = self; | |
7e50db3f | 7541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii:wxDC_SetClippingRegion",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) |
8ab979d7 | 7542 | return NULL; |
1d99702e RD |
7543 | if (_argo0) { |
7544 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7545 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7546 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetClippingRegion. Expected _wxDC_p."); |
7547 | return NULL; | |
7548 | } | |
7549 | } | |
cf694132 | 7550 | { |
4268f798 | 7551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7552 | wxDC_SetClippingRegion(_arg0,_arg1,_arg2,_arg3,_arg4); |
cf694132 | 7553 | |
4268f798 | 7554 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7555 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7556 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7557 | _resultobj = Py_None; |
7558 | return _resultobj; | |
7559 | } | |
7560 | ||
19a97bd6 RD |
7561 | #define wxDC_SetClippingRegionAsRegion(_swigobj,_swigarg0) (_swigobj->SetClippingRegion(_swigarg0)) |
7562 | static PyObject *_wrap_wxDC_SetClippingRegionAsRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7563 | PyObject * _resultobj; | |
7564 | wxDC * _arg0; | |
7565 | wxRegion * _arg1; | |
7566 | PyObject * _argo0 = 0; | |
7567 | PyObject * _argo1 = 0; | |
7568 | char *_kwnames[] = { "self","region", NULL }; | |
7569 | ||
7570 | self = self; | |
7571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetClippingRegionAsRegion",_kwnames,&_argo0,&_argo1)) | |
7572 | return NULL; | |
7573 | if (_argo0) { | |
7574 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7575 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7576 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetClippingRegionAsRegion. Expected _wxDC_p."); | |
7577 | return NULL; | |
7578 | } | |
7579 | } | |
7580 | if (_argo1) { | |
7e50db3f | 7581 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) { |
19a97bd6 RD |
7582 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetClippingRegionAsRegion. Expected _wxRegion_p."); |
7583 | return NULL; | |
7584 | } | |
7585 | } | |
7586 | { | |
4268f798 | 7587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7588 | wxDC_SetClippingRegionAsRegion(_arg0,*_arg1); |
19a97bd6 | 7589 | |
4268f798 | 7590 | wxPyEndAllowThreads(__tstate); |
19a97bd6 RD |
7591 | if (PyErr_Occurred()) return NULL; |
7592 | } Py_INCREF(Py_None); | |
7593 | _resultobj = Py_None; | |
7594 | return _resultobj; | |
7595 | } | |
7596 | ||
efe12e95 RD |
7597 | #define wxDC_SetClippingRect(_swigobj,_swigarg0) (_swigobj->SetClippingRegion(_swigarg0)) |
7598 | static PyObject *_wrap_wxDC_SetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7599 | PyObject * _resultobj; | |
7600 | wxDC * _arg0; | |
7601 | wxRect * _arg1; | |
7602 | PyObject * _argo0 = 0; | |
7603 | wxRect temp; | |
7604 | PyObject * _obj1 = 0; | |
7605 | char *_kwnames[] = { "self","rect", NULL }; | |
7606 | ||
7607 | self = self; | |
7608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetClippingRect",_kwnames,&_argo0,&_obj1)) | |
7609 | return NULL; | |
7610 | if (_argo0) { | |
7611 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7612 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7613 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetClippingRect. Expected _wxDC_p."); | |
7614 | return NULL; | |
7615 | } | |
7616 | } | |
7617 | { | |
7618 | _arg1 = &temp; | |
7619 | if (! wxRect_helper(_obj1, &_arg1)) | |
7620 | return NULL; | |
7621 | } | |
7622 | { | |
7623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7624 | wxDC_SetClippingRect(_arg0,*_arg1); | |
7625 | ||
7626 | wxPyEndAllowThreads(__tstate); | |
7627 | if (PyErr_Occurred()) return NULL; | |
7628 | } Py_INCREF(Py_None); | |
7629 | _resultobj = Py_None; | |
7630 | return _resultobj; | |
7631 | } | |
7632 | ||
8ab979d7 | 7633 | #define wxDC_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0)) |
1afc06c2 | 7634 | static PyObject *_wrap_wxDC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7635 | PyObject * _resultobj; |
7636 | wxDC * _arg0; | |
7637 | wxPalette * _arg1; | |
1d99702e RD |
7638 | PyObject * _argo0 = 0; |
7639 | PyObject * _argo1 = 0; | |
1afc06c2 | 7640 | char *_kwnames[] = { "self","colourMap", NULL }; |
8ab979d7 RD |
7641 | |
7642 | self = self; | |
1afc06c2 | 7643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetPalette",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7644 | return NULL; |
1d99702e RD |
7645 | if (_argo0) { |
7646 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7647 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7648 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetPalette. Expected _wxDC_p."); |
7649 | return NULL; | |
7650 | } | |
7651 | } | |
1d99702e | 7652 | if (_argo1) { |
7e50db3f | 7653 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPalette_p")) { |
8ab979d7 RD |
7654 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetPalette. Expected _wxPalette_p."); |
7655 | return NULL; | |
7656 | } | |
7657 | } | |
cf694132 | 7658 | { |
4268f798 | 7659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7660 | wxDC_SetPalette(_arg0,*_arg1); |
cf694132 | 7661 | |
4268f798 | 7662 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7663 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7664 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7665 | _resultobj = Py_None; |
7666 | return _resultobj; | |
7667 | } | |
7668 | ||
7669 | #define wxDC_SetBrush(_swigobj,_swigarg0) (_swigobj->SetBrush(_swigarg0)) | |
1afc06c2 | 7670 | static PyObject *_wrap_wxDC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7671 | PyObject * _resultobj; |
7672 | wxDC * _arg0; | |
7673 | wxBrush * _arg1; | |
1d99702e RD |
7674 | PyObject * _argo0 = 0; |
7675 | PyObject * _argo1 = 0; | |
1afc06c2 | 7676 | char *_kwnames[] = { "self","brush", NULL }; |
8ab979d7 RD |
7677 | |
7678 | self = self; | |
1afc06c2 | 7679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetBrush",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7680 | return NULL; |
1d99702e RD |
7681 | if (_argo0) { |
7682 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7683 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7684 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBrush. Expected _wxDC_p."); |
7685 | return NULL; | |
7686 | } | |
7687 | } | |
1d99702e | 7688 | if (_argo1) { |
7e50db3f | 7689 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) { |
8ab979d7 RD |
7690 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetBrush. Expected _wxBrush_p."); |
7691 | return NULL; | |
7692 | } | |
7693 | } | |
cf694132 | 7694 | { |
4268f798 | 7695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7696 | wxDC_SetBrush(_arg0,*_arg1); |
cf694132 | 7697 | |
4268f798 | 7698 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7699 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7700 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7701 | _resultobj = Py_None; |
7702 | return _resultobj; | |
7703 | } | |
7704 | ||
7705 | #define wxDC_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) | |
1afc06c2 | 7706 | static PyObject *_wrap_wxDC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7707 | PyObject * _resultobj; |
7708 | wxDC * _arg0; | |
7709 | wxFont * _arg1; | |
1d99702e RD |
7710 | PyObject * _argo0 = 0; |
7711 | PyObject * _argo1 = 0; | |
1afc06c2 | 7712 | char *_kwnames[] = { "self","font", NULL }; |
8ab979d7 RD |
7713 | |
7714 | self = self; | |
1afc06c2 | 7715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetFont",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7716 | return NULL; |
1d99702e RD |
7717 | if (_argo0) { |
7718 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7719 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7720 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetFont. Expected _wxDC_p."); |
7721 | return NULL; | |
7722 | } | |
7723 | } | |
1d99702e | 7724 | if (_argo1) { |
7e50db3f | 7725 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { |
8ab979d7 RD |
7726 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetFont. Expected _wxFont_p."); |
7727 | return NULL; | |
7728 | } | |
7729 | } | |
cf694132 | 7730 | { |
4268f798 | 7731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7732 | wxDC_SetFont(_arg0,*_arg1); |
cf694132 | 7733 | |
4268f798 | 7734 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7735 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7736 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7737 | _resultobj = Py_None; |
7738 | return _resultobj; | |
7739 | } | |
7740 | ||
7741 | #define wxDC_SetLogicalFunction(_swigobj,_swigarg0) (_swigobj->SetLogicalFunction(_swigarg0)) | |
1afc06c2 | 7742 | static PyObject *_wrap_wxDC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7743 | PyObject * _resultobj; |
7744 | wxDC * _arg0; | |
7745 | int _arg1; | |
1d99702e | 7746 | PyObject * _argo0 = 0; |
1afc06c2 | 7747 | char *_kwnames[] = { "self","function", NULL }; |
8ab979d7 RD |
7748 | |
7749 | self = self; | |
1afc06c2 | 7750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetLogicalFunction",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 7751 | return NULL; |
1d99702e RD |
7752 | if (_argo0) { |
7753 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7754 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7755 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalFunction. Expected _wxDC_p."); |
7756 | return NULL; | |
7757 | } | |
7758 | } | |
cf694132 | 7759 | { |
4268f798 | 7760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7761 | wxDC_SetLogicalFunction(_arg0,_arg1); |
cf694132 | 7762 | |
4268f798 | 7763 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7764 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7765 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7766 | _resultobj = Py_None; |
7767 | return _resultobj; | |
7768 | } | |
7769 | ||
eec92d76 RD |
7770 | #define wxDC_SetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalScale(_swigarg0,_swigarg1)) |
7771 | static PyObject *_wrap_wxDC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7772 | PyObject * _resultobj; | |
7773 | wxDC * _arg0; | |
7774 | double _arg1; | |
7775 | double _arg2; | |
7776 | PyObject * _argo0 = 0; | |
7777 | char *_kwnames[] = { "self","x","y", NULL }; | |
7778 | ||
7779 | self = self; | |
7780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxDC_SetLogicalScale",_kwnames,&_argo0,&_arg1,&_arg2)) | |
7781 | return NULL; | |
7782 | if (_argo0) { | |
7783 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7784 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7785 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalScale. Expected _wxDC_p."); | |
7786 | return NULL; | |
7787 | } | |
7788 | } | |
7789 | { | |
4268f798 | 7790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7791 | wxDC_SetLogicalScale(_arg0,_arg1,_arg2); |
eec92d76 | 7792 | |
4268f798 | 7793 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7794 | if (PyErr_Occurred()) return NULL; |
eec92d76 RD |
7795 | } Py_INCREF(Py_None); |
7796 | _resultobj = Py_None; | |
7797 | return _resultobj; | |
7798 | } | |
7799 | ||
8ab979d7 | 7800 | #define wxDC_SetMapMode(_swigobj,_swigarg0) (_swigobj->SetMapMode(_swigarg0)) |
1afc06c2 | 7801 | static PyObject *_wrap_wxDC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7802 | PyObject * _resultobj; |
7803 | wxDC * _arg0; | |
7804 | int _arg1; | |
1d99702e | 7805 | PyObject * _argo0 = 0; |
1afc06c2 | 7806 | char *_kwnames[] = { "self","mode", NULL }; |
8ab979d7 RD |
7807 | |
7808 | self = self; | |
1afc06c2 | 7809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetMapMode",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 7810 | return NULL; |
1d99702e RD |
7811 | if (_argo0) { |
7812 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7813 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7814 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetMapMode. Expected _wxDC_p."); |
7815 | return NULL; | |
7816 | } | |
7817 | } | |
cf694132 | 7818 | { |
4268f798 | 7819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7820 | wxDC_SetMapMode(_arg0,_arg1); |
cf694132 | 7821 | |
4268f798 | 7822 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7823 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7824 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7825 | _resultobj = Py_None; |
7826 | return _resultobj; | |
7827 | } | |
7828 | ||
7829 | #define wxDC_SetOptimization(_swigobj,_swigarg0) (_swigobj->SetOptimization(_swigarg0)) | |
1afc06c2 | 7830 | static PyObject *_wrap_wxDC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7831 | PyObject * _resultobj; |
7832 | wxDC * _arg0; | |
7833 | bool _arg1; | |
1d99702e | 7834 | PyObject * _argo0 = 0; |
8ab979d7 | 7835 | int tempbool1; |
1afc06c2 | 7836 | char *_kwnames[] = { "self","optimize", NULL }; |
8ab979d7 RD |
7837 | |
7838 | self = self; | |
1afc06c2 | 7839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetOptimization",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 7840 | return NULL; |
1d99702e RD |
7841 | if (_argo0) { |
7842 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7843 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7844 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetOptimization. Expected _wxDC_p."); |
7845 | return NULL; | |
7846 | } | |
7847 | } | |
7848 | _arg1 = (bool ) tempbool1; | |
cf694132 | 7849 | { |
4268f798 | 7850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7851 | wxDC_SetOptimization(_arg0,_arg1); |
cf694132 | 7852 | |
4268f798 | 7853 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7854 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7855 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7856 | _resultobj = Py_None; |
7857 | return _resultobj; | |
7858 | } | |
7859 | ||
7860 | #define wxDC_SetPen(_swigobj,_swigarg0) (_swigobj->SetPen(_swigarg0)) | |
1afc06c2 | 7861 | static PyObject *_wrap_wxDC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7862 | PyObject * _resultobj; |
7863 | wxDC * _arg0; | |
7864 | wxPen * _arg1; | |
1d99702e RD |
7865 | PyObject * _argo0 = 0; |
7866 | PyObject * _argo1 = 0; | |
1afc06c2 | 7867 | char *_kwnames[] = { "self","pen", NULL }; |
8ab979d7 RD |
7868 | |
7869 | self = self; | |
1afc06c2 | 7870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetPen",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7871 | return NULL; |
1d99702e RD |
7872 | if (_argo0) { |
7873 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7874 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7875 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetPen. Expected _wxDC_p."); |
7876 | return NULL; | |
7877 | } | |
7878 | } | |
1d99702e | 7879 | if (_argo1) { |
7e50db3f | 7880 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) { |
8ab979d7 RD |
7881 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetPen. Expected _wxPen_p."); |
7882 | return NULL; | |
7883 | } | |
7884 | } | |
cf694132 | 7885 | { |
4268f798 | 7886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7887 | wxDC_SetPen(_arg0,*_arg1); |
cf694132 | 7888 | |
4268f798 | 7889 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7890 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7891 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7892 | _resultobj = Py_None; |
7893 | return _resultobj; | |
7894 | } | |
7895 | ||
7896 | #define wxDC_SetTextBackground(_swigobj,_swigarg0) (_swigobj->SetTextBackground(_swigarg0)) | |
1afc06c2 | 7897 | static PyObject *_wrap_wxDC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7898 | PyObject * _resultobj; |
7899 | wxDC * _arg0; | |
7900 | wxColour * _arg1; | |
1d99702e | 7901 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
7902 | wxColour temp; |
7903 | PyObject * _obj1 = 0; | |
1afc06c2 | 7904 | char *_kwnames[] = { "self","colour", NULL }; |
8ab979d7 RD |
7905 | |
7906 | self = self; | |
f6bcfd97 | 7907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetTextBackground",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 7908 | return NULL; |
1d99702e RD |
7909 | if (_argo0) { |
7910 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7911 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7912 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetTextBackground. Expected _wxDC_p."); |
7913 | return NULL; | |
7914 | } | |
7915 | } | |
f6bcfd97 BP |
7916 | { |
7917 | _arg1 = &temp; | |
7918 | if (! wxColour_helper(_obj1, &_arg1)) | |
8ab979d7 | 7919 | return NULL; |
f6bcfd97 | 7920 | } |
cf694132 | 7921 | { |
4268f798 | 7922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7923 | wxDC_SetTextBackground(_arg0,*_arg1); |
cf694132 | 7924 | |
4268f798 | 7925 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7926 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7927 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7928 | _resultobj = Py_None; |
7929 | return _resultobj; | |
7930 | } | |
7931 | ||
7932 | #define wxDC_SetTextForeground(_swigobj,_swigarg0) (_swigobj->SetTextForeground(_swigarg0)) | |
1afc06c2 | 7933 | static PyObject *_wrap_wxDC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7934 | PyObject * _resultobj; |
7935 | wxDC * _arg0; | |
7936 | wxColour * _arg1; | |
1d99702e | 7937 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
7938 | wxColour temp; |
7939 | PyObject * _obj1 = 0; | |
1afc06c2 | 7940 | char *_kwnames[] = { "self","colour", NULL }; |
8ab979d7 RD |
7941 | |
7942 | self = self; | |
f6bcfd97 | 7943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetTextForeground",_kwnames,&_argo0,&_obj1)) |
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_SetTextForeground. Expected _wxDC_p."); |
7949 | return NULL; | |
7950 | } | |
7951 | } | |
f6bcfd97 BP |
7952 | { |
7953 | _arg1 = &temp; | |
7954 | if (! wxColour_helper(_obj1, &_arg1)) | |
8ab979d7 | 7955 | return NULL; |
f6bcfd97 | 7956 | } |
cf694132 | 7957 | { |
4268f798 | 7958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7959 | wxDC_SetTextForeground(_arg0,*_arg1); |
cf694132 | 7960 | |
4268f798 | 7961 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7962 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7963 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7964 | _resultobj = Py_None; |
7965 | return _resultobj; | |
7966 | } | |
7967 | ||
7968 | #define wxDC_SetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetUserScale(_swigarg0,_swigarg1)) | |
1afc06c2 | 7969 | static PyObject *_wrap_wxDC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7970 | PyObject * _resultobj; |
7971 | wxDC * _arg0; | |
7972 | double _arg1; | |
7973 | double _arg2; | |
1d99702e | 7974 | PyObject * _argo0 = 0; |
1afc06c2 | 7975 | char *_kwnames[] = { "self","x_scale","y_scale", NULL }; |
8ab979d7 RD |
7976 | |
7977 | self = self; | |
1afc06c2 | 7978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxDC_SetUserScale",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 7979 | return NULL; |
1d99702e RD |
7980 | if (_argo0) { |
7981 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7982 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
7983 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetUserScale. Expected _wxDC_p."); |
7984 | return NULL; | |
7985 | } | |
7986 | } | |
cf694132 | 7987 | { |
4268f798 | 7988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7989 | wxDC_SetUserScale(_arg0,_arg1,_arg2); |
cf694132 | 7990 | |
4268f798 | 7991 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7992 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7993 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7994 | _resultobj = Py_None; |
7995 | return _resultobj; | |
7996 | } | |
7997 | ||
7998 | #define wxDC_StartDoc(_swigobj,_swigarg0) (_swigobj->StartDoc(_swigarg0)) | |
1afc06c2 | 7999 | static PyObject *_wrap_wxDC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8000 | PyObject * _resultobj; |
8001 | bool _result; | |
8002 | wxDC * _arg0; | |
8003 | wxString * _arg1; | |
1d99702e | 8004 | PyObject * _argo0 = 0; |
8ab979d7 | 8005 | PyObject * _obj1 = 0; |
1afc06c2 | 8006 | char *_kwnames[] = { "self","message", NULL }; |
8ab979d7 RD |
8007 | |
8008 | self = self; | |
1afc06c2 | 8009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_StartDoc",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 8010 | return NULL; |
1d99702e RD |
8011 | if (_argo0) { |
8012 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8013 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8014 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_StartDoc. Expected _wxDC_p."); |
8015 | return NULL; | |
8016 | } | |
8017 | } | |
8018 | { | |
c8bc7bb8 RD |
8019 | _arg1 = wxString_in_helper(_obj1); |
8020 | if (_arg1 == NULL) | |
185d7c3e | 8021 | return NULL; |
8ab979d7 | 8022 | } |
cf694132 | 8023 | { |
4268f798 | 8024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8025 | _result = (bool )wxDC_StartDoc(_arg0,*_arg1); |
cf694132 | 8026 | |
4268f798 | 8027 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8028 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8029 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8030 | { |
8031 | if (_obj1) | |
8032 | delete _arg1; | |
8033 | } | |
8034 | return _resultobj; | |
8035 | } | |
8036 | ||
8037 | #define wxDC_StartPage(_swigobj) (_swigobj->StartPage()) | |
1afc06c2 | 8038 | static PyObject *_wrap_wxDC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8039 | PyObject * _resultobj; |
8040 | wxDC * _arg0; | |
1d99702e | 8041 | PyObject * _argo0 = 0; |
1afc06c2 | 8042 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8043 | |
8044 | self = self; | |
1afc06c2 | 8045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_StartPage",_kwnames,&_argo0)) |
8ab979d7 | 8046 | return NULL; |
1d99702e RD |
8047 | if (_argo0) { |
8048 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8049 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8050 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_StartPage. Expected _wxDC_p."); |
8051 | return NULL; | |
8052 | } | |
8053 | } | |
cf694132 | 8054 | { |
4268f798 | 8055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8056 | wxDC_StartPage(_arg0); |
cf694132 | 8057 | |
4268f798 | 8058 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8059 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8060 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8061 | _resultobj = Py_None; |
8062 | return _resultobj; | |
8063 | } | |
8064 | ||
efc5f224 | 8065 | #define wxDC_DrawBitmap(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
1afc06c2 | 8066 | static PyObject *_wrap_wxDC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8067 | PyObject * _resultobj; |
8068 | wxDC * _arg0; | |
8069 | wxBitmap * _arg1; | |
7e50db3f RD |
8070 | wxCoord _arg2; |
8071 | wxCoord _arg3; | |
efc5f224 | 8072 | int _arg4 = (int ) FALSE; |
1d99702e RD |
8073 | PyObject * _argo0 = 0; |
8074 | PyObject * _argo1 = 0; | |
1afc06c2 | 8075 | char *_kwnames[] = { "self","bitmap","x","y","useMask", NULL }; |
8ab979d7 RD |
8076 | |
8077 | self = self; | |
7e50db3f | 8078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii|i:wxDC_DrawBitmap",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_arg4)) |
8ab979d7 | 8079 | return NULL; |
1d99702e RD |
8080 | if (_argo0) { |
8081 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8082 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8ab979d7 RD |
8083 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawBitmap. Expected _wxDC_p."); |
8084 | return NULL; | |
8085 | } | |
8086 | } | |
1d99702e | 8087 | if (_argo1) { |
7e50db3f | 8088 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { |
8ab979d7 RD |
8089 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_DrawBitmap. Expected _wxBitmap_p."); |
8090 | return NULL; | |
8091 | } | |
8092 | } | |
cf694132 | 8093 | { |
4268f798 | 8094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8095 | wxDC_DrawBitmap(_arg0,*_arg1,_arg2,_arg3,_arg4); |
cf694132 | 8096 | |
4268f798 | 8097 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8098 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8099 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8100 | _resultobj = Py_None; |
8101 | return _resultobj; | |
8102 | } | |
8103 | ||
eec92d76 RD |
8104 | #define wxDC_CanDrawBitmap(_swigobj) (_swigobj->CanDrawBitmap()) |
8105 | static PyObject *_wrap_wxDC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8106 | PyObject * _resultobj; | |
8107 | bool _result; | |
8108 | wxDC * _arg0; | |
8109 | PyObject * _argo0 = 0; | |
8110 | char *_kwnames[] = { "self", NULL }; | |
8111 | ||
8112 | self = self; | |
8113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_CanDrawBitmap",_kwnames,&_argo0)) | |
8114 | return NULL; | |
8115 | if (_argo0) { | |
8116 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8117 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8118 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CanDrawBitmap. Expected _wxDC_p."); | |
8119 | return NULL; | |
8120 | } | |
8121 | } | |
8122 | { | |
4268f798 | 8123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8124 | _result = (bool )wxDC_CanDrawBitmap(_arg0); |
eec92d76 | 8125 | |
4268f798 | 8126 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8127 | if (PyErr_Occurred()) return NULL; |
eec92d76 RD |
8128 | } _resultobj = Py_BuildValue("i",_result); |
8129 | return _resultobj; | |
8130 | } | |
8131 | ||
8132 | #define wxDC_CanGetTextExtent(_swigobj) (_swigobj->CanGetTextExtent()) | |
8133 | static PyObject *_wrap_wxDC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8134 | PyObject * _resultobj; | |
8135 | bool _result; | |
8136 | wxDC * _arg0; | |
8137 | PyObject * _argo0 = 0; | |
8138 | char *_kwnames[] = { "self", NULL }; | |
8139 | ||
8140 | self = self; | |
8141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_CanGetTextExtent",_kwnames,&_argo0)) | |
8142 | return NULL; | |
8143 | if (_argo0) { | |
8144 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8145 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8146 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CanGetTextExtent. Expected _wxDC_p."); | |
8147 | return NULL; | |
8148 | } | |
8149 | } | |
8150 | { | |
4268f798 | 8151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8152 | _result = (bool )wxDC_CanGetTextExtent(_arg0); |
eec92d76 | 8153 | |
4268f798 | 8154 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8155 | if (PyErr_Occurred()) return NULL; |
eec92d76 RD |
8156 | } _resultobj = Py_BuildValue("i",_result); |
8157 | return _resultobj; | |
8158 | } | |
8159 | ||
8160 | #define wxDC_GetDepth(_swigobj) (_swigobj->GetDepth()) | |
8161 | static PyObject *_wrap_wxDC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8162 | PyObject * _resultobj; | |
8163 | int _result; | |
8164 | wxDC * _arg0; | |
8165 | PyObject * _argo0 = 0; | |
8166 | char *_kwnames[] = { "self", NULL }; | |
8167 | ||
8168 | self = self; | |
8169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetDepth",_kwnames,&_argo0)) | |
8170 | return NULL; | |
8171 | if (_argo0) { | |
8172 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8173 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8174 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetDepth. Expected _wxDC_p."); | |
8175 | return NULL; | |
8176 | } | |
8177 | } | |
8178 | { | |
4268f798 | 8179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8180 | _result = (int )wxDC_GetDepth(_arg0); |
eec92d76 | 8181 | |
4268f798 | 8182 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8183 | if (PyErr_Occurred()) return NULL; |
eec92d76 RD |
8184 | } _resultobj = Py_BuildValue("i",_result); |
8185 | return _resultobj; | |
8186 | } | |
8187 | ||
8188 | #define wxDC_GetPPI(_swigobj) (_swigobj->GetPPI()) | |
8189 | static PyObject *_wrap_wxDC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8190 | PyObject * _resultobj; | |
8191 | wxSize * _result; | |
8192 | wxDC * _arg0; | |
8193 | PyObject * _argo0 = 0; | |
8194 | char *_kwnames[] = { "self", NULL }; | |
8195 | char _ptemp[128]; | |
8196 | ||
8197 | self = self; | |
8198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetPPI",_kwnames,&_argo0)) | |
8199 | return NULL; | |
8200 | if (_argo0) { | |
8201 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8202 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8203 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPPI. Expected _wxDC_p."); | |
8204 | return NULL; | |
8205 | } | |
8206 | } | |
8207 | { | |
4268f798 | 8208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8209 | _result = new wxSize (wxDC_GetPPI(_arg0)); |
eec92d76 | 8210 | |
4268f798 | 8211 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8212 | if (PyErr_Occurred()) return NULL; |
eec92d76 RD |
8213 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
8214 | _resultobj = Py_BuildValue("s",_ptemp); | |
8215 | return _resultobj; | |
8216 | } | |
8217 | ||
8218 | #define wxDC_GetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalOrigin(_swigarg0,_swigarg1)) | |
8219 | static PyObject *_wrap_wxDC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8220 | PyObject * _resultobj; | |
8221 | wxDC * _arg0; | |
8222 | int * _arg1; | |
8223 | int temp; | |
8224 | int * _arg2; | |
8225 | int temp0; | |
8226 | PyObject * _argo0 = 0; | |
8227 | char *_kwnames[] = { "self", NULL }; | |
8228 | ||
8229 | self = self; | |
8230 | { | |
8231 | _arg1 = &temp; | |
8232 | } | |
8233 | { | |
8234 | _arg2 = &temp0; | |
8235 | } | |
8236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalOrigin",_kwnames,&_argo0)) | |
8237 | return NULL; | |
8238 | if (_argo0) { | |
8239 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8240 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8241 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalOrigin. Expected _wxDC_p."); | |
8242 | return NULL; | |
8243 | } | |
8244 | } | |
8245 | { | |
4268f798 | 8246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8247 | wxDC_GetLogicalOrigin(_arg0,_arg1,_arg2); |
eec92d76 | 8248 | |
4268f798 | 8249 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8250 | if (PyErr_Occurred()) return NULL; |
eec92d76 RD |
8251 | } Py_INCREF(Py_None); |
8252 | _resultobj = Py_None; | |
8253 | { | |
8254 | PyObject *o; | |
8255 | o = PyInt_FromLong((long) (*_arg1)); | |
8256 | _resultobj = t_output_helper(_resultobj, o); | |
8257 | } | |
8258 | { | |
8259 | PyObject *o; | |
8260 | o = PyInt_FromLong((long) (*_arg2)); | |
8261 | _resultobj = t_output_helper(_resultobj, o); | |
8262 | } | |
8263 | return _resultobj; | |
8264 | } | |
8265 | ||
8266 | #define wxDC_SetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalOrigin(_swigarg0,_swigarg1)) | |
8267 | static PyObject *_wrap_wxDC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8268 | PyObject * _resultobj; | |
8269 | wxDC * _arg0; | |
8270 | int _arg1; | |
8271 | int _arg2; | |
8272 | PyObject * _argo0 = 0; | |
8273 | char *_kwnames[] = { "self","x","y", NULL }; | |
8274 | ||
8275 | self = self; | |
8276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_SetLogicalOrigin",_kwnames,&_argo0,&_arg1,&_arg2)) | |
8277 | return NULL; | |
8278 | if (_argo0) { | |
8279 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8280 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8281 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalOrigin. Expected _wxDC_p."); | |
8282 | return NULL; | |
8283 | } | |
8284 | } | |
8285 | { | |
4268f798 | 8286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8287 | wxDC_SetLogicalOrigin(_arg0,_arg1,_arg2); |
eec92d76 | 8288 | |
4268f798 | 8289 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8290 | if (PyErr_Occurred()) return NULL; |
eec92d76 RD |
8291 | } Py_INCREF(Py_None); |
8292 | _resultobj = Py_None; | |
8293 | return _resultobj; | |
8294 | } | |
8295 | ||
8296 | #define wxDC_GetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetDeviceOrigin(_swigarg0,_swigarg1)) | |
8297 | static PyObject *_wrap_wxDC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8298 | PyObject * _resultobj; | |
8299 | wxDC * _arg0; | |
8300 | int * _arg1; | |
8301 | int temp; | |
8302 | int * _arg2; | |
8303 | int temp0; | |
8304 | PyObject * _argo0 = 0; | |
8305 | char *_kwnames[] = { "self", NULL }; | |
8306 | ||
8307 | self = self; | |
8308 | { | |
8309 | _arg1 = &temp; | |
8310 | } | |
8311 | { | |
8312 | _arg2 = &temp0; | |
8313 | } | |
8314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetDeviceOrigin",_kwnames,&_argo0)) | |
8315 | return NULL; | |
8316 | if (_argo0) { | |
8317 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8318 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8319 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetDeviceOrigin. Expected _wxDC_p."); | |
8320 | return NULL; | |
8321 | } | |
8322 | } | |
8323 | { | |
4268f798 | 8324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8325 | wxDC_GetDeviceOrigin(_arg0,_arg1,_arg2); |
eec92d76 | 8326 | |
4268f798 | 8327 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8328 | if (PyErr_Occurred()) return NULL; |
eec92d76 RD |
8329 | } Py_INCREF(Py_None); |
8330 | _resultobj = Py_None; | |
8331 | { | |
8332 | PyObject *o; | |
8333 | o = PyInt_FromLong((long) (*_arg1)); | |
8334 | _resultobj = t_output_helper(_resultobj, o); | |
8335 | } | |
8336 | { | |
8337 | PyObject *o; | |
8338 | o = PyInt_FromLong((long) (*_arg2)); | |
8339 | _resultobj = t_output_helper(_resultobj, o); | |
8340 | } | |
8341 | return _resultobj; | |
8342 | } | |
8343 | ||
8344 | #define wxDC_SetAxisOrientation(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetAxisOrientation(_swigarg0,_swigarg1)) | |
8345 | static PyObject *_wrap_wxDC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8346 | PyObject * _resultobj; | |
8347 | wxDC * _arg0; | |
8348 | bool _arg1; | |
8349 | bool _arg2; | |
8350 | PyObject * _argo0 = 0; | |
8351 | int tempbool1; | |
8352 | int tempbool2; | |
8353 | char *_kwnames[] = { "self","xLeftRight","yBottomUp", NULL }; | |
8354 | ||
8355 | self = self; | |
8356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_SetAxisOrientation",_kwnames,&_argo0,&tempbool1,&tempbool2)) | |
8357 | return NULL; | |
8358 | if (_argo0) { | |
8359 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8360 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8361 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetAxisOrientation. Expected _wxDC_p."); | |
8362 | return NULL; | |
8363 | } | |
8364 | } | |
8365 | _arg1 = (bool ) tempbool1; | |
8366 | _arg2 = (bool ) tempbool2; | |
8367 | { | |
4268f798 | 8368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8369 | wxDC_SetAxisOrientation(_arg0,_arg1,_arg2); |
eec92d76 | 8370 | |
4268f798 | 8371 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8372 | if (PyErr_Occurred()) return NULL; |
eec92d76 RD |
8373 | } Py_INCREF(Py_None); |
8374 | _resultobj = Py_None; | |
8375 | return _resultobj; | |
8376 | } | |
8377 | ||
f6bcfd97 BP |
8378 | #define wxDC_CalcBoundingBox(_swigobj,_swigarg0,_swigarg1) (_swigobj->CalcBoundingBox(_swigarg0,_swigarg1)) |
8379 | static PyObject *_wrap_wxDC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8380 | PyObject * _resultobj; | |
8381 | wxDC * _arg0; | |
8382 | int _arg1; | |
8383 | int _arg2; | |
8384 | PyObject * _argo0 = 0; | |
8385 | char *_kwnames[] = { "self","x","y", NULL }; | |
8386 | ||
8387 | self = self; | |
8388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_CalcBoundingBox",_kwnames,&_argo0,&_arg1,&_arg2)) | |
8389 | return NULL; | |
8390 | if (_argo0) { | |
8391 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8392 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8393 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CalcBoundingBox. Expected _wxDC_p."); | |
8394 | return NULL; | |
8395 | } | |
8396 | } | |
8397 | { | |
4268f798 | 8398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8399 | wxDC_CalcBoundingBox(_arg0,_arg1,_arg2); |
f6bcfd97 | 8400 | |
4268f798 | 8401 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8402 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
8403 | } Py_INCREF(Py_None); |
8404 | _resultobj = Py_None; | |
8405 | return _resultobj; | |
8406 | } | |
8407 | ||
8408 | #define wxDC_ResetBoundingBox(_swigobj) (_swigobj->ResetBoundingBox()) | |
8409 | static PyObject *_wrap_wxDC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8410 | PyObject * _resultobj; | |
8411 | wxDC * _arg0; | |
8412 | PyObject * _argo0 = 0; | |
8413 | char *_kwnames[] = { "self", NULL }; | |
8414 | ||
8415 | self = self; | |
8416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_ResetBoundingBox",_kwnames,&_argo0)) | |
8417 | return NULL; | |
8418 | if (_argo0) { | |
8419 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8420 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8421 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_ResetBoundingBox. Expected _wxDC_p."); | |
8422 | return NULL; | |
8423 | } | |
8424 | } | |
8425 | { | |
4268f798 | 8426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8427 | wxDC_ResetBoundingBox(_arg0); |
f6bcfd97 | 8428 | |
4268f798 | 8429 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8430 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
8431 | } Py_INCREF(Py_None); |
8432 | _resultobj = Py_None; | |
8433 | return _resultobj; | |
8434 | } | |
8435 | ||
9d37f964 RD |
8436 | static PyObject *_wrap_wxDC_GetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
8437 | PyObject * _resultobj; | |
8438 | wxDC * _arg0; | |
8439 | int * _arg1; | |
8440 | int temp; | |
8441 | int * _arg2; | |
8442 | int temp0; | |
8443 | int * _arg3; | |
8444 | int temp1; | |
8445 | int * _arg4; | |
8446 | int temp2; | |
8447 | PyObject * _argo0 = 0; | |
8448 | char *_kwnames[] = { "self", NULL }; | |
8449 | ||
8450 | self = self; | |
8451 | { | |
8452 | _arg1 = &temp; | |
8453 | } | |
8454 | { | |
8455 | _arg2 = &temp0; | |
8456 | } | |
8457 | { | |
8458 | _arg3 = &temp1; | |
8459 | } | |
8460 | { | |
8461 | _arg4 = &temp2; | |
8462 | } | |
8463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBoundingBox",_kwnames,&_argo0)) | |
8464 | return NULL; | |
8465 | if (_argo0) { | |
8466 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8467 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8468 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBoundingBox. Expected _wxDC_p."); | |
8469 | return NULL; | |
8470 | } | |
8471 | } | |
8472 | { | |
4268f798 | 8473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8474 | wxDC_GetBoundingBox(_arg0,_arg1,_arg2,_arg3,_arg4); |
9d37f964 | 8475 | |
4268f798 | 8476 | wxPyEndAllowThreads(__tstate); |
9d37f964 RD |
8477 | if (PyErr_Occurred()) return NULL; |
8478 | } Py_INCREF(Py_None); | |
8479 | _resultobj = Py_None; | |
8480 | { | |
8481 | PyObject *o; | |
8482 | o = PyInt_FromLong((long) (*_arg1)); | |
8483 | _resultobj = t_output_helper(_resultobj, o); | |
8484 | } | |
8485 | { | |
8486 | PyObject *o; | |
8487 | o = PyInt_FromLong((long) (*_arg2)); | |
8488 | _resultobj = t_output_helper(_resultobj, o); | |
8489 | } | |
8490 | { | |
8491 | PyObject *o; | |
8492 | o = PyInt_FromLong((long) (*_arg3)); | |
8493 | _resultobj = t_output_helper(_resultobj, o); | |
8494 | } | |
8495 | { | |
8496 | PyObject *o; | |
8497 | o = PyInt_FromLong((long) (*_arg4)); | |
8498 | _resultobj = t_output_helper(_resultobj, o); | |
8499 | } | |
8500 | return _resultobj; | |
8501 | } | |
8502 | ||
c7e7022c RD |
8503 | #define wxDC_GetHDC(_swigobj) (_swigobj->GetHDC()) |
8504 | static PyObject *_wrap_wxDC_GetHDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8505 | PyObject * _resultobj; | |
8506 | long _result; | |
8507 | wxDC * _arg0; | |
8508 | PyObject * _argo0 = 0; | |
8509 | char *_kwnames[] = { "self", NULL }; | |
8510 | ||
8511 | self = self; | |
8512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetHDC",_kwnames,&_argo0)) | |
8513 | return NULL; | |
8514 | if (_argo0) { | |
8515 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8516 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8517 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetHDC. Expected _wxDC_p."); | |
8518 | return NULL; | |
8519 | } | |
8520 | } | |
8521 | { | |
4268f798 | 8522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8523 | _result = (long )wxDC_GetHDC(_arg0); |
c7e7022c | 8524 | |
4268f798 | 8525 | wxPyEndAllowThreads(__tstate); |
c7e7022c RD |
8526 | if (PyErr_Occurred()) return NULL; |
8527 | } _resultobj = Py_BuildValue("l",_result); | |
8528 | return _resultobj; | |
8529 | } | |
8530 | ||
7e50db3f RD |
8531 | static PyObject * wxDC__DrawPointList(wxDC *self,PyObject * pyCoords,PyObject * pyPens,PyObject * pyBrushes) { |
8532 | return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes); | |
8533 | } | |
8534 | static PyObject *_wrap_wxDC__DrawPointList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8535 | PyObject * _resultobj; | |
8536 | PyObject * _result; | |
8537 | wxDC * _arg0; | |
8538 | PyObject * _arg1; | |
8539 | PyObject * _arg2; | |
8540 | PyObject * _arg3; | |
8541 | PyObject * _argo0 = 0; | |
8542 | PyObject * _obj1 = 0; | |
8543 | PyObject * _obj2 = 0; | |
8544 | PyObject * _obj3 = 0; | |
8545 | char *_kwnames[] = { "self","pyCoords","pyPens","pyBrushes", NULL }; | |
67a92fff | 8546 | |
7e50db3f RD |
8547 | self = self; |
8548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO:wxDC__DrawPointList",_kwnames,&_argo0,&_obj1,&_obj2,&_obj3)) | |
8549 | return NULL; | |
8550 | if (_argo0) { | |
8551 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8552 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8553 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC__DrawPointList. Expected _wxDC_p."); | |
8554 | return NULL; | |
8555 | } | |
8556 | } | |
8557 | { | |
8558 | _arg1 = _obj1; | |
8559 | } | |
8560 | { | |
8561 | _arg2 = _obj2; | |
8562 | } | |
8563 | { | |
8564 | _arg3 = _obj3; | |
8565 | } | |
8566 | { | |
8567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8568 | _result = (PyObject *)wxDC__DrawPointList(_arg0,_arg1,_arg2,_arg3); | |
9d37f964 | 8569 | |
7e50db3f RD |
8570 | wxPyEndAllowThreads(__tstate); |
8571 | if (PyErr_Occurred()) return NULL; | |
8572 | }{ | |
8573 | _resultobj = _result; | |
8574 | } | |
8575 | return _resultobj; | |
8576 | } | |
9d37f964 | 8577 | |
7e50db3f RD |
8578 | static PyObject * wxDC__DrawLineList(wxDC *self,PyObject * pyCoords,PyObject * pyPens,PyObject * pyBrushes) { |
8579 | return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes); | |
8580 | } | |
8581 | static PyObject *_wrap_wxDC__DrawLineList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8582 | PyObject * _resultobj; | |
8583 | PyObject * _result; | |
8584 | wxDC * _arg0; | |
8585 | PyObject * _arg1; | |
8586 | PyObject * _arg2; | |
8587 | PyObject * _arg3; | |
8588 | PyObject * _argo0 = 0; | |
8589 | PyObject * _obj1 = 0; | |
8590 | PyObject * _obj2 = 0; | |
8591 | PyObject * _obj3 = 0; | |
8592 | char *_kwnames[] = { "self","pyCoords","pyPens","pyBrushes", NULL }; | |
9d37f964 | 8593 | |
7e50db3f RD |
8594 | self = self; |
8595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO:wxDC__DrawLineList",_kwnames,&_argo0,&_obj1,&_obj2,&_obj3)) | |
8596 | return NULL; | |
8597 | if (_argo0) { | |
8598 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8599 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8600 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC__DrawLineList. Expected _wxDC_p."); | |
8601 | return NULL; | |
8602 | } | |
8603 | } | |
8604 | { | |
8605 | _arg1 = _obj1; | |
8606 | } | |
8607 | { | |
8608 | _arg2 = _obj2; | |
8609 | } | |
8610 | { | |
8611 | _arg3 = _obj3; | |
8612 | } | |
8613 | { | |
8614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8615 | _result = (PyObject *)wxDC__DrawLineList(_arg0,_arg1,_arg2,_arg3); | |
9d37f964 | 8616 | |
7e50db3f RD |
8617 | wxPyEndAllowThreads(__tstate); |
8618 | if (PyErr_Occurred()) return NULL; | |
8619 | }{ | |
8620 | _resultobj = _result; | |
8621 | } | |
8622 | return _resultobj; | |
8623 | } | |
67a92fff | 8624 | |
7e50db3f RD |
8625 | static PyObject * wxDC__DrawRectangleList(wxDC *self,PyObject * pyCoords,PyObject * pyPens,PyObject * pyBrushes) { |
8626 | return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes); | |
9d37f964 | 8627 | } |
7e50db3f | 8628 | static PyObject *_wrap_wxDC__DrawRectangleList(PyObject *self, PyObject *args, PyObject *kwargs) { |
9d37f964 RD |
8629 | PyObject * _resultobj; |
8630 | PyObject * _result; | |
8631 | wxDC * _arg0; | |
8632 | PyObject * _arg1; | |
8633 | PyObject * _arg2; | |
7e50db3f | 8634 | PyObject * _arg3; |
9d37f964 RD |
8635 | PyObject * _argo0 = 0; |
8636 | PyObject * _obj1 = 0; | |
8637 | PyObject * _obj2 = 0; | |
7e50db3f RD |
8638 | PyObject * _obj3 = 0; |
8639 | char *_kwnames[] = { "self","pyCoords","pyPens","pyBrushes", NULL }; | |
9d37f964 RD |
8640 | |
8641 | self = self; | |
7e50db3f | 8642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO:wxDC__DrawRectangleList",_kwnames,&_argo0,&_obj1,&_obj2,&_obj3)) |
9d37f964 RD |
8643 | return NULL; |
8644 | if (_argo0) { | |
8645 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8646 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7e50db3f | 8647 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC__DrawRectangleList. Expected _wxDC_p."); |
9d37f964 RD |
8648 | return NULL; |
8649 | } | |
8650 | } | |
8651 | { | |
8652 | _arg1 = _obj1; | |
8653 | } | |
8654 | { | |
8655 | _arg2 = _obj2; | |
8656 | } | |
7e50db3f RD |
8657 | { |
8658 | _arg3 = _obj3; | |
8659 | } | |
9d37f964 | 8660 | { |
4268f798 | 8661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7e50db3f | 8662 | _result = (PyObject *)wxDC__DrawRectangleList(_arg0,_arg1,_arg2,_arg3); |
9d37f964 | 8663 | |
4268f798 | 8664 | wxPyEndAllowThreads(__tstate); |
9d37f964 RD |
8665 | if (PyErr_Occurred()) return NULL; |
8666 | }{ | |
8667 | _resultobj = _result; | |
8668 | } | |
8669 | return _resultobj; | |
8670 | } | |
8671 | ||
7e50db3f RD |
8672 | static PyObject * wxDC__DrawEllipseList(wxDC *self,PyObject * pyCoords,PyObject * pyPens,PyObject * pyBrushes) { |
8673 | return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes); | |
8674 | } | |
8675 | static PyObject *_wrap_wxDC__DrawEllipseList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8676 | PyObject * _resultobj; | |
8677 | PyObject * _result; | |
8678 | wxDC * _arg0; | |
8679 | PyObject * _arg1; | |
8680 | PyObject * _arg2; | |
8681 | PyObject * _arg3; | |
8682 | PyObject * _argo0 = 0; | |
8683 | PyObject * _obj1 = 0; | |
8684 | PyObject * _obj2 = 0; | |
8685 | PyObject * _obj3 = 0; | |
8686 | char *_kwnames[] = { "self","pyCoords","pyPens","pyBrushes", NULL }; | |
9d37f964 | 8687 | |
7e50db3f RD |
8688 | self = self; |
8689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO:wxDC__DrawEllipseList",_kwnames,&_argo0,&_obj1,&_obj2,&_obj3)) | |
8690 | return NULL; | |
8691 | if (_argo0) { | |
8692 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8693 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8694 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC__DrawEllipseList. Expected _wxDC_p."); | |
8695 | return NULL; | |
8696 | } | |
8697 | } | |
8698 | { | |
8699 | _arg1 = _obj1; | |
8700 | } | |
8701 | { | |
8702 | _arg2 = _obj2; | |
8703 | } | |
8704 | { | |
8705 | _arg3 = _obj3; | |
8706 | } | |
8707 | { | |
8708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8709 | _result = (PyObject *)wxDC__DrawEllipseList(_arg0,_arg1,_arg2,_arg3); | |
9d37f964 | 8710 | |
7e50db3f RD |
8711 | wxPyEndAllowThreads(__tstate); |
8712 | if (PyErr_Occurred()) return NULL; | |
8713 | }{ | |
8714 | _resultobj = _result; | |
8715 | } | |
8716 | return _resultobj; | |
8717 | } | |
9d37f964 | 8718 | |
7e50db3f RD |
8719 | static PyObject * wxDC__DrawPolygonList(wxDC *self,PyObject * pyCoords,PyObject * pyPens,PyObject * pyBrushes) { |
8720 | return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes); | |
8721 | } | |
8722 | static PyObject *_wrap_wxDC__DrawPolygonList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8723 | PyObject * _resultobj; | |
8724 | PyObject * _result; | |
8725 | wxDC * _arg0; | |
8726 | PyObject * _arg1; | |
8727 | PyObject * _arg2; | |
8728 | PyObject * _arg3; | |
8729 | PyObject * _argo0 = 0; | |
8730 | PyObject * _obj1 = 0; | |
8731 | PyObject * _obj2 = 0; | |
8732 | PyObject * _obj3 = 0; | |
8733 | char *_kwnames[] = { "self","pyCoords","pyPens","pyBrushes", NULL }; | |
9d37f964 | 8734 | |
7e50db3f RD |
8735 | self = self; |
8736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO:wxDC__DrawPolygonList",_kwnames,&_argo0,&_obj1,&_obj2,&_obj3)) | |
8737 | return NULL; | |
8738 | if (_argo0) { | |
8739 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8740 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8741 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC__DrawPolygonList. Expected _wxDC_p."); | |
8742 | return NULL; | |
8743 | } | |
8744 | } | |
8745 | { | |
8746 | _arg1 = _obj1; | |
8747 | } | |
8748 | { | |
8749 | _arg2 = _obj2; | |
8750 | } | |
8751 | { | |
8752 | _arg3 = _obj3; | |
8753 | } | |
8754 | { | |
8755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8756 | _result = (PyObject *)wxDC__DrawPolygonList(_arg0,_arg1,_arg2,_arg3); | |
67a92fff | 8757 | |
7e50db3f RD |
8758 | wxPyEndAllowThreads(__tstate); |
8759 | if (PyErr_Occurred()) return NULL; | |
8760 | }{ | |
8761 | _resultobj = _result; | |
8762 | } | |
8763 | return _resultobj; | |
8764 | } | |
67a92fff | 8765 | |
7e50db3f RD |
8766 | static PyObject * wxDC__DrawTextList(wxDC *self,PyObject * textList,PyObject * pyPoints,PyObject * foregroundList,PyObject * backgroundList) { |
8767 | return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList); | |
9d37f964 | 8768 | } |
7e50db3f | 8769 | static PyObject *_wrap_wxDC__DrawTextList(PyObject *self, PyObject *args, PyObject *kwargs) { |
9d37f964 RD |
8770 | PyObject * _resultobj; |
8771 | PyObject * _result; | |
8772 | wxDC * _arg0; | |
8773 | PyObject * _arg1; | |
8774 | PyObject * _arg2; | |
7e50db3f RD |
8775 | PyObject * _arg3; |
8776 | PyObject * _arg4; | |
9d37f964 RD |
8777 | PyObject * _argo0 = 0; |
8778 | PyObject * _obj1 = 0; | |
8779 | PyObject * _obj2 = 0; | |
7e50db3f RD |
8780 | PyObject * _obj3 = 0; |
8781 | PyObject * _obj4 = 0; | |
8782 | char *_kwnames[] = { "self","textList","pyPoints","foregroundList","backgroundList", NULL }; | |
9d37f964 RD |
8783 | |
8784 | self = self; | |
7e50db3f | 8785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOOO:wxDC__DrawTextList",_kwnames,&_argo0,&_obj1,&_obj2,&_obj3,&_obj4)) |
9d37f964 RD |
8786 | return NULL; |
8787 | if (_argo0) { | |
8788 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8789 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
7e50db3f | 8790 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC__DrawTextList. Expected _wxDC_p."); |
9d37f964 RD |
8791 | return NULL; |
8792 | } | |
8793 | } | |
8794 | { | |
8795 | _arg1 = _obj1; | |
8796 | } | |
8797 | { | |
8798 | _arg2 = _obj2; | |
8799 | } | |
7e50db3f RD |
8800 | { |
8801 | _arg3 = _obj3; | |
8802 | } | |
8803 | { | |
8804 | _arg4 = _obj4; | |
8805 | } | |
9d37f964 | 8806 | { |
4268f798 | 8807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7e50db3f | 8808 | _result = (PyObject *)wxDC__DrawTextList(_arg0,_arg1,_arg2,_arg3,_arg4); |
9d37f964 | 8809 | |
4268f798 | 8810 | wxPyEndAllowThreads(__tstate); |
9d37f964 RD |
8811 | if (PyErr_Occurred()) return NULL; |
8812 | }{ | |
8813 | _resultobj = _result; | |
8814 | } | |
8815 | return _resultobj; | |
8816 | } | |
8817 | ||
8ab979d7 RD |
8818 | static void *SwigwxMemoryDCTowxDC(void *ptr) { |
8819 | wxMemoryDC *src; | |
8820 | wxDC *dest; | |
8821 | src = (wxMemoryDC *) ptr; | |
8822 | dest = (wxDC *) src; | |
8823 | return (void *) dest; | |
8824 | } | |
8825 | ||
9416aa89 RD |
8826 | static void *SwigwxMemoryDCTowxObject(void *ptr) { |
8827 | wxMemoryDC *src; | |
8828 | wxObject *dest; | |
8829 | src = (wxMemoryDC *) ptr; | |
8830 | dest = (wxObject *) src; | |
8831 | return (void *) dest; | |
8832 | } | |
8833 | ||
8ab979d7 | 8834 | #define new_wxMemoryDC() (new wxMemoryDC()) |
1afc06c2 | 8835 | static PyObject *_wrap_new_wxMemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8836 | PyObject * _resultobj; |
8837 | wxMemoryDC * _result; | |
1afc06c2 | 8838 | char *_kwnames[] = { NULL }; |
8ab979d7 RD |
8839 | char _ptemp[128]; |
8840 | ||
8841 | self = self; | |
1afc06c2 | 8842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxMemoryDC",_kwnames)) |
8ab979d7 | 8843 | return NULL; |
cf694132 | 8844 | { |
4268f798 | 8845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8846 | _result = (wxMemoryDC *)new_wxMemoryDC(); |
cf694132 | 8847 | |
4268f798 | 8848 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8849 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
8850 | } if (_result) { |
8851 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMemoryDC_p"); | |
8852 | _resultobj = Py_BuildValue("s",_ptemp); | |
8853 | } else { | |
8854 | Py_INCREF(Py_None); | |
8855 | _resultobj = Py_None; | |
8856 | } | |
8ab979d7 RD |
8857 | return _resultobj; |
8858 | } | |
8859 | ||
8860 | #define wxMemoryDC_SelectObject(_swigobj,_swigarg0) (_swigobj->SelectObject(_swigarg0)) | |
1afc06c2 | 8861 | static PyObject *_wrap_wxMemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8862 | PyObject * _resultobj; |
8863 | wxMemoryDC * _arg0; | |
8864 | wxBitmap * _arg1; | |
1d99702e RD |
8865 | PyObject * _argo0 = 0; |
8866 | PyObject * _argo1 = 0; | |
1afc06c2 | 8867 | char *_kwnames[] = { "self","bitmap", NULL }; |
8ab979d7 RD |
8868 | |
8869 | self = self; | |
1afc06c2 | 8870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMemoryDC_SelectObject",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 8871 | return NULL; |
1d99702e RD |
8872 | if (_argo0) { |
8873 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8874 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMemoryDC_p")) { | |
8ab979d7 RD |
8875 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMemoryDC_SelectObject. Expected _wxMemoryDC_p."); |
8876 | return NULL; | |
8877 | } | |
8878 | } | |
1d99702e | 8879 | if (_argo1) { |
7e50db3f | 8880 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { |
8ab979d7 RD |
8881 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMemoryDC_SelectObject. Expected _wxBitmap_p."); |
8882 | return NULL; | |
8883 | } | |
8884 | } | |
cf694132 | 8885 | { |
4268f798 | 8886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8887 | wxMemoryDC_SelectObject(_arg0,*_arg1); |
cf694132 | 8888 | |
4268f798 | 8889 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8890 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8891 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8892 | _resultobj = Py_None; |
8893 | return _resultobj; | |
8894 | } | |
8895 | ||
e9159fe8 RD |
8896 | static void *SwigwxBufferedDCTowxMemoryDC(void *ptr) { |
8897 | wxBufferedDC *src; | |
8898 | wxMemoryDC *dest; | |
8899 | src = (wxBufferedDC *) ptr; | |
8900 | dest = (wxMemoryDC *) src; | |
8901 | return (void *) dest; | |
8902 | } | |
8903 | ||
8904 | static void *SwigwxBufferedDCTowxDC(void *ptr) { | |
8905 | wxBufferedDC *src; | |
8906 | wxDC *dest; | |
8907 | src = (wxBufferedDC *) ptr; | |
8908 | dest = (wxDC *) src; | |
8909 | return (void *) dest; | |
8910 | } | |
8911 | ||
8912 | static void *SwigwxBufferedDCTowxObject(void *ptr) { | |
8913 | wxBufferedDC *src; | |
8914 | wxObject *dest; | |
8915 | src = (wxBufferedDC *) ptr; | |
8916 | dest = (wxObject *) src; | |
8917 | return (void *) dest; | |
8918 | } | |
8919 | ||
8920 | #define new_wxBufferedDC(_swigarg0,_swigarg1) (new wxBufferedDC(_swigarg0,_swigarg1)) | |
8921 | static PyObject *_wrap_new_wxBufferedDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8922 | PyObject * _resultobj; | |
8923 | wxBufferedDC * _result; | |
8924 | wxDC * _arg0; | |
8925 | wxBitmap * _arg1; | |
8926 | PyObject * _argo0 = 0; | |
8927 | PyObject * _argo1 = 0; | |
8928 | char *_kwnames[] = { "dc","buffer", NULL }; | |
8929 | char _ptemp[128]; | |
8930 | ||
8931 | self = self; | |
8932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:new_wxBufferedDC",_kwnames,&_argo0,&_argo1)) | |
8933 | return NULL; | |
8934 | if (_argo0) { | |
8935 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8936 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8937 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxBufferedDC. Expected _wxDC_p."); | |
8938 | return NULL; | |
8939 | } | |
8940 | } | |
8941 | if (_argo1) { | |
7e50db3f | 8942 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { |
e9159fe8 RD |
8943 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxBufferedDC. Expected _wxBitmap_p."); |
8944 | return NULL; | |
8945 | } | |
8946 | } | |
8947 | { | |
8948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8949 | _result = (wxBufferedDC *)new_wxBufferedDC(_arg0,*_arg1); | |
8950 | ||
8951 | wxPyEndAllowThreads(__tstate); | |
8952 | if (PyErr_Occurred()) return NULL; | |
8953 | } if (_result) { | |
8954 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBufferedDC_p"); | |
8955 | _resultobj = Py_BuildValue("s",_ptemp); | |
8956 | } else { | |
8957 | Py_INCREF(Py_None); | |
8958 | _resultobj = Py_None; | |
8959 | } | |
8960 | return _resultobj; | |
8961 | } | |
8962 | ||
8963 | #define new_wxBufferedDCInternalBuffer(_swigarg0,_swigarg1) (new wxBufferedDC(_swigarg0,_swigarg1)) | |
8964 | static PyObject *_wrap_new_wxBufferedDCInternalBuffer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8965 | PyObject * _resultobj; | |
8966 | wxBufferedDC * _result; | |
8967 | wxDC * _arg0; | |
8968 | wxSize * _arg1; | |
8969 | PyObject * _argo0 = 0; | |
8970 | wxSize temp; | |
8971 | PyObject * _obj1 = 0; | |
8972 | char *_kwnames[] = { "dc","area", NULL }; | |
8973 | char _ptemp[128]; | |
8974 | ||
8975 | self = self; | |
8976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:new_wxBufferedDCInternalBuffer",_kwnames,&_argo0,&_obj1)) | |
8977 | return NULL; | |
8978 | if (_argo0) { | |
8979 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8980 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) { | |
8981 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxBufferedDCInternalBuffer. Expected _wxDC_p."); | |
8982 | return NULL; | |
8983 | } | |
8984 | } | |
8985 | { | |
8986 | _arg1 = &temp; | |
8987 | if (! wxSize_helper(_obj1, &_arg1)) | |
8988 | return NULL; | |
8989 | } | |
8990 | { | |
8991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8992 | _result = (wxBufferedDC *)new_wxBufferedDCInternalBuffer(_arg0,*_arg1); | |
8993 | ||
8994 | wxPyEndAllowThreads(__tstate); | |
8995 | if (PyErr_Occurred()) return NULL; | |
8996 | } if (_result) { | |
8997 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBufferedDC_p"); | |
8998 | _resultobj = Py_BuildValue("s",_ptemp); | |
8999 | } else { | |
9000 | Py_INCREF(Py_None); | |
9001 | _resultobj = Py_None; | |
9002 | } | |
9003 | return _resultobj; | |
9004 | } | |
9005 | ||
d3bfec74 RD |
9006 | #define wxBufferedDC_UnMask(_swigobj) (_swigobj->UnMask()) |
9007 | static PyObject *_wrap_wxBufferedDC_UnMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9008 | PyObject * _resultobj; | |
9009 | wxBufferedDC * _arg0; | |
9010 | PyObject * _argo0 = 0; | |
9011 | char *_kwnames[] = { "self", NULL }; | |
9012 | ||
9013 | self = self; | |
9014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBufferedDC_UnMask",_kwnames,&_argo0)) | |
9015 | return NULL; | |
9016 | if (_argo0) { | |
9017 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9018 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBufferedDC_p")) { | |
9019 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBufferedDC_UnMask. Expected _wxBufferedDC_p."); | |
9020 | return NULL; | |
9021 | } | |
9022 | } | |
9023 | { | |
9024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9025 | wxBufferedDC_UnMask(_arg0); | |
9026 | ||
9027 | wxPyEndAllowThreads(__tstate); | |
9028 | if (PyErr_Occurred()) return NULL; | |
9029 | } Py_INCREF(Py_None); | |
9030 | _resultobj = Py_None; | |
9031 | return _resultobj; | |
9032 | } | |
9033 | ||
e9159fe8 RD |
9034 | static void *SwigwxBufferedPaintDCTowxBufferedDC(void *ptr) { |
9035 | wxBufferedPaintDC *src; | |
9036 | wxBufferedDC *dest; | |
9037 | src = (wxBufferedPaintDC *) ptr; | |
9038 | dest = (wxBufferedDC *) src; | |
9039 | return (void *) dest; | |
9040 | } | |
9041 | ||
9042 | static void *SwigwxBufferedPaintDCTowxMemoryDC(void *ptr) { | |
9043 | wxBufferedPaintDC *src; | |
9044 | wxMemoryDC *dest; | |
9045 | src = (wxBufferedPaintDC *) ptr; | |
9046 | dest = (wxMemoryDC *) src; | |
9047 | return (void *) dest; | |
9048 | } | |
9049 | ||
9050 | static void *SwigwxBufferedPaintDCTowxDC(void *ptr) { | |
9051 | wxBufferedPaintDC *src; | |
9052 | wxDC *dest; | |
9053 | src = (wxBufferedPaintDC *) ptr; | |
9054 | dest = (wxDC *) src; | |
9055 | return (void *) dest; | |
9056 | } | |
9057 | ||
9058 | static void *SwigwxBufferedPaintDCTowxObject(void *ptr) { | |
9059 | wxBufferedPaintDC *src; | |
9060 | wxObject *dest; | |
9061 | src = (wxBufferedPaintDC *) ptr; | |
9062 | dest = (wxObject *) src; | |
9063 | return (void *) dest; | |
9064 | } | |
9065 | ||
9066 | #define new_wxBufferedPaintDC(_swigarg0,_swigarg1) (new wxBufferedPaintDC(_swigarg0,_swigarg1)) | |
9067 | static PyObject *_wrap_new_wxBufferedPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9068 | PyObject * _resultobj; | |
9069 | wxBufferedPaintDC * _result; | |
9070 | wxWindow * _arg0; | |
9071 | wxBitmap * _arg1 = (wxBitmap *) &wxNullBitmap; | |
9072 | PyObject * _argo0 = 0; | |
9073 | PyObject * _argo1 = 0; | |
9074 | char *_kwnames[] = { "window","buffer", NULL }; | |
9075 | char _ptemp[128]; | |
9076 | ||
9077 | self = self; | |
9078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:new_wxBufferedPaintDC",_kwnames,&_argo0,&_argo1)) | |
9079 | return NULL; | |
9080 | if (_argo0) { | |
9081 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9082 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
9083 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxBufferedPaintDC. Expected _wxWindow_p."); | |
9084 | return NULL; | |
9085 | } | |
9086 | } | |
9087 | if (_argo1) { | |
7e50db3f | 9088 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { |
e9159fe8 RD |
9089 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxBufferedPaintDC. Expected _wxBitmap_p."); |
9090 | return NULL; | |
9091 | } | |
9092 | } | |
9093 | { | |
9094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9095 | _result = (wxBufferedPaintDC *)new_wxBufferedPaintDC(_arg0,*_arg1); | |
9096 | ||
9097 | wxPyEndAllowThreads(__tstate); | |
9098 | if (PyErr_Occurred()) return NULL; | |
9099 | } if (_result) { | |
9100 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBufferedPaintDC_p"); | |
9101 | _resultobj = Py_BuildValue("s",_ptemp); | |
9102 | } else { | |
9103 | Py_INCREF(Py_None); | |
9104 | _resultobj = Py_None; | |
9105 | } | |
9106 | return _resultobj; | |
9107 | } | |
9108 | ||
8ab979d7 RD |
9109 | static void *SwigwxScreenDCTowxDC(void *ptr) { |
9110 | wxScreenDC *src; | |
9111 | wxDC *dest; | |
9112 | src = (wxScreenDC *) ptr; | |
9113 | dest = (wxDC *) src; | |
9114 | return (void *) dest; | |
9115 | } | |
9116 | ||
9416aa89 RD |
9117 | static void *SwigwxScreenDCTowxObject(void *ptr) { |
9118 | wxScreenDC *src; | |
9119 | wxObject *dest; | |
9120 | src = (wxScreenDC *) ptr; | |
9121 | dest = (wxObject *) src; | |
9122 | return (void *) dest; | |
9123 | } | |
9124 | ||
8ab979d7 | 9125 | #define new_wxScreenDC() (new wxScreenDC()) |
1afc06c2 | 9126 | static PyObject *_wrap_new_wxScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9127 | PyObject * _resultobj; |
9128 | wxScreenDC * _result; | |
1afc06c2 | 9129 | char *_kwnames[] = { NULL }; |
8ab979d7 RD |
9130 | char _ptemp[128]; |
9131 | ||
9132 | self = self; | |
1afc06c2 | 9133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxScreenDC",_kwnames)) |
8ab979d7 | 9134 | return NULL; |
cf694132 | 9135 | { |
4268f798 | 9136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9137 | _result = (wxScreenDC *)new_wxScreenDC(); |
cf694132 | 9138 | |
4268f798 | 9139 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9140 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
9141 | } if (_result) { |
9142 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScreenDC_p"); | |
9143 | _resultobj = Py_BuildValue("s",_ptemp); | |
9144 | } else { | |
9145 | Py_INCREF(Py_None); | |
9146 | _resultobj = Py_None; | |
9147 | } | |
8ab979d7 RD |
9148 | return _resultobj; |
9149 | } | |
9150 | ||
26b9cf27 RD |
9151 | #define wxScreenDC_StartDrawingOnTopWin(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0)) |
9152 | static PyObject *_wrap_wxScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
9153 | PyObject * _resultobj; |
9154 | bool _result; | |
9155 | wxScreenDC * _arg0; | |
9156 | wxWindow * _arg1; | |
1d99702e RD |
9157 | PyObject * _argo0 = 0; |
9158 | PyObject * _argo1 = 0; | |
1afc06c2 | 9159 | char *_kwnames[] = { "self","window", NULL }; |
8ab979d7 RD |
9160 | |
9161 | self = self; | |
26b9cf27 | 9162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScreenDC_StartDrawingOnTopWin",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 9163 | return NULL; |
1d99702e RD |
9164 | if (_argo0) { |
9165 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9166 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) { | |
26b9cf27 | 9167 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_StartDrawingOnTopWin. Expected _wxScreenDC_p."); |
8ab979d7 RD |
9168 | return NULL; |
9169 | } | |
9170 | } | |
1d99702e RD |
9171 | if (_argo1) { |
9172 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9173 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
26b9cf27 | 9174 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScreenDC_StartDrawingOnTopWin. Expected _wxWindow_p."); |
8ab979d7 RD |
9175 | return NULL; |
9176 | } | |
9177 | } | |
cf694132 | 9178 | { |
4268f798 | 9179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9180 | _result = (bool )wxScreenDC_StartDrawingOnTopWin(_arg0,_arg1); |
cf694132 | 9181 | |
4268f798 | 9182 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9183 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9184 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9185 | return _resultobj; |
9186 | } | |
9187 | ||
26b9cf27 RD |
9188 | #define wxScreenDC_StartDrawingOnTop(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0)) |
9189 | static PyObject *_wrap_wxScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
9190 | PyObject * _resultobj; |
9191 | bool _result; | |
9192 | wxScreenDC * _arg0; | |
1d99702e RD |
9193 | wxRect * _arg1 = (wxRect *) NULL; |
9194 | PyObject * _argo0 = 0; | |
2f90df85 RD |
9195 | wxRect temp; |
9196 | PyObject * _obj1 = 0; | |
1afc06c2 | 9197 | char *_kwnames[] = { "self","rect", NULL }; |
8ab979d7 RD |
9198 | |
9199 | self = self; | |
26b9cf27 | 9200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxScreenDC_StartDrawingOnTop",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 9201 | return NULL; |
1d99702e RD |
9202 | if (_argo0) { |
9203 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9204 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) { | |
26b9cf27 | 9205 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_StartDrawingOnTop. Expected _wxScreenDC_p."); |
8ab979d7 RD |
9206 | return NULL; |
9207 | } | |
9208 | } | |
2f90df85 RD |
9209 | if (_obj1) |
9210 | { | |
9211 | _arg1 = &temp; | |
9212 | if (! wxRect_helper(_obj1, &_arg1)) | |
8ab979d7 | 9213 | return NULL; |
2f90df85 | 9214 | } |
cf694132 | 9215 | { |
4268f798 | 9216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9217 | _result = (bool )wxScreenDC_StartDrawingOnTop(_arg0,_arg1); |
cf694132 | 9218 | |
4268f798 | 9219 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9220 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9221 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9222 | return _resultobj; |
9223 | } | |
9224 | ||
9225 | #define wxScreenDC_EndDrawingOnTop(_swigobj) (_swigobj->EndDrawingOnTop()) | |
1afc06c2 | 9226 | static PyObject *_wrap_wxScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9227 | PyObject * _resultobj; |
9228 | bool _result; | |
9229 | wxScreenDC * _arg0; | |
1d99702e | 9230 | PyObject * _argo0 = 0; |
1afc06c2 | 9231 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9232 | |
9233 | self = self; | |
1afc06c2 | 9234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScreenDC_EndDrawingOnTop",_kwnames,&_argo0)) |
8ab979d7 | 9235 | return NULL; |
1d99702e RD |
9236 | if (_argo0) { |
9237 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9238 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) { | |
8ab979d7 RD |
9239 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_EndDrawingOnTop. Expected _wxScreenDC_p."); |
9240 | return NULL; | |
9241 | } | |
9242 | } | |
cf694132 | 9243 | { |
4268f798 | 9244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9245 | _result = (bool )wxScreenDC_EndDrawingOnTop(_arg0); |
cf694132 | 9246 | |
4268f798 | 9247 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9248 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9249 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9250 | return _resultobj; |
9251 | } | |
9252 | ||
9253 | static void *SwigwxClientDCTowxDC(void *ptr) { | |
9254 | wxClientDC *src; | |
9255 | wxDC *dest; | |
9256 | src = (wxClientDC *) ptr; | |
9257 | dest = (wxDC *) src; | |
9258 | return (void *) dest; | |
9259 | } | |
9260 | ||
9416aa89 RD |
9261 | static void *SwigwxClientDCTowxObject(void *ptr) { |
9262 | wxClientDC *src; | |
9263 | wxObject *dest; | |
9264 | src = (wxClientDC *) ptr; | |
9265 | dest = (wxObject *) src; | |
9266 | return (void *) dest; | |
9267 | } | |
9268 | ||
8ab979d7 | 9269 | #define new_wxClientDC(_swigarg0) (new wxClientDC(_swigarg0)) |
1afc06c2 | 9270 | static PyObject *_wrap_new_wxClientDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9271 | PyObject * _resultobj; |
9272 | wxClientDC * _result; | |
9273 | wxWindow * _arg0; | |
1d99702e | 9274 | PyObject * _argo0 = 0; |
1afc06c2 | 9275 | char *_kwnames[] = { "win", NULL }; |
8ab979d7 RD |
9276 | char _ptemp[128]; |
9277 | ||
9278 | self = self; | |
1afc06c2 | 9279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxClientDC",_kwnames,&_argo0)) |
8ab979d7 | 9280 | return NULL; |
1d99702e RD |
9281 | if (_argo0) { |
9282 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9283 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
9284 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxClientDC. Expected _wxWindow_p."); |
9285 | return NULL; | |
9286 | } | |
9287 | } | |
cf694132 | 9288 | { |
4268f798 | 9289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9290 | _result = (wxClientDC *)new_wxClientDC(_arg0); |
cf694132 | 9291 | |
4268f798 | 9292 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9293 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
9294 | } if (_result) { |
9295 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxClientDC_p"); | |
9296 | _resultobj = Py_BuildValue("s",_ptemp); | |
9297 | } else { | |
9298 | Py_INCREF(Py_None); | |
9299 | _resultobj = Py_None; | |
9300 | } | |
8ab979d7 RD |
9301 | return _resultobj; |
9302 | } | |
9303 | ||
9304 | static void *SwigwxPaintDCTowxDC(void *ptr) { | |
9305 | wxPaintDC *src; | |
9306 | wxDC *dest; | |
9307 | src = (wxPaintDC *) ptr; | |
9308 | dest = (wxDC *) src; | |
9309 | return (void *) dest; | |
9310 | } | |
9311 | ||
9416aa89 RD |
9312 | static void *SwigwxPaintDCTowxObject(void *ptr) { |
9313 | wxPaintDC *src; | |
9314 | wxObject *dest; | |
9315 | src = (wxPaintDC *) ptr; | |
9316 | dest = (wxObject *) src; | |
9317 | return (void *) dest; | |
9318 | } | |
9319 | ||
8ab979d7 | 9320 | #define new_wxPaintDC(_swigarg0) (new wxPaintDC(_swigarg0)) |
1afc06c2 | 9321 | static PyObject *_wrap_new_wxPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9322 | PyObject * _resultobj; |
9323 | wxPaintDC * _result; | |
9324 | wxWindow * _arg0; | |
1d99702e | 9325 | PyObject * _argo0 = 0; |
1afc06c2 | 9326 | char *_kwnames[] = { "win", NULL }; |
8ab979d7 RD |
9327 | char _ptemp[128]; |
9328 | ||
9329 | self = self; | |
1afc06c2 | 9330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxPaintDC",_kwnames,&_argo0)) |
8ab979d7 | 9331 | return NULL; |
1d99702e RD |
9332 | if (_argo0) { |
9333 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9334 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
9335 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPaintDC. Expected _wxWindow_p."); |
9336 | return NULL; | |
9337 | } | |
9338 | } | |
cf694132 | 9339 | { |
4268f798 | 9340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9341 | _result = (wxPaintDC *)new_wxPaintDC(_arg0); |
cf694132 | 9342 | |
4268f798 | 9343 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9344 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
9345 | } if (_result) { |
9346 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPaintDC_p"); | |
9347 | _resultobj = Py_BuildValue("s",_ptemp); | |
9348 | } else { | |
9349 | Py_INCREF(Py_None); | |
9350 | _resultobj = Py_None; | |
9351 | } | |
8ab979d7 RD |
9352 | return _resultobj; |
9353 | } | |
9354 | ||
b639c3c5 RD |
9355 | static void *SwigwxWindowDCTowxDC(void *ptr) { |
9356 | wxWindowDC *src; | |
9357 | wxDC *dest; | |
9358 | src = (wxWindowDC *) ptr; | |
9359 | dest = (wxDC *) src; | |
9360 | return (void *) dest; | |
9361 | } | |
9362 | ||
9416aa89 RD |
9363 | static void *SwigwxWindowDCTowxObject(void *ptr) { |
9364 | wxWindowDC *src; | |
9365 | wxObject *dest; | |
9366 | src = (wxWindowDC *) ptr; | |
9367 | dest = (wxObject *) src; | |
9368 | return (void *) dest; | |
9369 | } | |
9370 | ||
b639c3c5 | 9371 | #define new_wxWindowDC(_swigarg0) (new wxWindowDC(_swigarg0)) |
1afc06c2 | 9372 | static PyObject *_wrap_new_wxWindowDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
b639c3c5 RD |
9373 | PyObject * _resultobj; |
9374 | wxWindowDC * _result; | |
9375 | wxWindow * _arg0; | |
1d99702e | 9376 | PyObject * _argo0 = 0; |
1afc06c2 | 9377 | char *_kwnames[] = { "win", NULL }; |
b639c3c5 RD |
9378 | char _ptemp[128]; |
9379 | ||
9380 | self = self; | |
1afc06c2 | 9381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxWindowDC",_kwnames,&_argo0)) |
b639c3c5 | 9382 | return NULL; |
1d99702e RD |
9383 | if (_argo0) { |
9384 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9385 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b639c3c5 RD |
9386 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxWindowDC. Expected _wxWindow_p."); |
9387 | return NULL; | |
9388 | } | |
9389 | } | |
cf694132 | 9390 | { |
4268f798 | 9391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9392 | _result = (wxWindowDC *)new_wxWindowDC(_arg0); |
cf694132 | 9393 | |
4268f798 | 9394 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9395 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
9396 | } if (_result) { |
9397 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindowDC_p"); | |
9398 | _resultobj = Py_BuildValue("s",_ptemp); | |
9399 | } else { | |
9400 | Py_INCREF(Py_None); | |
9401 | _resultobj = Py_None; | |
9402 | } | |
b639c3c5 RD |
9403 | return _resultobj; |
9404 | } | |
9405 | ||
17c0e08c RD |
9406 | static void *SwigwxMetaFileTowxObject(void *ptr) { |
9407 | wxMetaFile *src; | |
9408 | wxObject *dest; | |
9409 | src = (wxMetaFile *) ptr; | |
9410 | dest = (wxObject *) src; | |
9411 | return (void *) dest; | |
9412 | } | |
9413 | ||
9414 | #define new_wxMetaFile(_swigarg0) (new wxMetaFile(_swigarg0)) | |
9415 | static PyObject *_wrap_new_wxMetaFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9416 | PyObject * _resultobj; | |
9417 | wxMetaFile * _result; | |
137b5242 | 9418 | wxString * _arg0 = (wxString *) &wxPyEmptyString; |
17c0e08c RD |
9419 | PyObject * _obj0 = 0; |
9420 | char *_kwnames[] = { "filename", NULL }; | |
9421 | char _ptemp[128]; | |
9422 | ||
9423 | self = self; | |
9424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxMetaFile",_kwnames,&_obj0)) | |
9425 | return NULL; | |
9426 | if (_obj0) | |
9427 | { | |
c8bc7bb8 RD |
9428 | _arg0 = wxString_in_helper(_obj0); |
9429 | if (_arg0 == NULL) | |
17c0e08c | 9430 | return NULL; |
17c0e08c RD |
9431 | } |
9432 | { | |
4268f798 | 9433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9434 | _result = (wxMetaFile *)new_wxMetaFile(*_arg0); |
17c0e08c | 9435 | |
4268f798 | 9436 | wxPyEndAllowThreads(__tstate); |
17c0e08c RD |
9437 | if (PyErr_Occurred()) return NULL; |
9438 | } if (_result) { | |
9439 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMetaFile_p"); | |
9440 | _resultobj = Py_BuildValue("s",_ptemp); | |
9441 | } else { | |
9442 | Py_INCREF(Py_None); | |
9443 | _resultobj = Py_None; | |
9444 | } | |
9445 | { | |
9446 | if (_obj0) | |
9447 | delete _arg0; | |
9448 | } | |
9449 | return _resultobj; | |
9450 | } | |
9451 | ||
9452 | #define delete_wxMetaFile(_swigobj) (delete _swigobj) | |
9453 | static PyObject *_wrap_delete_wxMetaFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9454 | PyObject * _resultobj; | |
9455 | wxMetaFile * _arg0; | |
9456 | PyObject * _argo0 = 0; | |
9457 | char *_kwnames[] = { "self", NULL }; | |
9458 | ||
9459 | self = self; | |
9460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxMetaFile",_kwnames,&_argo0)) | |
9461 | return NULL; | |
9462 | if (_argo0) { | |
9463 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9464 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) { | |
9465 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxMetaFile. Expected _wxMetaFile_p."); | |
9466 | return NULL; | |
9467 | } | |
9468 | } | |
9469 | { | |
4268f798 | 9470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9471 | delete_wxMetaFile(_arg0); |
17c0e08c | 9472 | |
4268f798 | 9473 | wxPyEndAllowThreads(__tstate); |
17c0e08c RD |
9474 | if (PyErr_Occurred()) return NULL; |
9475 | } Py_INCREF(Py_None); | |
9476 | _resultobj = Py_None; | |
9477 | return _resultobj; | |
9478 | } | |
9479 | ||
9480 | #define wxMetaFile_Ok(_swigobj) (_swigobj->Ok()) | |
9481 | static PyObject *_wrap_wxMetaFile_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9482 | PyObject * _resultobj; | |
9483 | bool _result; | |
9484 | wxMetaFile * _arg0; | |
9485 | PyObject * _argo0 = 0; | |
9486 | char *_kwnames[] = { "self", NULL }; | |
9487 | ||
9488 | self = self; | |
9489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMetaFile_Ok",_kwnames,&_argo0)) | |
9490 | return NULL; | |
9491 | if (_argo0) { | |
9492 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9493 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) { | |
9494 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFile_Ok. Expected _wxMetaFile_p."); | |
9495 | return NULL; | |
9496 | } | |
9497 | } | |
9498 | { | |
4268f798 | 9499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9500 | _result = (bool )wxMetaFile_Ok(_arg0); |
17c0e08c | 9501 | |
4268f798 | 9502 | wxPyEndAllowThreads(__tstate); |
17c0e08c RD |
9503 | if (PyErr_Occurred()) return NULL; |
9504 | } _resultobj = Py_BuildValue("i",_result); | |
9505 | return _resultobj; | |
9506 | } | |
9507 | ||
9508 | #define wxMetaFile_SetClipboard(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetClipboard(_swigarg0,_swigarg1)) | |
9509 | static PyObject *_wrap_wxMetaFile_SetClipboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9510 | PyObject * _resultobj; | |
9511 | bool _result; | |
9512 | wxMetaFile * _arg0; | |
9513 | int _arg1 = (int ) 0; | |
9514 | int _arg2 = (int ) 0; | |
9515 | PyObject * _argo0 = 0; | |
9516 | char *_kwnames[] = { "self","width","height", NULL }; | |
9517 | ||
9518 | self = self; | |
9519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:wxMetaFile_SetClipboard",_kwnames,&_argo0,&_arg1,&_arg2)) | |
9520 | return NULL; | |
9521 | if (_argo0) { | |
9522 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9523 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) { | |
9524 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFile_SetClipboard. Expected _wxMetaFile_p."); | |
9525 | return NULL; | |
9526 | } | |
9527 | } | |
9528 | { | |
4268f798 | 9529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9530 | _result = (bool )wxMetaFile_SetClipboard(_arg0,_arg1,_arg2); |
17c0e08c | 9531 | |
4268f798 | 9532 | wxPyEndAllowThreads(__tstate); |
17c0e08c RD |
9533 | if (PyErr_Occurred()) return NULL; |
9534 | } _resultobj = Py_BuildValue("i",_result); | |
9535 | return _resultobj; | |
9536 | } | |
9537 | ||
9538 | #define wxMetaFile_GetSize(_swigobj) (_swigobj->GetSize()) | |
9539 | static PyObject *_wrap_wxMetaFile_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9540 | PyObject * _resultobj; | |
9541 | wxSize * _result; | |
9542 | wxMetaFile * _arg0; | |
9543 | PyObject * _argo0 = 0; | |
9544 | char *_kwnames[] = { "self", NULL }; | |
9545 | char _ptemp[128]; | |
9546 | ||
9547 | self = self; | |
9548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMetaFile_GetSize",_kwnames,&_argo0)) | |
9549 | return NULL; | |
9550 | if (_argo0) { | |
9551 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9552 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) { | |
9553 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFile_GetSize. Expected _wxMetaFile_p."); | |
9554 | return NULL; | |
9555 | } | |
9556 | } | |
9557 | { | |
4268f798 | 9558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9559 | _result = new wxSize (wxMetaFile_GetSize(_arg0)); |
17c0e08c | 9560 | |
4268f798 | 9561 | wxPyEndAllowThreads(__tstate); |
17c0e08c RD |
9562 | if (PyErr_Occurred()) return NULL; |
9563 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
9564 | _resultobj = Py_BuildValue("s",_ptemp); | |
9565 | return _resultobj; | |
9566 | } | |
9567 | ||
9568 | #define wxMetaFile_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
9569 | static PyObject *_wrap_wxMetaFile_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9570 | PyObject * _resultobj; | |
9571 | int _result; | |
9572 | wxMetaFile * _arg0; | |
9573 | PyObject * _argo0 = 0; | |
9574 | char *_kwnames[] = { "self", NULL }; | |
9575 | ||
9576 | self = self; | |
9577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMetaFile_GetWidth",_kwnames,&_argo0)) | |
9578 | return NULL; | |
9579 | if (_argo0) { | |
9580 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9581 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) { | |
9582 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFile_GetWidth. Expected _wxMetaFile_p."); | |
9583 | return NULL; | |
9584 | } | |
9585 | } | |
9586 | { | |
4268f798 | 9587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9588 | _result = (int )wxMetaFile_GetWidth(_arg0); |
17c0e08c | 9589 | |
4268f798 | 9590 | wxPyEndAllowThreads(__tstate); |
17c0e08c RD |
9591 | if (PyErr_Occurred()) return NULL; |
9592 | } _resultobj = Py_BuildValue("i",_result); | |
9593 | return _resultobj; | |
9594 | } | |
9595 | ||
9596 | #define wxMetaFile_GetHeight(_swigobj) (_swigobj->GetHeight()) | |
9597 | static PyObject *_wrap_wxMetaFile_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9598 | PyObject * _resultobj; | |
9599 | int _result; | |
9600 | wxMetaFile * _arg0; | |
9601 | PyObject * _argo0 = 0; | |
9602 | char *_kwnames[] = { "self", NULL }; | |
9603 | ||
9604 | self = self; | |
9605 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMetaFile_GetHeight",_kwnames,&_argo0)) | |
9606 | return NULL; | |
9607 | if (_argo0) { | |
9608 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9609 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) { | |
9610 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFile_GetHeight. Expected _wxMetaFile_p."); | |
9611 | return NULL; | |
9612 | } | |
9613 | } | |
9614 | { | |
4268f798 | 9615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9616 | _result = (int )wxMetaFile_GetHeight(_arg0); |
17c0e08c | 9617 | |
4268f798 | 9618 | wxPyEndAllowThreads(__tstate); |
17c0e08c RD |
9619 | if (PyErr_Occurred()) return NULL; |
9620 | } _resultobj = Py_BuildValue("i",_result); | |
9621 | return _resultobj; | |
9622 | } | |
9623 | ||
9624 | #define wxMetaFile_GetFileName(_swigobj) (_swigobj->GetFileName()) | |
9625 | static PyObject *_wrap_wxMetaFile_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9626 | PyObject * _resultobj; | |
9627 | wxString * _result; | |
9628 | wxMetaFile * _arg0; | |
9629 | PyObject * _argo0 = 0; | |
9630 | char *_kwnames[] = { "self", NULL }; | |
9631 | ||
9632 | self = self; | |
9633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMetaFile_GetFileName",_kwnames,&_argo0)) | |
9634 | return NULL; | |
9635 | if (_argo0) { | |
9636 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9637 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) { | |
9638 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFile_GetFileName. Expected _wxMetaFile_p."); | |
9639 | return NULL; | |
9640 | } | |
9641 | } | |
9642 | { | |
4268f798 | 9643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9644 | const wxString & _result_ref = wxMetaFile_GetFileName(_arg0); |
17c0e08c RD |
9645 | _result = (wxString *) &_result_ref; |
9646 | ||
4268f798 | 9647 | wxPyEndAllowThreads(__tstate); |
17c0e08c RD |
9648 | if (PyErr_Occurred()) return NULL; |
9649 | }{ | |
c8bc7bb8 | 9650 | #if wxUSE_UNICODE |
7e50db3f | 9651 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9652 | #else |
17c0e08c | 9653 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9654 | #endif |
17c0e08c RD |
9655 | } |
9656 | return _resultobj; | |
9657 | } | |
9658 | ||
8ab979d7 RD |
9659 | static void *SwigwxMetaFileDCTowxDC(void *ptr) { |
9660 | wxMetaFileDC *src; | |
9661 | wxDC *dest; | |
9662 | src = (wxMetaFileDC *) ptr; | |
9663 | dest = (wxDC *) src; | |
9664 | return (void *) dest; | |
9665 | } | |
9666 | ||
9416aa89 RD |
9667 | static void *SwigwxMetaFileDCTowxObject(void *ptr) { |
9668 | wxMetaFileDC *src; | |
9669 | wxObject *dest; | |
9670 | src = (wxMetaFileDC *) ptr; | |
9671 | dest = (wxObject *) src; | |
9672 | return (void *) dest; | |
9673 | } | |
9674 | ||
17c0e08c | 9675 | #define new_wxMetaFileDC(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxMetaFileDC(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
1afc06c2 | 9676 | static PyObject *_wrap_new_wxMetaFileDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9677 | PyObject * _resultobj; |
9678 | wxMetaFileDC * _result; | |
137b5242 | 9679 | wxString * _arg0 = (wxString *) &wxPyEmptyString; |
17c0e08c RD |
9680 | int _arg1 = (int ) 0; |
9681 | int _arg2 = (int ) 0; | |
137b5242 | 9682 | wxString * _arg3 = (wxString *) &wxPyEmptyString; |
8ab979d7 | 9683 | PyObject * _obj0 = 0; |
17c0e08c RD |
9684 | PyObject * _obj3 = 0; |
9685 | char *_kwnames[] = { "filename","width","height","description", NULL }; | |
8ab979d7 RD |
9686 | char _ptemp[128]; |
9687 | ||
9688 | self = self; | |
17c0e08c | 9689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OiiO:new_wxMetaFileDC",_kwnames,&_obj0,&_arg1,&_arg2,&_obj3)) |
8ab979d7 RD |
9690 | return NULL; |
9691 | if (_obj0) | |
9692 | { | |
c8bc7bb8 RD |
9693 | _arg0 = wxString_in_helper(_obj0); |
9694 | if (_arg0 == NULL) | |
185d7c3e | 9695 | return NULL; |
17c0e08c RD |
9696 | } |
9697 | if (_obj3) | |
9698 | { | |
c8bc7bb8 RD |
9699 | _arg3 = wxString_in_helper(_obj3); |
9700 | if (_arg3 == NULL) | |
17c0e08c | 9701 | return NULL; |
8ab979d7 | 9702 | } |
cf694132 | 9703 | { |
4268f798 | 9704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9705 | _result = (wxMetaFileDC *)new_wxMetaFileDC(*_arg0,_arg1,_arg2,*_arg3); |
cf694132 | 9706 | |
4268f798 | 9707 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9708 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
9709 | } if (_result) { |
9710 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMetaFileDC_p"); | |
9711 | _resultobj = Py_BuildValue("s",_ptemp); | |
9712 | } else { | |
9713 | Py_INCREF(Py_None); | |
9714 | _resultobj = Py_None; | |
9715 | } | |
8ab979d7 RD |
9716 | { |
9717 | if (_obj0) | |
9718 | delete _arg0; | |
17c0e08c RD |
9719 | } |
9720 | { | |
9721 | if (_obj3) | |
9722 | delete _arg3; | |
8ab979d7 RD |
9723 | } |
9724 | return _resultobj; | |
9725 | } | |
9726 | ||
9727 | #define wxMetaFileDC_Close(_swigobj) (_swigobj->Close()) | |
1afc06c2 | 9728 | static PyObject *_wrap_wxMetaFileDC_Close(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9729 | PyObject * _resultobj; |
9730 | wxMetaFile * _result; | |
9731 | wxMetaFileDC * _arg0; | |
1d99702e | 9732 | PyObject * _argo0 = 0; |
1afc06c2 | 9733 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9734 | char _ptemp[128]; |
9735 | ||
9736 | self = self; | |
1afc06c2 | 9737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMetaFileDC_Close",_kwnames,&_argo0)) |
8ab979d7 | 9738 | return NULL; |
1d99702e RD |
9739 | if (_argo0) { |
9740 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9741 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFileDC_p")) { | |
8ab979d7 RD |
9742 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFileDC_Close. Expected _wxMetaFileDC_p."); |
9743 | return NULL; | |
9744 | } | |
9745 | } | |
cf694132 | 9746 | { |
4268f798 | 9747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9748 | _result = (wxMetaFile *)wxMetaFileDC_Close(_arg0); |
cf694132 | 9749 | |
4268f798 | 9750 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9751 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
9752 | } if (_result) { |
9753 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMetaFile_p"); | |
9754 | _resultobj = Py_BuildValue("s",_ptemp); | |
9755 | } else { | |
9756 | Py_INCREF(Py_None); | |
9757 | _resultobj = Py_None; | |
9758 | } | |
8ab979d7 RD |
9759 | return _resultobj; |
9760 | } | |
9761 | ||
9416aa89 RD |
9762 | static void *SwigwxPaletteTowxGDIObject(void *ptr) { |
9763 | wxPalette *src; | |
9764 | wxGDIObject *dest; | |
9765 | src = (wxPalette *) ptr; | |
9766 | dest = (wxGDIObject *) src; | |
9767 | return (void *) dest; | |
9768 | } | |
9769 | ||
9770 | static void *SwigwxPaletteTowxObject(void *ptr) { | |
9771 | wxPalette *src; | |
9772 | wxObject *dest; | |
9773 | src = (wxPalette *) ptr; | |
9774 | dest = (wxObject *) src; | |
9775 | return (void *) dest; | |
9776 | } | |
9777 | ||
b639c3c5 | 9778 | #define new_wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
1afc06c2 | 9779 | static PyObject *_wrap_new_wxPalette(PyObject *self, PyObject *args, PyObject *kwargs) { |
b639c3c5 RD |
9780 | PyObject * _resultobj; |
9781 | wxPalette * _result; | |
9782 | int _arg0; | |
9783 | byte * _arg1; | |
9784 | byte * _arg2; | |
9785 | byte * _arg3; | |
9786 | PyObject * _obj1 = 0; | |
9787 | PyObject * _obj2 = 0; | |
9788 | PyObject * _obj3 = 0; | |
eec92d76 | 9789 | char *_kwnames[] = { "choices","choices","choices", NULL }; |
b639c3c5 RD |
9790 | char _ptemp[128]; |
9791 | ||
9792 | self = self; | |
1afc06c2 | 9793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:new_wxPalette",_kwnames,&_obj1,&_obj2,&_obj3)) |
b639c3c5 RD |
9794 | return NULL; |
9795 | { | |
9796 | _arg1 = byte_LIST_helper(_obj1); | |
9797 | if (_arg1 == NULL) { | |
9798 | return NULL; | |
9799 | } | |
9800 | } | |
9801 | { | |
9802 | _arg2 = byte_LIST_helper(_obj2); | |
9803 | if (_arg2 == NULL) { | |
9804 | return NULL; | |
9805 | } | |
9806 | } | |
9807 | if (_obj3) | |
9808 | { | |
9809 | _arg3 = byte_LIST_helper(_obj3); | |
9810 | if (_arg3 == NULL) { | |
9811 | return NULL; | |
9812 | } | |
9813 | } | |
9814 | { | |
cf694132 RD |
9815 | if (_obj1) { |
9816 | _arg0 = PyList_Size(_obj1); | |
9817 | } | |
9818 | else { | |
9819 | _arg0 = 0; | |
9820 | } | |
b639c3c5 | 9821 | } |
cf694132 | 9822 | { |
4268f798 | 9823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9824 | _result = (wxPalette *)new_wxPalette(_arg0,_arg1,_arg2,_arg3); |
cf694132 | 9825 | |
4268f798 | 9826 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9827 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
9828 | } if (_result) { |
9829 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPalette_p"); | |
9830 | _resultobj = Py_BuildValue("s",_ptemp); | |
9831 | } else { | |
9832 | Py_INCREF(Py_None); | |
9833 | _resultobj = Py_None; | |
9834 | } | |
b639c3c5 RD |
9835 | { |
9836 | delete [] _arg1; | |
9837 | } | |
9838 | { | |
9839 | delete [] _arg2; | |
9840 | } | |
9841 | { | |
9842 | delete [] _arg3; | |
9843 | } | |
9844 | return _resultobj; | |
9845 | } | |
9846 | ||
9847 | #define delete_wxPalette(_swigobj) (delete _swigobj) | |
1afc06c2 | 9848 | static PyObject *_wrap_delete_wxPalette(PyObject *self, PyObject *args, PyObject *kwargs) { |
b639c3c5 RD |
9849 | PyObject * _resultobj; |
9850 | wxPalette * _arg0; | |
1d99702e | 9851 | PyObject * _argo0 = 0; |
1afc06c2 | 9852 | char *_kwnames[] = { "self", NULL }; |
b639c3c5 RD |
9853 | |
9854 | self = self; | |
1afc06c2 | 9855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPalette",_kwnames,&_argo0)) |
b639c3c5 | 9856 | return NULL; |
1d99702e RD |
9857 | if (_argo0) { |
9858 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9859 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) { | |
b639c3c5 RD |
9860 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPalette. Expected _wxPalette_p."); |
9861 | return NULL; | |
9862 | } | |
9863 | } | |
cf694132 | 9864 | { |
4268f798 | 9865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9866 | delete_wxPalette(_arg0); |
cf694132 | 9867 | |
4268f798 | 9868 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9869 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9870 | } Py_INCREF(Py_None); |
b639c3c5 RD |
9871 | _resultobj = Py_None; |
9872 | return _resultobj; | |
9873 | } | |
9874 | ||
9875 | #define wxPalette_GetPixel(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetPixel(_swigarg0,_swigarg1,_swigarg2)) | |
1afc06c2 | 9876 | static PyObject *_wrap_wxPalette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) { |
b639c3c5 RD |
9877 | PyObject * _resultobj; |
9878 | int _result; | |
9879 | wxPalette * _arg0; | |
9880 | byte _arg1; | |
9881 | byte _arg2; | |
9882 | byte _arg3; | |
1d99702e | 9883 | PyObject * _argo0 = 0; |
1afc06c2 | 9884 | char *_kwnames[] = { "self","red","green","blue", NULL }; |
b639c3c5 RD |
9885 | |
9886 | self = self; | |
1afc06c2 | 9887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Obbb:wxPalette_GetPixel",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
b639c3c5 | 9888 | return NULL; |
1d99702e RD |
9889 | if (_argo0) { |
9890 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9891 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) { | |
b639c3c5 RD |
9892 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_GetPixel. Expected _wxPalette_p."); |
9893 | return NULL; | |
9894 | } | |
9895 | } | |
cf694132 | 9896 | { |
4268f798 | 9897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9898 | _result = (int )wxPalette_GetPixel(_arg0,_arg1,_arg2,_arg3); |
cf694132 | 9899 | |
4268f798 | 9900 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9901 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9902 | } _resultobj = Py_BuildValue("i",_result); |
b639c3c5 RD |
9903 | return _resultobj; |
9904 | } | |
9905 | ||
9906 | #define wxPalette_GetRGB(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetRGB(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
1afc06c2 | 9907 | static PyObject *_wrap_wxPalette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) { |
b639c3c5 RD |
9908 | PyObject * _resultobj; |
9909 | bool _result; | |
9910 | wxPalette * _arg0; | |
9911 | int _arg1; | |
9912 | byte * _arg2; | |
154747f5 | 9913 | int temp; |
b639c3c5 | 9914 | byte * _arg3; |
154747f5 | 9915 | int temp0; |
b639c3c5 | 9916 | byte * _arg4; |
154747f5 | 9917 | int temp1; |
1d99702e | 9918 | PyObject * _argo0 = 0; |
154747f5 | 9919 | char *_kwnames[] = { "self","pixel", NULL }; |
b639c3c5 RD |
9920 | |
9921 | self = self; | |
154747f5 RD |
9922 | { |
9923 | _arg2 = (byte*)&temp; | |
9924 | } | |
9925 | { | |
9926 | _arg3 = (byte*)&temp0; | |
9927 | } | |
9928 | { | |
9929 | _arg4 = (byte*)&temp1; | |
9930 | } | |
9931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPalette_GetRGB",_kwnames,&_argo0,&_arg1)) | |
b639c3c5 | 9932 | return NULL; |
1d99702e RD |
9933 | if (_argo0) { |
9934 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9935 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) { | |
b639c3c5 RD |
9936 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_GetRGB. Expected _wxPalette_p."); |
9937 | return NULL; | |
9938 | } | |
9939 | } | |
cf694132 | 9940 | { |
4268f798 | 9941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9942 | _result = (bool )wxPalette_GetRGB(_arg0,_arg1,_arg2,_arg3,_arg4); |
cf694132 | 9943 | |
4268f798 | 9944 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9945 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9946 | } _resultobj = Py_BuildValue("i",_result); |
154747f5 RD |
9947 | { |
9948 | PyObject *o; | |
9949 | o = PyInt_FromLong((long) (*_arg2)); | |
9950 | _resultobj = t_output_helper(_resultobj, o); | |
9951 | } | |
9952 | { | |
9953 | PyObject *o; | |
9954 | o = PyInt_FromLong((long) (*_arg3)); | |
9955 | _resultobj = t_output_helper(_resultobj, o); | |
9956 | } | |
9957 | { | |
9958 | PyObject *o; | |
9959 | o = PyInt_FromLong((long) (*_arg4)); | |
9960 | _resultobj = t_output_helper(_resultobj, o); | |
9961 | } | |
b639c3c5 RD |
9962 | return _resultobj; |
9963 | } | |
9964 | ||
9965 | #define wxPalette_Ok(_swigobj) (_swigobj->Ok()) | |
1afc06c2 | 9966 | static PyObject *_wrap_wxPalette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { |
b639c3c5 RD |
9967 | PyObject * _resultobj; |
9968 | bool _result; | |
9969 | wxPalette * _arg0; | |
1d99702e | 9970 | PyObject * _argo0 = 0; |
1afc06c2 | 9971 | char *_kwnames[] = { "self", NULL }; |
b639c3c5 RD |
9972 | |
9973 | self = self; | |
1afc06c2 | 9974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPalette_Ok",_kwnames,&_argo0)) |
b639c3c5 | 9975 | return NULL; |
1d99702e RD |
9976 | if (_argo0) { |
9977 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9978 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) { | |
b639c3c5 RD |
9979 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_Ok. Expected _wxPalette_p."); |
9980 | return NULL; | |
9981 | } | |
9982 | } | |
cf694132 | 9983 | { |
4268f798 | 9984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9985 | _result = (bool )wxPalette_Ok(_arg0); |
cf694132 | 9986 | |
4268f798 | 9987 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9988 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9989 | } _resultobj = Py_BuildValue("i",_result); |
b639c3c5 RD |
9990 | return _resultobj; |
9991 | } | |
9992 | ||
9416aa89 RD |
9993 | static void *SwigwxImageListTowxObject(void *ptr) { |
9994 | wxImageList *src; | |
9995 | wxObject *dest; | |
9996 | src = (wxImageList *) ptr; | |
9997 | dest = (wxObject *) src; | |
9998 | return (void *) dest; | |
9999 | } | |
10000 | ||
af309447 | 10001 | #define new_wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
1afc06c2 | 10002 | static PyObject *_wrap_new_wxImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
10003 | PyObject * _resultobj; |
10004 | wxImageList * _result; | |
10005 | int _arg0; | |
10006 | int _arg1; | |
dcd38683 | 10007 | int _arg2 = (int ) TRUE; |
1d99702e | 10008 | int _arg3 = (int ) 1; |
1afc06c2 | 10009 | char *_kwnames[] = { "width","height","mask","initialCount", NULL }; |
af309447 RD |
10010 | char _ptemp[128]; |
10011 | ||
10012 | self = self; | |
6999b0d8 | 10013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"ii|ii:new_wxImageList",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3)) |
af309447 | 10014 | return NULL; |
cf694132 | 10015 | { |
4268f798 | 10016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10017 | _result = (wxImageList *)new_wxImageList(_arg0,_arg1,_arg2,_arg3); |
cf694132 | 10018 | |
4268f798 | 10019 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10020 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
10021 | } if (_result) { |
10022 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxImageList_p"); | |
10023 | _resultobj = Py_BuildValue("s",_ptemp); | |
10024 | } else { | |
10025 | Py_INCREF(Py_None); | |
10026 | _resultobj = Py_None; | |
10027 | } | |
af309447 RD |
10028 | return _resultobj; |
10029 | } | |
10030 | ||
10031 | #define delete_wxImageList(_swigobj) (delete _swigobj) | |
1afc06c2 | 10032 | static PyObject *_wrap_delete_wxImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
10033 | PyObject * _resultobj; |
10034 | wxImageList * _arg0; | |
1d99702e | 10035 | PyObject * _argo0 = 0; |
1afc06c2 | 10036 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
10037 | |
10038 | self = self; | |
1afc06c2 | 10039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxImageList",_kwnames,&_argo0)) |
af309447 | 10040 | return NULL; |
1d99702e RD |
10041 | if (_argo0) { |
10042 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10043 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
af309447 RD |
10044 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxImageList. Expected _wxImageList_p."); |
10045 | return NULL; | |
10046 | } | |
10047 | } | |
cf694132 | 10048 | { |
4268f798 | 10049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10050 | delete_wxImageList(_arg0); |
cf694132 | 10051 | |
4268f798 | 10052 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10053 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10054 | } Py_INCREF(Py_None); |
af309447 RD |
10055 | _resultobj = Py_None; |
10056 | return _resultobj; | |
10057 | } | |
10058 | ||
10059 | #define wxImageList_Add(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1)) | |
1afc06c2 | 10060 | static PyObject *_wrap_wxImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
10061 | PyObject * _resultobj; |
10062 | int _result; | |
10063 | wxImageList * _arg0; | |
10064 | wxBitmap * _arg1; | |
1d99702e RD |
10065 | wxBitmap * _arg2 = (wxBitmap *) &wxNullBitmap; |
10066 | PyObject * _argo0 = 0; | |
10067 | PyObject * _argo1 = 0; | |
10068 | PyObject * _argo2 = 0; | |
1afc06c2 | 10069 | char *_kwnames[] = { "self","bitmap","mask", NULL }; |
af309447 RD |
10070 | |
10071 | self = self; | |
1afc06c2 | 10072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxImageList_Add",_kwnames,&_argo0,&_argo1,&_argo2)) |
af309447 | 10073 | return NULL; |
1d99702e RD |
10074 | if (_argo0) { |
10075 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10076 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
af309447 RD |
10077 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Add. Expected _wxImageList_p."); |
10078 | return NULL; | |
10079 | } | |
10080 | } | |
1d99702e | 10081 | if (_argo1) { |
7e50db3f | 10082 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { |
af309447 RD |
10083 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_Add. Expected _wxBitmap_p."); |
10084 | return NULL; | |
10085 | } | |
10086 | } | |
1d99702e | 10087 | if (_argo2) { |
7e50db3f | 10088 | if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) { |
af309447 RD |
10089 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Add. Expected _wxBitmap_p."); |
10090 | return NULL; | |
10091 | } | |
10092 | } | |
cf694132 | 10093 | { |
4268f798 | 10094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10095 | _result = (int )wxImageList_Add(_arg0,*_arg1,*_arg2); |
cf694132 | 10096 | |
4268f798 | 10097 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10098 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10099 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
10100 | return _resultobj; |
10101 | } | |
10102 | ||
10103 | #define wxImageList_AddWithColourMask(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1)) | |
1afc06c2 | 10104 | static PyObject *_wrap_wxImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
10105 | PyObject * _resultobj; |
10106 | int _result; | |
10107 | wxImageList * _arg0; | |
10108 | wxBitmap * _arg1; | |
10109 | wxColour * _arg2; | |
1d99702e RD |
10110 | PyObject * _argo0 = 0; |
10111 | PyObject * _argo1 = 0; | |
f6bcfd97 BP |
10112 | wxColour temp; |
10113 | PyObject * _obj2 = 0; | |
1afc06c2 | 10114 | char *_kwnames[] = { "self","bitmap","maskColour", NULL }; |
af309447 RD |
10115 | |
10116 | self = self; | |
f6bcfd97 | 10117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxImageList_AddWithColourMask",_kwnames,&_argo0,&_argo1,&_obj2)) |
af309447 | 10118 | return NULL; |
1d99702e RD |
10119 | if (_argo0) { |
10120 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10121 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
af309447 RD |
10122 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_AddWithColourMask. Expected _wxImageList_p."); |
10123 | return NULL; | |
10124 | } | |
10125 | } | |
1d99702e | 10126 | if (_argo1) { |
7e50db3f | 10127 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { |
af309447 RD |
10128 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_AddWithColourMask. Expected _wxBitmap_p."); |
10129 | return NULL; | |
10130 | } | |
10131 | } | |
f6bcfd97 BP |
10132 | { |
10133 | _arg2 = &temp; | |
10134 | if (! wxColour_helper(_obj2, &_arg2)) | |
af309447 | 10135 | return NULL; |
f6bcfd97 | 10136 | } |
cf694132 | 10137 | { |
4268f798 | 10138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10139 | _result = (int )wxImageList_AddWithColourMask(_arg0,*_arg1,*_arg2); |
cf694132 | 10140 | |
4268f798 | 10141 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10142 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10143 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
10144 | return _resultobj; |
10145 | } | |
10146 | ||
10147 | #define wxImageList_AddIcon(_swigobj,_swigarg0) (_swigobj->Add(_swigarg0)) | |
1afc06c2 | 10148 | static PyObject *_wrap_wxImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
10149 | PyObject * _resultobj; |
10150 | int _result; | |
10151 | wxImageList * _arg0; | |
10152 | wxIcon * _arg1; | |
1d99702e RD |
10153 | PyObject * _argo0 = 0; |
10154 | PyObject * _argo1 = 0; | |
1afc06c2 | 10155 | char *_kwnames[] = { "self","icon", NULL }; |
af309447 RD |
10156 | |
10157 | self = self; | |
1afc06c2 | 10158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxImageList_AddIcon",_kwnames,&_argo0,&_argo1)) |
af309447 | 10159 | return NULL; |
1d99702e RD |
10160 | if (_argo0) { |
10161 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10162 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
af309447 RD |
10163 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_AddIcon. Expected _wxImageList_p."); |
10164 | return NULL; | |
10165 | } | |
10166 | } | |
1d99702e | 10167 | if (_argo1) { |
7e50db3f | 10168 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) { |
af309447 RD |
10169 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_AddIcon. Expected _wxIcon_p."); |
10170 | return NULL; | |
10171 | } | |
10172 | } | |
cf694132 | 10173 | { |
4268f798 | 10174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10175 | _result = (int )wxImageList_AddIcon(_arg0,*_arg1); |
cf694132 | 10176 | |
4268f798 | 10177 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10178 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10179 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
10180 | return _resultobj; |
10181 | } | |
10182 | ||
21f8d7ea | 10183 | #define wxImageList_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2)) |
1afc06c2 | 10184 | static PyObject *_wrap_wxImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
10185 | PyObject * _resultobj; |
10186 | bool _result; | |
10187 | wxImageList * _arg0; | |
10188 | int _arg1; | |
21f8d7ea | 10189 | wxBitmap * _arg2; |
1d99702e RD |
10190 | wxBitmap * _arg3 = (wxBitmap *) &wxNullBitmap; |
10191 | PyObject * _argo0 = 0; | |
10192 | PyObject * _argo2 = 0; | |
10193 | PyObject * _argo3 = 0; | |
1afc06c2 | 10194 | char *_kwnames[] = { "self","index","bitmap","mask", NULL }; |
af309447 RD |
10195 | |
10196 | self = self; | |
1afc06c2 | 10197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|O:wxImageList_Replace",_kwnames,&_argo0,&_arg1,&_argo2,&_argo3)) |
af309447 | 10198 | return NULL; |
1d99702e RD |
10199 | if (_argo0) { |
10200 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10201 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
21f8d7ea | 10202 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Replace. Expected _wxImageList_p."); |
af309447 RD |
10203 | return NULL; |
10204 | } | |
10205 | } | |
1d99702e | 10206 | if (_argo2) { |
7e50db3f | 10207 | if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) { |
21f8d7ea | 10208 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Replace. Expected _wxBitmap_p."); |
af309447 RD |
10209 | return NULL; |
10210 | } | |
10211 | } | |
1d99702e | 10212 | if (_argo3) { |
7e50db3f | 10213 | if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxBitmap_p")) { |
21f8d7ea RD |
10214 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxImageList_Replace. Expected _wxBitmap_p."); |
10215 | return NULL; | |
10216 | } | |
10217 | } | |
cf694132 | 10218 | { |
4268f798 | 10219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10220 | _result = (bool )wxImageList_Replace(_arg0,_arg1,*_arg2,*_arg3); |
cf694132 | 10221 | |
4268f798 | 10222 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10223 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10224 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
10225 | return _resultobj; |
10226 | } | |
10227 | ||
21f8d7ea | 10228 | #define wxImageList_Draw(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Draw(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
1afc06c2 | 10229 | static PyObject *_wrap_wxImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
10230 | PyObject * _resultobj; |
10231 | bool _result; | |
10232 | wxImageList * _arg0; | |
10233 | int _arg1; | |
21f8d7ea RD |
10234 | wxDC * _arg2; |
10235 | int _arg3; | |
10236 | int _arg4; | |
1d99702e RD |
10237 | int _arg5 = (int ) (wxIMAGELIST_DRAW_NORMAL); |
10238 | bool _arg6 = (bool ) FALSE; | |
10239 | PyObject * _argo0 = 0; | |
10240 | PyObject * _argo2 = 0; | |
10241 | int tempbool6 = (int) FALSE; | |
1afc06c2 | 10242 | char *_kwnames[] = { "self","index","dc","x","x","flags","solidBackground", NULL }; |
af309447 RD |
10243 | |
10244 | self = self; | |
1afc06c2 | 10245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOii|ii:wxImageList_Draw",_kwnames,&_argo0,&_arg1,&_argo2,&_arg3,&_arg4,&_arg5,&tempbool6)) |
af309447 | 10246 | return NULL; |
1d99702e RD |
10247 | if (_argo0) { |
10248 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10249 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
21f8d7ea | 10250 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Draw. Expected _wxImageList_p."); |
af309447 RD |
10251 | return NULL; |
10252 | } | |
10253 | } | |
1d99702e | 10254 | if (_argo2) { |
7e50db3f | 10255 | if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxDC_p")) { |
21f8d7ea RD |
10256 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Draw. Expected _wxDC_p."); |
10257 | return NULL; | |
10258 | } | |
10259 | } | |
10260 | _arg6 = (bool ) tempbool6; | |
cf694132 | 10261 | { |
4268f798 | 10262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10263 | _result = (bool )wxImageList_Draw(_arg0,_arg1,*_arg2,_arg3,_arg4,_arg5,_arg6); |
cf694132 | 10264 | |
4268f798 | 10265 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10266 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10267 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
10268 | return _resultobj; |
10269 | } | |
10270 | ||
21f8d7ea | 10271 | #define wxImageList_GetImageCount(_swigobj) (_swigobj->GetImageCount()) |
1afc06c2 | 10272 | static PyObject *_wrap_wxImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 | 10273 | PyObject * _resultobj; |
21f8d7ea | 10274 | int _result; |
af309447 | 10275 | wxImageList * _arg0; |
1d99702e | 10276 | PyObject * _argo0 = 0; |
1afc06c2 | 10277 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
10278 | |
10279 | self = self; | |
1afc06c2 | 10280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageList_GetImageCount",_kwnames,&_argo0)) |
af309447 | 10281 | return NULL; |
1d99702e RD |
10282 | if (_argo0) { |
10283 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10284 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
21f8d7ea | 10285 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_GetImageCount. Expected _wxImageList_p."); |
af309447 RD |
10286 | return NULL; |
10287 | } | |
10288 | } | |
cf694132 | 10289 | { |
4268f798 | 10290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10291 | _result = (int )wxImageList_GetImageCount(_arg0); |
cf694132 | 10292 | |
4268f798 | 10293 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10294 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10295 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
10296 | return _resultobj; |
10297 | } | |
10298 | ||
21f8d7ea | 10299 | #define wxImageList_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) |
1afc06c2 | 10300 | static PyObject *_wrap_wxImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
10301 | PyObject * _resultobj; |
10302 | bool _result; | |
10303 | wxImageList * _arg0; | |
10304 | int _arg1; | |
1d99702e | 10305 | PyObject * _argo0 = 0; |
1afc06c2 | 10306 | char *_kwnames[] = { "self","index", NULL }; |
af309447 RD |
10307 | |
10308 | self = self; | |
1afc06c2 | 10309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxImageList_Remove",_kwnames,&_argo0,&_arg1)) |
af309447 | 10310 | return NULL; |
1d99702e RD |
10311 | if (_argo0) { |
10312 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10313 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
21f8d7ea | 10314 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Remove. Expected _wxImageList_p."); |
af309447 RD |
10315 | return NULL; |
10316 | } | |
10317 | } | |
cf694132 | 10318 | { |
4268f798 | 10319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10320 | _result = (bool )wxImageList_Remove(_arg0,_arg1); |
cf694132 | 10321 | |
4268f798 | 10322 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10323 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10324 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
10325 | return _resultobj; |
10326 | } | |
10327 | ||
21f8d7ea | 10328 | #define wxImageList_RemoveAll(_swigobj) (_swigobj->RemoveAll()) |
1afc06c2 | 10329 | static PyObject *_wrap_wxImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
10330 | PyObject * _resultobj; |
10331 | bool _result; | |
10332 | wxImageList * _arg0; | |
1d99702e | 10333 | PyObject * _argo0 = 0; |
1afc06c2 | 10334 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
10335 | |
10336 | self = self; | |
1afc06c2 | 10337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageList_RemoveAll",_kwnames,&_argo0)) |
af309447 | 10338 | return NULL; |
1d99702e RD |
10339 | if (_argo0) { |
10340 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10341 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
21f8d7ea | 10342 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_RemoveAll. Expected _wxImageList_p."); |
af309447 RD |
10343 | return NULL; |
10344 | } | |
10345 | } | |
cf694132 | 10346 | { |
4268f798 | 10347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10348 | _result = (bool )wxImageList_RemoveAll(_arg0); |
cf694132 | 10349 | |
4268f798 | 10350 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10351 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10352 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
10353 | return _resultobj; |
10354 | } | |
10355 | ||
f6bcfd97 BP |
10356 | #define wxImageList_GetSize(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetSize(_swigarg0,_swigarg1,_swigarg2)) |
10357 | static PyObject *_wrap_wxImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10358 | PyObject * _resultobj; | |
10359 | wxImageList * _arg0; | |
10360 | int _arg1; | |
10361 | int * _arg2; | |
10362 | int temp; | |
10363 | int * _arg3; | |
10364 | int temp0; | |
10365 | PyObject * _argo0 = 0; | |
10366 | char *_kwnames[] = { "self","index", NULL }; | |
10367 | ||
10368 | self = self; | |
10369 | { | |
10370 | _arg2 = &temp; | |
10371 | } | |
10372 | { | |
10373 | _arg3 = &temp0; | |
10374 | } | |
10375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxImageList_GetSize",_kwnames,&_argo0,&_arg1)) | |
10376 | return NULL; | |
10377 | if (_argo0) { | |
10378 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10379 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) { | |
10380 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_GetSize. Expected _wxImageList_p."); | |
10381 | return NULL; | |
10382 | } | |
10383 | } | |
10384 | { | |
4268f798 | 10385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10386 | wxImageList_GetSize(_arg0,_arg1,*_arg2,*_arg3); |
f6bcfd97 | 10387 | |
4268f798 | 10388 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10389 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
10390 | } Py_INCREF(Py_None); |
10391 | _resultobj = Py_None; | |
10392 | { | |
10393 | PyObject *o; | |
10394 | o = PyInt_FromLong((long) (*_arg2)); | |
10395 | _resultobj = t_output_helper(_resultobj, o); | |
10396 | } | |
10397 | { | |
10398 | PyObject *o; | |
10399 | o = PyInt_FromLong((long) (*_arg3)); | |
10400 | _resultobj = t_output_helper(_resultobj, o); | |
10401 | } | |
10402 | return _resultobj; | |
10403 | } | |
10404 | ||
9416aa89 RD |
10405 | static void *SwigwxRegionTowxGDIObject(void *ptr) { |
10406 | wxRegion *src; | |
10407 | wxGDIObject *dest; | |
10408 | src = (wxRegion *) ptr; | |
10409 | dest = (wxGDIObject *) src; | |
10410 | return (void *) dest; | |
10411 | } | |
10412 | ||
10413 | static void *SwigwxRegionTowxObject(void *ptr) { | |
10414 | wxRegion *src; | |
10415 | wxObject *dest; | |
10416 | src = (wxRegion *) ptr; | |
10417 | dest = (wxObject *) src; | |
10418 | return (void *) dest; | |
10419 | } | |
10420 | ||
10421 | #define new_wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
10422 | static PyObject *_wrap_new_wxRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10423 | PyObject * _resultobj; | |
10424 | wxRegion * _result; | |
7e50db3f RD |
10425 | wxCoord _arg0 = (wxCoord ) 0; |
10426 | wxCoord _arg1 = (wxCoord ) 0; | |
10427 | wxCoord _arg2 = (wxCoord ) 0; | |
10428 | wxCoord _arg3 = (wxCoord ) 0; | |
9416aa89 RD |
10429 | char *_kwnames[] = { "x","y","width","height", NULL }; |
10430 | char _ptemp[128]; | |
10431 | ||
10432 | self = self; | |
7e50db3f | 10433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|iiii:new_wxRegion",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3)) |
9416aa89 RD |
10434 | return NULL; |
10435 | { | |
4268f798 | 10436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10437 | _result = (wxRegion *)new_wxRegion(_arg0,_arg1,_arg2,_arg3); |
9416aa89 | 10438 | |
4268f798 | 10439 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10440 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
10441 | } if (_result) { |
10442 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRegion_p"); | |
10443 | _resultobj = Py_BuildValue("s",_ptemp); | |
10444 | } else { | |
10445 | Py_INCREF(Py_None); | |
10446 | _resultobj = Py_None; | |
10447 | } | |
10448 | return _resultobj; | |
10449 | } | |
10450 | ||
3de0866e RD |
10451 | #define new_wxRegionFromPoints(_swigarg0,_swigarg1,_swigarg2) (new wxRegion(_swigarg0,_swigarg1,_swigarg2)) |
10452 | static PyObject *_wrap_new_wxRegionFromPoints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10453 | PyObject * _resultobj; | |
10454 | wxRegion * _result; | |
10455 | int _arg0; | |
10456 | wxPoint * _arg1; | |
10457 | int _arg2 = (int ) wxWINDING_RULE; | |
10458 | int NPOINTS; | |
10459 | PyObject * _obj1 = 0; | |
10460 | char *_kwnames[] = { "points","fillStyle", NULL }; | |
10461 | char _ptemp[128]; | |
10462 | ||
10463 | self = self; | |
10464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:new_wxRegionFromPoints",_kwnames,&_obj1,&_arg2)) | |
10465 | return NULL; | |
10466 | if (_obj1) | |
10467 | { | |
10468 | _arg1 = wxPoint_LIST_helper(_obj1, &NPOINTS); | |
10469 | if (_arg1 == NULL) { | |
10470 | return NULL; | |
10471 | } | |
10472 | } | |
10473 | { | |
10474 | _arg0 = NPOINTS; | |
10475 | } | |
10476 | { | |
10477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10478 | _result = (wxRegion *)new_wxRegionFromPoints(_arg0,_arg1,_arg2); | |
10479 | ||
10480 | wxPyEndAllowThreads(__tstate); | |
10481 | if (PyErr_Occurred()) return NULL; | |
10482 | } if (_result) { | |
10483 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRegion_p"); | |
10484 | _resultobj = Py_BuildValue("s",_ptemp); | |
10485 | } else { | |
10486 | Py_INCREF(Py_None); | |
10487 | _resultobj = Py_None; | |
10488 | } | |
10489 | { | |
10490 | delete [] _arg1; | |
10491 | } | |
10492 | return _resultobj; | |
10493 | } | |
10494 | ||
9416aa89 RD |
10495 | #define delete_wxRegion(_swigobj) (delete _swigobj) |
10496 | static PyObject *_wrap_delete_wxRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10497 | PyObject * _resultobj; | |
10498 | wxRegion * _arg0; | |
10499 | PyObject * _argo0 = 0; | |
10500 | char *_kwnames[] = { "self", NULL }; | |
10501 | ||
10502 | self = self; | |
10503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxRegion",_kwnames,&_argo0)) | |
10504 | return NULL; | |
10505 | if (_argo0) { | |
10506 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10507 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10508 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxRegion. Expected _wxRegion_p."); | |
10509 | return NULL; | |
10510 | } | |
10511 | } | |
10512 | { | |
4268f798 | 10513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10514 | delete_wxRegion(_arg0); |
9416aa89 | 10515 | |
4268f798 | 10516 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10517 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
10518 | } Py_INCREF(Py_None); |
10519 | _resultobj = Py_None; | |
10520 | return _resultobj; | |
10521 | } | |
10522 | ||
10523 | #define wxRegion_Clear(_swigobj) (_swigobj->Clear()) | |
10524 | static PyObject *_wrap_wxRegion_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10525 | PyObject * _resultobj; | |
10526 | wxRegion * _arg0; | |
10527 | PyObject * _argo0 = 0; | |
10528 | char *_kwnames[] = { "self", NULL }; | |
10529 | ||
10530 | self = self; | |
10531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_Clear",_kwnames,&_argo0)) | |
10532 | return NULL; | |
10533 | if (_argo0) { | |
10534 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10535 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10536 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Clear. Expected _wxRegion_p."); | |
10537 | return NULL; | |
10538 | } | |
10539 | } | |
10540 | { | |
4268f798 | 10541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10542 | wxRegion_Clear(_arg0); |
9416aa89 | 10543 | |
4268f798 | 10544 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10545 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
10546 | } Py_INCREF(Py_None); |
10547 | _resultobj = Py_None; | |
10548 | return _resultobj; | |
10549 | } | |
10550 | ||
23bed520 RD |
10551 | #define wxRegion_Offset(_swigobj,_swigarg0,_swigarg1) (_swigobj->Offset(_swigarg0,_swigarg1)) |
10552 | static PyObject *_wrap_wxRegion_Offset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10553 | PyObject * _resultobj; | |
10554 | bool _result; | |
10555 | wxRegion * _arg0; | |
10556 | wxCoord _arg1; | |
10557 | wxCoord _arg2; | |
10558 | PyObject * _argo0 = 0; | |
10559 | char *_kwnames[] = { "self","x","y", NULL }; | |
10560 | ||
10561 | self = self; | |
10562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxRegion_Offset",_kwnames,&_argo0,&_arg1,&_arg2)) | |
10563 | return NULL; | |
10564 | if (_argo0) { | |
10565 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10566 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10567 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Offset. Expected _wxRegion_p."); | |
10568 | return NULL; | |
10569 | } | |
10570 | } | |
10571 | { | |
10572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 10573 | _result = (bool )wxRegion_Offset(_arg0,_arg1,_arg2); |
23bed520 RD |
10574 | |
10575 | wxPyEndAllowThreads(__tstate); | |
10576 | if (PyErr_Occurred()) return NULL; | |
10577 | } _resultobj = Py_BuildValue("i",_result); | |
10578 | return _resultobj; | |
10579 | } | |
10580 | ||
9416aa89 RD |
10581 | #define wxRegion_Contains(_swigobj,_swigarg0,_swigarg1) (_swigobj->Contains(_swigarg0,_swigarg1)) |
10582 | static PyObject *_wrap_wxRegion_Contains(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10583 | PyObject * _resultobj; | |
10584 | wxRegionContain _result; | |
10585 | wxRegion * _arg0; | |
7e50db3f RD |
10586 | wxCoord _arg1; |
10587 | wxCoord _arg2; | |
9416aa89 RD |
10588 | PyObject * _argo0 = 0; |
10589 | char *_kwnames[] = { "self","x","y", NULL }; | |
10590 | ||
10591 | self = self; | |
7e50db3f | 10592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxRegion_Contains",_kwnames,&_argo0,&_arg1,&_arg2)) |
9416aa89 RD |
10593 | return NULL; |
10594 | if (_argo0) { | |
10595 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10596 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10597 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Contains. Expected _wxRegion_p."); | |
10598 | return NULL; | |
10599 | } | |
10600 | } | |
10601 | { | |
4268f798 | 10602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10603 | _result = (wxRegionContain )wxRegion_Contains(_arg0,_arg1,_arg2); |
9416aa89 | 10604 | |
4268f798 | 10605 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10606 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
10607 | } _resultobj = Py_BuildValue("i",_result); |
10608 | return _resultobj; | |
10609 | } | |
10610 | ||
10611 | #define wxRegion_ContainsPoint(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0)) | |
10612 | static PyObject *_wrap_wxRegion_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10613 | PyObject * _resultobj; | |
10614 | wxRegionContain _result; | |
10615 | wxRegion * _arg0; | |
10616 | wxPoint * _arg1; | |
10617 | PyObject * _argo0 = 0; | |
10618 | wxPoint temp; | |
10619 | PyObject * _obj1 = 0; | |
10620 | char *_kwnames[] = { "self","pt", NULL }; | |
10621 | ||
10622 | self = self; | |
10623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_ContainsPoint",_kwnames,&_argo0,&_obj1)) | |
10624 | return NULL; | |
10625 | if (_argo0) { | |
10626 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10627 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10628 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsPoint. Expected _wxRegion_p."); | |
10629 | return NULL; | |
10630 | } | |
10631 | } | |
10632 | { | |
10633 | _arg1 = &temp; | |
10634 | if (! wxPoint_helper(_obj1, &_arg1)) | |
10635 | return NULL; | |
10636 | } | |
10637 | { | |
4268f798 | 10638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10639 | _result = (wxRegionContain )wxRegion_ContainsPoint(_arg0,*_arg1); |
9416aa89 | 10640 | |
4268f798 | 10641 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10642 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
10643 | } _resultobj = Py_BuildValue("i",_result); |
10644 | return _resultobj; | |
10645 | } | |
10646 | ||
10647 | #define wxRegion_ContainsRect(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0)) | |
10648 | static PyObject *_wrap_wxRegion_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10649 | PyObject * _resultobj; | |
10650 | wxRegionContain _result; | |
10651 | wxRegion * _arg0; | |
10652 | wxRect * _arg1; | |
10653 | PyObject * _argo0 = 0; | |
10654 | wxRect temp; | |
10655 | PyObject * _obj1 = 0; | |
10656 | char *_kwnames[] = { "self","rect", NULL }; | |
10657 | ||
10658 | self = self; | |
10659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_ContainsRect",_kwnames,&_argo0,&_obj1)) | |
10660 | return NULL; | |
10661 | if (_argo0) { | |
10662 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10663 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10664 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsRect. Expected _wxRegion_p."); | |
10665 | return NULL; | |
10666 | } | |
10667 | } | |
10668 | { | |
10669 | _arg1 = &temp; | |
10670 | if (! wxRect_helper(_obj1, &_arg1)) | |
10671 | return NULL; | |
10672 | } | |
10673 | { | |
4268f798 | 10674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10675 | _result = (wxRegionContain )wxRegion_ContainsRect(_arg0,*_arg1); |
9416aa89 | 10676 | |
4268f798 | 10677 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10678 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
10679 | } _resultobj = Py_BuildValue("i",_result); |
10680 | return _resultobj; | |
10681 | } | |
10682 | ||
10683 | #define wxRegion_ContainsRectDim(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Contains(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
10684 | static PyObject *_wrap_wxRegion_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10685 | PyObject * _resultobj; | |
10686 | wxRegionContain _result; | |
10687 | wxRegion * _arg0; | |
7e50db3f RD |
10688 | wxCoord _arg1; |
10689 | wxCoord _arg2; | |
10690 | wxCoord _arg3; | |
10691 | wxCoord _arg4; | |
9416aa89 RD |
10692 | PyObject * _argo0 = 0; |
10693 | char *_kwnames[] = { "self","x","y","w","h", NULL }; | |
10694 | ||
10695 | self = self; | |
7e50db3f | 10696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii:wxRegion_ContainsRectDim",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) |
9416aa89 RD |
10697 | return NULL; |
10698 | if (_argo0) { | |
10699 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10700 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10701 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsRectDim. Expected _wxRegion_p."); | |
10702 | return NULL; | |
10703 | } | |
10704 | } | |
10705 | { | |
4268f798 | 10706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10707 | _result = (wxRegionContain )wxRegion_ContainsRectDim(_arg0,_arg1,_arg2,_arg3,_arg4); |
9416aa89 | 10708 | |
4268f798 | 10709 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10710 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
10711 | } _resultobj = Py_BuildValue("i",_result); |
10712 | return _resultobj; | |
10713 | } | |
10714 | ||
10715 | #define wxRegion_GetBox(_swigobj) (_swigobj->GetBox()) | |
10716 | static PyObject *_wrap_wxRegion_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10717 | PyObject * _resultobj; | |
10718 | wxRect * _result; | |
10719 | wxRegion * _arg0; | |
10720 | PyObject * _argo0 = 0; | |
10721 | char *_kwnames[] = { "self", NULL }; | |
10722 | char _ptemp[128]; | |
10723 | ||
10724 | self = self; | |
10725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_GetBox",_kwnames,&_argo0)) | |
10726 | return NULL; | |
10727 | if (_argo0) { | |
10728 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10729 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10730 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_GetBox. Expected _wxRegion_p."); | |
10731 | return NULL; | |
10732 | } | |
10733 | } | |
10734 | { | |
4268f798 | 10735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10736 | _result = new wxRect (wxRegion_GetBox(_arg0)); |
9416aa89 | 10737 | |
4268f798 | 10738 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10739 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
10740 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); |
10741 | _resultobj = Py_BuildValue("s",_ptemp); | |
10742 | return _resultobj; | |
10743 | } | |
10744 | ||
10745 | #define wxRegion_Intersect(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Intersect(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
10746 | static PyObject *_wrap_wxRegion_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10747 | PyObject * _resultobj; | |
10748 | bool _result; | |
10749 | wxRegion * _arg0; | |
7e50db3f RD |
10750 | wxCoord _arg1; |
10751 | wxCoord _arg2; | |
10752 | wxCoord _arg3; | |
10753 | wxCoord _arg4; | |
9416aa89 RD |
10754 | PyObject * _argo0 = 0; |
10755 | char *_kwnames[] = { "self","x","y","width","height", NULL }; | |
10756 | ||
10757 | self = self; | |
7e50db3f | 10758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii:wxRegion_Intersect",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) |
9416aa89 RD |
10759 | return NULL; |
10760 | if (_argo0) { | |
10761 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10762 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10763 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Intersect. Expected _wxRegion_p."); | |
10764 | return NULL; | |
10765 | } | |
10766 | } | |
10767 | { | |
4268f798 | 10768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10769 | _result = (bool )wxRegion_Intersect(_arg0,_arg1,_arg2,_arg3,_arg4); |
9416aa89 | 10770 | |
4268f798 | 10771 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10772 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
10773 | } _resultobj = Py_BuildValue("i",_result); |
10774 | return _resultobj; | |
10775 | } | |
10776 | ||
10777 | #define wxRegion_IntersectRect(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0)) | |
10778 | static PyObject *_wrap_wxRegion_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10779 | PyObject * _resultobj; | |
10780 | bool _result; | |
10781 | wxRegion * _arg0; | |
10782 | wxRect * _arg1; | |
10783 | PyObject * _argo0 = 0; | |
10784 | wxRect temp; | |
10785 | PyObject * _obj1 = 0; | |
10786 | char *_kwnames[] = { "self","rect", NULL }; | |
10787 | ||
10788 | self = self; | |
10789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_IntersectRect",_kwnames,&_argo0,&_obj1)) | |
10790 | return NULL; | |
10791 | if (_argo0) { | |
10792 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10793 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10794 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IntersectRect. Expected _wxRegion_p."); | |
10795 | return NULL; | |
10796 | } | |
10797 | } | |
10798 | { | |
10799 | _arg1 = &temp; | |
10800 | if (! wxRect_helper(_obj1, &_arg1)) | |
10801 | return NULL; | |
10802 | } | |
10803 | { | |
4268f798 | 10804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10805 | _result = (bool )wxRegion_IntersectRect(_arg0,*_arg1); |
9416aa89 | 10806 | |
4268f798 | 10807 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10808 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
10809 | } _resultobj = Py_BuildValue("i",_result); |
10810 | return _resultobj; | |
10811 | } | |
10812 | ||
10813 | #define wxRegion_IntersectRegion(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0)) | |
10814 | static PyObject *_wrap_wxRegion_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10815 | PyObject * _resultobj; | |
10816 | bool _result; | |
10817 | wxRegion * _arg0; | |
10818 | wxRegion * _arg1; | |
10819 | PyObject * _argo0 = 0; | |
10820 | PyObject * _argo1 = 0; | |
10821 | char *_kwnames[] = { "self","region", NULL }; | |
10822 | ||
10823 | self = self; | |
10824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_IntersectRegion",_kwnames,&_argo0,&_argo1)) | |
10825 | return NULL; | |
10826 | if (_argo0) { | |
10827 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10828 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10829 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IntersectRegion. Expected _wxRegion_p."); | |
10830 | return NULL; | |
10831 | } | |
10832 | } | |
10833 | if (_argo1) { | |
7e50db3f | 10834 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) { |
9416aa89 RD |
10835 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_IntersectRegion. Expected _wxRegion_p."); |
10836 | return NULL; | |
10837 | } | |
10838 | } | |
10839 | { | |
4268f798 | 10840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10841 | _result = (bool )wxRegion_IntersectRegion(_arg0,*_arg1); |
9416aa89 | 10842 | |
4268f798 | 10843 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10844 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
10845 | } _resultobj = Py_BuildValue("i",_result); |
10846 | return _resultobj; | |
10847 | } | |
10848 | ||
10849 | #define wxRegion_IsEmpty(_swigobj) (_swigobj->IsEmpty()) | |
10850 | static PyObject *_wrap_wxRegion_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10851 | PyObject * _resultobj; | |
10852 | bool _result; | |
10853 | wxRegion * _arg0; | |
10854 | PyObject * _argo0 = 0; | |
10855 | char *_kwnames[] = { "self", NULL }; | |
10856 | ||
10857 | self = self; | |
10858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_IsEmpty",_kwnames,&_argo0)) | |
10859 | return NULL; | |
10860 | if (_argo0) { | |
10861 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10862 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10863 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IsEmpty. Expected _wxRegion_p."); | |
10864 | return NULL; | |
10865 | } | |
10866 | } | |
10867 | { | |
4268f798 | 10868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10869 | _result = (bool )wxRegion_IsEmpty(_arg0); |
9416aa89 | 10870 | |
4268f798 | 10871 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10872 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
10873 | } _resultobj = Py_BuildValue("i",_result); |
10874 | return _resultobj; | |
10875 | } | |
10876 | ||
10877 | #define wxRegion_Union(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Union(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
10878 | static PyObject *_wrap_wxRegion_Union(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10879 | PyObject * _resultobj; | |
10880 | bool _result; | |
10881 | wxRegion * _arg0; | |
7e50db3f RD |
10882 | wxCoord _arg1; |
10883 | wxCoord _arg2; | |
10884 | wxCoord _arg3; | |
10885 | wxCoord _arg4; | |
9416aa89 RD |
10886 | PyObject * _argo0 = 0; |
10887 | char *_kwnames[] = { "self","x","y","width","height", NULL }; | |
10888 | ||
10889 | self = self; | |
7e50db3f | 10890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii:wxRegion_Union",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) |
9416aa89 RD |
10891 | return NULL; |
10892 | if (_argo0) { | |
10893 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10894 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10895 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Union. Expected _wxRegion_p."); | |
10896 | return NULL; | |
10897 | } | |
10898 | } | |
10899 | { | |
4268f798 | 10900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10901 | _result = (bool )wxRegion_Union(_arg0,_arg1,_arg2,_arg3,_arg4); |
9416aa89 | 10902 | |
4268f798 | 10903 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10904 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
10905 | } _resultobj = Py_BuildValue("i",_result); |
10906 | return _resultobj; | |
10907 | } | |
10908 | ||
10909 | #define wxRegion_UnionRect(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0)) | |
10910 | static PyObject *_wrap_wxRegion_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10911 | PyObject * _resultobj; | |
10912 | bool _result; | |
10913 | wxRegion * _arg0; | |
10914 | wxRect * _arg1; | |
10915 | PyObject * _argo0 = 0; | |
10916 | wxRect temp; | |
10917 | PyObject * _obj1 = 0; | |
10918 | char *_kwnames[] = { "self","rect", NULL }; | |
10919 | ||
10920 | self = self; | |
10921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_UnionRect",_kwnames,&_argo0,&_obj1)) | |
10922 | return NULL; | |
10923 | if (_argo0) { | |
10924 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10925 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10926 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_UnionRect. Expected _wxRegion_p."); | |
10927 | return NULL; | |
10928 | } | |
10929 | } | |
10930 | { | |
10931 | _arg1 = &temp; | |
10932 | if (! wxRect_helper(_obj1, &_arg1)) | |
10933 | return NULL; | |
10934 | } | |
10935 | { | |
4268f798 | 10936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10937 | _result = (bool )wxRegion_UnionRect(_arg0,*_arg1); |
9416aa89 | 10938 | |
4268f798 | 10939 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10940 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
10941 | } _resultobj = Py_BuildValue("i",_result); |
10942 | return _resultobj; | |
10943 | } | |
10944 | ||
10945 | #define wxRegion_UnionRegion(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0)) | |
10946 | static PyObject *_wrap_wxRegion_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10947 | PyObject * _resultobj; | |
10948 | bool _result; | |
10949 | wxRegion * _arg0; | |
10950 | wxRegion * _arg1; | |
10951 | PyObject * _argo0 = 0; | |
10952 | PyObject * _argo1 = 0; | |
10953 | char *_kwnames[] = { "self","region", NULL }; | |
10954 | ||
10955 | self = self; | |
10956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_UnionRegion",_kwnames,&_argo0,&_argo1)) | |
10957 | return NULL; | |
10958 | if (_argo0) { | |
10959 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10960 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10961 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_UnionRegion. Expected _wxRegion_p."); | |
10962 | return NULL; | |
10963 | } | |
10964 | } | |
10965 | if (_argo1) { | |
7e50db3f | 10966 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) { |
9416aa89 RD |
10967 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_UnionRegion. Expected _wxRegion_p."); |
10968 | return NULL; | |
10969 | } | |
10970 | } | |
10971 | { | |
4268f798 | 10972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10973 | _result = (bool )wxRegion_UnionRegion(_arg0,*_arg1); |
9416aa89 | 10974 | |
4268f798 | 10975 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10976 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
10977 | } _resultobj = Py_BuildValue("i",_result); |
10978 | return _resultobj; | |
10979 | } | |
10980 | ||
10981 | #define wxRegion_Subtract(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Subtract(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
10982 | static PyObject *_wrap_wxRegion_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10983 | PyObject * _resultobj; | |
10984 | bool _result; | |
10985 | wxRegion * _arg0; | |
7e50db3f RD |
10986 | wxCoord _arg1; |
10987 | wxCoord _arg2; | |
10988 | wxCoord _arg3; | |
10989 | wxCoord _arg4; | |
9416aa89 RD |
10990 | PyObject * _argo0 = 0; |
10991 | char *_kwnames[] = { "self","x","y","width","height", NULL }; | |
10992 | ||
10993 | self = self; | |
7e50db3f | 10994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii:wxRegion_Subtract",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) |
9416aa89 RD |
10995 | return NULL; |
10996 | if (_argo0) { | |
10997 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10998 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
10999 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Subtract. Expected _wxRegion_p."); | |
11000 | return NULL; | |
11001 | } | |
11002 | } | |
11003 | { | |
4268f798 | 11004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11005 | _result = (bool )wxRegion_Subtract(_arg0,_arg1,_arg2,_arg3,_arg4); |
9416aa89 | 11006 | |
4268f798 | 11007 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11008 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
11009 | } _resultobj = Py_BuildValue("i",_result); |
11010 | return _resultobj; | |
11011 | } | |
11012 | ||
11013 | #define wxRegion_SubtractRect(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0)) | |
11014 | static PyObject *_wrap_wxRegion_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11015 | PyObject * _resultobj; | |
11016 | bool _result; | |
11017 | wxRegion * _arg0; | |
11018 | wxRect * _arg1; | |
11019 | PyObject * _argo0 = 0; | |
11020 | wxRect temp; | |
11021 | PyObject * _obj1 = 0; | |
11022 | char *_kwnames[] = { "self","rect", NULL }; | |
11023 | ||
11024 | self = self; | |
11025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_SubtractRect",_kwnames,&_argo0,&_obj1)) | |
11026 | return NULL; | |
11027 | if (_argo0) { | |
11028 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11029 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
11030 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_SubtractRect. Expected _wxRegion_p."); | |
11031 | return NULL; | |
11032 | } | |
11033 | } | |
11034 | { | |
11035 | _arg1 = &temp; | |
11036 | if (! wxRect_helper(_obj1, &_arg1)) | |
11037 | return NULL; | |
11038 | } | |
11039 | { | |
4268f798 | 11040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11041 | _result = (bool )wxRegion_SubtractRect(_arg0,*_arg1); |
9416aa89 | 11042 | |
4268f798 | 11043 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11044 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
11045 | } _resultobj = Py_BuildValue("i",_result); |
11046 | return _resultobj; | |
11047 | } | |
11048 | ||
11049 | #define wxRegion_SubtractRegion(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0)) | |
11050 | static PyObject *_wrap_wxRegion_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11051 | PyObject * _resultobj; | |
11052 | bool _result; | |
11053 | wxRegion * _arg0; | |
11054 | wxRegion * _arg1; | |
11055 | PyObject * _argo0 = 0; | |
11056 | PyObject * _argo1 = 0; | |
11057 | char *_kwnames[] = { "self","region", NULL }; | |
11058 | ||
11059 | self = self; | |
11060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_SubtractRegion",_kwnames,&_argo0,&_argo1)) | |
11061 | return NULL; | |
11062 | if (_argo0) { | |
11063 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11064 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
11065 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_SubtractRegion. Expected _wxRegion_p."); | |
11066 | return NULL; | |
11067 | } | |
11068 | } | |
11069 | if (_argo1) { | |
7e50db3f | 11070 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) { |
9416aa89 RD |
11071 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_SubtractRegion. Expected _wxRegion_p."); |
11072 | return NULL; | |
11073 | } | |
11074 | } | |
11075 | { | |
4268f798 | 11076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11077 | _result = (bool )wxRegion_SubtractRegion(_arg0,*_arg1); |
9416aa89 | 11078 | |
4268f798 | 11079 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11080 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
11081 | } _resultobj = Py_BuildValue("i",_result); |
11082 | return _resultobj; | |
11083 | } | |
11084 | ||
11085 | #define wxRegion_Xor(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Xor(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
11086 | static PyObject *_wrap_wxRegion_Xor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11087 | PyObject * _resultobj; | |
11088 | bool _result; | |
11089 | wxRegion * _arg0; | |
7e50db3f RD |
11090 | wxCoord _arg1; |
11091 | wxCoord _arg2; | |
11092 | wxCoord _arg3; | |
11093 | wxCoord _arg4; | |
9416aa89 RD |
11094 | PyObject * _argo0 = 0; |
11095 | char *_kwnames[] = { "self","x","y","width","height", NULL }; | |
11096 | ||
11097 | self = self; | |
7e50db3f | 11098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii:wxRegion_Xor",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) |
9416aa89 RD |
11099 | return NULL; |
11100 | if (_argo0) { | |
11101 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11102 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
11103 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Xor. Expected _wxRegion_p."); | |
11104 | return NULL; | |
11105 | } | |
11106 | } | |
11107 | { | |
4268f798 | 11108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11109 | _result = (bool )wxRegion_Xor(_arg0,_arg1,_arg2,_arg3,_arg4); |
9416aa89 | 11110 | |
4268f798 | 11111 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11112 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
11113 | } _resultobj = Py_BuildValue("i",_result); |
11114 | return _resultobj; | |
11115 | } | |
11116 | ||
11117 | #define wxRegion_XorRect(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0)) | |
11118 | static PyObject *_wrap_wxRegion_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11119 | PyObject * _resultobj; | |
11120 | bool _result; | |
11121 | wxRegion * _arg0; | |
11122 | wxRect * _arg1; | |
11123 | PyObject * _argo0 = 0; | |
11124 | wxRect temp; | |
11125 | PyObject * _obj1 = 0; | |
11126 | char *_kwnames[] = { "self","rect", NULL }; | |
11127 | ||
11128 | self = self; | |
11129 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_XorRect",_kwnames,&_argo0,&_obj1)) | |
11130 | return NULL; | |
11131 | if (_argo0) { | |
11132 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11133 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
11134 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_XorRect. Expected _wxRegion_p."); | |
11135 | return NULL; | |
11136 | } | |
11137 | } | |
11138 | { | |
11139 | _arg1 = &temp; | |
11140 | if (! wxRect_helper(_obj1, &_arg1)) | |
11141 | return NULL; | |
11142 | } | |
11143 | { | |
4268f798 | 11144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11145 | _result = (bool )wxRegion_XorRect(_arg0,*_arg1); |
9416aa89 | 11146 | |
4268f798 | 11147 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11148 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
11149 | } _resultobj = Py_BuildValue("i",_result); |
11150 | return _resultobj; | |
11151 | } | |
11152 | ||
11153 | #define wxRegion_XorRegion(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0)) | |
11154 | static PyObject *_wrap_wxRegion_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11155 | PyObject * _resultobj; | |
11156 | bool _result; | |
11157 | wxRegion * _arg0; | |
11158 | wxRegion * _arg1; | |
11159 | PyObject * _argo0 = 0; | |
11160 | PyObject * _argo1 = 0; | |
11161 | char *_kwnames[] = { "self","region", NULL }; | |
11162 | ||
11163 | self = self; | |
11164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_XorRegion",_kwnames,&_argo0,&_argo1)) | |
11165 | return NULL; | |
11166 | if (_argo0) { | |
11167 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11168 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { | |
11169 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_XorRegion. Expected _wxRegion_p."); | |
11170 | return NULL; | |
11171 | } | |
11172 | } | |
11173 | if (_argo1) { | |
7e50db3f | 11174 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) { |
9416aa89 RD |
11175 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_XorRegion. Expected _wxRegion_p."); |
11176 | return NULL; | |
11177 | } | |
11178 | } | |
11179 | { | |
4268f798 | 11180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11181 | _result = (bool )wxRegion_XorRegion(_arg0,*_arg1); |
9416aa89 | 11182 | |
4268f798 | 11183 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11184 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
11185 | } _resultobj = Py_BuildValue("i",_result); |
11186 | return _resultobj; | |
11187 | } | |
11188 | ||
11189 | static void *SwigwxRegionIteratorTowxObject(void *ptr) { | |
11190 | wxRegionIterator *src; | |
11191 | wxObject *dest; | |
11192 | src = (wxRegionIterator *) ptr; | |
11193 | dest = (wxObject *) src; | |
11194 | return (void *) dest; | |
11195 | } | |
11196 | ||
11197 | #define new_wxRegionIterator(_swigarg0) (new wxRegionIterator(_swigarg0)) | |
11198 | static PyObject *_wrap_new_wxRegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11199 | PyObject * _resultobj; | |
11200 | wxRegionIterator * _result; | |
11201 | wxRegion * _arg0; | |
11202 | PyObject * _argo0 = 0; | |
11203 | char *_kwnames[] = { "region", NULL }; | |
11204 | char _ptemp[128]; | |
11205 | ||
11206 | self = self; | |
11207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxRegionIterator",_kwnames,&_argo0)) | |
11208 | return NULL; | |
11209 | if (_argo0) { | |
7e50db3f | 11210 | if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) { |
9416aa89 RD |
11211 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxRegionIterator. Expected _wxRegion_p."); |
11212 | return NULL; | |
11213 | } | |
11214 | } | |
11215 | { | |
4268f798 | 11216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11217 | _result = (wxRegionIterator *)new_wxRegionIterator(*_arg0); |
9416aa89 | 11218 | |
4268f798 | 11219 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11220 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
11221 | } if (_result) { |
11222 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRegionIterator_p"); | |
11223 | _resultobj = Py_BuildValue("s",_ptemp); | |
11224 | } else { | |
11225 | Py_INCREF(Py_None); | |
11226 | _resultobj = Py_None; | |
11227 | } | |
11228 | return _resultobj; | |
11229 | } | |
11230 | ||
11231 | #define delete_wxRegionIterator(_swigobj) (delete _swigobj) | |
11232 | static PyObject *_wrap_delete_wxRegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11233 | PyObject * _resultobj; | |
11234 | wxRegionIterator * _arg0; | |
11235 | PyObject * _argo0 = 0; | |
11236 | char *_kwnames[] = { "self", NULL }; | |
11237 | ||
11238 | self = self; | |
11239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxRegionIterator",_kwnames,&_argo0)) | |
11240 | return NULL; | |
11241 | if (_argo0) { | |
11242 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11243 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
11244 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxRegionIterator. Expected _wxRegionIterator_p."); | |
11245 | return NULL; | |
11246 | } | |
11247 | } | |
11248 | { | |
4268f798 | 11249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11250 | delete_wxRegionIterator(_arg0); |
9416aa89 | 11251 | |
4268f798 | 11252 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11253 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
11254 | } Py_INCREF(Py_None); |
11255 | _resultobj = Py_None; | |
11256 | return _resultobj; | |
11257 | } | |
11258 | ||
11259 | #define wxRegionIterator_GetX(_swigobj) (_swigobj->GetX()) | |
11260 | static PyObject *_wrap_wxRegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11261 | PyObject * _resultobj; | |
7e50db3f | 11262 | wxCoord _result; |
9416aa89 RD |
11263 | wxRegionIterator * _arg0; |
11264 | PyObject * _argo0 = 0; | |
11265 | char *_kwnames[] = { "self", NULL }; | |
11266 | ||
11267 | self = self; | |
11268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetX",_kwnames,&_argo0)) | |
11269 | return NULL; | |
11270 | if (_argo0) { | |
11271 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11272 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
11273 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetX. Expected _wxRegionIterator_p."); | |
11274 | return NULL; | |
11275 | } | |
11276 | } | |
11277 | { | |
4268f798 | 11278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7e50db3f | 11279 | _result = (wxCoord )wxRegionIterator_GetX(_arg0); |
9416aa89 | 11280 | |
4268f798 | 11281 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11282 | if (PyErr_Occurred()) return NULL; |
7e50db3f | 11283 | } _resultobj = Py_BuildValue("i",_result); |
9416aa89 RD |
11284 | return _resultobj; |
11285 | } | |
11286 | ||
11287 | #define wxRegionIterator_GetY(_swigobj) (_swigobj->GetY()) | |
11288 | static PyObject *_wrap_wxRegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11289 | PyObject * _resultobj; | |
7e50db3f | 11290 | wxCoord _result; |
9416aa89 RD |
11291 | wxRegionIterator * _arg0; |
11292 | PyObject * _argo0 = 0; | |
11293 | char *_kwnames[] = { "self", NULL }; | |
11294 | ||
11295 | self = self; | |
11296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetY",_kwnames,&_argo0)) | |
11297 | return NULL; | |
11298 | if (_argo0) { | |
11299 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11300 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
11301 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetY. Expected _wxRegionIterator_p."); | |
11302 | return NULL; | |
11303 | } | |
11304 | } | |
11305 | { | |
4268f798 | 11306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7e50db3f | 11307 | _result = (wxCoord )wxRegionIterator_GetY(_arg0); |
9416aa89 | 11308 | |
4268f798 | 11309 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11310 | if (PyErr_Occurred()) return NULL; |
7e50db3f | 11311 | } _resultobj = Py_BuildValue("i",_result); |
9416aa89 RD |
11312 | return _resultobj; |
11313 | } | |
11314 | ||
11315 | #define wxRegionIterator_GetW(_swigobj) (_swigobj->GetW()) | |
11316 | static PyObject *_wrap_wxRegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11317 | PyObject * _resultobj; | |
7e50db3f | 11318 | wxCoord _result; |
9416aa89 RD |
11319 | wxRegionIterator * _arg0; |
11320 | PyObject * _argo0 = 0; | |
11321 | char *_kwnames[] = { "self", NULL }; | |
11322 | ||
11323 | self = self; | |
11324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetW",_kwnames,&_argo0)) | |
11325 | return NULL; | |
11326 | if (_argo0) { | |
11327 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11328 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
11329 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetW. Expected _wxRegionIterator_p."); | |
11330 | return NULL; | |
11331 | } | |
11332 | } | |
11333 | { | |
4268f798 | 11334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7e50db3f | 11335 | _result = (wxCoord )wxRegionIterator_GetW(_arg0); |
9416aa89 | 11336 | |
4268f798 | 11337 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11338 | if (PyErr_Occurred()) return NULL; |
7e50db3f | 11339 | } _resultobj = Py_BuildValue("i",_result); |
9416aa89 RD |
11340 | return _resultobj; |
11341 | } | |
11342 | ||
11343 | #define wxRegionIterator_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
11344 | static PyObject *_wrap_wxRegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11345 | PyObject * _resultobj; | |
7e50db3f | 11346 | wxCoord _result; |
9416aa89 RD |
11347 | wxRegionIterator * _arg0; |
11348 | PyObject * _argo0 = 0; | |
11349 | char *_kwnames[] = { "self", NULL }; | |
11350 | ||
11351 | self = self; | |
11352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetWidth",_kwnames,&_argo0)) | |
11353 | return NULL; | |
11354 | if (_argo0) { | |
11355 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11356 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
11357 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetWidth. Expected _wxRegionIterator_p."); | |
11358 | return NULL; | |
11359 | } | |
11360 | } | |
11361 | { | |
4268f798 | 11362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7e50db3f | 11363 | _result = (wxCoord )wxRegionIterator_GetWidth(_arg0); |
9416aa89 | 11364 | |
4268f798 | 11365 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11366 | if (PyErr_Occurred()) return NULL; |
7e50db3f | 11367 | } _resultobj = Py_BuildValue("i",_result); |
9416aa89 RD |
11368 | return _resultobj; |
11369 | } | |
11370 | ||
11371 | #define wxRegionIterator_GetH(_swigobj) (_swigobj->GetH()) | |
11372 | static PyObject *_wrap_wxRegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11373 | PyObject * _resultobj; | |
7e50db3f | 11374 | wxCoord _result; |
9416aa89 RD |
11375 | wxRegionIterator * _arg0; |
11376 | PyObject * _argo0 = 0; | |
11377 | char *_kwnames[] = { "self", NULL }; | |
11378 | ||
11379 | self = self; | |
11380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetH",_kwnames,&_argo0)) | |
11381 | return NULL; | |
11382 | if (_argo0) { | |
11383 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11384 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
11385 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetH. Expected _wxRegionIterator_p."); | |
11386 | return NULL; | |
11387 | } | |
11388 | } | |
11389 | { | |
4268f798 | 11390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7e50db3f | 11391 | _result = (wxCoord )wxRegionIterator_GetH(_arg0); |
9416aa89 | 11392 | |
4268f798 | 11393 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11394 | if (PyErr_Occurred()) return NULL; |
7e50db3f | 11395 | } _resultobj = Py_BuildValue("i",_result); |
9416aa89 RD |
11396 | return _resultobj; |
11397 | } | |
11398 | ||
11399 | #define wxRegionIterator_GetHeight(_swigobj) (_swigobj->GetHeight()) | |
11400 | static PyObject *_wrap_wxRegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11401 | PyObject * _resultobj; | |
7e50db3f | 11402 | wxCoord _result; |
9416aa89 RD |
11403 | wxRegionIterator * _arg0; |
11404 | PyObject * _argo0 = 0; | |
11405 | char *_kwnames[] = { "self", NULL }; | |
11406 | ||
11407 | self = self; | |
11408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetHeight",_kwnames,&_argo0)) | |
11409 | return NULL; | |
11410 | if (_argo0) { | |
11411 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11412 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
11413 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetHeight. Expected _wxRegionIterator_p."); | |
11414 | return NULL; | |
11415 | } | |
11416 | } | |
11417 | { | |
4268f798 | 11418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7e50db3f | 11419 | _result = (wxCoord )wxRegionIterator_GetHeight(_arg0); |
9416aa89 | 11420 | |
4268f798 | 11421 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11422 | if (PyErr_Occurred()) return NULL; |
7e50db3f | 11423 | } _resultobj = Py_BuildValue("i",_result); |
9416aa89 RD |
11424 | return _resultobj; |
11425 | } | |
11426 | ||
11427 | #define wxRegionIterator_GetRect(_swigobj) (_swigobj->GetRect()) | |
11428 | static PyObject *_wrap_wxRegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11429 | PyObject * _resultobj; | |
11430 | wxRect * _result; | |
11431 | wxRegionIterator * _arg0; | |
11432 | PyObject * _argo0 = 0; | |
11433 | char *_kwnames[] = { "self", NULL }; | |
11434 | char _ptemp[128]; | |
11435 | ||
11436 | self = self; | |
11437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetRect",_kwnames,&_argo0)) | |
11438 | return NULL; | |
11439 | if (_argo0) { | |
11440 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11441 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
11442 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetRect. Expected _wxRegionIterator_p."); | |
11443 | return NULL; | |
11444 | } | |
11445 | } | |
11446 | { | |
4268f798 | 11447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11448 | _result = new wxRect (wxRegionIterator_GetRect(_arg0)); |
9416aa89 | 11449 | |
4268f798 | 11450 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11451 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
11452 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); |
11453 | _resultobj = Py_BuildValue("s",_ptemp); | |
11454 | return _resultobj; | |
11455 | } | |
11456 | ||
11457 | #define wxRegionIterator_HaveRects(_swigobj) (_swigobj->HaveRects()) | |
11458 | static PyObject *_wrap_wxRegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11459 | PyObject * _resultobj; | |
11460 | bool _result; | |
11461 | wxRegionIterator * _arg0; | |
11462 | PyObject * _argo0 = 0; | |
11463 | char *_kwnames[] = { "self", NULL }; | |
11464 | ||
11465 | self = self; | |
11466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_HaveRects",_kwnames,&_argo0)) | |
11467 | return NULL; | |
11468 | if (_argo0) { | |
11469 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11470 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
11471 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_HaveRects. Expected _wxRegionIterator_p."); | |
11472 | return NULL; | |
11473 | } | |
11474 | } | |
11475 | { | |
4268f798 | 11476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11477 | _result = (bool )wxRegionIterator_HaveRects(_arg0); |
9416aa89 | 11478 | |
4268f798 | 11479 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11480 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
11481 | } _resultobj = Py_BuildValue("i",_result); |
11482 | return _resultobj; | |
11483 | } | |
11484 | ||
11485 | #define wxRegionIterator_Reset(_swigobj) (_swigobj->Reset()) | |
11486 | static PyObject *_wrap_wxRegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11487 | PyObject * _resultobj; | |
11488 | wxRegionIterator * _arg0; | |
11489 | PyObject * _argo0 = 0; | |
11490 | char *_kwnames[] = { "self", NULL }; | |
11491 | ||
11492 | self = self; | |
11493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_Reset",_kwnames,&_argo0)) | |
11494 | return NULL; | |
11495 | if (_argo0) { | |
11496 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11497 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
11498 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_Reset. Expected _wxRegionIterator_p."); | |
11499 | return NULL; | |
11500 | } | |
11501 | } | |
11502 | { | |
4268f798 | 11503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11504 | wxRegionIterator_Reset(_arg0); |
9416aa89 | 11505 | |
4268f798 | 11506 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11507 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
11508 | } Py_INCREF(Py_None); |
11509 | _resultobj = Py_None; | |
11510 | return _resultobj; | |
11511 | } | |
11512 | ||
11513 | static void wxRegionIterator_Next(wxRegionIterator *self) { | |
11514 | (*self) ++; | |
11515 | } | |
11516 | static PyObject *_wrap_wxRegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11517 | PyObject * _resultobj; | |
11518 | wxRegionIterator * _arg0; | |
11519 | PyObject * _argo0 = 0; | |
11520 | char *_kwnames[] = { "self", NULL }; | |
11521 | ||
11522 | self = self; | |
11523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_Next",_kwnames,&_argo0)) | |
11524 | return NULL; | |
11525 | if (_argo0) { | |
11526 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11527 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) { | |
11528 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_Next. Expected _wxRegionIterator_p."); | |
11529 | return NULL; | |
11530 | } | |
11531 | } | |
11532 | { | |
4268f798 | 11533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11534 | wxRegionIterator_Next(_arg0); |
9416aa89 | 11535 | |
4268f798 | 11536 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11537 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
11538 | } Py_INCREF(Py_None); |
11539 | _resultobj = Py_None; | |
11540 | return _resultobj; | |
11541 | } | |
11542 | ||
8ab979d7 | 11543 | static PyMethodDef gdicMethods[] = { |
9416aa89 RD |
11544 | { "wxRegionIterator_Next", (PyCFunction) _wrap_wxRegionIterator_Next, METH_VARARGS | METH_KEYWORDS }, |
11545 | { "wxRegionIterator_Reset", (PyCFunction) _wrap_wxRegionIterator_Reset, METH_VARARGS | METH_KEYWORDS }, | |
11546 | { "wxRegionIterator_HaveRects", (PyCFunction) _wrap_wxRegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS }, | |
11547 | { "wxRegionIterator_GetRect", (PyCFunction) _wrap_wxRegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
11548 | { "wxRegionIterator_GetHeight", (PyCFunction) _wrap_wxRegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
11549 | { "wxRegionIterator_GetH", (PyCFunction) _wrap_wxRegionIterator_GetH, METH_VARARGS | METH_KEYWORDS }, | |
11550 | { "wxRegionIterator_GetWidth", (PyCFunction) _wrap_wxRegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
11551 | { "wxRegionIterator_GetW", (PyCFunction) _wrap_wxRegionIterator_GetW, METH_VARARGS | METH_KEYWORDS }, | |
11552 | { "wxRegionIterator_GetY", (PyCFunction) _wrap_wxRegionIterator_GetY, METH_VARARGS | METH_KEYWORDS }, | |
11553 | { "wxRegionIterator_GetX", (PyCFunction) _wrap_wxRegionIterator_GetX, METH_VARARGS | METH_KEYWORDS }, | |
11554 | { "delete_wxRegionIterator", (PyCFunction) _wrap_delete_wxRegionIterator, METH_VARARGS | METH_KEYWORDS }, | |
11555 | { "new_wxRegionIterator", (PyCFunction) _wrap_new_wxRegionIterator, METH_VARARGS | METH_KEYWORDS }, | |
11556 | { "wxRegion_XorRegion", (PyCFunction) _wrap_wxRegion_XorRegion, METH_VARARGS | METH_KEYWORDS }, | |
11557 | { "wxRegion_XorRect", (PyCFunction) _wrap_wxRegion_XorRect, METH_VARARGS | METH_KEYWORDS }, | |
11558 | { "wxRegion_Xor", (PyCFunction) _wrap_wxRegion_Xor, METH_VARARGS | METH_KEYWORDS }, | |
11559 | { "wxRegion_SubtractRegion", (PyCFunction) _wrap_wxRegion_SubtractRegion, METH_VARARGS | METH_KEYWORDS }, | |
11560 | { "wxRegion_SubtractRect", (PyCFunction) _wrap_wxRegion_SubtractRect, METH_VARARGS | METH_KEYWORDS }, | |
11561 | { "wxRegion_Subtract", (PyCFunction) _wrap_wxRegion_Subtract, METH_VARARGS | METH_KEYWORDS }, | |
11562 | { "wxRegion_UnionRegion", (PyCFunction) _wrap_wxRegion_UnionRegion, METH_VARARGS | METH_KEYWORDS }, | |
11563 | { "wxRegion_UnionRect", (PyCFunction) _wrap_wxRegion_UnionRect, METH_VARARGS | METH_KEYWORDS }, | |
11564 | { "wxRegion_Union", (PyCFunction) _wrap_wxRegion_Union, METH_VARARGS | METH_KEYWORDS }, | |
11565 | { "wxRegion_IsEmpty", (PyCFunction) _wrap_wxRegion_IsEmpty, METH_VARARGS | METH_KEYWORDS }, | |
11566 | { "wxRegion_IntersectRegion", (PyCFunction) _wrap_wxRegion_IntersectRegion, METH_VARARGS | METH_KEYWORDS }, | |
11567 | { "wxRegion_IntersectRect", (PyCFunction) _wrap_wxRegion_IntersectRect, METH_VARARGS | METH_KEYWORDS }, | |
11568 | { "wxRegion_Intersect", (PyCFunction) _wrap_wxRegion_Intersect, METH_VARARGS | METH_KEYWORDS }, | |
11569 | { "wxRegion_GetBox", (PyCFunction) _wrap_wxRegion_GetBox, METH_VARARGS | METH_KEYWORDS }, | |
11570 | { "wxRegion_ContainsRectDim", (PyCFunction) _wrap_wxRegion_ContainsRectDim, METH_VARARGS | METH_KEYWORDS }, | |
11571 | { "wxRegion_ContainsRect", (PyCFunction) _wrap_wxRegion_ContainsRect, METH_VARARGS | METH_KEYWORDS }, | |
11572 | { "wxRegion_ContainsPoint", (PyCFunction) _wrap_wxRegion_ContainsPoint, METH_VARARGS | METH_KEYWORDS }, | |
11573 | { "wxRegion_Contains", (PyCFunction) _wrap_wxRegion_Contains, METH_VARARGS | METH_KEYWORDS }, | |
23bed520 | 11574 | { "wxRegion_Offset", (PyCFunction) _wrap_wxRegion_Offset, METH_VARARGS | METH_KEYWORDS }, |
9416aa89 RD |
11575 | { "wxRegion_Clear", (PyCFunction) _wrap_wxRegion_Clear, METH_VARARGS | METH_KEYWORDS }, |
11576 | { "delete_wxRegion", (PyCFunction) _wrap_delete_wxRegion, METH_VARARGS | METH_KEYWORDS }, | |
3de0866e | 11577 | { "new_wxRegionFromPoints", (PyCFunction) _wrap_new_wxRegionFromPoints, METH_VARARGS | METH_KEYWORDS }, |
9416aa89 | 11578 | { "new_wxRegion", (PyCFunction) _wrap_new_wxRegion, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 | 11579 | { "wxImageList_GetSize", (PyCFunction) _wrap_wxImageList_GetSize, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 RD |
11580 | { "wxImageList_RemoveAll", (PyCFunction) _wrap_wxImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS }, |
11581 | { "wxImageList_Remove", (PyCFunction) _wrap_wxImageList_Remove, METH_VARARGS | METH_KEYWORDS }, | |
11582 | { "wxImageList_GetImageCount", (PyCFunction) _wrap_wxImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS }, | |
11583 | { "wxImageList_Draw", (PyCFunction) _wrap_wxImageList_Draw, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 RD |
11584 | { "wxImageList_Replace", (PyCFunction) _wrap_wxImageList_Replace, METH_VARARGS | METH_KEYWORDS }, |
11585 | { "wxImageList_AddIcon", (PyCFunction) _wrap_wxImageList_AddIcon, METH_VARARGS | METH_KEYWORDS }, | |
11586 | { "wxImageList_AddWithColourMask", (PyCFunction) _wrap_wxImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS }, | |
11587 | { "wxImageList_Add", (PyCFunction) _wrap_wxImageList_Add, METH_VARARGS | METH_KEYWORDS }, | |
11588 | { "delete_wxImageList", (PyCFunction) _wrap_delete_wxImageList, METH_VARARGS | METH_KEYWORDS }, | |
11589 | { "new_wxImageList", (PyCFunction) _wrap_new_wxImageList, METH_VARARGS | METH_KEYWORDS }, | |
11590 | { "wxPalette_Ok", (PyCFunction) _wrap_wxPalette_Ok, METH_VARARGS | METH_KEYWORDS }, | |
11591 | { "wxPalette_GetRGB", (PyCFunction) _wrap_wxPalette_GetRGB, METH_VARARGS | METH_KEYWORDS }, | |
11592 | { "wxPalette_GetPixel", (PyCFunction) _wrap_wxPalette_GetPixel, METH_VARARGS | METH_KEYWORDS }, | |
11593 | { "delete_wxPalette", (PyCFunction) _wrap_delete_wxPalette, METH_VARARGS | METH_KEYWORDS }, | |
11594 | { "new_wxPalette", (PyCFunction) _wrap_new_wxPalette, METH_VARARGS | METH_KEYWORDS }, | |
11595 | { "wxMetaFileDC_Close", (PyCFunction) _wrap_wxMetaFileDC_Close, METH_VARARGS | METH_KEYWORDS }, | |
11596 | { "new_wxMetaFileDC", (PyCFunction) _wrap_new_wxMetaFileDC, METH_VARARGS | METH_KEYWORDS }, | |
17c0e08c RD |
11597 | { "wxMetaFile_GetFileName", (PyCFunction) _wrap_wxMetaFile_GetFileName, METH_VARARGS | METH_KEYWORDS }, |
11598 | { "wxMetaFile_GetHeight", (PyCFunction) _wrap_wxMetaFile_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
11599 | { "wxMetaFile_GetWidth", (PyCFunction) _wrap_wxMetaFile_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
11600 | { "wxMetaFile_GetSize", (PyCFunction) _wrap_wxMetaFile_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
11601 | { "wxMetaFile_SetClipboard", (PyCFunction) _wrap_wxMetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS }, | |
11602 | { "wxMetaFile_Ok", (PyCFunction) _wrap_wxMetaFile_Ok, METH_VARARGS | METH_KEYWORDS }, | |
11603 | { "delete_wxMetaFile", (PyCFunction) _wrap_delete_wxMetaFile, METH_VARARGS | METH_KEYWORDS }, | |
11604 | { "new_wxMetaFile", (PyCFunction) _wrap_new_wxMetaFile, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 RD |
11605 | { "new_wxWindowDC", (PyCFunction) _wrap_new_wxWindowDC, METH_VARARGS | METH_KEYWORDS }, |
11606 | { "new_wxPaintDC", (PyCFunction) _wrap_new_wxPaintDC, METH_VARARGS | METH_KEYWORDS }, | |
11607 | { "new_wxClientDC", (PyCFunction) _wrap_new_wxClientDC, METH_VARARGS | METH_KEYWORDS }, | |
11608 | { "wxScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_wxScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 | 11609 | { "wxScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_wxScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS }, |
26b9cf27 | 11610 | { "wxScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_wxScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 | 11611 | { "new_wxScreenDC", (PyCFunction) _wrap_new_wxScreenDC, METH_VARARGS | METH_KEYWORDS }, |
e9159fe8 | 11612 | { "new_wxBufferedPaintDC", (PyCFunction) _wrap_new_wxBufferedPaintDC, METH_VARARGS | METH_KEYWORDS }, |
d3bfec74 | 11613 | { "wxBufferedDC_UnMask", (PyCFunction) _wrap_wxBufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS }, |
e9159fe8 RD |
11614 | { "new_wxBufferedDCInternalBuffer", (PyCFunction) _wrap_new_wxBufferedDCInternalBuffer, METH_VARARGS | METH_KEYWORDS }, |
11615 | { "new_wxBufferedDC", (PyCFunction) _wrap_new_wxBufferedDC, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 RD |
11616 | { "wxMemoryDC_SelectObject", (PyCFunction) _wrap_wxMemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS }, |
11617 | { "new_wxMemoryDC", (PyCFunction) _wrap_new_wxMemoryDC, METH_VARARGS | METH_KEYWORDS }, | |
7e50db3f RD |
11618 | { "wxDC__DrawTextList", (PyCFunction) _wrap_wxDC__DrawTextList, METH_VARARGS | METH_KEYWORDS }, |
11619 | { "wxDC__DrawPolygonList", (PyCFunction) _wrap_wxDC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS }, | |
11620 | { "wxDC__DrawEllipseList", (PyCFunction) _wrap_wxDC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS }, | |
11621 | { "wxDC__DrawRectangleList", (PyCFunction) _wrap_wxDC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS }, | |
9d37f964 RD |
11622 | { "wxDC__DrawLineList", (PyCFunction) _wrap_wxDC__DrawLineList, METH_VARARGS | METH_KEYWORDS }, |
11623 | { "wxDC__DrawPointList", (PyCFunction) _wrap_wxDC__DrawPointList, METH_VARARGS | METH_KEYWORDS }, | |
c7e7022c | 11624 | { "wxDC_GetHDC", (PyCFunction) _wrap_wxDC_GetHDC, METH_VARARGS | METH_KEYWORDS }, |
9d37f964 | 11625 | { "wxDC_GetBoundingBox", (PyCFunction) _wrap_wxDC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 BP |
11626 | { "wxDC_ResetBoundingBox", (PyCFunction) _wrap_wxDC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS }, |
11627 | { "wxDC_CalcBoundingBox", (PyCFunction) _wrap_wxDC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS }, | |
eec92d76 RD |
11628 | { "wxDC_SetAxisOrientation", (PyCFunction) _wrap_wxDC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS }, |
11629 | { "wxDC_GetDeviceOrigin", (PyCFunction) _wrap_wxDC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS }, | |
11630 | { "wxDC_SetLogicalOrigin", (PyCFunction) _wrap_wxDC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS }, | |
11631 | { "wxDC_GetLogicalOrigin", (PyCFunction) _wrap_wxDC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS }, | |
11632 | { "wxDC_GetPPI", (PyCFunction) _wrap_wxDC_GetPPI, METH_VARARGS | METH_KEYWORDS }, | |
11633 | { "wxDC_GetDepth", (PyCFunction) _wrap_wxDC_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
11634 | { "wxDC_CanGetTextExtent", (PyCFunction) _wrap_wxDC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
11635 | { "wxDC_CanDrawBitmap", (PyCFunction) _wrap_wxDC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 RD |
11636 | { "wxDC_DrawBitmap", (PyCFunction) _wrap_wxDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS }, |
11637 | { "wxDC_StartPage", (PyCFunction) _wrap_wxDC_StartPage, METH_VARARGS | METH_KEYWORDS }, | |
11638 | { "wxDC_StartDoc", (PyCFunction) _wrap_wxDC_StartDoc, METH_VARARGS | METH_KEYWORDS }, | |
11639 | { "wxDC_SetUserScale", (PyCFunction) _wrap_wxDC_SetUserScale, METH_VARARGS | METH_KEYWORDS }, | |
11640 | { "wxDC_SetTextForeground", (PyCFunction) _wrap_wxDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS }, | |
11641 | { "wxDC_SetTextBackground", (PyCFunction) _wrap_wxDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS }, | |
11642 | { "wxDC_SetPen", (PyCFunction) _wrap_wxDC_SetPen, METH_VARARGS | METH_KEYWORDS }, | |
11643 | { "wxDC_SetOptimization", (PyCFunction) _wrap_wxDC_SetOptimization, METH_VARARGS | METH_KEYWORDS }, | |
11644 | { "wxDC_SetMapMode", (PyCFunction) _wrap_wxDC_SetMapMode, METH_VARARGS | METH_KEYWORDS }, | |
eec92d76 | 11645 | { "wxDC_SetLogicalScale", (PyCFunction) _wrap_wxDC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 RD |
11646 | { "wxDC_SetLogicalFunction", (PyCFunction) _wrap_wxDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS }, |
11647 | { "wxDC_SetFont", (PyCFunction) _wrap_wxDC_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
11648 | { "wxDC_SetBrush", (PyCFunction) _wrap_wxDC_SetBrush, METH_VARARGS | METH_KEYWORDS }, | |
11649 | { "wxDC_SetPalette", (PyCFunction) _wrap_wxDC_SetPalette, METH_VARARGS | METH_KEYWORDS }, | |
efe12e95 | 11650 | { "wxDC_SetClippingRect", (PyCFunction) _wrap_wxDC_SetClippingRect, METH_VARARGS | METH_KEYWORDS }, |
19a97bd6 | 11651 | { "wxDC_SetClippingRegionAsRegion", (PyCFunction) _wrap_wxDC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 RD |
11652 | { "wxDC_SetClippingRegion", (PyCFunction) _wrap_wxDC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS }, |
11653 | { "wxDC_SetBackgroundMode", (PyCFunction) _wrap_wxDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS }, | |
11654 | { "wxDC_SetBackground", (PyCFunction) _wrap_wxDC_SetBackground, METH_VARARGS | METH_KEYWORDS }, | |
11655 | { "wxDC_SetDeviceOrigin", (PyCFunction) _wrap_wxDC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS }, | |
11656 | { "wxDC_Ok", (PyCFunction) _wrap_wxDC_Ok, METH_VARARGS | METH_KEYWORDS }, | |
11657 | { "wxDC_MinY", (PyCFunction) _wrap_wxDC_MinY, METH_VARARGS | METH_KEYWORDS }, | |
11658 | { "wxDC_MinX", (PyCFunction) _wrap_wxDC_MinX, METH_VARARGS | METH_KEYWORDS }, | |
11659 | { "wxDC_MaxY", (PyCFunction) _wrap_wxDC_MaxY, METH_VARARGS | METH_KEYWORDS }, | |
11660 | { "wxDC_MaxX", (PyCFunction) _wrap_wxDC_MaxX, METH_VARARGS | METH_KEYWORDS }, | |
11661 | { "wxDC_LogicalToDeviceYRel", (PyCFunction) _wrap_wxDC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS }, | |
11662 | { "wxDC_LogicalToDeviceY", (PyCFunction) _wrap_wxDC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS }, | |
11663 | { "wxDC_LogicalToDeviceXRel", (PyCFunction) _wrap_wxDC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS }, | |
11664 | { "wxDC_LogicalToDeviceX", (PyCFunction) _wrap_wxDC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS }, | |
eec92d76 | 11665 | { "wxDC_GetUserScale", (PyCFunction) _wrap_wxDC_GetUserScale, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 | 11666 | { "wxDC_GetTextForeground", (PyCFunction) _wrap_wxDC_GetTextForeground, METH_VARARGS | METH_KEYWORDS }, |
7e50db3f | 11667 | { "wxDC_GetMultiLineTextExtent", (PyCFunction) _wrap_wxDC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 RD |
11668 | { "wxDC_GetFullTextExtent", (PyCFunction) _wrap_wxDC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS }, |
11669 | { "wxDC_GetTextExtent", (PyCFunction) _wrap_wxDC_GetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
11670 | { "wxDC_GetTextBackground", (PyCFunction) _wrap_wxDC_GetTextBackground, METH_VARARGS | METH_KEYWORDS }, | |
eec92d76 | 11671 | { "wxDC_GetSizeMM", (PyCFunction) _wrap_wxDC_GetSizeMM, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 RD |
11672 | { "wxDC_GetSize", (PyCFunction) _wrap_wxDC_GetSize, METH_VARARGS | METH_KEYWORDS }, |
11673 | { "wxDC_GetSizeTuple", (PyCFunction) _wrap_wxDC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
11674 | { "wxDC_GetPixel", (PyCFunction) _wrap_wxDC_GetPixel, METH_VARARGS | METH_KEYWORDS }, | |
11675 | { "wxDC_GetPen", (PyCFunction) _wrap_wxDC_GetPen, METH_VARARGS | METH_KEYWORDS }, | |
11676 | { "wxDC_GetOptimization", (PyCFunction) _wrap_wxDC_GetOptimization, METH_VARARGS | METH_KEYWORDS }, | |
11677 | { "wxDC_GetMapMode", (PyCFunction) _wrap_wxDC_GetMapMode, METH_VARARGS | METH_KEYWORDS }, | |
eec92d76 | 11678 | { "wxDC_GetLogicalScale", (PyCFunction) _wrap_wxDC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 RD |
11679 | { "wxDC_GetLogicalFunction", (PyCFunction) _wrap_wxDC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS }, |
11680 | { "wxDC_GetFont", (PyCFunction) _wrap_wxDC_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
11681 | { "wxDC_GetClippingBox", (PyCFunction) _wrap_wxDC_GetClippingBox, METH_VARARGS | METH_KEYWORDS }, | |
11682 | { "wxDC_GetCharWidth", (PyCFunction) _wrap_wxDC_GetCharWidth, METH_VARARGS | METH_KEYWORDS }, | |
11683 | { "wxDC_GetCharHeight", (PyCFunction) _wrap_wxDC_GetCharHeight, METH_VARARGS | METH_KEYWORDS }, | |
11684 | { "wxDC_GetBrush", (PyCFunction) _wrap_wxDC_GetBrush, METH_VARARGS | METH_KEYWORDS }, | |
11685 | { "wxDC_GetBackground", (PyCFunction) _wrap_wxDC_GetBackground, METH_VARARGS | METH_KEYWORDS }, | |
11686 | { "wxDC_FloodFill", (PyCFunction) _wrap_wxDC_FloodFill, METH_VARARGS | METH_KEYWORDS }, | |
11687 | { "wxDC_EndPage", (PyCFunction) _wrap_wxDC_EndPage, METH_VARARGS | METH_KEYWORDS }, | |
11688 | { "wxDC_EndDrawing", (PyCFunction) _wrap_wxDC_EndDrawing, METH_VARARGS | METH_KEYWORDS }, | |
11689 | { "wxDC_EndDoc", (PyCFunction) _wrap_wxDC_EndDoc, METH_VARARGS | METH_KEYWORDS }, | |
11690 | { "wxDC_DrawText", (PyCFunction) _wrap_wxDC_DrawText, METH_VARARGS | METH_KEYWORDS }, | |
11691 | { "wxDC_DrawSpline", (PyCFunction) _wrap_wxDC_DrawSpline, METH_VARARGS | METH_KEYWORDS }, | |
11692 | { "wxDC_DrawRoundedRectangle", (PyCFunction) _wrap_wxDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS }, | |
6999b0d8 | 11693 | { "wxDC_DrawRotatedText", (PyCFunction) _wrap_wxDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS }, |
efe12e95 | 11694 | { "wxDC_DrawRectangleRect", (PyCFunction) _wrap_wxDC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 RD |
11695 | { "wxDC_DrawRectangle", (PyCFunction) _wrap_wxDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS }, |
11696 | { "wxDC_DrawPoint", (PyCFunction) _wrap_wxDC_DrawPoint, METH_VARARGS | METH_KEYWORDS }, | |
11697 | { "wxDC_DrawPolygon", (PyCFunction) _wrap_wxDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS }, | |
11698 | { "wxDC_DrawLines", (PyCFunction) _wrap_wxDC_DrawLines, METH_VARARGS | METH_KEYWORDS }, | |
11699 | { "wxDC_DrawLine", (PyCFunction) _wrap_wxDC_DrawLine, METH_VARARGS | METH_KEYWORDS }, | |
23bed520 RD |
11700 | { "wxDC_DrawImageLabel", (PyCFunction) _wrap_wxDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS }, |
11701 | { "wxDC_DrawLabel", (PyCFunction) _wrap_wxDC_DrawLabel, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 RD |
11702 | { "wxDC_DrawIcon", (PyCFunction) _wrap_wxDC_DrawIcon, METH_VARARGS | METH_KEYWORDS }, |
11703 | { "wxDC_DrawEllipticArc", (PyCFunction) _wrap_wxDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS }, | |
11704 | { "wxDC_DrawEllipse", (PyCFunction) _wrap_wxDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS }, | |
11705 | { "wxDC_DrawCircle", (PyCFunction) _wrap_wxDC_DrawCircle, METH_VARARGS | METH_KEYWORDS }, | |
11706 | { "wxDC_DrawArc", (PyCFunction) _wrap_wxDC_DrawArc, METH_VARARGS | METH_KEYWORDS }, | |
11707 | { "wxDC_DeviceToLogicalYRel", (PyCFunction) _wrap_wxDC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS }, | |
11708 | { "wxDC_DeviceToLogicalY", (PyCFunction) _wrap_wxDC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS }, | |
11709 | { "wxDC_DeviceToLogicalXRel", (PyCFunction) _wrap_wxDC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS }, | |
11710 | { "wxDC_DeviceToLogicalX", (PyCFunction) _wrap_wxDC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS }, | |
11711 | { "wxDC_DestroyClippingRegion", (PyCFunction) _wrap_wxDC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS }, | |
11712 | { "wxDC_CrossHair", (PyCFunction) _wrap_wxDC_CrossHair, METH_VARARGS | METH_KEYWORDS }, | |
11713 | { "wxDC_Clear", (PyCFunction) _wrap_wxDC_Clear, METH_VARARGS | METH_KEYWORDS }, | |
11714 | { "wxDC_Blit", (PyCFunction) _wrap_wxDC_Blit, METH_VARARGS | METH_KEYWORDS }, | |
11715 | { "wxDC_BeginDrawing", (PyCFunction) _wrap_wxDC_BeginDrawing, METH_VARARGS | METH_KEYWORDS }, | |
11716 | { "delete_wxDC", (PyCFunction) _wrap_delete_wxDC, METH_VARARGS | METH_KEYWORDS }, | |
2f4e9287 | 11717 | { "wxBrushList_GetCount", (PyCFunction) _wrap_wxBrushList_GetCount, METH_VARARGS | METH_KEYWORDS }, |
0569df0f RD |
11718 | { "wxBrushList_RemoveBrush", (PyCFunction) _wrap_wxBrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS }, |
11719 | { "wxBrushList_FindOrCreateBrush", (PyCFunction) _wrap_wxBrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS }, | |
11720 | { "wxBrushList_AddBrush", (PyCFunction) _wrap_wxBrushList_AddBrush, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 RD |
11721 | { "wxBrush_SetStyle", (PyCFunction) _wrap_wxBrush_SetStyle, METH_VARARGS | METH_KEYWORDS }, |
11722 | { "wxBrush_SetStipple", (PyCFunction) _wrap_wxBrush_SetStipple, METH_VARARGS | METH_KEYWORDS }, | |
11723 | { "wxBrush_SetColour", (PyCFunction) _wrap_wxBrush_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
11724 | { "wxBrush_Ok", (PyCFunction) _wrap_wxBrush_Ok, METH_VARARGS | METH_KEYWORDS }, | |
11725 | { "wxBrush_GetStyle", (PyCFunction) _wrap_wxBrush_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
11726 | { "wxBrush_GetStipple", (PyCFunction) _wrap_wxBrush_GetStipple, METH_VARARGS | METH_KEYWORDS }, | |
11727 | { "wxBrush_GetColour", (PyCFunction) _wrap_wxBrush_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
0569df0f | 11728 | { "delete_wxBrush", (PyCFunction) _wrap_delete_wxBrush, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 | 11729 | { "new_wxBrush", (PyCFunction) _wrap_new_wxBrush, METH_VARARGS | METH_KEYWORDS }, |
2f4e9287 | 11730 | { "wxPenList_GetCount", (PyCFunction) _wrap_wxPenList_GetCount, METH_VARARGS | METH_KEYWORDS }, |
0569df0f RD |
11731 | { "wxPenList_RemovePen", (PyCFunction) _wrap_wxPenList_RemovePen, METH_VARARGS | METH_KEYWORDS }, |
11732 | { "wxPenList_FindOrCreatePen", (PyCFunction) _wrap_wxPenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS }, | |
11733 | { "wxPenList_AddPen", (PyCFunction) _wrap_wxPenList_AddPen, METH_VARARGS | METH_KEYWORDS }, | |
ecc08ead RD |
11734 | { "wxPyPen_SetDashes", (PyCFunction) _wrap_wxPyPen_SetDashes, METH_VARARGS | METH_KEYWORDS }, |
11735 | { "delete_wxPyPen", (PyCFunction) _wrap_delete_wxPyPen, METH_VARARGS | METH_KEYWORDS }, | |
11736 | { "new_wxPyPen", (PyCFunction) _wrap_new_wxPyPen, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 | 11737 | { "wxPen_SetStipple", (PyCFunction) _wrap_wxPen_SetStipple, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 | 11738 | { "wxPen_GetStipple", (PyCFunction) _wrap_wxPen_GetStipple, METH_VARARGS | METH_KEYWORDS }, |
756ed80c | 11739 | { "wxPen_GetDashes", (PyCFunction) _wrap_wxPen_GetDashes, METH_VARARGS | METH_KEYWORDS }, |
6999b0d8 | 11740 | { "wxPen_SetDashes", (PyCFunction) _wrap_wxPen_SetDashes, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 RD |
11741 | { "wxPen_SetWidth", (PyCFunction) _wrap_wxPen_SetWidth, METH_VARARGS | METH_KEYWORDS }, |
11742 | { "wxPen_SetStyle", (PyCFunction) _wrap_wxPen_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
11743 | { "wxPen_SetJoin", (PyCFunction) _wrap_wxPen_SetJoin, METH_VARARGS | METH_KEYWORDS }, | |
11744 | { "wxPen_SetColour", (PyCFunction) _wrap_wxPen_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
11745 | { "wxPen_SetCap", (PyCFunction) _wrap_wxPen_SetCap, METH_VARARGS | METH_KEYWORDS }, | |
11746 | { "wxPen_Ok", (PyCFunction) _wrap_wxPen_Ok, METH_VARARGS | METH_KEYWORDS }, | |
11747 | { "wxPen_GetWidth", (PyCFunction) _wrap_wxPen_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
11748 | { "wxPen_GetStyle", (PyCFunction) _wrap_wxPen_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
11749 | { "wxPen_GetJoin", (PyCFunction) _wrap_wxPen_GetJoin, METH_VARARGS | METH_KEYWORDS }, | |
11750 | { "wxPen_GetColour", (PyCFunction) _wrap_wxPen_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
11751 | { "wxPen_GetCap", (PyCFunction) _wrap_wxPen_GetCap, METH_VARARGS | METH_KEYWORDS }, | |
0569df0f | 11752 | { "delete_wxPen", (PyCFunction) _wrap_delete_wxPen, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 | 11753 | { "new_wxPen", (PyCFunction) _wrap_new_wxPen, METH_VARARGS | METH_KEYWORDS }, |
0569df0f RD |
11754 | { "wxColourDatabase_Append", (PyCFunction) _wrap_wxColourDatabase_Append, METH_VARARGS | METH_KEYWORDS }, |
11755 | { "wxColourDatabase_FindName", (PyCFunction) _wrap_wxColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS }, | |
11756 | { "wxColourDatabase_FindColour", (PyCFunction) _wrap_wxColourDatabase_FindColour, METH_VARARGS | METH_KEYWORDS }, | |
7e50db3f RD |
11757 | { "wxColour___ne__", (PyCFunction) _wrap_wxColour___ne__, METH_VARARGS | METH_KEYWORDS }, |
11758 | { "wxColour___eq__", (PyCFunction) _wrap_wxColour___eq__, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 RD |
11759 | { "wxColour_Get", (PyCFunction) _wrap_wxColour_Get, METH_VARARGS | METH_KEYWORDS }, |
11760 | { "wxColour_Set", (PyCFunction) _wrap_wxColour_Set, METH_VARARGS | METH_KEYWORDS }, | |
11761 | { "wxColour_Ok", (PyCFunction) _wrap_wxColour_Ok, METH_VARARGS | METH_KEYWORDS }, | |
11762 | { "wxColour_Blue", (PyCFunction) _wrap_wxColour_Blue, METH_VARARGS | METH_KEYWORDS }, | |
11763 | { "wxColour_Green", (PyCFunction) _wrap_wxColour_Green, METH_VARARGS | METH_KEYWORDS }, | |
11764 | { "wxColour_Red", (PyCFunction) _wrap_wxColour_Red, METH_VARARGS | METH_KEYWORDS }, | |
11765 | { "delete_wxColour", (PyCFunction) _wrap_delete_wxColour, METH_VARARGS | METH_KEYWORDS }, | |
11766 | { "new_wxColour", (PyCFunction) _wrap_new_wxColour, METH_VARARGS | METH_KEYWORDS }, | |
9b3d3bc4 RD |
11767 | { "wxCursor_SetSize", (PyCFunction) _wrap_wxCursor_SetSize, METH_VARARGS | METH_KEYWORDS }, |
11768 | { "wxCursor_SetDepth", (PyCFunction) _wrap_wxCursor_SetDepth, METH_VARARGS | METH_KEYWORDS }, | |
11769 | { "wxCursor_SetHeight", (PyCFunction) _wrap_wxCursor_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
11770 | { "wxCursor_SetWidth", (PyCFunction) _wrap_wxCursor_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
11771 | { "wxCursor_GetDepth", (PyCFunction) _wrap_wxCursor_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
11772 | { "wxCursor_GetHeight", (PyCFunction) _wrap_wxCursor_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
11773 | { "wxCursor_GetWidth", (PyCFunction) _wrap_wxCursor_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
11774 | { "wxCursor_Ok", (PyCFunction) _wrap_wxCursor_Ok, METH_VARARGS | METH_KEYWORDS }, | |
11775 | { "wxCursor_SetHandle", (PyCFunction) _wrap_wxCursor_SetHandle, METH_VARARGS | METH_KEYWORDS }, | |
11776 | { "wxCursor_GetHandle", (PyCFunction) _wrap_wxCursor_GetHandle, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 RD |
11777 | { "delete_wxCursor", (PyCFunction) _wrap_delete_wxCursor, METH_VARARGS | METH_KEYWORDS }, |
11778 | { "new_wxCursor", (PyCFunction) _wrap_new_wxCursor, METH_VARARGS | METH_KEYWORDS }, | |
0e9b78ce RD |
11779 | { "wxIconBundle_GetIcon", (PyCFunction) _wrap_wxIconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS }, |
11780 | { "wxIconBundle_AddIconFromFile", (PyCFunction) _wrap_wxIconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS }, | |
11781 | { "wxIconBundle_AddIcon", (PyCFunction) _wrap_wxIconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS }, | |
11782 | { "delete_wxIconBundle", (PyCFunction) _wrap_delete_wxIconBundle, METH_VARARGS | METH_KEYWORDS }, | |
11783 | { "new_wxIconBundleFromIcon", (PyCFunction) _wrap_new_wxIconBundleFromIcon, METH_VARARGS | METH_KEYWORDS }, | |
11784 | { "new_wxIconBundleFromFile", (PyCFunction) _wrap_new_wxIconBundleFromFile, METH_VARARGS | METH_KEYWORDS }, | |
11785 | { "new_wxIconBundle", (PyCFunction) _wrap_new_wxIconBundle, METH_VARARGS | METH_KEYWORDS }, | |
96bfd053 | 11786 | { "wxIcon_CopyFromBitmap", (PyCFunction) _wrap_wxIcon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS }, |
9b3d3bc4 RD |
11787 | { "wxIcon_SetSize", (PyCFunction) _wrap_wxIcon_SetSize, METH_VARARGS | METH_KEYWORDS }, |
11788 | { "wxIcon_SetDepth", (PyCFunction) _wrap_wxIcon_SetDepth, METH_VARARGS | METH_KEYWORDS }, | |
11789 | { "wxIcon_SetHeight", (PyCFunction) _wrap_wxIcon_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
11790 | { "wxIcon_SetWidth", (PyCFunction) _wrap_wxIcon_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
11791 | { "wxIcon_GetDepth", (PyCFunction) _wrap_wxIcon_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
11792 | { "wxIcon_GetHeight", (PyCFunction) _wrap_wxIcon_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
11793 | { "wxIcon_GetWidth", (PyCFunction) _wrap_wxIcon_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
11794 | { "wxIcon_Ok", (PyCFunction) _wrap_wxIcon_Ok, METH_VARARGS | METH_KEYWORDS }, | |
11795 | { "wxIcon_SetHandle", (PyCFunction) _wrap_wxIcon_SetHandle, METH_VARARGS | METH_KEYWORDS }, | |
11796 | { "wxIcon_GetHandle", (PyCFunction) _wrap_wxIcon_GetHandle, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 | 11797 | { "wxIcon_LoadFile", (PyCFunction) _wrap_wxIcon_LoadFile, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 RD |
11798 | { "delete_wxIcon", (PyCFunction) _wrap_delete_wxIcon, METH_VARARGS | METH_KEYWORDS }, |
11799 | { "new_wxIcon", (PyCFunction) _wrap_new_wxIcon, METH_VARARGS | METH_KEYWORDS }, | |
96bfd053 | 11800 | { "wxMask_Destroy", (PyCFunction) _wrap_wxMask_Destroy, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 | 11801 | { "new_wxMask", (PyCFunction) _wrap_new_wxMask, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 BP |
11802 | { "wxBitmap_SetQuality", (PyCFunction) _wrap_wxBitmap_SetQuality, METH_VARARGS | METH_KEYWORDS }, |
11803 | { "wxBitmap_GetQuality", (PyCFunction) _wrap_wxBitmap_GetQuality, METH_VARARGS | METH_KEYWORDS }, | |
11804 | { "wxBitmap_CopyFromCursor", (PyCFunction) _wrap_wxBitmap_CopyFromCursor, METH_VARARGS | METH_KEYWORDS }, | |
11805 | { "wxBitmap_CopyFromIcon", (PyCFunction) _wrap_wxBitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS }, | |
11806 | { "wxBitmap_GetSubBitmap", (PyCFunction) _wrap_wxBitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS }, | |
9b3d3bc4 RD |
11807 | { "wxBitmap_SetSize", (PyCFunction) _wrap_wxBitmap_SetSize, METH_VARARGS | METH_KEYWORDS }, |
11808 | { "wxBitmap_SetDepth", (PyCFunction) _wrap_wxBitmap_SetDepth, METH_VARARGS | METH_KEYWORDS }, | |
11809 | { "wxBitmap_SetHeight", (PyCFunction) _wrap_wxBitmap_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
11810 | { "wxBitmap_SetWidth", (PyCFunction) _wrap_wxBitmap_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
11811 | { "wxBitmap_GetDepth", (PyCFunction) _wrap_wxBitmap_GetDepth, METH_VARARGS | METH_KEYWORDS }, | |
11812 | { "wxBitmap_GetHeight", (PyCFunction) _wrap_wxBitmap_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
11813 | { "wxBitmap_GetWidth", (PyCFunction) _wrap_wxBitmap_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
11814 | { "wxBitmap_Ok", (PyCFunction) _wrap_wxBitmap_Ok, METH_VARARGS | METH_KEYWORDS }, | |
11815 | { "wxBitmap_SetHandle", (PyCFunction) _wrap_wxBitmap_SetHandle, METH_VARARGS | METH_KEYWORDS }, | |
11816 | { "wxBitmap_GetHandle", (PyCFunction) _wrap_wxBitmap_GetHandle, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 RD |
11817 | { "wxBitmap_SetPalette", (PyCFunction) _wrap_wxBitmap_SetPalette, METH_VARARGS | METH_KEYWORDS }, |
11818 | { "wxBitmap_SetMask", (PyCFunction) _wrap_wxBitmap_SetMask, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 | 11819 | { "wxBitmap_SaveFile", (PyCFunction) _wrap_wxBitmap_SaveFile, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 | 11820 | { "wxBitmap_LoadFile", (PyCFunction) _wrap_wxBitmap_LoadFile, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 RD |
11821 | { "wxBitmap_GetMask", (PyCFunction) _wrap_wxBitmap_GetMask, METH_VARARGS | METH_KEYWORDS }, |
11822 | { "wxBitmap_GetPalette", (PyCFunction) _wrap_wxBitmap_GetPalette, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 RD |
11823 | { "delete_wxBitmap", (PyCFunction) _wrap_delete_wxBitmap, METH_VARARGS | METH_KEYWORDS }, |
11824 | { "new_wxBitmap", (PyCFunction) _wrap_new_wxBitmap, METH_VARARGS | METH_KEYWORDS }, | |
9416aa89 RD |
11825 | { "wxGDIObject_IsNull", (PyCFunction) _wrap_wxGDIObject_IsNull, METH_VARARGS | METH_KEYWORDS }, |
11826 | { "wxGDIObject_SetVisible", (PyCFunction) _wrap_wxGDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS }, | |
11827 | { "wxGDIObject_GetVisible", (PyCFunction) _wrap_wxGDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS }, | |
11828 | { "delete_wxGDIObject", (PyCFunction) _wrap_delete_wxGDIObject, METH_VARARGS | METH_KEYWORDS }, | |
11829 | { "new_wxGDIObject", (PyCFunction) _wrap_new_wxGDIObject, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 RD |
11830 | { "wxMemoryDCFromDC", (PyCFunction) _wrap_wxMemoryDCFromDC, METH_VARARGS | METH_KEYWORDS }, |
11831 | { "wxNamedColour", (PyCFunction) _wrap_wxNamedColour, METH_VARARGS | METH_KEYWORDS }, | |
7e50db3f | 11832 | { "wxCursorFromImage", (PyCFunction) _wrap_wxCursorFromImage, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 | 11833 | { "wxStockCursor", (PyCFunction) _wrap_wxStockCursor, METH_VARARGS | METH_KEYWORDS }, |
7248a051 | 11834 | { "wxIconFromBitmap", (PyCFunction) _wrap_wxIconFromBitmap, METH_VARARGS | METH_KEYWORDS }, |
96bfd053 RD |
11835 | { "wxIconFromXPMData", (PyCFunction) _wrap_wxIconFromXPMData, METH_VARARGS | METH_KEYWORDS }, |
11836 | { "wxEmptyIcon", (PyCFunction) _wrap_wxEmptyIcon, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 | 11837 | { "wxMaskColour", (PyCFunction) _wrap_wxMaskColour, METH_VARARGS | METH_KEYWORDS }, |
d56cebe7 | 11838 | { "wxBitmapFromBits", (PyCFunction) _wrap_wxBitmapFromBits, METH_VARARGS | METH_KEYWORDS }, |
96bfd053 RD |
11839 | { "wxBitmapFromIcon", (PyCFunction) _wrap_wxBitmapFromIcon, METH_VARARGS | METH_KEYWORDS }, |
11840 | { "wxBitmapFromXPMData", (PyCFunction) _wrap_wxBitmapFromXPMData, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 | 11841 | { "wxEmptyBitmap", (PyCFunction) _wrap_wxEmptyBitmap, METH_VARARGS | METH_KEYWORDS }, |
8ab979d7 RD |
11842 | { NULL, NULL } |
11843 | }; | |
1d99702e RD |
11844 | #ifdef __cplusplus |
11845 | } | |
11846 | #endif | |
11847 | /* | |
11848 | * This table is used by the pointer type-checker | |
11849 | */ | |
11850 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
1d99702e | 11851 | { "_signed_long","_long",0}, |
b1462dfa | 11852 | { "_wxPrintQuality","_wxCoord",0}, |
1d99702e RD |
11853 | { "_wxPrintQuality","_int",0}, |
11854 | { "_wxPrintQuality","_signed_int",0}, | |
11855 | { "_wxPrintQuality","_unsigned_int",0}, | |
11856 | { "_wxPrintQuality","_wxWindowID",0}, | |
11857 | { "_wxPrintQuality","_uint",0}, | |
11858 | { "_wxPrintQuality","_EBool",0}, | |
11859 | { "_wxPrintQuality","_size_t",0}, | |
c368d904 | 11860 | { "_wxPrintQuality","_time_t",0}, |
ecc08ead | 11861 | { "_wxPen","_wxPyPen",SwigwxPyPenTowxPen}, |
1d99702e | 11862 | { "_byte","_unsigned_char",0}, |
1d99702e RD |
11863 | { "_long","_unsigned_long",0}, |
11864 | { "_long","_signed_long",0}, | |
9416aa89 | 11865 | { "_wxGDIObject","_wxRegion",SwigwxRegionTowxGDIObject}, |
9416aa89 | 11866 | { "_wxGDIObject","_wxPalette",SwigwxPaletteTowxGDIObject}, |
9416aa89 | 11867 | { "_wxGDIObject","_wxBrush",SwigwxBrushTowxGDIObject}, |
ecc08ead | 11868 | { "_wxGDIObject","_wxPyPen",SwigwxPyPenTowxGDIObject}, |
9416aa89 | 11869 | { "_wxGDIObject","_wxPen",SwigwxPenTowxGDIObject}, |
9416aa89 | 11870 | { "_wxGDIObject","_wxCursor",SwigwxCursorTowxGDIObject}, |
9416aa89 | 11871 | { "_wxGDIObject","_wxIcon",SwigwxIconTowxGDIObject}, |
9416aa89 | 11872 | { "_wxGDIObject","_wxBitmap",SwigwxBitmapTowxGDIObject}, |
1d99702e | 11873 | { "_wxDC","_wxMetaFileDC",SwigwxMetaFileDCTowxDC}, |
1d99702e | 11874 | { "_wxDC","_wxWindowDC",SwigwxWindowDCTowxDC}, |
1d99702e | 11875 | { "_wxDC","_wxPaintDC",SwigwxPaintDCTowxDC}, |
1d99702e | 11876 | { "_wxDC","_wxClientDC",SwigwxClientDCTowxDC}, |
1d99702e | 11877 | { "_wxDC","_wxScreenDC",SwigwxScreenDCTowxDC}, |
e9159fe8 RD |
11878 | { "_wxDC","_wxBufferedPaintDC",SwigwxBufferedPaintDCTowxDC}, |
11879 | { "_wxDC","_wxBufferedDC",SwigwxBufferedDCTowxDC}, | |
1d99702e | 11880 | { "_wxDC","_wxMemoryDC",SwigwxMemoryDCTowxDC}, |
b1462dfa | 11881 | { "_size_t","_wxCoord",0}, |
1d99702e | 11882 | { "_size_t","_wxPrintQuality",0}, |
c368d904 | 11883 | { "_size_t","_time_t",0}, |
1d99702e RD |
11884 | { "_size_t","_unsigned_int",0}, |
11885 | { "_size_t","_int",0}, | |
11886 | { "_size_t","_wxWindowID",0}, | |
11887 | { "_size_t","_uint",0}, | |
b1462dfa | 11888 | { "_uint","_wxCoord",0}, |
1d99702e | 11889 | { "_uint","_wxPrintQuality",0}, |
c368d904 | 11890 | { "_uint","_time_t",0}, |
1d99702e RD |
11891 | { "_uint","_size_t",0}, |
11892 | { "_uint","_unsigned_int",0}, | |
11893 | { "_uint","_int",0}, | |
11894 | { "_uint","_wxWindowID",0}, | |
f6bcfd97 | 11895 | { "_wxChar","_char",0}, |
f6bcfd97 | 11896 | { "_char","_wxChar",0}, |
e9159fe8 | 11897 | { "_wxBufferedDC","_wxBufferedPaintDC",SwigwxBufferedPaintDCTowxBufferedDC}, |
6d8b4f8d | 11898 | { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0}, |
b1462dfa | 11899 | { "_EBool","_wxCoord",0}, |
1d99702e RD |
11900 | { "_EBool","_wxPrintQuality",0}, |
11901 | { "_EBool","_signed_int",0}, | |
11902 | { "_EBool","_int",0}, | |
11903 | { "_EBool","_wxWindowID",0}, | |
1d99702e | 11904 | { "_unsigned_long","_long",0}, |
6d8b4f8d | 11905 | { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0}, |
b1462dfa | 11906 | { "_signed_int","_wxCoord",0}, |
1d99702e RD |
11907 | { "_signed_int","_wxPrintQuality",0}, |
11908 | { "_signed_int","_EBool",0}, | |
11909 | { "_signed_int","_wxWindowID",0}, | |
11910 | { "_signed_int","_int",0}, | |
1d99702e RD |
11911 | { "_WXTYPE","_short",0}, |
11912 | { "_WXTYPE","_signed_short",0}, | |
11913 | { "_WXTYPE","_unsigned_short",0}, | |
1d99702e RD |
11914 | { "_unsigned_short","_WXTYPE",0}, |
11915 | { "_unsigned_short","_short",0}, | |
9416aa89 | 11916 | { "_wxObject","_wxRegionIterator",SwigwxRegionIteratorTowxObject}, |
9416aa89 | 11917 | { "_wxObject","_wxRegion",SwigwxRegionTowxObject}, |
9416aa89 | 11918 | { "_wxObject","_wxImageList",SwigwxImageListTowxObject}, |
9416aa89 | 11919 | { "_wxObject","_wxPalette",SwigwxPaletteTowxObject}, |
9416aa89 | 11920 | { "_wxObject","_wxMetaFileDC",SwigwxMetaFileDCTowxObject}, |
17c0e08c | 11921 | { "_wxObject","_wxMetaFile",SwigwxMetaFileTowxObject}, |
9416aa89 | 11922 | { "_wxObject","_wxWindowDC",SwigwxWindowDCTowxObject}, |
9416aa89 | 11923 | { "_wxObject","_wxPaintDC",SwigwxPaintDCTowxObject}, |
9416aa89 | 11924 | { "_wxObject","_wxClientDC",SwigwxClientDCTowxObject}, |
9416aa89 | 11925 | { "_wxObject","_wxScreenDC",SwigwxScreenDCTowxObject}, |
e9159fe8 RD |
11926 | { "_wxObject","_wxBufferedPaintDC",SwigwxBufferedPaintDCTowxObject}, |
11927 | { "_wxObject","_wxBufferedDC",SwigwxBufferedDCTowxObject}, | |
9416aa89 | 11928 | { "_wxObject","_wxMemoryDC",SwigwxMemoryDCTowxObject}, |
9416aa89 | 11929 | { "_wxObject","_wxDC",SwigwxDCTowxObject}, |
6ee2116b | 11930 | { "_wxObject","_wxBrushList",SwigwxBrushListTowxObject}, |
9416aa89 | 11931 | { "_wxObject","_wxBrush",SwigwxBrushTowxObject}, |
9416aa89 | 11932 | { "_wxObject","_wxPenList",SwigwxPenListTowxObject}, |
ecc08ead | 11933 | { "_wxObject","_wxPyPen",SwigwxPyPenTowxObject}, |
9416aa89 | 11934 | { "_wxObject","_wxPen",SwigwxPenTowxObject}, |
9416aa89 | 11935 | { "_wxObject","_wxColourDatabase",SwigwxColourDatabaseTowxObject}, |
9416aa89 | 11936 | { "_wxObject","_wxColour",SwigwxColourTowxObject}, |
9416aa89 | 11937 | { "_wxObject","_wxCursor",SwigwxCursorTowxObject}, |
9416aa89 | 11938 | { "_wxObject","_wxIcon",SwigwxIconTowxObject}, |
9416aa89 | 11939 | { "_wxObject","_wxMask",SwigwxMaskTowxObject}, |
9416aa89 | 11940 | { "_wxObject","_wxBitmap",SwigwxBitmapTowxObject}, |
9416aa89 | 11941 | { "_wxObject","_wxGDIObject",SwigwxGDIObjectTowxObject}, |
1d99702e RD |
11942 | { "_signed_short","_WXTYPE",0}, |
11943 | { "_signed_short","_short",0}, | |
e9159fe8 RD |
11944 | { "_wxMemoryDC","_wxBufferedPaintDC",SwigwxBufferedPaintDCTowxMemoryDC}, |
11945 | { "_wxMemoryDC","_wxBufferedDC",SwigwxBufferedDCTowxMemoryDC}, | |
1d99702e | 11946 | { "_unsigned_char","_byte",0}, |
b1462dfa | 11947 | { "_unsigned_int","_wxCoord",0}, |
1d99702e | 11948 | { "_unsigned_int","_wxPrintQuality",0}, |
c368d904 | 11949 | { "_unsigned_int","_time_t",0}, |
1d99702e RD |
11950 | { "_unsigned_int","_size_t",0}, |
11951 | { "_unsigned_int","_uint",0}, | |
11952 | { "_unsigned_int","_wxWindowID",0}, | |
11953 | { "_unsigned_int","_int",0}, | |
1d99702e RD |
11954 | { "_short","_WXTYPE",0}, |
11955 | { "_short","_unsigned_short",0}, | |
11956 | { "_short","_signed_short",0}, | |
b1462dfa | 11957 | { "_wxWindowID","_wxCoord",0}, |
1d99702e | 11958 | { "_wxWindowID","_wxPrintQuality",0}, |
c368d904 | 11959 | { "_wxWindowID","_time_t",0}, |
1d99702e RD |
11960 | { "_wxWindowID","_size_t",0}, |
11961 | { "_wxWindowID","_EBool",0}, | |
11962 | { "_wxWindowID","_uint",0}, | |
11963 | { "_wxWindowID","_int",0}, | |
11964 | { "_wxWindowID","_signed_int",0}, | |
11965 | { "_wxWindowID","_unsigned_int",0}, | |
b1462dfa | 11966 | { "_int","_wxCoord",0}, |
1d99702e | 11967 | { "_int","_wxPrintQuality",0}, |
c368d904 | 11968 | { "_int","_time_t",0}, |
1d99702e RD |
11969 | { "_int","_size_t",0}, |
11970 | { "_int","_EBool",0}, | |
11971 | { "_int","_uint",0}, | |
11972 | { "_int","_wxWindowID",0}, | |
11973 | { "_int","_unsigned_int",0}, | |
11974 | { "_int","_signed_int",0}, | |
c368d904 RD |
11975 | { "_time_t","_wxCoord",0}, |
11976 | { "_time_t","_wxPrintQuality",0}, | |
11977 | { "_time_t","_unsigned_int",0}, | |
11978 | { "_time_t","_int",0}, | |
11979 | { "_time_t","_wxWindowID",0}, | |
11980 | { "_time_t","_uint",0}, | |
11981 | { "_time_t","_size_t",0}, | |
b1462dfa RD |
11982 | { "_wxCoord","_int",0}, |
11983 | { "_wxCoord","_signed_int",0}, | |
11984 | { "_wxCoord","_unsigned_int",0}, | |
11985 | { "_wxCoord","_wxWindowID",0}, | |
11986 | { "_wxCoord","_uint",0}, | |
11987 | { "_wxCoord","_EBool",0}, | |
11988 | { "_wxCoord","_size_t",0}, | |
c368d904 | 11989 | { "_wxCoord","_time_t",0}, |
b1462dfa | 11990 | { "_wxCoord","_wxPrintQuality",0}, |
1d99702e RD |
11991 | {0,0,0}}; |
11992 | ||
8ab979d7 RD |
11993 | static PyObject *SWIG_globals; |
11994 | #ifdef __cplusplus | |
11995 | extern "C" | |
11996 | #endif | |
1d99702e | 11997 | SWIGEXPORT(void) initgdic() { |
8ab979d7 RD |
11998 | PyObject *m, *d; |
11999 | SWIG_globals = SWIG_newvarlink(); | |
12000 | m = Py_InitModule("gdic", gdicMethods); | |
12001 | d = PyModule_GetDict(m); | |
c5943253 RD |
12002 | PyDict_SetItemString(d,"wxIMAGELIST_DRAW_NORMAL", PyInt_FromLong((long) wxIMAGELIST_DRAW_NORMAL)); |
12003 | PyDict_SetItemString(d,"wxIMAGELIST_DRAW_TRANSPARENT", PyInt_FromLong((long) wxIMAGELIST_DRAW_TRANSPARENT)); | |
12004 | PyDict_SetItemString(d,"wxIMAGELIST_DRAW_SELECTED", PyInt_FromLong((long) wxIMAGELIST_DRAW_SELECTED)); | |
12005 | PyDict_SetItemString(d,"wxIMAGELIST_DRAW_FOCUSED", PyInt_FromLong((long) wxIMAGELIST_DRAW_FOCUSED)); | |
12006 | PyDict_SetItemString(d,"wxIMAGE_LIST_NORMAL", PyInt_FromLong((long) wxIMAGE_LIST_NORMAL)); | |
12007 | PyDict_SetItemString(d,"wxIMAGE_LIST_SMALL", PyInt_FromLong((long) wxIMAGE_LIST_SMALL)); | |
12008 | PyDict_SetItemString(d,"wxIMAGE_LIST_STATE", PyInt_FromLong((long) wxIMAGE_LIST_STATE)); | |
12009 | PyDict_SetItemString(d,"wxOutRegion", PyInt_FromLong((long) wxOutRegion)); | |
12010 | PyDict_SetItemString(d,"wxPartRegion", PyInt_FromLong((long) wxPartRegion)); | |
12011 | PyDict_SetItemString(d,"wxInRegion", PyInt_FromLong((long) wxInRegion)); | |
8ab979d7 RD |
12012 | PyDict_SetItemString(d,"cvar", SWIG_globals); |
12013 | SWIG_addvarlink(SWIG_globals,"wxNORMAL_FONT",_wrap_wxNORMAL_FONT_get, _wrap_wxNORMAL_FONT_set); | |
12014 | SWIG_addvarlink(SWIG_globals,"wxSMALL_FONT",_wrap_wxSMALL_FONT_get, _wrap_wxSMALL_FONT_set); | |
12015 | SWIG_addvarlink(SWIG_globals,"wxITALIC_FONT",_wrap_wxITALIC_FONT_get, _wrap_wxITALIC_FONT_set); | |
12016 | SWIG_addvarlink(SWIG_globals,"wxSWISS_FONT",_wrap_wxSWISS_FONT_get, _wrap_wxSWISS_FONT_set); | |
12017 | SWIG_addvarlink(SWIG_globals,"wxRED_PEN",_wrap_wxRED_PEN_get, _wrap_wxRED_PEN_set); | |
12018 | SWIG_addvarlink(SWIG_globals,"wxCYAN_PEN",_wrap_wxCYAN_PEN_get, _wrap_wxCYAN_PEN_set); | |
12019 | SWIG_addvarlink(SWIG_globals,"wxGREEN_PEN",_wrap_wxGREEN_PEN_get, _wrap_wxGREEN_PEN_set); | |
12020 | SWIG_addvarlink(SWIG_globals,"wxBLACK_PEN",_wrap_wxBLACK_PEN_get, _wrap_wxBLACK_PEN_set); | |
12021 | SWIG_addvarlink(SWIG_globals,"wxWHITE_PEN",_wrap_wxWHITE_PEN_get, _wrap_wxWHITE_PEN_set); | |
12022 | SWIG_addvarlink(SWIG_globals,"wxTRANSPARENT_PEN",_wrap_wxTRANSPARENT_PEN_get, _wrap_wxTRANSPARENT_PEN_set); | |
12023 | SWIG_addvarlink(SWIG_globals,"wxBLACK_DASHED_PEN",_wrap_wxBLACK_DASHED_PEN_get, _wrap_wxBLACK_DASHED_PEN_set); | |
12024 | SWIG_addvarlink(SWIG_globals,"wxGREY_PEN",_wrap_wxGREY_PEN_get, _wrap_wxGREY_PEN_set); | |
12025 | SWIG_addvarlink(SWIG_globals,"wxMEDIUM_GREY_PEN",_wrap_wxMEDIUM_GREY_PEN_get, _wrap_wxMEDIUM_GREY_PEN_set); | |
12026 | SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY_PEN",_wrap_wxLIGHT_GREY_PEN_get, _wrap_wxLIGHT_GREY_PEN_set); | |
12027 | SWIG_addvarlink(SWIG_globals,"wxBLUE_BRUSH",_wrap_wxBLUE_BRUSH_get, _wrap_wxBLUE_BRUSH_set); | |
12028 | SWIG_addvarlink(SWIG_globals,"wxGREEN_BRUSH",_wrap_wxGREEN_BRUSH_get, _wrap_wxGREEN_BRUSH_set); | |
12029 | SWIG_addvarlink(SWIG_globals,"wxWHITE_BRUSH",_wrap_wxWHITE_BRUSH_get, _wrap_wxWHITE_BRUSH_set); | |
12030 | SWIG_addvarlink(SWIG_globals,"wxBLACK_BRUSH",_wrap_wxBLACK_BRUSH_get, _wrap_wxBLACK_BRUSH_set); | |
12031 | SWIG_addvarlink(SWIG_globals,"wxTRANSPARENT_BRUSH",_wrap_wxTRANSPARENT_BRUSH_get, _wrap_wxTRANSPARENT_BRUSH_set); | |
12032 | SWIG_addvarlink(SWIG_globals,"wxCYAN_BRUSH",_wrap_wxCYAN_BRUSH_get, _wrap_wxCYAN_BRUSH_set); | |
12033 | SWIG_addvarlink(SWIG_globals,"wxRED_BRUSH",_wrap_wxRED_BRUSH_get, _wrap_wxRED_BRUSH_set); | |
12034 | SWIG_addvarlink(SWIG_globals,"wxGREY_BRUSH",_wrap_wxGREY_BRUSH_get, _wrap_wxGREY_BRUSH_set); | |
12035 | SWIG_addvarlink(SWIG_globals,"wxMEDIUM_GREY_BRUSH",_wrap_wxMEDIUM_GREY_BRUSH_get, _wrap_wxMEDIUM_GREY_BRUSH_set); | |
12036 | SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY_BRUSH",_wrap_wxLIGHT_GREY_BRUSH_get, _wrap_wxLIGHT_GREY_BRUSH_set); | |
12037 | SWIG_addvarlink(SWIG_globals,"wxBLACK",_wrap_wxBLACK_get, _wrap_wxBLACK_set); | |
12038 | SWIG_addvarlink(SWIG_globals,"wxWHITE",_wrap_wxWHITE_get, _wrap_wxWHITE_set); | |
12039 | SWIG_addvarlink(SWIG_globals,"wxRED",_wrap_wxRED_get, _wrap_wxRED_set); | |
12040 | SWIG_addvarlink(SWIG_globals,"wxBLUE",_wrap_wxBLUE_get, _wrap_wxBLUE_set); | |
12041 | SWIG_addvarlink(SWIG_globals,"wxGREEN",_wrap_wxGREEN_get, _wrap_wxGREEN_set); | |
12042 | SWIG_addvarlink(SWIG_globals,"wxCYAN",_wrap_wxCYAN_get, _wrap_wxCYAN_set); | |
12043 | SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY",_wrap_wxLIGHT_GREY_get, _wrap_wxLIGHT_GREY_set); | |
12044 | SWIG_addvarlink(SWIG_globals,"wxSTANDARD_CURSOR",_wrap_wxSTANDARD_CURSOR_get, _wrap_wxSTANDARD_CURSOR_set); | |
12045 | SWIG_addvarlink(SWIG_globals,"wxHOURGLASS_CURSOR",_wrap_wxHOURGLASS_CURSOR_get, _wrap_wxHOURGLASS_CURSOR_set); | |
12046 | SWIG_addvarlink(SWIG_globals,"wxCROSS_CURSOR",_wrap_wxCROSS_CURSOR_get, _wrap_wxCROSS_CURSOR_set); | |
12047 | SWIG_addvarlink(SWIG_globals,"wxNullBitmap",_wrap_wxNullBitmap_get, _wrap_wxNullBitmap_set); | |
12048 | SWIG_addvarlink(SWIG_globals,"wxNullIcon",_wrap_wxNullIcon_get, _wrap_wxNullIcon_set); | |
12049 | SWIG_addvarlink(SWIG_globals,"wxNullCursor",_wrap_wxNullCursor_get, _wrap_wxNullCursor_set); | |
12050 | SWIG_addvarlink(SWIG_globals,"wxNullPen",_wrap_wxNullPen_get, _wrap_wxNullPen_set); | |
12051 | SWIG_addvarlink(SWIG_globals,"wxNullBrush",_wrap_wxNullBrush_get, _wrap_wxNullBrush_set); | |
12052 | SWIG_addvarlink(SWIG_globals,"wxNullPalette",_wrap_wxNullPalette_get, _wrap_wxNullPalette_set); | |
12053 | SWIG_addvarlink(SWIG_globals,"wxNullFont",_wrap_wxNullFont_get, _wrap_wxNullFont_set); | |
12054 | SWIG_addvarlink(SWIG_globals,"wxNullColour",_wrap_wxNullColour_get, _wrap_wxNullColour_set); | |
0569df0f RD |
12055 | SWIG_addvarlink(SWIG_globals,"wxTheFontList",_wrap_wxTheFontList_get, _wrap_wxTheFontList_set); |
12056 | SWIG_addvarlink(SWIG_globals,"wxThePenList",_wrap_wxThePenList_get, _wrap_wxThePenList_set); | |
12057 | SWIG_addvarlink(SWIG_globals,"wxTheBrushList",_wrap_wxTheBrushList_get, _wrap_wxTheBrushList_set); | |
12058 | SWIG_addvarlink(SWIG_globals,"wxTheColourDatabase",_wrap_wxTheColourDatabase_get, _wrap_wxTheColourDatabase_set); | |
1d99702e RD |
12059 | { |
12060 | int i; | |
12061 | for (i = 0; _swig_mapping[i].n1; i++) | |
12062 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
12063 | } | |
8ab979d7 | 12064 | } |