]>
Commit | Line | Data |
---|---|---|
ab9bc19b | 1 | /* |
2cd2fac8 | 2 | * FILE : src/gtk/image.cpp |
ab9bc19b RD |
3 | * |
4 | * This file was automatically generated by : | |
5 | * Simplified Wrapper and Interface Generator (SWIG) | |
2cd2fac8 | 6 | * Version 1.1 (Build 883) |
ab9bc19b RD |
7 | * |
8 | * Portions Copyright (c) 1995-1998 | |
9 | * The University of Utah and The Regents of the University of California. | |
10 | * Permission is granted to distribute this file in any manner provided | |
11 | * this notice remains intact. | |
12 | * | |
13 | * Do not make changes to this file--changes will be lost! | |
14 | * | |
15 | */ | |
16 | ||
17 | ||
18 | #define SWIGCODE | |
19 | /* Implementation : PYTHON */ | |
20 | ||
21 | #define SWIGPYTHON | |
22 | #include <string.h> | |
23 | #include <stdlib.h> | |
24 | /* Definitions for Windows/Unix exporting */ | |
25 | #if defined(__WIN32__) | |
26 | # if defined(_MSC_VER) | |
2d091820 | 27 | # define SWIGEXPORT(a) __declspec(dllexport) a |
ab9bc19b RD |
28 | # else |
29 | # if defined(__BORLANDC__) | |
c368d904 | 30 | # define SWIGEXPORT(a) a _export |
ab9bc19b | 31 | # else |
c368d904 | 32 | # define SWIGEXPORT(a) a |
ab9bc19b RD |
33 | # endif |
34 | # endif | |
35 | #else | |
c368d904 | 36 | # define SWIGEXPORT(a) a |
ab9bc19b RD |
37 | #endif |
38 | ||
c368d904 RD |
39 | #include "Python.h" |
40 | ||
ab9bc19b RD |
41 | #ifdef __cplusplus |
42 | extern "C" { | |
43 | #endif | |
2cd2fac8 | 44 | |
ab9bc19b RD |
45 | extern void SWIG_MakePtr(char *, void *, char *); |
46 | extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *)); | |
47 | extern char *SWIG_GetPtr(char *, void **, char *); | |
2d091820 | 48 | extern char *SWIG_GetPtrObj(PyObject *, void **, char *); |
ab9bc19b RD |
49 | extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); |
50 | extern PyObject *SWIG_newvarlink(void); | |
51 | #ifdef __cplusplus | |
52 | } | |
53 | #endif | |
ab9bc19b RD |
54 | #define SWIG_init initimagec |
55 | ||
56 | #define SWIG_name "imagec" | |
57 | ||
58 | #include "helpers.h" | |
59 | #include <wx/image.h> | |
60 | ||
61 | static PyObject* l_output_helper(PyObject* target, PyObject* o) { | |
62 | PyObject* o2; | |
2cd2fac8 | 63 | if (!target) { |
ab9bc19b | 64 | target = o; |
2cd2fac8 | 65 | } else if (target == Py_None) { |
ab9bc19b RD |
66 | Py_DECREF(Py_None); |
67 | target = o; | |
2cd2fac8 | 68 | } else { |
ab9bc19b RD |
69 | if (!PyList_Check(target)) { |
70 | o2 = target; | |
71 | target = PyList_New(0); | |
72 | PyList_Append(target, o2); | |
73 | Py_XDECREF(o2); | |
74 | } | |
75 | PyList_Append(target,o); | |
76 | Py_XDECREF(o); | |
77 | } | |
78 | return target; | |
79 | } | |
80 | ||
81 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
82 | PyObject* o2; | |
83 | PyObject* o3; | |
84 | ||
2cd2fac8 | 85 | if (!target) { |
ab9bc19b | 86 | target = o; |
2cd2fac8 | 87 | } else if (target == Py_None) { |
ab9bc19b RD |
88 | Py_DECREF(Py_None); |
89 | target = o; | |
2cd2fac8 | 90 | } else { |
ab9bc19b RD |
91 | if (!PyTuple_Check(target)) { |
92 | o2 = target; | |
93 | target = PyTuple_New(1); | |
94 | PyTuple_SetItem(target, 0, o2); | |
95 | } | |
2cd2fac8 RD |
96 | o3 = PyTuple_New(1); |
97 | PyTuple_SetItem(o3, 0, o); | |
ab9bc19b RD |
98 | |
99 | o2 = target; | |
2cd2fac8 RD |
100 | target = PySequence_Concat(o2, o3); |
101 | Py_DECREF(o2); | |
ab9bc19b RD |
102 | Py_DECREF(o3); |
103 | } | |
104 | return target; | |
105 | } | |
106 | ||
ab9bc19b RD |
107 | static char* wxStringErrorMsg = "string type is required for parameter"; |
108 | ||
109 | wxImage* wxNullImage() { | |
110 | return new wxImage; | |
111 | } | |
112 | ||
113 | wxImage* wxEmptyImage(int width, int height) { | |
114 | return new wxImage(width, height); | |
115 | } | |
116 | ||
117 | wxImage* wxImageFromMime(const wxString& name, const wxString& mimetype) { | |
118 | return new wxImage(name, mimetype); | |
119 | } | |
120 | ||
121 | wxImage* wxImageFromBitmap(const wxBitmap &bitmap) { | |
122 | return new wxImage(bitmap); | |
123 | } | |
124 | ||
125 | void wxImage_AddHandler(wxImageHandler *handler) { | |
126 | wxImage::AddHandler(handler); | |
127 | } | |
2d091820 RD |
128 | #ifdef __cplusplus |
129 | extern "C" { | |
130 | #endif | |
107e4716 | 131 | static PyObject *_wrap_wxNullImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
ab9bc19b RD |
132 | PyObject * _resultobj; |
133 | wxImage * _result; | |
107e4716 | 134 | char *_kwnames[] = { NULL }; |
ab9bc19b RD |
135 | char _ptemp[128]; |
136 | ||
137 | self = self; | |
107e4716 | 138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxNullImage",_kwnames)) |
ab9bc19b RD |
139 | return NULL; |
140 | { | |
141 | wxPy_BEGIN_ALLOW_THREADS; | |
142 | _result = (wxImage *)wxNullImage(); | |
143 | ||
144 | wxPy_END_ALLOW_THREADS; | |
2d091820 RD |
145 | } if (_result) { |
146 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxImage_p"); | |
147 | _resultobj = Py_BuildValue("s",_ptemp); | |
148 | } else { | |
149 | Py_INCREF(Py_None); | |
150 | _resultobj = Py_None; | |
151 | } | |
ab9bc19b RD |
152 | return _resultobj; |
153 | } | |
154 | ||
107e4716 | 155 | static PyObject *_wrap_wxEmptyImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
ab9bc19b RD |
156 | PyObject * _resultobj; |
157 | wxImage * _result; | |
158 | int _arg0; | |
159 | int _arg1; | |
107e4716 | 160 | char *_kwnames[] = { "width","height", NULL }; |
ab9bc19b RD |
161 | char _ptemp[128]; |
162 | ||
163 | self = self; | |
107e4716 | 164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"ii:wxEmptyImage",_kwnames,&_arg0,&_arg1)) |
ab9bc19b RD |
165 | return NULL; |
166 | { | |
167 | wxPy_BEGIN_ALLOW_THREADS; | |
168 | _result = (wxImage *)wxEmptyImage(_arg0,_arg1); | |
169 | ||
170 | wxPy_END_ALLOW_THREADS; | |
2d091820 RD |
171 | } if (_result) { |
172 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxImage_p"); | |
173 | _resultobj = Py_BuildValue("s",_ptemp); | |
174 | } else { | |
175 | Py_INCREF(Py_None); | |
176 | _resultobj = Py_None; | |
177 | } | |
ab9bc19b RD |
178 | return _resultobj; |
179 | } | |
180 | ||
107e4716 | 181 | static PyObject *_wrap_wxImageFromMime(PyObject *self, PyObject *args, PyObject *kwargs) { |
ab9bc19b RD |
182 | PyObject * _resultobj; |
183 | wxImage * _result; | |
184 | wxString * _arg0; | |
185 | wxString * _arg1; | |
186 | PyObject * _obj0 = 0; | |
187 | PyObject * _obj1 = 0; | |
107e4716 | 188 | char *_kwnames[] = { "name","mimetype", NULL }; |
ab9bc19b RD |
189 | char _ptemp[128]; |
190 | ||
191 | self = self; | |
107e4716 | 192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxImageFromMime",_kwnames,&_obj0,&_obj1)) |
ab9bc19b RD |
193 | return NULL; |
194 | { | |
2cd2fac8 RD |
195 | #if PYTHON_API_VERSION >= 1009 |
196 | char* tmpPtr; int tmpSize; | |
197 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
198 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
199 | return NULL; | |
200 | } | |
201 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
202 | return NULL; | |
203 | _arg0 = new wxString(tmpPtr, tmpSize); | |
204 | #else | |
ab9bc19b RD |
205 | if (!PyString_Check(_obj0)) { |
206 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
207 | return NULL; | |
208 | } | |
2cd2fac8 RD |
209 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
210 | #endif | |
ab9bc19b RD |
211 | } |
212 | { | |
2cd2fac8 RD |
213 | #if PYTHON_API_VERSION >= 1009 |
214 | char* tmpPtr; int tmpSize; | |
215 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
216 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
217 | return NULL; | |
218 | } | |
219 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
220 | return NULL; | |
221 | _arg1 = new wxString(tmpPtr, tmpSize); | |
222 | #else | |
ab9bc19b RD |
223 | if (!PyString_Check(_obj1)) { |
224 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
225 | return NULL; | |
226 | } | |
2cd2fac8 RD |
227 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
228 | #endif | |
ab9bc19b RD |
229 | } |
230 | { | |
231 | wxPy_BEGIN_ALLOW_THREADS; | |
232 | _result = (wxImage *)wxImageFromMime(*_arg0,*_arg1); | |
233 | ||
234 | wxPy_END_ALLOW_THREADS; | |
2d091820 RD |
235 | } if (_result) { |
236 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxImage_p"); | |
237 | _resultobj = Py_BuildValue("s",_ptemp); | |
238 | } else { | |
239 | Py_INCREF(Py_None); | |
240 | _resultobj = Py_None; | |
241 | } | |
ab9bc19b RD |
242 | { |
243 | if (_obj0) | |
244 | delete _arg0; | |
245 | } | |
246 | { | |
247 | if (_obj1) | |
248 | delete _arg1; | |
249 | } | |
250 | return _resultobj; | |
251 | } | |
252 | ||
107e4716 | 253 | static PyObject *_wrap_wxImageFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { |
ab9bc19b RD |
254 | PyObject * _resultobj; |
255 | wxImage * _result; | |
256 | wxBitmap * _arg0; | |
2d091820 | 257 | PyObject * _argo0 = 0; |
107e4716 | 258 | char *_kwnames[] = { "bitmap", NULL }; |
ab9bc19b RD |
259 | char _ptemp[128]; |
260 | ||
261 | self = self; | |
107e4716 | 262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageFromBitmap",_kwnames,&_argo0)) |
ab9bc19b | 263 | return NULL; |
2d091820 RD |
264 | if (_argo0) { |
265 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
266 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
ab9bc19b RD |
267 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageFromBitmap. Expected _wxBitmap_p."); |
268 | return NULL; | |
269 | } | |
270 | } | |
271 | { | |
272 | wxPy_BEGIN_ALLOW_THREADS; | |
273 | _result = (wxImage *)wxImageFromBitmap(*_arg0); | |
274 | ||
275 | wxPy_END_ALLOW_THREADS; | |
2d091820 RD |
276 | } if (_result) { |
277 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxImage_p"); | |
278 | _resultobj = Py_BuildValue("s",_ptemp); | |
279 | } else { | |
280 | Py_INCREF(Py_None); | |
281 | _resultobj = Py_None; | |
282 | } | |
ab9bc19b RD |
283 | return _resultobj; |
284 | } | |
285 | ||
107e4716 | 286 | static PyObject *_wrap_wxImage_AddHandler(PyObject *self, PyObject *args, PyObject *kwargs) { |
ab9bc19b RD |
287 | PyObject * _resultobj; |
288 | wxImageHandler * _arg0; | |
2d091820 | 289 | PyObject * _argo0 = 0; |
107e4716 | 290 | char *_kwnames[] = { "handler", NULL }; |
ab9bc19b RD |
291 | |
292 | self = self; | |
107e4716 | 293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImage_AddHandler",_kwnames,&_argo0)) |
ab9bc19b | 294 | return NULL; |
2d091820 RD |
295 | if (_argo0) { |
296 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
297 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageHandler_p")) { | |
ab9bc19b RD |
298 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_AddHandler. Expected _wxImageHandler_p."); |
299 | return NULL; | |
300 | } | |
301 | } | |
302 | { | |
303 | wxPy_BEGIN_ALLOW_THREADS; | |
304 | wxImage_AddHandler(_arg0); | |
305 | ||
306 | wxPy_END_ALLOW_THREADS; | |
307 | } Py_INCREF(Py_None); | |
308 | _resultobj = Py_None; | |
309 | return _resultobj; | |
310 | } | |
311 | ||
bc29c5e0 RD |
312 | static PyObject *_wrap_wxInitAllImageHandlers(PyObject *self, PyObject *args, PyObject *kwargs) { |
313 | PyObject * _resultobj; | |
314 | char *_kwnames[] = { NULL }; | |
315 | ||
316 | self = self; | |
317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxInitAllImageHandlers",_kwnames)) | |
318 | return NULL; | |
319 | { | |
320 | wxPy_BEGIN_ALLOW_THREADS; | |
321 | wxInitAllImageHandlers(); | |
322 | ||
323 | wxPy_END_ALLOW_THREADS; | |
324 | } Py_INCREF(Py_None); | |
325 | _resultobj = Py_None; | |
326 | return _resultobj; | |
327 | } | |
328 | ||
ab9bc19b | 329 | #define wxImageHandler_GetName(_swigobj) (_swigobj->GetName()) |
107e4716 | 330 | static PyObject *_wrap_wxImageHandler_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { |
ab9bc19b RD |
331 | PyObject * _resultobj; |
332 | wxString * _result; | |
333 | wxImageHandler * _arg0; | |
2d091820 | 334 | PyObject * _argo0 = 0; |
107e4716 | 335 | char *_kwnames[] = { "self", NULL }; |
ab9bc19b RD |
336 | |
337 | self = self; | |
107e4716 | 338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageHandler_GetName",_kwnames,&_argo0)) |
ab9bc19b | 339 | return NULL; |
2d091820 RD |
340 | if (_argo0) { |
341 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
342 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageHandler_p")) { | |
ab9bc19b RD |
343 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageHandler_GetName. Expected _wxImageHandler_p."); |
344 | return NULL; | |
345 | } | |
346 | } | |
347 | { | |
348 | wxPy_BEGIN_ALLOW_THREADS; | |
349 | _result = new wxString (wxImageHandler_GetName(_arg0)); | |
350 | ||
351 | wxPy_END_ALLOW_THREADS; | |
352 | }{ | |
e02c03a4 | 353 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
ab9bc19b RD |
354 | } |
355 | { | |
356 | delete _result; | |
357 | } | |
358 | return _resultobj; | |
359 | } | |
360 | ||
361 | #define wxImageHandler_GetExtension(_swigobj) (_swigobj->GetExtension()) | |
107e4716 | 362 | static PyObject *_wrap_wxImageHandler_GetExtension(PyObject *self, PyObject *args, PyObject *kwargs) { |
ab9bc19b RD |
363 | PyObject * _resultobj; |
364 | wxString * _result; | |
365 | wxImageHandler * _arg0; | |
2d091820 | 366 | PyObject * _argo0 = 0; |
107e4716 | 367 | char *_kwnames[] = { "self", NULL }; |
ab9bc19b RD |
368 | |
369 | self = self; | |
107e4716 | 370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageHandler_GetExtension",_kwnames,&_argo0)) |
ab9bc19b | 371 | return NULL; |
2d091820 RD |
372 | if (_argo0) { |
373 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
374 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageHandler_p")) { | |
ab9bc19b RD |
375 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageHandler_GetExtension. Expected _wxImageHandler_p."); |
376 | return NULL; | |
377 | } | |
378 | } | |
379 | { | |
380 | wxPy_BEGIN_ALLOW_THREADS; | |
381 | _result = new wxString (wxImageHandler_GetExtension(_arg0)); | |
382 | ||
383 | wxPy_END_ALLOW_THREADS; | |
384 | }{ | |
e02c03a4 | 385 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
ab9bc19b RD |
386 | } |
387 | { | |
388 | delete _result; | |
389 | } | |
390 | return _resultobj; | |
391 | } | |
392 | ||
393 | #define wxImageHandler_GetType(_swigobj) (_swigobj->GetType()) | |
107e4716 | 394 | static PyObject *_wrap_wxImageHandler_GetType(PyObject *self, PyObject *args, PyObject *kwargs) { |
ab9bc19b RD |
395 | PyObject * _resultobj; |
396 | long _result; | |
397 | wxImageHandler * _arg0; | |
2d091820 | 398 | PyObject * _argo0 = 0; |
107e4716 | 399 | char *_kwnames[] = { "self", NULL }; |
ab9bc19b RD |
400 | |
401 | self = self; | |
107e4716 | 402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageHandler_GetType",_kwnames,&_argo0)) |
ab9bc19b | 403 | return NULL; |
2d091820 RD |
404 | if (_argo0) { |
405 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
406 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageHandler_p")) { | |
ab9bc19b RD |
407 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageHandler_GetType. Expected _wxImageHandler_p."); |
408 | return NULL; | |
409 | } | |
410 | } | |
411 | { | |
412 | wxPy_BEGIN_ALLOW_THREADS; | |
413 | _result = (long )wxImageHandler_GetType(_arg0); | |
414 | ||
415 | wxPy_END_ALLOW_THREADS; | |
416 | } _resultobj = Py_BuildValue("l",_result); | |
417 | return _resultobj; | |
418 | } | |
419 | ||
420 | #define wxImageHandler_GetMimeType(_swigobj) (_swigobj->GetMimeType()) | |
107e4716 | 421 | static PyObject *_wrap_wxImageHandler_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { |
ab9bc19b RD |
422 | PyObject * _resultobj; |
423 | wxString * _result; | |
424 | wxImageHandler * _arg0; | |
2d091820 | 425 | PyObject * _argo0 = 0; |
107e4716 | 426 | char *_kwnames[] = { "self", NULL }; |
ab9bc19b RD |
427 | |
428 | self = self; | |
107e4716 | 429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageHandler_GetMimeType",_kwnames,&_argo0)) |
ab9bc19b | 430 | return NULL; |
2d091820 RD |
431 | if (_argo0) { |
432 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
433 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageHandler_p")) { | |
ab9bc19b RD |
434 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageHandler_GetMimeType. Expected _wxImageHandler_p."); |
435 | return NULL; | |
436 | } | |
437 | } | |
438 | { | |
439 | wxPy_BEGIN_ALLOW_THREADS; | |
440 | _result = new wxString (wxImageHandler_GetMimeType(_arg0)); | |
441 | ||
442 | wxPy_END_ALLOW_THREADS; | |
443 | }{ | |
e02c03a4 | 444 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
ab9bc19b RD |
445 | } |
446 | { | |
447 | delete _result; | |
448 | } | |
449 | return _resultobj; | |
450 | } | |
451 | ||
452 | #define wxImageHandler_SetName(_swigobj,_swigarg0) (_swigobj->SetName(_swigarg0)) | |
107e4716 | 453 | static PyObject *_wrap_wxImageHandler_SetName(PyObject *self, PyObject *args, PyObject *kwargs) { |
ab9bc19b RD |
454 | PyObject * _resultobj; |
455 | wxImageHandler * _arg0; | |
456 | wxString * _arg1; | |
2d091820 | 457 | PyObject * _argo0 = 0; |
ab9bc19b | 458 | PyObject * _obj1 = 0; |
107e4716 | 459 | char *_kwnames[] = { "self","name", NULL }; |
ab9bc19b RD |
460 | |
461 | self = self; | |
107e4716 | 462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxImageHandler_SetName",_kwnames,&_argo0,&_obj1)) |
ab9bc19b | 463 | return NULL; |
2d091820 RD |
464 | if (_argo0) { |
465 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
466 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageHandler_p")) { | |
ab9bc19b RD |
467 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageHandler_SetName. Expected _wxImageHandler_p."); |
468 | return NULL; | |
469 | } | |
470 | } | |
471 | { | |
2cd2fac8 RD |
472 | #if PYTHON_API_VERSION >= 1009 |
473 | char* tmpPtr; int tmpSize; | |
474 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
475 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
476 | return NULL; | |
477 | } | |
478 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
479 | return NULL; | |
480 | _arg1 = new wxString(tmpPtr, tmpSize); | |
481 | #else | |
ab9bc19b RD |
482 | if (!PyString_Check(_obj1)) { |
483 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
484 | return NULL; | |
485 | } | |
2cd2fac8 RD |
486 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
487 | #endif | |
ab9bc19b RD |
488 | } |
489 | { | |
490 | wxPy_BEGIN_ALLOW_THREADS; | |
491 | wxImageHandler_SetName(_arg0,*_arg1); | |
492 | ||
493 | wxPy_END_ALLOW_THREADS; | |
494 | } Py_INCREF(Py_None); | |
495 | _resultobj = Py_None; | |
496 | { | |
497 | if (_obj1) | |
498 | delete _arg1; | |
499 | } | |
500 | return _resultobj; | |
501 | } | |
502 | ||
503 | #define wxImageHandler_SetExtension(_swigobj,_swigarg0) (_swigobj->SetExtension(_swigarg0)) | |
107e4716 | 504 | static PyObject *_wrap_wxImageHandler_SetExtension(PyObject *self, PyObject *args, PyObject *kwargs) { |
ab9bc19b RD |
505 | PyObject * _resultobj; |
506 | wxImageHandler * _arg0; | |
507 | wxString * _arg1; | |
2d091820 | 508 | PyObject * _argo0 = 0; |
ab9bc19b | 509 | PyObject * _obj1 = 0; |
107e4716 | 510 | char *_kwnames[] = { "self","extension", NULL }; |
ab9bc19b RD |
511 | |
512 | self = self; | |
107e4716 | 513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxImageHandler_SetExtension",_kwnames,&_argo0,&_obj1)) |
ab9bc19b | 514 | return NULL; |
2d091820 RD |
515 | if (_argo0) { |
516 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
517 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageHandler_p")) { | |
ab9bc19b RD |
518 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageHandler_SetExtension. Expected _wxImageHandler_p."); |
519 | return NULL; | |
520 | } | |
521 | } | |
522 | { | |
2cd2fac8 RD |
523 | #if PYTHON_API_VERSION >= 1009 |
524 | char* tmpPtr; int tmpSize; | |
525 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
526 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
527 | return NULL; | |
528 | } | |
529 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
530 | return NULL; | |
531 | _arg1 = new wxString(tmpPtr, tmpSize); | |
532 | #else | |
ab9bc19b RD |
533 | if (!PyString_Check(_obj1)) { |
534 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
535 | return NULL; | |
536 | } | |
2cd2fac8 RD |
537 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
538 | #endif | |
ab9bc19b RD |
539 | } |
540 | { | |
541 | wxPy_BEGIN_ALLOW_THREADS; | |
542 | wxImageHandler_SetExtension(_arg0,*_arg1); | |
543 | ||
544 | wxPy_END_ALLOW_THREADS; | |
545 | } Py_INCREF(Py_None); | |
546 | _resultobj = Py_None; | |
547 | { | |
548 | if (_obj1) | |
549 | delete _arg1; | |
550 | } | |
551 | return _resultobj; | |
552 | } | |
553 | ||
554 | #define wxImageHandler_SetType(_swigobj,_swigarg0) (_swigobj->SetType(_swigarg0)) | |
107e4716 | 555 | static PyObject *_wrap_wxImageHandler_SetType(PyObject *self, PyObject *args, PyObject *kwargs) { |
ab9bc19b RD |
556 | PyObject * _resultobj; |
557 | wxImageHandler * _arg0; | |
558 | long _arg1; | |
2d091820 | 559 | PyObject * _argo0 = 0; |
107e4716 | 560 | char *_kwnames[] = { "self","type", NULL }; |
ab9bc19b RD |
561 | |
562 | self = self; | |
107e4716 | 563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxImageHandler_SetType",_kwnames,&_argo0,&_arg1)) |
ab9bc19b | 564 | return NULL; |
2d091820 RD |
565 | if (_argo0) { |
566 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
567 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageHandler_p")) { | |
ab9bc19b RD |
568 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageHandler_SetType. Expected _wxImageHandler_p."); |
569 | return NULL; | |
570 | } | |
571 | } | |
572 | { | |
573 | wxPy_BEGIN_ALLOW_THREADS; | |
574 | wxImageHandler_SetType(_arg0,_arg1); | |
575 | ||
576 | wxPy_END_ALLOW_THREADS; | |
577 | } Py_INCREF(Py_None); | |
578 | _resultobj = Py_None; | |
579 | return _resultobj; | |
580 | } | |
581 | ||
582 | #define wxImageHandler_SetMimeType(_swigobj,_swigarg0) (_swigobj->SetMimeType(_swigarg0)) | |
107e4716 | 583 | static PyObject *_wrap_wxImageHandler_SetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { |
ab9bc19b RD |
584 | PyObject * _resultobj; |
585 | wxImageHandler * _arg0; | |
586 | wxString * _arg1; | |
2d091820 | 587 | PyObject * _argo0 = 0; |
ab9bc19b | 588 | PyObject * _obj1 = 0; |
107e4716 | 589 | char *_kwnames[] = { "self","mimetype", NULL }; |
ab9bc19b RD |
590 | |
591 | self = self; | |
107e4716 | 592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxImageHandler_SetMimeType",_kwnames,&_argo0,&_obj1)) |
ab9bc19b | 593 | return NULL; |
2d091820 RD |
594 | if (_argo0) { |
595 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
596 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageHandler_p")) { | |
ab9bc19b RD |
597 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageHandler_SetMimeType. Expected _wxImageHandler_p."); |
598 | return NULL; | |
599 | } | |
600 | } | |
601 | { | |
2cd2fac8 RD |
602 | #if PYTHON_API_VERSION >= 1009 |
603 | char* tmpPtr; int tmpSize; | |
604 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
605 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
606 | return NULL; | |
607 | } | |
608 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
609 | return NULL; | |
610 | _arg1 = new wxString(tmpPtr, tmpSize); | |
611 | #else | |
ab9bc19b RD |
612 | if (!PyString_Check(_obj1)) { |
613 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
614 | return NULL; | |
615 | } | |
2cd2fac8 RD |
616 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
617 | #endif | |
ab9bc19b RD |
618 | } |
619 | { | |
620 | wxPy_BEGIN_ALLOW_THREADS; | |
621 | wxImageHandler_SetMimeType(_arg0,*_arg1); | |
622 | ||
623 | wxPy_END_ALLOW_THREADS; | |
624 | } Py_INCREF(Py_None); | |
625 | _resultobj = Py_None; | |
626 | { | |
627 | if (_obj1) | |
628 | delete _arg1; | |
629 | } | |
630 | return _resultobj; | |
631 | } | |
632 | ||
633 | static void *SwigwxPNGHandlerTowxImageHandler(void *ptr) { | |
634 | wxPNGHandler *src; | |
635 | wxImageHandler *dest; | |
636 | src = (wxPNGHandler *) ptr; | |
637 | dest = (wxImageHandler *) src; | |
638 | return (void *) dest; | |
639 | } | |
640 | ||
641 | #define new_wxPNGHandler() (new wxPNGHandler()) | |
107e4716 | 642 | static PyObject *_wrap_new_wxPNGHandler(PyObject *self, PyObject *args, PyObject *kwargs) { |
ab9bc19b RD |
643 | PyObject * _resultobj; |
644 | wxPNGHandler * _result; | |
107e4716 | 645 | char *_kwnames[] = { NULL }; |
ab9bc19b RD |
646 | char _ptemp[128]; |
647 | ||
648 | self = self; | |
107e4716 | 649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPNGHandler",_kwnames)) |
ab9bc19b RD |
650 | return NULL; |
651 | { | |
652 | wxPy_BEGIN_ALLOW_THREADS; | |
653 | _result = (wxPNGHandler *)new_wxPNGHandler(); | |
654 | ||
655 | wxPy_END_ALLOW_THREADS; | |
2d091820 RD |
656 | } if (_result) { |
657 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPNGHandler_p"); | |
658 | _resultobj = Py_BuildValue("s",_ptemp); | |
659 | } else { | |
660 | Py_INCREF(Py_None); | |
661 | _resultobj = Py_None; | |
662 | } | |
ab9bc19b RD |
663 | return _resultobj; |
664 | } | |
665 | ||
666 | static void *SwigwxJPEGHandlerTowxImageHandler(void *ptr) { | |
667 | wxJPEGHandler *src; | |
668 | wxImageHandler *dest; | |
669 | src = (wxJPEGHandler *) ptr; | |
670 | dest = (wxImageHandler *) src; | |
671 | return (void *) dest; | |
672 | } | |
673 | ||
674 | #define new_wxJPEGHandler() (new wxJPEGHandler()) | |
107e4716 | 675 | static PyObject *_wrap_new_wxJPEGHandler(PyObject *self, PyObject *args, PyObject *kwargs) { |
ab9bc19b RD |
676 | PyObject * _resultobj; |
677 | wxJPEGHandler * _result; | |
107e4716 | 678 | char *_kwnames[] = { NULL }; |
ab9bc19b RD |
679 | char _ptemp[128]; |
680 | ||
681 | self = self; | |
107e4716 | 682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxJPEGHandler",_kwnames)) |
ab9bc19b RD |
683 | return NULL; |
684 | { | |
685 | wxPy_BEGIN_ALLOW_THREADS; | |
686 | _result = (wxJPEGHandler *)new_wxJPEGHandler(); | |
687 | ||
688 | wxPy_END_ALLOW_THREADS; | |
2d091820 RD |
689 | } if (_result) { |
690 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxJPEGHandler_p"); | |
691 | _resultobj = Py_BuildValue("s",_ptemp); | |
692 | } else { | |
693 | Py_INCREF(Py_None); | |
694 | _resultobj = Py_None; | |
695 | } | |
ab9bc19b RD |
696 | return _resultobj; |
697 | } | |
698 | ||
699 | static void *SwigwxBMPHandlerTowxImageHandler(void *ptr) { | |
700 | wxBMPHandler *src; | |
701 | wxImageHandler *dest; | |
702 | src = (wxBMPHandler *) ptr; | |
703 | dest = (wxImageHandler *) src; | |
704 | return (void *) dest; | |
705 | } | |
706 | ||
707 | #define new_wxBMPHandler() (new wxBMPHandler()) | |
107e4716 | 708 | static PyObject *_wrap_new_wxBMPHandler(PyObject *self, PyObject *args, PyObject *kwargs) { |
ab9bc19b RD |
709 | PyObject * _resultobj; |
710 | wxBMPHandler * _result; | |
107e4716 | 711 | char *_kwnames[] = { NULL }; |
ab9bc19b RD |
712 | char _ptemp[128]; |
713 | ||
714 | self = self; | |
107e4716 | 715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxBMPHandler",_kwnames)) |
ab9bc19b RD |
716 | return NULL; |
717 | { | |
718 | wxPy_BEGIN_ALLOW_THREADS; | |
719 | _result = (wxBMPHandler *)new_wxBMPHandler(); | |
720 | ||
721 | wxPy_END_ALLOW_THREADS; | |
2d091820 RD |
722 | } if (_result) { |
723 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBMPHandler_p"); | |
724 | _resultobj = Py_BuildValue("s",_ptemp); | |
725 | } else { | |
726 | Py_INCREF(Py_None); | |
727 | _resultobj = Py_None; | |
728 | } | |
ab9bc19b RD |
729 | return _resultobj; |
730 | } | |
731 | ||
732 | static void *SwigwxGIFHandlerTowxImageHandler(void *ptr) { | |
733 | wxGIFHandler *src; | |
734 | wxImageHandler *dest; | |
735 | src = (wxGIFHandler *) ptr; | |
736 | dest = (wxImageHandler *) src; | |
737 | return (void *) dest; | |
738 | } | |
739 | ||
740 | #define new_wxGIFHandler() (new wxGIFHandler()) | |
107e4716 | 741 | static PyObject *_wrap_new_wxGIFHandler(PyObject *self, PyObject *args, PyObject *kwargs) { |
ab9bc19b RD |
742 | PyObject * _resultobj; |
743 | wxGIFHandler * _result; | |
107e4716 | 744 | char *_kwnames[] = { NULL }; |
ab9bc19b RD |
745 | char _ptemp[128]; |
746 | ||
747 | self = self; | |
107e4716 | 748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxGIFHandler",_kwnames)) |
ab9bc19b RD |
749 | return NULL; |
750 | { | |
751 | wxPy_BEGIN_ALLOW_THREADS; | |
752 | _result = (wxGIFHandler *)new_wxGIFHandler(); | |
753 | ||
754 | wxPy_END_ALLOW_THREADS; | |
2d091820 RD |
755 | } if (_result) { |
756 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGIFHandler_p"); | |
757 | _resultobj = Py_BuildValue("s",_ptemp); | |
758 | } else { | |
759 | Py_INCREF(Py_None); | |
760 | _resultobj = Py_None; | |
761 | } | |
ab9bc19b RD |
762 | return _resultobj; |
763 | } | |
764 | ||
bc29c5e0 RD |
765 | static void *SwigwxPNMHandlerTowxImageHandler(void *ptr) { |
766 | wxPNMHandler *src; | |
767 | wxImageHandler *dest; | |
768 | src = (wxPNMHandler *) ptr; | |
769 | dest = (wxImageHandler *) src; | |
770 | return (void *) dest; | |
771 | } | |
772 | ||
773 | #define new_wxPNMHandler() (new wxPNMHandler()) | |
774 | static PyObject *_wrap_new_wxPNMHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
775 | PyObject * _resultobj; | |
776 | wxPNMHandler * _result; | |
777 | char *_kwnames[] = { NULL }; | |
778 | char _ptemp[128]; | |
779 | ||
780 | self = self; | |
781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPNMHandler",_kwnames)) | |
782 | return NULL; | |
783 | { | |
784 | wxPy_BEGIN_ALLOW_THREADS; | |
785 | _result = (wxPNMHandler *)new_wxPNMHandler(); | |
786 | ||
787 | wxPy_END_ALLOW_THREADS; | |
788 | } if (_result) { | |
789 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPNMHandler_p"); | |
790 | _resultobj = Py_BuildValue("s",_ptemp); | |
791 | } else { | |
792 | Py_INCREF(Py_None); | |
793 | _resultobj = Py_None; | |
794 | } | |
795 | return _resultobj; | |
796 | } | |
797 | ||
798 | static void *SwigwxPCXHandlerTowxImageHandler(void *ptr) { | |
799 | wxPCXHandler *src; | |
800 | wxImageHandler *dest; | |
801 | src = (wxPCXHandler *) ptr; | |
802 | dest = (wxImageHandler *) src; | |
803 | return (void *) dest; | |
804 | } | |
805 | ||
806 | #define new_wxPCXHandler() (new wxPCXHandler()) | |
807 | static PyObject *_wrap_new_wxPCXHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
808 | PyObject * _resultobj; | |
809 | wxPCXHandler * _result; | |
810 | char *_kwnames[] = { NULL }; | |
811 | char _ptemp[128]; | |
812 | ||
813 | self = self; | |
814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPCXHandler",_kwnames)) | |
815 | return NULL; | |
816 | { | |
817 | wxPy_BEGIN_ALLOW_THREADS; | |
818 | _result = (wxPCXHandler *)new_wxPCXHandler(); | |
819 | ||
820 | wxPy_END_ALLOW_THREADS; | |
821 | } if (_result) { | |
822 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPCXHandler_p"); | |
823 | _resultobj = Py_BuildValue("s",_ptemp); | |
824 | } else { | |
825 | Py_INCREF(Py_None); | |
826 | _resultobj = Py_None; | |
827 | } | |
828 | return _resultobj; | |
829 | } | |
830 | ||
ab2208b5 RD |
831 | static void *SwigwxTIFFHandlerTowxImageHandler(void *ptr) { |
832 | wxTIFFHandler *src; | |
833 | wxImageHandler *dest; | |
834 | src = (wxTIFFHandler *) ptr; | |
835 | dest = (wxImageHandler *) src; | |
836 | return (void *) dest; | |
837 | } | |
838 | ||
839 | #define new_wxTIFFHandler() (new wxTIFFHandler()) | |
840 | static PyObject *_wrap_new_wxTIFFHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
841 | PyObject * _resultobj; | |
842 | wxTIFFHandler * _result; | |
843 | char *_kwnames[] = { NULL }; | |
844 | char _ptemp[128]; | |
845 | ||
846 | self = self; | |
847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxTIFFHandler",_kwnames)) | |
848 | return NULL; | |
849 | { | |
850 | wxPy_BEGIN_ALLOW_THREADS; | |
851 | _result = (wxTIFFHandler *)new_wxTIFFHandler(); | |
852 | ||
853 | wxPy_END_ALLOW_THREADS; | |
854 | } if (_result) { | |
855 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTIFFHandler_p"); | |
856 | _resultobj = Py_BuildValue("s",_ptemp); | |
857 | } else { | |
858 | Py_INCREF(Py_None); | |
859 | _resultobj = Py_None; | |
860 | } | |
861 | return _resultobj; | |
862 | } | |
863 | ||
ab9bc19b | 864 | #define new_wxImage(_swigarg0,_swigarg1) (new wxImage(_swigarg0,_swigarg1)) |
107e4716 | 865 | static PyObject *_wrap_new_wxImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
ab9bc19b RD |
866 | PyObject * _resultobj; |
867 | wxImage * _result; | |
868 | wxString * _arg0; | |
f6bcfd97 | 869 | long _arg1 = (long ) wxBITMAP_TYPE_ANY; |
ab9bc19b | 870 | PyObject * _obj0 = 0; |
107e4716 | 871 | char *_kwnames[] = { "name","type", NULL }; |
ab9bc19b RD |
872 | char _ptemp[128]; |
873 | ||
874 | self = self; | |
107e4716 | 875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|l:new_wxImage",_kwnames,&_obj0,&_arg1)) |
ab9bc19b RD |
876 | return NULL; |
877 | { | |
2cd2fac8 RD |
878 | #if PYTHON_API_VERSION >= 1009 |
879 | char* tmpPtr; int tmpSize; | |
880 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
881 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
882 | return NULL; | |
883 | } | |
884 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
885 | return NULL; | |
886 | _arg0 = new wxString(tmpPtr, tmpSize); | |
887 | #else | |
ab9bc19b RD |
888 | if (!PyString_Check(_obj0)) { |
889 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
890 | return NULL; | |
891 | } | |
2cd2fac8 RD |
892 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
893 | #endif | |
ab9bc19b RD |
894 | } |
895 | { | |
896 | wxPy_BEGIN_ALLOW_THREADS; | |
897 | _result = (wxImage *)new_wxImage(*_arg0,_arg1); | |
898 | ||
899 | wxPy_END_ALLOW_THREADS; | |
2d091820 RD |
900 | } if (_result) { |
901 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxImage_p"); | |
902 | _resultobj = Py_BuildValue("s",_ptemp); | |
903 | } else { | |
904 | Py_INCREF(Py_None); | |
905 | _resultobj = Py_None; | |
906 | } | |
ab9bc19b RD |
907 | { |
908 | if (_obj0) | |
909 | delete _arg0; | |
910 | } | |
911 | return _resultobj; | |
912 | } | |
913 | ||
914 | #define delete_wxImage(_swigobj) (delete _swigobj) | |
107e4716 | 915 | static PyObject *_wrap_delete_wxImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
ab9bc19b RD |
916 | PyObject * _resultobj; |
917 | wxImage * _arg0; | |
2d091820 | 918 | PyObject * _argo0 = 0; |
107e4716 | 919 | char *_kwnames[] = { "self", NULL }; |
ab9bc19b RD |
920 | |
921 | self = self; | |
107e4716 | 922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxImage",_kwnames,&_argo0)) |
ab9bc19b | 923 | return NULL; |
2d091820 RD |
924 | if (_argo0) { |
925 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
926 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) { | |
ab9bc19b RD |
927 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxImage. Expected _wxImage_p."); |
928 | return NULL; | |
929 | } | |
930 | } | |
931 | { | |
932 | wxPy_BEGIN_ALLOW_THREADS; | |
933 | delete_wxImage(_arg0); | |
934 | ||
935 | wxPy_END_ALLOW_THREADS; | |
936 | } Py_INCREF(Py_None); | |
937 | _resultobj = Py_None; | |
938 | return _resultobj; | |
939 | } | |
940 | ||
941 | #define wxImage_ConvertToBitmap(_swigobj) (_swigobj->ConvertToBitmap()) | |
107e4716 | 942 | static PyObject *_wrap_wxImage_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { |
ab9bc19b RD |
943 | PyObject * _resultobj; |
944 | wxBitmap * _result; | |
945 | wxImage * _arg0; | |
2d091820 | 946 | PyObject * _argo0 = 0; |
107e4716 | 947 | char *_kwnames[] = { "self", NULL }; |
ab9bc19b RD |
948 | char _ptemp[128]; |
949 | ||
950 | self = self; | |
107e4716 | 951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImage_ConvertToBitmap",_kwnames,&_argo0)) |
ab9bc19b | 952 | return NULL; |
2d091820 RD |
953 | if (_argo0) { |
954 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
955 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) { | |
ab9bc19b RD |
956 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_ConvertToBitmap. Expected _wxImage_p."); |
957 | return NULL; | |
958 | } | |
959 | } | |
960 | { | |
961 | wxPy_BEGIN_ALLOW_THREADS; | |
962 | _result = new wxBitmap (wxImage_ConvertToBitmap(_arg0)); | |
963 | ||
964 | wxPy_END_ALLOW_THREADS; | |
965 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); | |
966 | _resultobj = Py_BuildValue("s",_ptemp); | |
967 | return _resultobj; | |
968 | } | |
969 | ||
970 | #define wxImage_Create(_swigobj,_swigarg0,_swigarg1) (_swigobj->Create(_swigarg0,_swigarg1)) | |
107e4716 | 971 | static PyObject *_wrap_wxImage_Create(PyObject *self, PyObject *args, PyObject *kwargs) { |
ab9bc19b RD |
972 | PyObject * _resultobj; |
973 | wxImage * _arg0; | |
974 | int _arg1; | |
975 | int _arg2; | |
2d091820 | 976 | PyObject * _argo0 = 0; |
107e4716 | 977 | char *_kwnames[] = { "self","width","height", NULL }; |
ab9bc19b RD |
978 | |
979 | self = self; | |
107e4716 | 980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxImage_Create",_kwnames,&_argo0,&_arg1,&_arg2)) |
ab9bc19b | 981 | return NULL; |
2d091820 RD |
982 | if (_argo0) { |
983 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
984 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) { | |
ab9bc19b RD |
985 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_Create. Expected _wxImage_p."); |
986 | return NULL; | |
987 | } | |
988 | } | |
989 | { | |
990 | wxPy_BEGIN_ALLOW_THREADS; | |
991 | wxImage_Create(_arg0,_arg1,_arg2); | |
992 | ||
993 | wxPy_END_ALLOW_THREADS; | |
994 | } Py_INCREF(Py_None); | |
995 | _resultobj = Py_None; | |
996 | return _resultobj; | |
997 | } | |
998 | ||
999 | #define wxImage_Destroy(_swigobj) (_swigobj->Destroy()) | |
107e4716 | 1000 | static PyObject *_wrap_wxImage_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { |
ab9bc19b RD |
1001 | PyObject * _resultobj; |
1002 | wxImage * _arg0; | |
2d091820 | 1003 | PyObject * _argo0 = 0; |
107e4716 | 1004 | char *_kwnames[] = { "self", NULL }; |
ab9bc19b RD |
1005 | |
1006 | self = self; | |
107e4716 | 1007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImage_Destroy",_kwnames,&_argo0)) |
ab9bc19b | 1008 | return NULL; |
2d091820 RD |
1009 | if (_argo0) { |
1010 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1011 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) { | |
ab9bc19b RD |
1012 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_Destroy. Expected _wxImage_p."); |
1013 | return NULL; | |
1014 | } | |
1015 | } | |
1016 | { | |
1017 | wxPy_BEGIN_ALLOW_THREADS; | |
1018 | wxImage_Destroy(_arg0); | |
1019 | ||
1020 | wxPy_END_ALLOW_THREADS; | |
1021 | } Py_INCREF(Py_None); | |
1022 | _resultobj = Py_None; | |
1023 | return _resultobj; | |
1024 | } | |
1025 | ||
1026 | #define wxImage_Scale(_swigobj,_swigarg0,_swigarg1) (_swigobj->Scale(_swigarg0,_swigarg1)) | |
107e4716 | 1027 | static PyObject *_wrap_wxImage_Scale(PyObject *self, PyObject *args, PyObject *kwargs) { |
ab9bc19b RD |
1028 | PyObject * _resultobj; |
1029 | wxImage * _result; | |
1030 | wxImage * _arg0; | |
1031 | int _arg1; | |
1032 | int _arg2; | |
2d091820 | 1033 | PyObject * _argo0 = 0; |
107e4716 | 1034 | char *_kwnames[] = { "self","width","height", NULL }; |
ab9bc19b RD |
1035 | char _ptemp[128]; |
1036 | ||
1037 | self = self; | |
107e4716 | 1038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxImage_Scale",_kwnames,&_argo0,&_arg1,&_arg2)) |
ab9bc19b | 1039 | return NULL; |
2d091820 RD |
1040 | if (_argo0) { |
1041 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1042 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) { | |
ab9bc19b RD |
1043 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_Scale. Expected _wxImage_p."); |
1044 | return NULL; | |
1045 | } | |
1046 | } | |
1047 | { | |
1048 | wxPy_BEGIN_ALLOW_THREADS; | |
1049 | _result = new wxImage (wxImage_Scale(_arg0,_arg1,_arg2)); | |
1050 | ||
1051 | wxPy_END_ALLOW_THREADS; | |
1052 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxImage_p"); | |
1053 | _resultobj = Py_BuildValue("s",_ptemp); | |
1054 | return _resultobj; | |
1055 | } | |
1056 | ||
8bf5d46e | 1057 | #define wxImage_Rescale(_swigobj,_swigarg0,_swigarg1) (_swigobj->Rescale(_swigarg0,_swigarg1)) |
107e4716 | 1058 | static PyObject *_wrap_wxImage_Rescale(PyObject *self, PyObject *args, PyObject *kwargs) { |
8bf5d46e | 1059 | PyObject * _resultobj; |
f6bcfd97 | 1060 | wxImage * _result; |
8bf5d46e RD |
1061 | wxImage * _arg0; |
1062 | int _arg1; | |
1063 | int _arg2; | |
2d091820 | 1064 | PyObject * _argo0 = 0; |
107e4716 | 1065 | char *_kwnames[] = { "self","width","height", NULL }; |
f6bcfd97 | 1066 | char _ptemp[128]; |
8bf5d46e RD |
1067 | |
1068 | self = self; | |
107e4716 | 1069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxImage_Rescale",_kwnames,&_argo0,&_arg1,&_arg2)) |
8bf5d46e | 1070 | return NULL; |
2d091820 RD |
1071 | if (_argo0) { |
1072 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1073 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) { | |
8bf5d46e RD |
1074 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_Rescale. Expected _wxImage_p."); |
1075 | return NULL; | |
1076 | } | |
1077 | } | |
1078 | { | |
1079 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 BP |
1080 | wxImage & _result_ref = wxImage_Rescale(_arg0,_arg1,_arg2); |
1081 | _result = (wxImage *) &_result_ref; | |
8bf5d46e RD |
1082 | |
1083 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 BP |
1084 | } if (_result) { |
1085 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxImage_p"); | |
1086 | _resultobj = Py_BuildValue("s",_ptemp); | |
1087 | } else { | |
1088 | Py_INCREF(Py_None); | |
1089 | _resultobj = Py_None; | |
1090 | } | |
8bf5d46e RD |
1091 | return _resultobj; |
1092 | } | |
1093 | ||
ab9bc19b | 1094 | #define wxImage_SetRGB(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetRGB(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
107e4716 | 1095 | static PyObject *_wrap_wxImage_SetRGB(PyObject *self, PyObject *args, PyObject *kwargs) { |
ab9bc19b RD |
1096 | PyObject * _resultobj; |
1097 | wxImage * _arg0; | |
1098 | int _arg1; | |
1099 | int _arg2; | |
1100 | unsigned char _arg3; | |
1101 | unsigned char _arg4; | |
1102 | unsigned char _arg5; | |
2d091820 | 1103 | PyObject * _argo0 = 0; |
107e4716 | 1104 | char *_kwnames[] = { "self","x","y","r","g","b", NULL }; |
ab9bc19b RD |
1105 | |
1106 | self = self; | |
107e4716 | 1107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiibbb:wxImage_SetRGB",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5)) |
ab9bc19b | 1108 | return NULL; |
2d091820 RD |
1109 | if (_argo0) { |
1110 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1111 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) { | |
ab9bc19b RD |
1112 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_SetRGB. Expected _wxImage_p."); |
1113 | return NULL; | |
1114 | } | |
1115 | } | |
1116 | { | |
1117 | wxPy_BEGIN_ALLOW_THREADS; | |
1118 | wxImage_SetRGB(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); | |
1119 | ||
1120 | wxPy_END_ALLOW_THREADS; | |
1121 | } Py_INCREF(Py_None); | |
1122 | _resultobj = Py_None; | |
1123 | return _resultobj; | |
1124 | } | |
1125 | ||
1126 | #define wxImage_GetRed(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetRed(_swigarg0,_swigarg1)) | |
107e4716 | 1127 | static PyObject *_wrap_wxImage_GetRed(PyObject *self, PyObject *args, PyObject *kwargs) { |
ab9bc19b RD |
1128 | PyObject * _resultobj; |
1129 | unsigned char _result; | |
1130 | wxImage * _arg0; | |
1131 | int _arg1; | |
1132 | int _arg2; | |
2d091820 | 1133 | PyObject * _argo0 = 0; |
107e4716 | 1134 | char *_kwnames[] = { "self","x","y", NULL }; |
ab9bc19b RD |
1135 | |
1136 | self = self; | |
107e4716 | 1137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxImage_GetRed",_kwnames,&_argo0,&_arg1,&_arg2)) |
ab9bc19b | 1138 | return NULL; |
2d091820 RD |
1139 | if (_argo0) { |
1140 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1141 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) { | |
ab9bc19b RD |
1142 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_GetRed. Expected _wxImage_p."); |
1143 | return NULL; | |
1144 | } | |
1145 | } | |
1146 | { | |
1147 | wxPy_BEGIN_ALLOW_THREADS; | |
1148 | _result = (unsigned char )wxImage_GetRed(_arg0,_arg1,_arg2); | |
1149 | ||
1150 | wxPy_END_ALLOW_THREADS; | |
1151 | } _resultobj = Py_BuildValue("b",_result); | |
1152 | return _resultobj; | |
1153 | } | |
1154 | ||
1155 | #define wxImage_GetGreen(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetGreen(_swigarg0,_swigarg1)) | |
107e4716 | 1156 | static PyObject *_wrap_wxImage_GetGreen(PyObject *self, PyObject *args, PyObject *kwargs) { |
ab9bc19b RD |
1157 | PyObject * _resultobj; |
1158 | unsigned char _result; | |
1159 | wxImage * _arg0; | |
1160 | int _arg1; | |
1161 | int _arg2; | |
2d091820 | 1162 | PyObject * _argo0 = 0; |
107e4716 | 1163 | char *_kwnames[] = { "self","x","y", NULL }; |
ab9bc19b RD |
1164 | |
1165 | self = self; | |
107e4716 | 1166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxImage_GetGreen",_kwnames,&_argo0,&_arg1,&_arg2)) |
ab9bc19b | 1167 | return NULL; |
2d091820 RD |
1168 | if (_argo0) { |
1169 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1170 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) { | |
ab9bc19b RD |
1171 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_GetGreen. Expected _wxImage_p."); |
1172 | return NULL; | |
1173 | } | |
1174 | } | |
1175 | { | |
1176 | wxPy_BEGIN_ALLOW_THREADS; | |
1177 | _result = (unsigned char )wxImage_GetGreen(_arg0,_arg1,_arg2); | |
1178 | ||
1179 | wxPy_END_ALLOW_THREADS; | |
1180 | } _resultobj = Py_BuildValue("b",_result); | |
1181 | return _resultobj; | |
1182 | } | |
1183 | ||
1184 | #define wxImage_GetBlue(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetBlue(_swigarg0,_swigarg1)) | |
107e4716 | 1185 | static PyObject *_wrap_wxImage_GetBlue(PyObject *self, PyObject *args, PyObject *kwargs) { |
ab9bc19b RD |
1186 | PyObject * _resultobj; |
1187 | unsigned char _result; | |
1188 | wxImage * _arg0; | |
1189 | int _arg1; | |
1190 | int _arg2; | |
2d091820 | 1191 | PyObject * _argo0 = 0; |
107e4716 | 1192 | char *_kwnames[] = { "self","x","y", NULL }; |
ab9bc19b RD |
1193 | |
1194 | self = self; | |
107e4716 | 1195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxImage_GetBlue",_kwnames,&_argo0,&_arg1,&_arg2)) |
ab9bc19b | 1196 | return NULL; |
2d091820 RD |
1197 | if (_argo0) { |
1198 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1199 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) { | |
ab9bc19b RD |
1200 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_GetBlue. Expected _wxImage_p."); |
1201 | return NULL; | |
1202 | } | |
1203 | } | |
1204 | { | |
1205 | wxPy_BEGIN_ALLOW_THREADS; | |
1206 | _result = (unsigned char )wxImage_GetBlue(_arg0,_arg1,_arg2); | |
1207 | ||
1208 | wxPy_END_ALLOW_THREADS; | |
1209 | } _resultobj = Py_BuildValue("b",_result); | |
1210 | return _resultobj; | |
1211 | } | |
1212 | ||
1213 | #define wxImage_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1)) | |
107e4716 | 1214 | static PyObject *_wrap_wxImage_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { |
ab9bc19b RD |
1215 | PyObject * _resultobj; |
1216 | bool _result; | |
1217 | wxImage * _arg0; | |
1218 | wxString * _arg1; | |
2d091820 RD |
1219 | long _arg2 = (long ) wxBITMAP_TYPE_PNG; |
1220 | PyObject * _argo0 = 0; | |
ab9bc19b | 1221 | PyObject * _obj1 = 0; |
107e4716 | 1222 | char *_kwnames[] = { "self","name","type", NULL }; |
ab9bc19b RD |
1223 | |
1224 | self = self; | |
107e4716 | 1225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|l:wxImage_LoadFile",_kwnames,&_argo0,&_obj1,&_arg2)) |
ab9bc19b | 1226 | return NULL; |
2d091820 RD |
1227 | if (_argo0) { |
1228 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1229 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) { | |
ab9bc19b RD |
1230 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_LoadFile. Expected _wxImage_p."); |
1231 | return NULL; | |
1232 | } | |
1233 | } | |
1234 | { | |
2cd2fac8 RD |
1235 | #if PYTHON_API_VERSION >= 1009 |
1236 | char* tmpPtr; int tmpSize; | |
1237 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
1238 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
1239 | return NULL; | |
1240 | } | |
1241 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1242 | return NULL; | |
1243 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1244 | #else | |
ab9bc19b RD |
1245 | if (!PyString_Check(_obj1)) { |
1246 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1247 | return NULL; | |
1248 | } | |
2cd2fac8 RD |
1249 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1250 | #endif | |
ab9bc19b RD |
1251 | } |
1252 | { | |
1253 | wxPy_BEGIN_ALLOW_THREADS; | |
1254 | _result = (bool )wxImage_LoadFile(_arg0,*_arg1,_arg2); | |
1255 | ||
1256 | wxPy_END_ALLOW_THREADS; | |
1257 | } _resultobj = Py_BuildValue("i",_result); | |
1258 | { | |
1259 | if (_obj1) | |
1260 | delete _arg1; | |
1261 | } | |
1262 | return _resultobj; | |
1263 | } | |
1264 | ||
1265 | #define wxImage_LoadMimeFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1)) | |
107e4716 | 1266 | static PyObject *_wrap_wxImage_LoadMimeFile(PyObject *self, PyObject *args, PyObject *kwargs) { |
ab9bc19b RD |
1267 | PyObject * _resultobj; |
1268 | bool _result; | |
1269 | wxImage * _arg0; | |
1270 | wxString * _arg1; | |
1271 | wxString * _arg2; | |
2d091820 | 1272 | PyObject * _argo0 = 0; |
ab9bc19b RD |
1273 | PyObject * _obj1 = 0; |
1274 | PyObject * _obj2 = 0; | |
107e4716 | 1275 | char *_kwnames[] = { "self","name","mimetype", NULL }; |
ab9bc19b RD |
1276 | |
1277 | self = self; | |
107e4716 | 1278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxImage_LoadMimeFile",_kwnames,&_argo0,&_obj1,&_obj2)) |
ab9bc19b | 1279 | return NULL; |
2d091820 RD |
1280 | if (_argo0) { |
1281 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1282 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) { | |
ab9bc19b RD |
1283 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_LoadMimeFile. Expected _wxImage_p."); |
1284 | return NULL; | |
1285 | } | |
1286 | } | |
1287 | { | |
2cd2fac8 RD |
1288 | #if PYTHON_API_VERSION >= 1009 |
1289 | char* tmpPtr; int tmpSize; | |
1290 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
1291 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
1292 | return NULL; | |
1293 | } | |
1294 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1295 | return NULL; | |
1296 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1297 | #else | |
ab9bc19b RD |
1298 | if (!PyString_Check(_obj1)) { |
1299 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1300 | return NULL; | |
1301 | } | |
2cd2fac8 RD |
1302 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1303 | #endif | |
ab9bc19b RD |
1304 | } |
1305 | { | |
2cd2fac8 RD |
1306 | #if PYTHON_API_VERSION >= 1009 |
1307 | char* tmpPtr; int tmpSize; | |
1308 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
1309 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
1310 | return NULL; | |
1311 | } | |
1312 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
1313 | return NULL; | |
1314 | _arg2 = new wxString(tmpPtr, tmpSize); | |
1315 | #else | |
ab9bc19b RD |
1316 | if (!PyString_Check(_obj2)) { |
1317 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1318 | return NULL; | |
1319 | } | |
2cd2fac8 RD |
1320 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
1321 | #endif | |
ab9bc19b RD |
1322 | } |
1323 | { | |
1324 | wxPy_BEGIN_ALLOW_THREADS; | |
1325 | _result = (bool )wxImage_LoadMimeFile(_arg0,*_arg1,*_arg2); | |
1326 | ||
1327 | wxPy_END_ALLOW_THREADS; | |
1328 | } _resultobj = Py_BuildValue("i",_result); | |
1329 | { | |
1330 | if (_obj1) | |
1331 | delete _arg1; | |
1332 | } | |
1333 | { | |
1334 | if (_obj2) | |
1335 | delete _arg2; | |
1336 | } | |
1337 | return _resultobj; | |
1338 | } | |
1339 | ||
1340 | #define wxImage_SaveFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->SaveFile(_swigarg0,_swigarg1)) | |
107e4716 | 1341 | static PyObject *_wrap_wxImage_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) { |
ab9bc19b RD |
1342 | PyObject * _resultobj; |
1343 | bool _result; | |
1344 | wxImage * _arg0; | |
1345 | wxString * _arg1; | |
1346 | int _arg2; | |
2d091820 | 1347 | PyObject * _argo0 = 0; |
ab9bc19b | 1348 | PyObject * _obj1 = 0; |
107e4716 | 1349 | char *_kwnames[] = { "self","name","type", NULL }; |
ab9bc19b RD |
1350 | |
1351 | self = self; | |
107e4716 | 1352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxImage_SaveFile",_kwnames,&_argo0,&_obj1,&_arg2)) |
ab9bc19b | 1353 | return NULL; |
2d091820 RD |
1354 | if (_argo0) { |
1355 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1356 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) { | |
ab9bc19b RD |
1357 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_SaveFile. Expected _wxImage_p."); |
1358 | return NULL; | |
1359 | } | |
1360 | } | |
1361 | { | |
2cd2fac8 RD |
1362 | #if PYTHON_API_VERSION >= 1009 |
1363 | char* tmpPtr; int tmpSize; | |
1364 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
1365 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
1366 | return NULL; | |
1367 | } | |
1368 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1369 | return NULL; | |
1370 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1371 | #else | |
ab9bc19b RD |
1372 | if (!PyString_Check(_obj1)) { |
1373 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1374 | return NULL; | |
1375 | } | |
2cd2fac8 RD |
1376 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1377 | #endif | |
ab9bc19b RD |
1378 | } |
1379 | { | |
1380 | wxPy_BEGIN_ALLOW_THREADS; | |
1381 | _result = (bool )wxImage_SaveFile(_arg0,*_arg1,_arg2); | |
1382 | ||
1383 | wxPy_END_ALLOW_THREADS; | |
1384 | } _resultobj = Py_BuildValue("i",_result); | |
1385 | { | |
1386 | if (_obj1) | |
1387 | delete _arg1; | |
1388 | } | |
1389 | return _resultobj; | |
1390 | } | |
1391 | ||
1392 | #define wxImage_SaveMimeFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->SaveFile(_swigarg0,_swigarg1)) | |
107e4716 | 1393 | static PyObject *_wrap_wxImage_SaveMimeFile(PyObject *self, PyObject *args, PyObject *kwargs) { |
ab9bc19b RD |
1394 | PyObject * _resultobj; |
1395 | bool _result; | |
1396 | wxImage * _arg0; | |
1397 | wxString * _arg1; | |
1398 | wxString * _arg2; | |
2d091820 | 1399 | PyObject * _argo0 = 0; |
ab9bc19b RD |
1400 | PyObject * _obj1 = 0; |
1401 | PyObject * _obj2 = 0; | |
107e4716 | 1402 | char *_kwnames[] = { "self","name","mimetype", NULL }; |
ab9bc19b RD |
1403 | |
1404 | self = self; | |
107e4716 | 1405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxImage_SaveMimeFile",_kwnames,&_argo0,&_obj1,&_obj2)) |
ab9bc19b | 1406 | return NULL; |
2d091820 RD |
1407 | if (_argo0) { |
1408 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1409 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) { | |
ab9bc19b RD |
1410 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_SaveMimeFile. Expected _wxImage_p."); |
1411 | return NULL; | |
1412 | } | |
1413 | } | |
1414 | { | |
2cd2fac8 RD |
1415 | #if PYTHON_API_VERSION >= 1009 |
1416 | char* tmpPtr; int tmpSize; | |
1417 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
1418 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
1419 | return NULL; | |
1420 | } | |
1421 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1422 | return NULL; | |
1423 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1424 | #else | |
ab9bc19b RD |
1425 | if (!PyString_Check(_obj1)) { |
1426 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1427 | return NULL; | |
1428 | } | |
2cd2fac8 RD |
1429 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1430 | #endif | |
ab9bc19b RD |
1431 | } |
1432 | { | |
2cd2fac8 RD |
1433 | #if PYTHON_API_VERSION >= 1009 |
1434 | char* tmpPtr; int tmpSize; | |
1435 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
1436 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
1437 | return NULL; | |
1438 | } | |
1439 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
1440 | return NULL; | |
1441 | _arg2 = new wxString(tmpPtr, tmpSize); | |
1442 | #else | |
ab9bc19b RD |
1443 | if (!PyString_Check(_obj2)) { |
1444 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1445 | return NULL; | |
1446 | } | |
2cd2fac8 RD |
1447 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
1448 | #endif | |
ab9bc19b RD |
1449 | } |
1450 | { | |
1451 | wxPy_BEGIN_ALLOW_THREADS; | |
1452 | _result = (bool )wxImage_SaveMimeFile(_arg0,*_arg1,*_arg2); | |
1453 | ||
1454 | wxPy_END_ALLOW_THREADS; | |
1455 | } _resultobj = Py_BuildValue("i",_result); | |
1456 | { | |
1457 | if (_obj1) | |
1458 | delete _arg1; | |
1459 | } | |
1460 | { | |
1461 | if (_obj2) | |
1462 | delete _arg2; | |
1463 | } | |
1464 | return _resultobj; | |
1465 | } | |
1466 | ||
1467 | #define wxImage_Ok(_swigobj) (_swigobj->Ok()) | |
107e4716 | 1468 | static PyObject *_wrap_wxImage_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { |
ab9bc19b RD |
1469 | PyObject * _resultobj; |
1470 | bool _result; | |
1471 | wxImage * _arg0; | |
2d091820 | 1472 | PyObject * _argo0 = 0; |
107e4716 | 1473 | char *_kwnames[] = { "self", NULL }; |
ab9bc19b RD |
1474 | |
1475 | self = self; | |
107e4716 | 1476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImage_Ok",_kwnames,&_argo0)) |
ab9bc19b | 1477 | return NULL; |
2d091820 RD |
1478 | if (_argo0) { |
1479 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1480 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) { | |
ab9bc19b RD |
1481 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_Ok. Expected _wxImage_p."); |
1482 | return NULL; | |
1483 | } | |
1484 | } | |
1485 | { | |
1486 | wxPy_BEGIN_ALLOW_THREADS; | |
1487 | _result = (bool )wxImage_Ok(_arg0); | |
1488 | ||
1489 | wxPy_END_ALLOW_THREADS; | |
1490 | } _resultobj = Py_BuildValue("i",_result); | |
1491 | return _resultobj; | |
1492 | } | |
1493 | ||
1494 | #define wxImage_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
107e4716 | 1495 | static PyObject *_wrap_wxImage_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
ab9bc19b RD |
1496 | PyObject * _resultobj; |
1497 | int _result; | |
1498 | wxImage * _arg0; | |
2d091820 | 1499 | PyObject * _argo0 = 0; |
107e4716 | 1500 | char *_kwnames[] = { "self", NULL }; |
ab9bc19b RD |
1501 | |
1502 | self = self; | |
107e4716 | 1503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImage_GetWidth",_kwnames,&_argo0)) |
ab9bc19b | 1504 | return NULL; |
2d091820 RD |
1505 | if (_argo0) { |
1506 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1507 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) { | |
ab9bc19b RD |
1508 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_GetWidth. Expected _wxImage_p."); |
1509 | return NULL; | |
1510 | } | |
1511 | } | |
1512 | { | |
1513 | wxPy_BEGIN_ALLOW_THREADS; | |
1514 | _result = (int )wxImage_GetWidth(_arg0); | |
1515 | ||
1516 | wxPy_END_ALLOW_THREADS; | |
1517 | } _resultobj = Py_BuildValue("i",_result); | |
1518 | return _resultobj; | |
1519 | } | |
1520 | ||
1521 | #define wxImage_GetHeight(_swigobj) (_swigobj->GetHeight()) | |
107e4716 | 1522 | static PyObject *_wrap_wxImage_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { |
ab9bc19b RD |
1523 | PyObject * _resultobj; |
1524 | int _result; | |
1525 | wxImage * _arg0; | |
2d091820 | 1526 | PyObject * _argo0 = 0; |
107e4716 | 1527 | char *_kwnames[] = { "self", NULL }; |
ab9bc19b RD |
1528 | |
1529 | self = self; | |
107e4716 | 1530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImage_GetHeight",_kwnames,&_argo0)) |
ab9bc19b | 1531 | return NULL; |
2d091820 RD |
1532 | if (_argo0) { |
1533 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1534 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) { | |
ab9bc19b RD |
1535 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_GetHeight. Expected _wxImage_p."); |
1536 | return NULL; | |
1537 | } | |
1538 | } | |
1539 | { | |
1540 | wxPy_BEGIN_ALLOW_THREADS; | |
1541 | _result = (int )wxImage_GetHeight(_arg0); | |
1542 | ||
1543 | wxPy_END_ALLOW_THREADS; | |
1544 | } _resultobj = Py_BuildValue("i",_result); | |
1545 | return _resultobj; | |
1546 | } | |
1547 | ||
f078d013 RD |
1548 | #define wxImage_GetSubImage(_swigobj,_swigarg0) (_swigobj->GetSubImage(_swigarg0)) |
1549 | static PyObject *_wrap_wxImage_GetSubImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1550 | PyObject * _resultobj; | |
1551 | wxImage * _result; | |
1552 | wxImage * _arg0; | |
1553 | wxRect * _arg1; | |
1554 | PyObject * _argo0 = 0; | |
1555 | wxRect temp; | |
1556 | PyObject * _obj1 = 0; | |
1557 | char *_kwnames[] = { "self","rect", NULL }; | |
1558 | char _ptemp[128]; | |
1559 | ||
1560 | self = self; | |
1561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxImage_GetSubImage",_kwnames,&_argo0,&_obj1)) | |
1562 | return NULL; | |
1563 | if (_argo0) { | |
1564 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1565 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) { | |
1566 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_GetSubImage. Expected _wxImage_p."); | |
1567 | return NULL; | |
1568 | } | |
1569 | } | |
1570 | { | |
1571 | _arg1 = &temp; | |
1572 | if (! wxRect_helper(_obj1, &_arg1)) | |
1573 | return NULL; | |
1574 | } | |
1575 | { | |
1576 | wxPy_BEGIN_ALLOW_THREADS; | |
1577 | _result = new wxImage (wxImage_GetSubImage(_arg0,*_arg1)); | |
1578 | ||
1579 | wxPy_END_ALLOW_THREADS; | |
1580 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxImage_p"); | |
1581 | _resultobj = Py_BuildValue("s",_ptemp); | |
1582 | return _resultobj; | |
1583 | } | |
1584 | ||
f6bcfd97 BP |
1585 | #define wxImage_Copy(_swigobj) (_swigobj->Copy()) |
1586 | static PyObject *_wrap_wxImage_Copy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1587 | PyObject * _resultobj; | |
1588 | wxImage * _result; | |
1589 | wxImage * _arg0; | |
1590 | PyObject * _argo0 = 0; | |
1591 | char *_kwnames[] = { "self", NULL }; | |
1592 | char _ptemp[128]; | |
1593 | ||
1594 | self = self; | |
1595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImage_Copy",_kwnames,&_argo0)) | |
1596 | return NULL; | |
1597 | if (_argo0) { | |
1598 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1599 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) { | |
1600 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_Copy. Expected _wxImage_p."); | |
1601 | return NULL; | |
1602 | } | |
1603 | } | |
1604 | { | |
1605 | wxPy_BEGIN_ALLOW_THREADS; | |
1606 | _result = new wxImage (wxImage_Copy(_arg0)); | |
1607 | ||
1608 | wxPy_END_ALLOW_THREADS; | |
1609 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxImage_p"); | |
1610 | _resultobj = Py_BuildValue("s",_ptemp); | |
1611 | return _resultobj; | |
1612 | } | |
1613 | ||
1614 | #define wxImage_Paste(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Paste(_swigarg0,_swigarg1,_swigarg2)) | |
1615 | static PyObject *_wrap_wxImage_Paste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1616 | PyObject * _resultobj; | |
1617 | wxImage * _arg0; | |
1618 | wxImage * _arg1; | |
1619 | int _arg2; | |
1620 | int _arg3; | |
1621 | PyObject * _argo0 = 0; | |
1622 | PyObject * _argo1 = 0; | |
1623 | char *_kwnames[] = { "self","image","x","y", NULL }; | |
1624 | ||
1625 | self = self; | |
1626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii:wxImage_Paste",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3)) | |
1627 | return NULL; | |
1628 | if (_argo0) { | |
1629 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1630 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) { | |
1631 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_Paste. Expected _wxImage_p."); | |
1632 | return NULL; | |
1633 | } | |
1634 | } | |
1635 | if (_argo1) { | |
1636 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1637 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImage_p")) { | |
1638 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImage_Paste. Expected _wxImage_p."); | |
1639 | return NULL; | |
1640 | } | |
1641 | } | |
1642 | { | |
1643 | wxPy_BEGIN_ALLOW_THREADS; | |
1644 | wxImage_Paste(_arg0,*_arg1,_arg2,_arg3); | |
1645 | ||
1646 | wxPy_END_ALLOW_THREADS; | |
1647 | } Py_INCREF(Py_None); | |
1648 | _resultobj = Py_None; | |
1649 | return _resultobj; | |
1650 | } | |
1651 | ||
3f0be3ec RD |
1652 | static PyObject * wxImage_GetData(wxImage *self) { |
1653 | unsigned char* data = self->GetData(); | |
1654 | int len = self->GetWidth() * self->GetHeight() * 3; | |
1655 | return PyString_FromStringAndSize((char*)data, len); | |
1656 | } | |
107e4716 | 1657 | static PyObject *_wrap_wxImage_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { |
ab9bc19b | 1658 | PyObject * _resultobj; |
3f0be3ec | 1659 | PyObject * _result; |
ab9bc19b | 1660 | wxImage * _arg0; |
2d091820 | 1661 | PyObject * _argo0 = 0; |
107e4716 | 1662 | char *_kwnames[] = { "self", NULL }; |
ab9bc19b RD |
1663 | |
1664 | self = self; | |
107e4716 | 1665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImage_GetData",_kwnames,&_argo0)) |
ab9bc19b | 1666 | return NULL; |
2d091820 RD |
1667 | if (_argo0) { |
1668 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1669 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) { | |
ab9bc19b RD |
1670 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_GetData. Expected _wxImage_p."); |
1671 | return NULL; | |
1672 | } | |
1673 | } | |
1674 | { | |
1675 | wxPy_BEGIN_ALLOW_THREADS; | |
3f0be3ec | 1676 | _result = (PyObject *)wxImage_GetData(_arg0); |
ab9bc19b RD |
1677 | |
1678 | wxPy_END_ALLOW_THREADS; | |
3f0be3ec RD |
1679 | }{ |
1680 | _resultobj = _result; | |
1681 | } | |
ab9bc19b RD |
1682 | return _resultobj; |
1683 | } | |
1684 | ||
3f0be3ec RD |
1685 | static void wxImage_SetData(wxImage *self,PyObject * data) { |
1686 | unsigned char* dataPtr; | |
1687 | ||
1688 | if (! PyString_Check(data)) { | |
1689 | PyErr_SetString(PyExc_TypeError, "Expected string object"); | |
1690 | return /* NULL */ ; | |
1691 | } | |
f078d013 RD |
1692 | |
1693 | size_t len = self->GetWidth() * self->GetHeight() * 3; | |
2cd2fac8 | 1694 | dataPtr = (unsigned char*) malloc(len); |
f078d013 | 1695 | memcpy(dataPtr, PyString_AsString(data), len); |
3f0be3ec RD |
1696 | self->SetData(dataPtr); |
1697 | } | |
107e4716 | 1698 | static PyObject *_wrap_wxImage_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { |
ab9bc19b RD |
1699 | PyObject * _resultobj; |
1700 | wxImage * _arg0; | |
3f0be3ec | 1701 | PyObject * _arg1; |
2d091820 | 1702 | PyObject * _argo0 = 0; |
3f0be3ec | 1703 | PyObject * _obj1 = 0; |
107e4716 | 1704 | char *_kwnames[] = { "self","data", NULL }; |
ab9bc19b RD |
1705 | |
1706 | self = self; | |
107e4716 | 1707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxImage_SetData",_kwnames,&_argo0,&_obj1)) |
ab9bc19b | 1708 | return NULL; |
2d091820 RD |
1709 | if (_argo0) { |
1710 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1711 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) { | |
ab9bc19b RD |
1712 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_SetData. Expected _wxImage_p."); |
1713 | return NULL; | |
1714 | } | |
1715 | } | |
3f0be3ec RD |
1716 | { |
1717 | _arg1 = _obj1; | |
1718 | } | |
ab9bc19b RD |
1719 | { |
1720 | wxPy_BEGIN_ALLOW_THREADS; | |
1721 | wxImage_SetData(_arg0,_arg1); | |
1722 | ||
1723 | wxPy_END_ALLOW_THREADS; | |
1724 | } Py_INCREF(Py_None); | |
1725 | _resultobj = Py_None; | |
1726 | return _resultobj; | |
1727 | } | |
1728 | ||
1729 | #define wxImage_SetMaskColour(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetMaskColour(_swigarg0,_swigarg1,_swigarg2)) | |
107e4716 | 1730 | static PyObject *_wrap_wxImage_SetMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
ab9bc19b RD |
1731 | PyObject * _resultobj; |
1732 | wxImage * _arg0; | |
1733 | unsigned char _arg1; | |
1734 | unsigned char _arg2; | |
1735 | unsigned char _arg3; | |
2d091820 | 1736 | PyObject * _argo0 = 0; |
107e4716 | 1737 | char *_kwnames[] = { "self","r","g","b", NULL }; |
ab9bc19b RD |
1738 | |
1739 | self = self; | |
107e4716 | 1740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Obbb:wxImage_SetMaskColour",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
ab9bc19b | 1741 | return NULL; |
2d091820 RD |
1742 | if (_argo0) { |
1743 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1744 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) { | |
ab9bc19b RD |
1745 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_SetMaskColour. Expected _wxImage_p."); |
1746 | return NULL; | |
1747 | } | |
1748 | } | |
1749 | { | |
1750 | wxPy_BEGIN_ALLOW_THREADS; | |
1751 | wxImage_SetMaskColour(_arg0,_arg1,_arg2,_arg3); | |
1752 | ||
1753 | wxPy_END_ALLOW_THREADS; | |
1754 | } Py_INCREF(Py_None); | |
1755 | _resultobj = Py_None; | |
1756 | return _resultobj; | |
1757 | } | |
1758 | ||
1759 | #define wxImage_GetMaskRed(_swigobj) (_swigobj->GetMaskRed()) | |
107e4716 | 1760 | static PyObject *_wrap_wxImage_GetMaskRed(PyObject *self, PyObject *args, PyObject *kwargs) { |
ab9bc19b RD |
1761 | PyObject * _resultobj; |
1762 | unsigned char _result; | |
1763 | wxImage * _arg0; | |
2d091820 | 1764 | PyObject * _argo0 = 0; |
107e4716 | 1765 | char *_kwnames[] = { "self", NULL }; |
ab9bc19b RD |
1766 | |
1767 | self = self; | |
107e4716 | 1768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImage_GetMaskRed",_kwnames,&_argo0)) |
ab9bc19b | 1769 | return NULL; |
2d091820 RD |
1770 | if (_argo0) { |
1771 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1772 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) { | |
ab9bc19b RD |
1773 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_GetMaskRed. Expected _wxImage_p."); |
1774 | return NULL; | |
1775 | } | |
1776 | } | |
1777 | { | |
1778 | wxPy_BEGIN_ALLOW_THREADS; | |
1779 | _result = (unsigned char )wxImage_GetMaskRed(_arg0); | |
1780 | ||
1781 | wxPy_END_ALLOW_THREADS; | |
1782 | } _resultobj = Py_BuildValue("b",_result); | |
1783 | return _resultobj; | |
1784 | } | |
1785 | ||
1786 | #define wxImage_GetMaskGreen(_swigobj) (_swigobj->GetMaskGreen()) | |
107e4716 | 1787 | static PyObject *_wrap_wxImage_GetMaskGreen(PyObject *self, PyObject *args, PyObject *kwargs) { |
ab9bc19b RD |
1788 | PyObject * _resultobj; |
1789 | unsigned char _result; | |
1790 | wxImage * _arg0; | |
2d091820 | 1791 | PyObject * _argo0 = 0; |
107e4716 | 1792 | char *_kwnames[] = { "self", NULL }; |
ab9bc19b RD |
1793 | |
1794 | self = self; | |
107e4716 | 1795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImage_GetMaskGreen",_kwnames,&_argo0)) |
ab9bc19b | 1796 | return NULL; |
2d091820 RD |
1797 | if (_argo0) { |
1798 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1799 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) { | |
ab9bc19b RD |
1800 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_GetMaskGreen. Expected _wxImage_p."); |
1801 | return NULL; | |
1802 | } | |
1803 | } | |
1804 | { | |
1805 | wxPy_BEGIN_ALLOW_THREADS; | |
1806 | _result = (unsigned char )wxImage_GetMaskGreen(_arg0); | |
1807 | ||
1808 | wxPy_END_ALLOW_THREADS; | |
1809 | } _resultobj = Py_BuildValue("b",_result); | |
1810 | return _resultobj; | |
1811 | } | |
1812 | ||
1813 | #define wxImage_GetMaskBlue(_swigobj) (_swigobj->GetMaskBlue()) | |
107e4716 | 1814 | static PyObject *_wrap_wxImage_GetMaskBlue(PyObject *self, PyObject *args, PyObject *kwargs) { |
ab9bc19b RD |
1815 | PyObject * _resultobj; |
1816 | unsigned char _result; | |
1817 | wxImage * _arg0; | |
2d091820 | 1818 | PyObject * _argo0 = 0; |
107e4716 | 1819 | char *_kwnames[] = { "self", NULL }; |
ab9bc19b RD |
1820 | |
1821 | self = self; | |
107e4716 | 1822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImage_GetMaskBlue",_kwnames,&_argo0)) |
ab9bc19b | 1823 | return NULL; |
2d091820 RD |
1824 | if (_argo0) { |
1825 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1826 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) { | |
ab9bc19b RD |
1827 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_GetMaskBlue. Expected _wxImage_p."); |
1828 | return NULL; | |
1829 | } | |
1830 | } | |
1831 | { | |
1832 | wxPy_BEGIN_ALLOW_THREADS; | |
1833 | _result = (unsigned char )wxImage_GetMaskBlue(_arg0); | |
1834 | ||
1835 | wxPy_END_ALLOW_THREADS; | |
1836 | } _resultobj = Py_BuildValue("b",_result); | |
1837 | return _resultobj; | |
1838 | } | |
1839 | ||
1840 | #define wxImage_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0)) | |
107e4716 | 1841 | static PyObject *_wrap_wxImage_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { |
ab9bc19b RD |
1842 | PyObject * _resultobj; |
1843 | wxImage * _arg0; | |
2d091820 RD |
1844 | bool _arg1 = (bool ) TRUE; |
1845 | PyObject * _argo0 = 0; | |
1846 | int tempbool1 = (int) TRUE; | |
107e4716 | 1847 | char *_kwnames[] = { "self","mask", NULL }; |
ab9bc19b RD |
1848 | |
1849 | self = self; | |
107e4716 | 1850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxImage_SetMask",_kwnames,&_argo0,&tempbool1)) |
ab9bc19b | 1851 | return NULL; |
2d091820 RD |
1852 | if (_argo0) { |
1853 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1854 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) { | |
ab9bc19b RD |
1855 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_SetMask. Expected _wxImage_p."); |
1856 | return NULL; | |
1857 | } | |
1858 | } | |
1859 | _arg1 = (bool ) tempbool1; | |
1860 | { | |
1861 | wxPy_BEGIN_ALLOW_THREADS; | |
1862 | wxImage_SetMask(_arg0,_arg1); | |
1863 | ||
1864 | wxPy_END_ALLOW_THREADS; | |
1865 | } Py_INCREF(Py_None); | |
1866 | _resultobj = Py_None; | |
1867 | return _resultobj; | |
1868 | } | |
1869 | ||
1870 | #define wxImage_HasMask(_swigobj) (_swigobj->HasMask()) | |
107e4716 | 1871 | static PyObject *_wrap_wxImage_HasMask(PyObject *self, PyObject *args, PyObject *kwargs) { |
ab9bc19b RD |
1872 | PyObject * _resultobj; |
1873 | bool _result; | |
1874 | wxImage * _arg0; | |
2d091820 | 1875 | PyObject * _argo0 = 0; |
107e4716 | 1876 | char *_kwnames[] = { "self", NULL }; |
ab9bc19b RD |
1877 | |
1878 | self = self; | |
107e4716 | 1879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImage_HasMask",_kwnames,&_argo0)) |
ab9bc19b | 1880 | return NULL; |
2d091820 RD |
1881 | if (_argo0) { |
1882 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1883 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) { | |
ab9bc19b RD |
1884 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_HasMask. Expected _wxImage_p."); |
1885 | return NULL; | |
1886 | } | |
1887 | } | |
1888 | { | |
1889 | wxPy_BEGIN_ALLOW_THREADS; | |
1890 | _result = (bool )wxImage_HasMask(_arg0); | |
1891 | ||
1892 | wxPy_END_ALLOW_THREADS; | |
1893 | } _resultobj = Py_BuildValue("i",_result); | |
1894 | return _resultobj; | |
1895 | } | |
1896 | ||
f6bcfd97 BP |
1897 | #define wxImage_Rotate(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Rotate(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
1898 | static PyObject *_wrap_wxImage_Rotate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1899 | PyObject * _resultobj; | |
1900 | wxImage * _result; | |
1901 | wxImage * _arg0; | |
1902 | double _arg1; | |
1903 | wxPoint * _arg2; | |
1904 | bool _arg3 = (bool ) TRUE; | |
1905 | wxPoint * _arg4 = (wxPoint *) NULL; | |
1906 | PyObject * _argo0 = 0; | |
1907 | wxPoint temp; | |
1908 | PyObject * _obj2 = 0; | |
1909 | int tempbool3 = (int) TRUE; | |
1910 | wxPoint temp0; | |
1911 | PyObject * _obj4 = 0; | |
1912 | char *_kwnames[] = { "self","angle","centre_of_rotation","interpolating","offset_after_rotation", NULL }; | |
1913 | char _ptemp[128]; | |
1914 | ||
1915 | self = self; | |
1916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OdO|iO:wxImage_Rotate",_kwnames,&_argo0,&_arg1,&_obj2,&tempbool3,&_obj4)) | |
1917 | return NULL; | |
1918 | if (_argo0) { | |
1919 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1920 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) { | |
1921 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_Rotate. Expected _wxImage_p."); | |
1922 | return NULL; | |
1923 | } | |
1924 | } | |
1925 | { | |
1926 | _arg2 = &temp; | |
1927 | if (! wxPoint_helper(_obj2, &_arg2)) | |
1928 | return NULL; | |
1929 | } | |
1930 | _arg3 = (bool ) tempbool3; | |
1931 | if (_obj4) | |
1932 | { | |
1933 | _arg4 = &temp0; | |
1934 | if (! wxPoint_helper(_obj4, &_arg4)) | |
1935 | return NULL; | |
1936 | } | |
1937 | { | |
1938 | wxPy_BEGIN_ALLOW_THREADS; | |
1939 | _result = new wxImage (wxImage_Rotate(_arg0,_arg1,*_arg2,_arg3,_arg4)); | |
1940 | ||
1941 | wxPy_END_ALLOW_THREADS; | |
1942 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxImage_p"); | |
1943 | _resultobj = Py_BuildValue("s",_ptemp); | |
1944 | return _resultobj; | |
1945 | } | |
1946 | ||
1947 | #define wxImage_Rotate90(_swigobj,_swigarg0) (_swigobj->Rotate90(_swigarg0)) | |
1948 | static PyObject *_wrap_wxImage_Rotate90(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1949 | PyObject * _resultobj; | |
1950 | wxImage * _result; | |
1951 | wxImage * _arg0; | |
1952 | bool _arg1 = (bool ) TRUE; | |
1953 | PyObject * _argo0 = 0; | |
1954 | int tempbool1 = (int) TRUE; | |
1955 | char *_kwnames[] = { "self","clockwise", NULL }; | |
1956 | char _ptemp[128]; | |
1957 | ||
1958 | self = self; | |
1959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxImage_Rotate90",_kwnames,&_argo0,&tempbool1)) | |
1960 | return NULL; | |
1961 | if (_argo0) { | |
1962 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1963 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) { | |
1964 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_Rotate90. Expected _wxImage_p."); | |
1965 | return NULL; | |
1966 | } | |
1967 | } | |
1968 | _arg1 = (bool ) tempbool1; | |
1969 | { | |
1970 | wxPy_BEGIN_ALLOW_THREADS; | |
1971 | _result = new wxImage (wxImage_Rotate90(_arg0,_arg1)); | |
1972 | ||
1973 | wxPy_END_ALLOW_THREADS; | |
1974 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxImage_p"); | |
1975 | _resultobj = Py_BuildValue("s",_ptemp); | |
1976 | return _resultobj; | |
1977 | } | |
1978 | ||
1979 | #define wxImage_Mirror(_swigobj,_swigarg0) (_swigobj->Mirror(_swigarg0)) | |
1980 | static PyObject *_wrap_wxImage_Mirror(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1981 | PyObject * _resultobj; | |
1982 | wxImage * _result; | |
1983 | wxImage * _arg0; | |
1984 | bool _arg1 = (bool ) TRUE; | |
1985 | PyObject * _argo0 = 0; | |
1986 | int tempbool1 = (int) TRUE; | |
1987 | char *_kwnames[] = { "self","horizontally", NULL }; | |
1988 | char _ptemp[128]; | |
1989 | ||
1990 | self = self; | |
1991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxImage_Mirror",_kwnames,&_argo0,&tempbool1)) | |
1992 | return NULL; | |
1993 | if (_argo0) { | |
1994 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1995 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) { | |
1996 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_Mirror. Expected _wxImage_p."); | |
1997 | return NULL; | |
1998 | } | |
1999 | } | |
2000 | _arg1 = (bool ) tempbool1; | |
2001 | { | |
2002 | wxPy_BEGIN_ALLOW_THREADS; | |
2003 | _result = new wxImage (wxImage_Mirror(_arg0,_arg1)); | |
2004 | ||
2005 | wxPy_END_ALLOW_THREADS; | |
2006 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxImage_p"); | |
2007 | _resultobj = Py_BuildValue("s",_ptemp); | |
2008 | return _resultobj; | |
2009 | } | |
2010 | ||
2011 | #define wxImage_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
2012 | static PyObject *_wrap_wxImage_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2013 | PyObject * _resultobj; | |
2014 | wxImage * _arg0; | |
2015 | unsigned char _arg1; | |
2016 | unsigned char _arg2; | |
2017 | unsigned char _arg3; | |
2018 | unsigned char _arg4; | |
2019 | unsigned char _arg5; | |
2020 | unsigned char _arg6; | |
2021 | PyObject * _argo0 = 0; | |
2022 | char *_kwnames[] = { "self","r1","g1","b1","r2","g2","b2", NULL }; | |
2023 | ||
2024 | self = self; | |
2025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Obbbbbb:wxImage_Replace",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6)) | |
2026 | return NULL; | |
2027 | if (_argo0) { | |
2028 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2029 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) { | |
2030 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_Replace. Expected _wxImage_p."); | |
2031 | return NULL; | |
2032 | } | |
2033 | } | |
2034 | { | |
2035 | wxPy_BEGIN_ALLOW_THREADS; | |
2036 | wxImage_Replace(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); | |
2037 | ||
2038 | wxPy_END_ALLOW_THREADS; | |
2039 | } Py_INCREF(Py_None); | |
2040 | _resultobj = Py_None; | |
2041 | return _resultobj; | |
2042 | } | |
2043 | ||
2044 | #define wxImage_CountColours(_swigobj,_swigarg0) (_swigobj->CountColours(_swigarg0)) | |
2045 | static PyObject *_wrap_wxImage_CountColours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2046 | PyObject * _resultobj; | |
2047 | unsigned long _result; | |
2048 | wxImage * _arg0; | |
2049 | unsigned long _arg1 = (unsigned long ) (unsigned long)-1; | |
2050 | PyObject * _argo0 = 0; | |
2051 | char *_kwnames[] = { "self","stopafter", NULL }; | |
2052 | ||
2053 | self = self; | |
2054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|l:wxImage_CountColours",_kwnames,&_argo0,&_arg1)) | |
2055 | return NULL; | |
2056 | if (_argo0) { | |
2057 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2058 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) { | |
2059 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_CountColours. Expected _wxImage_p."); | |
2060 | return NULL; | |
2061 | } | |
2062 | } | |
2063 | { | |
2064 | wxPy_BEGIN_ALLOW_THREADS; | |
2065 | _result = (unsigned long )wxImage_CountColours(_arg0,_arg1); | |
2066 | ||
2067 | wxPy_END_ALLOW_THREADS; | |
2068 | } _resultobj = Py_BuildValue("l",_result); | |
2069 | return _resultobj; | |
2070 | } | |
2071 | ||
ab9bc19b | 2072 | static PyMethodDef imagecMethods[] = { |
f6bcfd97 BP |
2073 | { "wxImage_CountColours", (PyCFunction) _wrap_wxImage_CountColours, METH_VARARGS | METH_KEYWORDS }, |
2074 | { "wxImage_Replace", (PyCFunction) _wrap_wxImage_Replace, METH_VARARGS | METH_KEYWORDS }, | |
2075 | { "wxImage_Mirror", (PyCFunction) _wrap_wxImage_Mirror, METH_VARARGS | METH_KEYWORDS }, | |
2076 | { "wxImage_Rotate90", (PyCFunction) _wrap_wxImage_Rotate90, METH_VARARGS | METH_KEYWORDS }, | |
2077 | { "wxImage_Rotate", (PyCFunction) _wrap_wxImage_Rotate, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
2078 | { "wxImage_HasMask", (PyCFunction) _wrap_wxImage_HasMask, METH_VARARGS | METH_KEYWORDS }, |
2079 | { "wxImage_SetMask", (PyCFunction) _wrap_wxImage_SetMask, METH_VARARGS | METH_KEYWORDS }, | |
2080 | { "wxImage_GetMaskBlue", (PyCFunction) _wrap_wxImage_GetMaskBlue, METH_VARARGS | METH_KEYWORDS }, | |
2081 | { "wxImage_GetMaskGreen", (PyCFunction) _wrap_wxImage_GetMaskGreen, METH_VARARGS | METH_KEYWORDS }, | |
2082 | { "wxImage_GetMaskRed", (PyCFunction) _wrap_wxImage_GetMaskRed, METH_VARARGS | METH_KEYWORDS }, | |
2083 | { "wxImage_SetMaskColour", (PyCFunction) _wrap_wxImage_SetMaskColour, METH_VARARGS | METH_KEYWORDS }, | |
2084 | { "wxImage_SetData", (PyCFunction) _wrap_wxImage_SetData, METH_VARARGS | METH_KEYWORDS }, | |
2085 | { "wxImage_GetData", (PyCFunction) _wrap_wxImage_GetData, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
2086 | { "wxImage_Paste", (PyCFunction) _wrap_wxImage_Paste, METH_VARARGS | METH_KEYWORDS }, |
2087 | { "wxImage_Copy", (PyCFunction) _wrap_wxImage_Copy, METH_VARARGS | METH_KEYWORDS }, | |
f078d013 | 2088 | { "wxImage_GetSubImage", (PyCFunction) _wrap_wxImage_GetSubImage, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
2089 | { "wxImage_GetHeight", (PyCFunction) _wrap_wxImage_GetHeight, METH_VARARGS | METH_KEYWORDS }, |
2090 | { "wxImage_GetWidth", (PyCFunction) _wrap_wxImage_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
2091 | { "wxImage_Ok", (PyCFunction) _wrap_wxImage_Ok, METH_VARARGS | METH_KEYWORDS }, | |
2092 | { "wxImage_SaveMimeFile", (PyCFunction) _wrap_wxImage_SaveMimeFile, METH_VARARGS | METH_KEYWORDS }, | |
2093 | { "wxImage_SaveFile", (PyCFunction) _wrap_wxImage_SaveFile, METH_VARARGS | METH_KEYWORDS }, | |
2094 | { "wxImage_LoadMimeFile", (PyCFunction) _wrap_wxImage_LoadMimeFile, METH_VARARGS | METH_KEYWORDS }, | |
2095 | { "wxImage_LoadFile", (PyCFunction) _wrap_wxImage_LoadFile, METH_VARARGS | METH_KEYWORDS }, | |
2096 | { "wxImage_GetBlue", (PyCFunction) _wrap_wxImage_GetBlue, METH_VARARGS | METH_KEYWORDS }, | |
2097 | { "wxImage_GetGreen", (PyCFunction) _wrap_wxImage_GetGreen, METH_VARARGS | METH_KEYWORDS }, | |
2098 | { "wxImage_GetRed", (PyCFunction) _wrap_wxImage_GetRed, METH_VARARGS | METH_KEYWORDS }, | |
2099 | { "wxImage_SetRGB", (PyCFunction) _wrap_wxImage_SetRGB, METH_VARARGS | METH_KEYWORDS }, | |
2100 | { "wxImage_Rescale", (PyCFunction) _wrap_wxImage_Rescale, METH_VARARGS | METH_KEYWORDS }, | |
2101 | { "wxImage_Scale", (PyCFunction) _wrap_wxImage_Scale, METH_VARARGS | METH_KEYWORDS }, | |
2102 | { "wxImage_Destroy", (PyCFunction) _wrap_wxImage_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
2103 | { "wxImage_Create", (PyCFunction) _wrap_wxImage_Create, METH_VARARGS | METH_KEYWORDS }, | |
2104 | { "wxImage_ConvertToBitmap", (PyCFunction) _wrap_wxImage_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS }, | |
2105 | { "delete_wxImage", (PyCFunction) _wrap_delete_wxImage, METH_VARARGS | METH_KEYWORDS }, | |
2106 | { "new_wxImage", (PyCFunction) _wrap_new_wxImage, METH_VARARGS | METH_KEYWORDS }, | |
ab2208b5 | 2107 | { "new_wxTIFFHandler", (PyCFunction) _wrap_new_wxTIFFHandler, METH_VARARGS | METH_KEYWORDS }, |
bc29c5e0 RD |
2108 | { "new_wxPCXHandler", (PyCFunction) _wrap_new_wxPCXHandler, METH_VARARGS | METH_KEYWORDS }, |
2109 | { "new_wxPNMHandler", (PyCFunction) _wrap_new_wxPNMHandler, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
2110 | { "new_wxGIFHandler", (PyCFunction) _wrap_new_wxGIFHandler, METH_VARARGS | METH_KEYWORDS }, |
2111 | { "new_wxBMPHandler", (PyCFunction) _wrap_new_wxBMPHandler, METH_VARARGS | METH_KEYWORDS }, | |
2112 | { "new_wxJPEGHandler", (PyCFunction) _wrap_new_wxJPEGHandler, METH_VARARGS | METH_KEYWORDS }, | |
2113 | { "new_wxPNGHandler", (PyCFunction) _wrap_new_wxPNGHandler, METH_VARARGS | METH_KEYWORDS }, | |
2114 | { "wxImageHandler_SetMimeType", (PyCFunction) _wrap_wxImageHandler_SetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
2115 | { "wxImageHandler_SetType", (PyCFunction) _wrap_wxImageHandler_SetType, METH_VARARGS | METH_KEYWORDS }, | |
2116 | { "wxImageHandler_SetExtension", (PyCFunction) _wrap_wxImageHandler_SetExtension, METH_VARARGS | METH_KEYWORDS }, | |
2117 | { "wxImageHandler_SetName", (PyCFunction) _wrap_wxImageHandler_SetName, METH_VARARGS | METH_KEYWORDS }, | |
2118 | { "wxImageHandler_GetMimeType", (PyCFunction) _wrap_wxImageHandler_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
2119 | { "wxImageHandler_GetType", (PyCFunction) _wrap_wxImageHandler_GetType, METH_VARARGS | METH_KEYWORDS }, | |
2120 | { "wxImageHandler_GetExtension", (PyCFunction) _wrap_wxImageHandler_GetExtension, METH_VARARGS | METH_KEYWORDS }, | |
2121 | { "wxImageHandler_GetName", (PyCFunction) _wrap_wxImageHandler_GetName, METH_VARARGS | METH_KEYWORDS }, | |
bc29c5e0 | 2122 | { "wxInitAllImageHandlers", (PyCFunction) _wrap_wxInitAllImageHandlers, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
2123 | { "wxImage_AddHandler", (PyCFunction) _wrap_wxImage_AddHandler, METH_VARARGS | METH_KEYWORDS }, |
2124 | { "wxImageFromBitmap", (PyCFunction) _wrap_wxImageFromBitmap, METH_VARARGS | METH_KEYWORDS }, | |
2125 | { "wxImageFromMime", (PyCFunction) _wrap_wxImageFromMime, METH_VARARGS | METH_KEYWORDS }, | |
2126 | { "wxEmptyImage", (PyCFunction) _wrap_wxEmptyImage, METH_VARARGS | METH_KEYWORDS }, | |
2127 | { "wxNullImage", (PyCFunction) _wrap_wxNullImage, METH_VARARGS | METH_KEYWORDS }, | |
ab9bc19b RD |
2128 | { NULL, NULL } |
2129 | }; | |
2d091820 RD |
2130 | #ifdef __cplusplus |
2131 | } | |
2132 | #endif | |
2133 | /* | |
2134 | * This table is used by the pointer type-checker | |
2135 | */ | |
2136 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
2137 | { "_wxAcceleratorTable","_class_wxAcceleratorTable",0}, | |
2138 | { "_signed_long","_long",0}, | |
2139 | { "_class_wxJPEGHandler","_wxJPEGHandler",0}, | |
2140 | { "_wxBMPHandler","_class_wxBMPHandler",0}, | |
2141 | { "_wxImage","_class_wxImage",0}, | |
4120ef2b | 2142 | { "_wxPrintQuality","_wxCoord",0}, |
2d091820 RD |
2143 | { "_wxPrintQuality","_int",0}, |
2144 | { "_wxPrintQuality","_signed_int",0}, | |
2145 | { "_wxPrintQuality","_unsigned_int",0}, | |
2146 | { "_wxPrintQuality","_wxWindowID",0}, | |
2147 | { "_wxPrintQuality","_uint",0}, | |
2148 | { "_wxPrintQuality","_EBool",0}, | |
2149 | { "_wxPrintQuality","_size_t",0}, | |
c368d904 | 2150 | { "_wxPrintQuality","_time_t",0}, |
2d091820 RD |
2151 | { "_class_wxRegionIterator","_wxRegionIterator",0}, |
2152 | { "_wxGIFHandler","_class_wxGIFHandler",0}, | |
2153 | { "_wxIndividualLayoutConstraint","_class_wxIndividualLayoutConstraint",0}, | |
2154 | { "_wxCursor","_class_wxCursor",0}, | |
ab2208b5 RD |
2155 | { "_wxImageHandler","_class_wxTIFFHandler",SwigwxTIFFHandlerTowxImageHandler}, |
2156 | { "_wxImageHandler","_wxTIFFHandler",SwigwxTIFFHandlerTowxImageHandler}, | |
bc29c5e0 RD |
2157 | { "_wxImageHandler","_class_wxPCXHandler",SwigwxPCXHandlerTowxImageHandler}, |
2158 | { "_wxImageHandler","_wxPCXHandler",SwigwxPCXHandlerTowxImageHandler}, | |
2159 | { "_wxImageHandler","_class_wxPNMHandler",SwigwxPNMHandlerTowxImageHandler}, | |
2160 | { "_wxImageHandler","_wxPNMHandler",SwigwxPNMHandlerTowxImageHandler}, | |
2d091820 RD |
2161 | { "_wxImageHandler","_class_wxGIFHandler",SwigwxGIFHandlerTowxImageHandler}, |
2162 | { "_wxImageHandler","_wxGIFHandler",SwigwxGIFHandlerTowxImageHandler}, | |
2163 | { "_wxImageHandler","_class_wxBMPHandler",SwigwxBMPHandlerTowxImageHandler}, | |
2164 | { "_wxImageHandler","_wxBMPHandler",SwigwxBMPHandlerTowxImageHandler}, | |
2165 | { "_wxImageHandler","_class_wxJPEGHandler",SwigwxJPEGHandlerTowxImageHandler}, | |
2166 | { "_wxImageHandler","_wxJPEGHandler",SwigwxJPEGHandlerTowxImageHandler}, | |
2167 | { "_wxImageHandler","_class_wxPNGHandler",SwigwxPNGHandlerTowxImageHandler}, | |
2168 | { "_wxImageHandler","_wxPNGHandler",SwigwxPNGHandlerTowxImageHandler}, | |
2169 | { "_wxImageHandler","_class_wxImageHandler",0}, | |
2170 | { "_wxMask","_class_wxMask",0}, | |
2171 | { "_wxPNGHandler","_class_wxPNGHandler",0}, | |
2172 | { "_wxPen","_class_wxPen",0}, | |
2173 | { "_byte","_unsigned_char",0}, | |
2d091820 RD |
2174 | { "_long","_unsigned_long",0}, |
2175 | { "_long","_signed_long",0}, | |
2176 | { "_wxImageList","_class_wxImageList",0}, | |
ab2208b5 | 2177 | { "_class_wxTIFFHandler","_wxTIFFHandler",0}, |
2d091820 RD |
2178 | { "_class_wxAcceleratorTable","_wxAcceleratorTable",0}, |
2179 | { "_wxDC","_class_wxDC",0}, | |
2180 | { "_class_wxBMPHandler","_wxBMPHandler",0}, | |
4120ef2b | 2181 | { "_size_t","_wxCoord",0}, |
2d091820 | 2182 | { "_size_t","_wxPrintQuality",0}, |
c368d904 | 2183 | { "_size_t","_time_t",0}, |
2d091820 RD |
2184 | { "_size_t","_unsigned_int",0}, |
2185 | { "_size_t","_int",0}, | |
2186 | { "_size_t","_wxWindowID",0}, | |
2187 | { "_size_t","_uint",0}, | |
2188 | { "_class_wxRealPoint","_wxRealPoint",0}, | |
bc29c5e0 | 2189 | { "_wxPNMHandler","_class_wxPNMHandler",0}, |
2d091820 RD |
2190 | { "_class_wxGIFHandler","_wxGIFHandler",0}, |
2191 | { "_class_wxPostScriptDC","_wxPostScriptDC",0}, | |
2192 | { "_class_wxMask","_wxMask",0}, | |
2193 | { "_class_wxPNGHandler","_wxPNGHandler",0}, | |
2194 | { "_wxColour","_class_wxColour",0}, | |
2195 | { "_wxBrush","_class_wxBrush",0}, | |
4120ef2b | 2196 | { "_uint","_wxCoord",0}, |
2d091820 | 2197 | { "_uint","_wxPrintQuality",0}, |
c368d904 | 2198 | { "_uint","_time_t",0}, |
2d091820 RD |
2199 | { "_uint","_size_t",0}, |
2200 | { "_uint","_unsigned_int",0}, | |
2201 | { "_uint","_int",0}, | |
2202 | { "_uint","_wxWindowID",0}, | |
f6bcfd97 | 2203 | { "_wxChar","_char",0}, |
2d091820 RD |
2204 | { "_wxRect","_class_wxRect",0}, |
2205 | { "_class_wxImage","_wxImage",0}, | |
2206 | { "_wxPoint","_class_wxPoint",0}, | |
bc29c5e0 | 2207 | { "_class_wxPNMHandler","_wxPNMHandler",0}, |
f6bcfd97 | 2208 | { "_char","_wxChar",0}, |
2d091820 | 2209 | { "_wxBitmap","_class_wxBitmap",0}, |
2d091820 RD |
2210 | { "_wxWindowDC","_class_wxWindowDC",0}, |
2211 | { "_class_wxIndividualLayoutConstraint","_wxIndividualLayoutConstraint",0}, | |
4120ef2b | 2212 | { "_EBool","_wxCoord",0}, |
2d091820 RD |
2213 | { "_EBool","_wxPrintQuality",0}, |
2214 | { "_EBool","_signed_int",0}, | |
2215 | { "_EBool","_int",0}, | |
2216 | { "_EBool","_wxWindowID",0}, | |
2217 | { "_class_wxRegion","_wxRegion",0}, | |
2218 | { "_wxFont","_class_wxFont",0}, | |
2d091820 RD |
2219 | { "_unsigned_long","_long",0}, |
2220 | { "_class_wxRect","_wxRect",0}, | |
2221 | { "_class_wxDC","_wxDC",0}, | |
2d091820 | 2222 | { "_wxAcceleratorEntry","_class_wxAcceleratorEntry",0}, |
4120ef2b | 2223 | { "_signed_int","_wxCoord",0}, |
2d091820 RD |
2224 | { "_signed_int","_wxPrintQuality",0}, |
2225 | { "_signed_int","_EBool",0}, | |
2226 | { "_signed_int","_wxWindowID",0}, | |
2227 | { "_signed_int","_int",0}, | |
2228 | { "_wxLayoutConstraints","_class_wxLayoutConstraints",0}, | |
2229 | { "_wxScreenDC","_class_wxScreenDC",0}, | |
2230 | { "_WXTYPE","_short",0}, | |
2231 | { "_WXTYPE","_signed_short",0}, | |
2232 | { "_WXTYPE","_unsigned_short",0}, | |
2233 | { "_class_wxBrush","_wxBrush",0}, | |
2234 | { "_unsigned_short","_WXTYPE",0}, | |
2235 | { "_unsigned_short","_short",0}, | |
2236 | { "_class_wxFont","_wxFont",0}, | |
4120ef2b | 2237 | { "_wxBusyInfo","_class_wxBusyInfo",0}, |
2d091820 RD |
2238 | { "_wxClientDC","_class_wxClientDC",0}, |
2239 | { "_class_wxPoint","_wxPoint",0}, | |
2240 | { "_wxRealPoint","_class_wxRealPoint",0}, | |
2241 | { "_signed_short","_WXTYPE",0}, | |
2242 | { "_signed_short","_short",0}, | |
2243 | { "_wxMemoryDC","_class_wxMemoryDC",0}, | |
2244 | { "_wxPaintDC","_class_wxPaintDC",0}, | |
2245 | { "_class_wxWindowDC","_wxWindowDC",0}, | |
2246 | { "_class_wxAcceleratorEntry","_wxAcceleratorEntry",0}, | |
2247 | { "_class_wxCursor","_wxCursor",0}, | |
2248 | { "_wxPostScriptDC","_class_wxPostScriptDC",0}, | |
ab2208b5 RD |
2249 | { "_class_wxImageHandler","_class_wxTIFFHandler",SwigwxTIFFHandlerTowxImageHandler}, |
2250 | { "_class_wxImageHandler","_wxTIFFHandler",SwigwxTIFFHandlerTowxImageHandler}, | |
bc29c5e0 RD |
2251 | { "_class_wxImageHandler","_class_wxPCXHandler",SwigwxPCXHandlerTowxImageHandler}, |
2252 | { "_class_wxImageHandler","_wxPCXHandler",SwigwxPCXHandlerTowxImageHandler}, | |
2253 | { "_class_wxImageHandler","_class_wxPNMHandler",SwigwxPNMHandlerTowxImageHandler}, | |
2254 | { "_class_wxImageHandler","_wxPNMHandler",SwigwxPNMHandlerTowxImageHandler}, | |
2d091820 RD |
2255 | { "_class_wxImageHandler","_class_wxGIFHandler",SwigwxGIFHandlerTowxImageHandler}, |
2256 | { "_class_wxImageHandler","_wxGIFHandler",SwigwxGIFHandlerTowxImageHandler}, | |
2257 | { "_class_wxImageHandler","_class_wxBMPHandler",SwigwxBMPHandlerTowxImageHandler}, | |
2258 | { "_class_wxImageHandler","_wxBMPHandler",SwigwxBMPHandlerTowxImageHandler}, | |
2259 | { "_class_wxImageHandler","_class_wxJPEGHandler",SwigwxJPEGHandlerTowxImageHandler}, | |
2260 | { "_class_wxImageHandler","_wxJPEGHandler",SwigwxJPEGHandlerTowxImageHandler}, | |
2261 | { "_class_wxImageHandler","_class_wxPNGHandler",SwigwxPNGHandlerTowxImageHandler}, | |
2262 | { "_class_wxImageHandler","_wxPNGHandler",SwigwxPNGHandlerTowxImageHandler}, | |
2263 | { "_class_wxImageHandler","_wxImageHandler",0}, | |
2264 | { "_unsigned_char","_byte",0}, | |
4120ef2b | 2265 | { "_unsigned_int","_wxCoord",0}, |
2d091820 | 2266 | { "_unsigned_int","_wxPrintQuality",0}, |
c368d904 | 2267 | { "_unsigned_int","_time_t",0}, |
2d091820 RD |
2268 | { "_unsigned_int","_size_t",0}, |
2269 | { "_unsigned_int","_uint",0}, | |
2270 | { "_unsigned_int","_wxWindowID",0}, | |
2271 | { "_unsigned_int","_int",0}, | |
2272 | { "_wxIcon","_class_wxIcon",0}, | |
2273 | { "_class_wxPen","_wxPen",0}, | |
2274 | { "_short","_WXTYPE",0}, | |
2275 | { "_short","_unsigned_short",0}, | |
2276 | { "_short","_signed_short",0}, | |
2277 | { "_class_wxImageList","_wxImageList",0}, | |
bc29c5e0 | 2278 | { "_wxPCXHandler","_class_wxPCXHandler",0}, |
2d091820 | 2279 | { "_wxJPEGHandler","_class_wxJPEGHandler",0}, |
4120ef2b | 2280 | { "_wxWindowID","_wxCoord",0}, |
2d091820 | 2281 | { "_wxWindowID","_wxPrintQuality",0}, |
c368d904 | 2282 | { "_wxWindowID","_time_t",0}, |
2d091820 RD |
2283 | { "_wxWindowID","_size_t",0}, |
2284 | { "_wxWindowID","_EBool",0}, | |
2285 | { "_wxWindowID","_uint",0}, | |
2286 | { "_wxWindowID","_int",0}, | |
2287 | { "_wxWindowID","_signed_int",0}, | |
2288 | { "_wxWindowID","_unsigned_int",0}, | |
4120ef2b | 2289 | { "_int","_wxCoord",0}, |
2d091820 | 2290 | { "_int","_wxPrintQuality",0}, |
c368d904 | 2291 | { "_int","_time_t",0}, |
2d091820 RD |
2292 | { "_int","_size_t",0}, |
2293 | { "_int","_EBool",0}, | |
2294 | { "_int","_uint",0}, | |
2295 | { "_int","_wxWindowID",0}, | |
2296 | { "_int","_unsigned_int",0}, | |
2297 | { "_int","_signed_int",0}, | |
c368d904 RD |
2298 | { "_time_t","_wxCoord",0}, |
2299 | { "_time_t","_wxPrintQuality",0}, | |
2300 | { "_time_t","_unsigned_int",0}, | |
2301 | { "_time_t","_int",0}, | |
2302 | { "_time_t","_wxWindowID",0}, | |
2303 | { "_time_t","_uint",0}, | |
2304 | { "_time_t","_size_t",0}, | |
2d091820 RD |
2305 | { "_wxSize","_class_wxSize",0}, |
2306 | { "_wxRegionIterator","_class_wxRegionIterator",0}, | |
2307 | { "_class_wxPaintDC","_wxPaintDC",0}, | |
2308 | { "_class_wxLayoutConstraints","_wxLayoutConstraints",0}, | |
2309 | { "_class_wxIcon","_wxIcon",0}, | |
2310 | { "_class_wxColour","_wxColour",0}, | |
2311 | { "_class_wxScreenDC","_wxScreenDC",0}, | |
2312 | { "_wxPalette","_class_wxPalette",0}, | |
4120ef2b RD |
2313 | { "_wxCoord","_int",0}, |
2314 | { "_wxCoord","_signed_int",0}, | |
2315 | { "_wxCoord","_unsigned_int",0}, | |
2316 | { "_wxCoord","_wxWindowID",0}, | |
2317 | { "_wxCoord","_uint",0}, | |
2318 | { "_wxCoord","_EBool",0}, | |
2319 | { "_wxCoord","_size_t",0}, | |
c368d904 | 2320 | { "_wxCoord","_time_t",0}, |
4120ef2b | 2321 | { "_wxCoord","_wxPrintQuality",0}, |
2d091820 | 2322 | { "_wxRegion","_class_wxRegion",0}, |
bc29c5e0 | 2323 | { "_class_wxPCXHandler","_wxPCXHandler",0}, |
ab2208b5 | 2324 | { "_wxTIFFHandler","_class_wxTIFFHandler",0}, |
4120ef2b | 2325 | { "_class_wxBusyInfo","_wxBusyInfo",0}, |
2d091820 RD |
2326 | { "_class_wxClientDC","_wxClientDC",0}, |
2327 | { "_class_wxSize","_wxSize",0}, | |
2328 | { "_class_wxBitmap","_wxBitmap",0}, | |
2329 | { "_class_wxMemoryDC","_wxMemoryDC",0}, | |
2d091820 RD |
2330 | { "_class_wxPalette","_wxPalette",0}, |
2331 | {0,0,0}}; | |
2332 | ||
ab9bc19b RD |
2333 | static PyObject *SWIG_globals; |
2334 | #ifdef __cplusplus | |
2335 | extern "C" | |
2336 | #endif | |
2d091820 | 2337 | SWIGEXPORT(void) initimagec() { |
ab9bc19b RD |
2338 | PyObject *m, *d; |
2339 | SWIG_globals = SWIG_newvarlink(); | |
2340 | m = Py_InitModule("imagec", imagecMethods); | |
2341 | d = PyModule_GetDict(m); | |
2d091820 RD |
2342 | { |
2343 | int i; | |
2344 | for (i = 0; _swig_mapping[i].n1; i++) | |
2345 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
2346 | } | |
ab9bc19b | 2347 | } |