]>
Commit | Line | Data |
---|---|---|
cf694132 RD |
1 | /* |
2 | * FILE : msw/image.cpp | |
3 | * | |
4 | * This file was automatically generated by : | |
5 | * Simplified Wrapper and Interface Generator (SWIG) | |
1afc06c2 | 6 | * Version 1.1 (Build 810) |
cf694132 RD |
7 | * |
8 | * Portions Copyright (c) 1995-1998 | |
9 | * The University of Utah and The Regents of the University of California. | |
10 | * Permission is granted to distribute this file in any manner provided | |
11 | * this notice remains intact. | |
12 | * | |
13 | * Do not make changes to this file--changes will be lost! | |
14 | * | |
15 | */ | |
16 | ||
17 | ||
18 | #define SWIGCODE | |
19 | /* Implementation : PYTHON */ | |
20 | ||
21 | #define SWIGPYTHON | |
22 | #include <string.h> | |
23 | #include <stdlib.h> | |
24 | /* Definitions for Windows/Unix exporting */ | |
25 | #if defined(__WIN32__) | |
26 | # if defined(_MSC_VER) | |
1d99702e | 27 | # define SWIGEXPORT(a) __declspec(dllexport) a |
cf694132 RD |
28 | # else |
29 | # if defined(__BORLANDC__) | |
1d99702e | 30 | # define SWIGEXPORT(a) a _export |
cf694132 | 31 | # else |
1d99702e | 32 | # define SWIGEXPORT(a) a |
cf694132 RD |
33 | # endif |
34 | # endif | |
35 | #else | |
1d99702e | 36 | # define SWIGEXPORT(a) a |
cf694132 RD |
37 | #endif |
38 | ||
39 | #ifdef __cplusplus | |
40 | extern "C" { | |
41 | #endif | |
42 | #include "Python.h" | |
43 | extern void SWIG_MakePtr(char *, void *, char *); | |
44 | extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *)); | |
45 | extern char *SWIG_GetPtr(char *, void **, char *); | |
1d99702e | 46 | extern char *SWIG_GetPtrObj(PyObject *, void **, char *); |
cf694132 RD |
47 | extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); |
48 | extern PyObject *SWIG_newvarlink(void); | |
49 | #ifdef __cplusplus | |
50 | } | |
51 | #endif | |
cf694132 RD |
52 | #define SWIG_init initimagec |
53 | ||
54 | #define SWIG_name "imagec" | |
55 | ||
56 | #include "helpers.h" | |
57 | #include <wx/image.h> | |
58 | ||
59 | static PyObject* l_output_helper(PyObject* target, PyObject* o) { | |
60 | PyObject* o2; | |
1d99702e RD |
61 | PyObject* o3; |
62 | if (!target) { | |
cf694132 | 63 | target = o; |
1d99702e | 64 | } else if (target == Py_None) { |
cf694132 RD |
65 | Py_DECREF(Py_None); |
66 | target = o; | |
1d99702e | 67 | } else { |
cf694132 RD |
68 | if (!PyList_Check(target)) { |
69 | o2 = target; | |
70 | target = PyList_New(0); | |
71 | PyList_Append(target, o2); | |
72 | Py_XDECREF(o2); | |
73 | } | |
74 | PyList_Append(target,o); | |
75 | Py_XDECREF(o); | |
76 | } | |
77 | return target; | |
78 | } | |
79 | ||
80 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
81 | PyObject* o2; | |
82 | PyObject* o3; | |
83 | ||
1d99702e | 84 | if (!target) { |
cf694132 | 85 | target = o; |
1d99702e | 86 | } else if (target == Py_None) { |
cf694132 RD |
87 | Py_DECREF(Py_None); |
88 | target = o; | |
1d99702e | 89 | } else { |
cf694132 RD |
90 | if (!PyTuple_Check(target)) { |
91 | o2 = target; | |
92 | target = PyTuple_New(1); | |
93 | PyTuple_SetItem(target, 0, o2); | |
94 | } | |
1d99702e RD |
95 | o3 = PyTuple_New(1); |
96 | PyTuple_SetItem(o3, 0, o); | |
cf694132 RD |
97 | |
98 | o2 = target; | |
1d99702e RD |
99 | target = PySequence_Concat(o2, o3); |
100 | Py_DECREF(o2); | |
cf694132 RD |
101 | Py_DECREF(o3); |
102 | } | |
103 | return target; | |
104 | } | |
105 | ||
cf694132 RD |
106 | static char* wxStringErrorMsg = "string type is required for parameter"; |
107 | ||
108 | wxImage* wxNullImage() { | |
109 | return new wxImage; | |
110 | } | |
111 | ||
112 | wxImage* wxEmptyImage(int width, int height) { | |
113 | return new wxImage(width, height); | |
114 | } | |
115 | ||
116 | wxImage* wxImageFromMime(const wxString& name, const wxString& mimetype) { | |
117 | return new wxImage(name, mimetype); | |
118 | } | |
119 | ||
120 | wxImage* wxImageFromBitmap(const wxBitmap &bitmap) { | |
121 | return new wxImage(bitmap); | |
122 | } | |
123 | ||
124 | void wxImage_AddHandler(wxImageHandler *handler) { | |
125 | wxImage::AddHandler(handler); | |
126 | } | |
1d99702e RD |
127 | #ifdef __cplusplus |
128 | extern "C" { | |
129 | #endif | |
efc5f224 | 130 | static PyObject *_wrap_wxNullImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 RD |
131 | PyObject * _resultobj; |
132 | wxImage * _result; | |
efc5f224 | 133 | char *_kwnames[] = { NULL }; |
cf694132 RD |
134 | char _ptemp[128]; |
135 | ||
136 | self = self; | |
efc5f224 | 137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxNullImage",_kwnames)) |
cf694132 RD |
138 | return NULL; |
139 | { | |
140 | wxPy_BEGIN_ALLOW_THREADS; | |
141 | _result = (wxImage *)wxNullImage(); | |
142 | ||
143 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
144 | } if (_result) { |
145 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxImage_p"); | |
146 | _resultobj = Py_BuildValue("s",_ptemp); | |
147 | } else { | |
148 | Py_INCREF(Py_None); | |
149 | _resultobj = Py_None; | |
150 | } | |
cf694132 RD |
151 | return _resultobj; |
152 | } | |
153 | ||
efc5f224 | 154 | static PyObject *_wrap_wxEmptyImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 RD |
155 | PyObject * _resultobj; |
156 | wxImage * _result; | |
157 | int _arg0; | |
158 | int _arg1; | |
efc5f224 | 159 | char *_kwnames[] = { "width","height", NULL }; |
cf694132 RD |
160 | char _ptemp[128]; |
161 | ||
162 | self = self; | |
efc5f224 | 163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"ii:wxEmptyImage",_kwnames,&_arg0,&_arg1)) |
cf694132 RD |
164 | return NULL; |
165 | { | |
166 | wxPy_BEGIN_ALLOW_THREADS; | |
167 | _result = (wxImage *)wxEmptyImage(_arg0,_arg1); | |
168 | ||
169 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
170 | } if (_result) { |
171 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxImage_p"); | |
172 | _resultobj = Py_BuildValue("s",_ptemp); | |
173 | } else { | |
174 | Py_INCREF(Py_None); | |
175 | _resultobj = Py_None; | |
176 | } | |
cf694132 RD |
177 | return _resultobj; |
178 | } | |
179 | ||
efc5f224 | 180 | static PyObject *_wrap_wxImageFromMime(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 RD |
181 | PyObject * _resultobj; |
182 | wxImage * _result; | |
183 | wxString * _arg0; | |
184 | wxString * _arg1; | |
185 | PyObject * _obj0 = 0; | |
186 | PyObject * _obj1 = 0; | |
efc5f224 | 187 | char *_kwnames[] = { "name","mimetype", NULL }; |
cf694132 RD |
188 | char _ptemp[128]; |
189 | ||
190 | self = self; | |
efc5f224 | 191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxImageFromMime",_kwnames,&_obj0,&_obj1)) |
cf694132 RD |
192 | return NULL; |
193 | { | |
194 | if (!PyString_Check(_obj0)) { | |
195 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
196 | return NULL; | |
197 | } | |
198 | _arg0 = new wxString(PyString_AsString(_obj0), PyString_Size(_obj0)); | |
199 | } | |
200 | { | |
201 | if (!PyString_Check(_obj1)) { | |
202 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
203 | return NULL; | |
204 | } | |
205 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); | |
206 | } | |
207 | { | |
208 | wxPy_BEGIN_ALLOW_THREADS; | |
209 | _result = (wxImage *)wxImageFromMime(*_arg0,*_arg1); | |
210 | ||
211 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
212 | } if (_result) { |
213 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxImage_p"); | |
214 | _resultobj = Py_BuildValue("s",_ptemp); | |
215 | } else { | |
216 | Py_INCREF(Py_None); | |
217 | _resultobj = Py_None; | |
218 | } | |
cf694132 RD |
219 | { |
220 | if (_obj0) | |
221 | delete _arg0; | |
222 | } | |
223 | { | |
224 | if (_obj1) | |
225 | delete _arg1; | |
226 | } | |
227 | return _resultobj; | |
228 | } | |
229 | ||
efc5f224 | 230 | static PyObject *_wrap_wxImageFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 RD |
231 | PyObject * _resultobj; |
232 | wxImage * _result; | |
233 | wxBitmap * _arg0; | |
1d99702e | 234 | PyObject * _argo0 = 0; |
efc5f224 | 235 | char *_kwnames[] = { "bitmap", NULL }; |
cf694132 RD |
236 | char _ptemp[128]; |
237 | ||
238 | self = self; | |
efc5f224 | 239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageFromBitmap",_kwnames,&_argo0)) |
cf694132 | 240 | return NULL; |
1d99702e RD |
241 | if (_argo0) { |
242 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
243 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
cf694132 RD |
244 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageFromBitmap. Expected _wxBitmap_p."); |
245 | return NULL; | |
246 | } | |
247 | } | |
248 | { | |
249 | wxPy_BEGIN_ALLOW_THREADS; | |
250 | _result = (wxImage *)wxImageFromBitmap(*_arg0); | |
251 | ||
252 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
253 | } if (_result) { |
254 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxImage_p"); | |
255 | _resultobj = Py_BuildValue("s",_ptemp); | |
256 | } else { | |
257 | Py_INCREF(Py_None); | |
258 | _resultobj = Py_None; | |
259 | } | |
cf694132 RD |
260 | return _resultobj; |
261 | } | |
262 | ||
efc5f224 | 263 | static PyObject *_wrap_wxImage_AddHandler(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 RD |
264 | PyObject * _resultobj; |
265 | wxImageHandler * _arg0; | |
1d99702e | 266 | PyObject * _argo0 = 0; |
efc5f224 | 267 | char *_kwnames[] = { "handler", NULL }; |
cf694132 RD |
268 | |
269 | self = self; | |
efc5f224 | 270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImage_AddHandler",_kwnames,&_argo0)) |
cf694132 | 271 | return NULL; |
1d99702e RD |
272 | if (_argo0) { |
273 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
274 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageHandler_p")) { | |
cf694132 RD |
275 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_AddHandler. Expected _wxImageHandler_p."); |
276 | return NULL; | |
277 | } | |
278 | } | |
279 | { | |
280 | wxPy_BEGIN_ALLOW_THREADS; | |
281 | wxImage_AddHandler(_arg0); | |
282 | ||
283 | wxPy_END_ALLOW_THREADS; | |
284 | } Py_INCREF(Py_None); | |
285 | _resultobj = Py_None; | |
286 | return _resultobj; | |
287 | } | |
288 | ||
06c0fba4 RD |
289 | static PyObject *_wrap_wxInitAllImageHandlers(PyObject *self, PyObject *args, PyObject *kwargs) { |
290 | PyObject * _resultobj; | |
291 | char *_kwnames[] = { NULL }; | |
292 | ||
293 | self = self; | |
294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxInitAllImageHandlers",_kwnames)) | |
295 | return NULL; | |
296 | { | |
297 | wxPy_BEGIN_ALLOW_THREADS; | |
298 | wxInitAllImageHandlers(); | |
299 | ||
300 | wxPy_END_ALLOW_THREADS; | |
301 | } Py_INCREF(Py_None); | |
302 | _resultobj = Py_None; | |
303 | return _resultobj; | |
304 | } | |
305 | ||
cf694132 | 306 | #define new_wxImageHandler() (new wxImageHandler()) |
efc5f224 | 307 | static PyObject *_wrap_new_wxImageHandler(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 RD |
308 | PyObject * _resultobj; |
309 | wxImageHandler * _result; | |
efc5f224 | 310 | char *_kwnames[] = { NULL }; |
cf694132 RD |
311 | char _ptemp[128]; |
312 | ||
313 | self = self; | |
efc5f224 | 314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxImageHandler",_kwnames)) |
cf694132 RD |
315 | return NULL; |
316 | { | |
317 | wxPy_BEGIN_ALLOW_THREADS; | |
318 | _result = (wxImageHandler *)new_wxImageHandler(); | |
319 | ||
320 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
321 | } if (_result) { |
322 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxImageHandler_p"); | |
323 | _resultobj = Py_BuildValue("s",_ptemp); | |
324 | } else { | |
325 | Py_INCREF(Py_None); | |
326 | _resultobj = Py_None; | |
327 | } | |
cf694132 RD |
328 | return _resultobj; |
329 | } | |
330 | ||
331 | #define wxImageHandler_GetName(_swigobj) (_swigobj->GetName()) | |
efc5f224 | 332 | static PyObject *_wrap_wxImageHandler_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 RD |
333 | PyObject * _resultobj; |
334 | wxString * _result; | |
335 | wxImageHandler * _arg0; | |
1d99702e | 336 | PyObject * _argo0 = 0; |
efc5f224 | 337 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
338 | |
339 | self = self; | |
efc5f224 | 340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageHandler_GetName",_kwnames,&_argo0)) |
cf694132 | 341 | return NULL; |
1d99702e RD |
342 | if (_argo0) { |
343 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
344 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageHandler_p")) { | |
cf694132 RD |
345 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageHandler_GetName. Expected _wxImageHandler_p."); |
346 | return NULL; | |
347 | } | |
348 | } | |
349 | { | |
350 | wxPy_BEGIN_ALLOW_THREADS; | |
351 | _result = new wxString (wxImageHandler_GetName(_arg0)); | |
352 | ||
353 | wxPy_END_ALLOW_THREADS; | |
354 | }{ | |
355 | _resultobj = PyString_FromString(WXSTRINGCAST *(_result)); | |
356 | } | |
357 | { | |
358 | delete _result; | |
359 | } | |
360 | return _resultobj; | |
361 | } | |
362 | ||
363 | #define wxImageHandler_GetExtension(_swigobj) (_swigobj->GetExtension()) | |
efc5f224 | 364 | static PyObject *_wrap_wxImageHandler_GetExtension(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 RD |
365 | PyObject * _resultobj; |
366 | wxString * _result; | |
367 | wxImageHandler * _arg0; | |
1d99702e | 368 | PyObject * _argo0 = 0; |
efc5f224 | 369 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
370 | |
371 | self = self; | |
efc5f224 | 372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageHandler_GetExtension",_kwnames,&_argo0)) |
cf694132 | 373 | return NULL; |
1d99702e RD |
374 | if (_argo0) { |
375 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
376 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageHandler_p")) { | |
cf694132 RD |
377 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageHandler_GetExtension. Expected _wxImageHandler_p."); |
378 | return NULL; | |
379 | } | |
380 | } | |
381 | { | |
382 | wxPy_BEGIN_ALLOW_THREADS; | |
383 | _result = new wxString (wxImageHandler_GetExtension(_arg0)); | |
384 | ||
385 | wxPy_END_ALLOW_THREADS; | |
386 | }{ | |
387 | _resultobj = PyString_FromString(WXSTRINGCAST *(_result)); | |
388 | } | |
389 | { | |
390 | delete _result; | |
391 | } | |
392 | return _resultobj; | |
393 | } | |
394 | ||
395 | #define wxImageHandler_GetType(_swigobj) (_swigobj->GetType()) | |
efc5f224 | 396 | static PyObject *_wrap_wxImageHandler_GetType(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 RD |
397 | PyObject * _resultobj; |
398 | long _result; | |
399 | wxImageHandler * _arg0; | |
1d99702e | 400 | PyObject * _argo0 = 0; |
efc5f224 | 401 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
402 | |
403 | self = self; | |
efc5f224 | 404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageHandler_GetType",_kwnames,&_argo0)) |
cf694132 | 405 | return NULL; |
1d99702e RD |
406 | if (_argo0) { |
407 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
408 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageHandler_p")) { | |
cf694132 RD |
409 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageHandler_GetType. Expected _wxImageHandler_p."); |
410 | return NULL; | |
411 | } | |
412 | } | |
413 | { | |
414 | wxPy_BEGIN_ALLOW_THREADS; | |
415 | _result = (long )wxImageHandler_GetType(_arg0); | |
416 | ||
417 | wxPy_END_ALLOW_THREADS; | |
418 | } _resultobj = Py_BuildValue("l",_result); | |
419 | return _resultobj; | |
420 | } | |
421 | ||
422 | #define wxImageHandler_GetMimeType(_swigobj) (_swigobj->GetMimeType()) | |
efc5f224 | 423 | static PyObject *_wrap_wxImageHandler_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 RD |
424 | PyObject * _resultobj; |
425 | wxString * _result; | |
426 | wxImageHandler * _arg0; | |
1d99702e | 427 | PyObject * _argo0 = 0; |
efc5f224 | 428 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
429 | |
430 | self = self; | |
efc5f224 | 431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageHandler_GetMimeType",_kwnames,&_argo0)) |
cf694132 | 432 | return NULL; |
1d99702e RD |
433 | if (_argo0) { |
434 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
435 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageHandler_p")) { | |
cf694132 RD |
436 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageHandler_GetMimeType. Expected _wxImageHandler_p."); |
437 | return NULL; | |
438 | } | |
439 | } | |
440 | { | |
441 | wxPy_BEGIN_ALLOW_THREADS; | |
442 | _result = new wxString (wxImageHandler_GetMimeType(_arg0)); | |
443 | ||
444 | wxPy_END_ALLOW_THREADS; | |
445 | }{ | |
446 | _resultobj = PyString_FromString(WXSTRINGCAST *(_result)); | |
447 | } | |
448 | { | |
449 | delete _result; | |
450 | } | |
451 | return _resultobj; | |
452 | } | |
453 | ||
454 | #define wxImageHandler_SetName(_swigobj,_swigarg0) (_swigobj->SetName(_swigarg0)) | |
efc5f224 | 455 | static PyObject *_wrap_wxImageHandler_SetName(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 RD |
456 | PyObject * _resultobj; |
457 | wxImageHandler * _arg0; | |
458 | wxString * _arg1; | |
1d99702e | 459 | PyObject * _argo0 = 0; |
cf694132 | 460 | PyObject * _obj1 = 0; |
efc5f224 | 461 | char *_kwnames[] = { "self","name", NULL }; |
cf694132 RD |
462 | |
463 | self = self; | |
efc5f224 | 464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxImageHandler_SetName",_kwnames,&_argo0,&_obj1)) |
cf694132 | 465 | return NULL; |
1d99702e RD |
466 | if (_argo0) { |
467 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
468 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageHandler_p")) { | |
cf694132 RD |
469 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageHandler_SetName. Expected _wxImageHandler_p."); |
470 | return NULL; | |
471 | } | |
472 | } | |
473 | { | |
474 | if (!PyString_Check(_obj1)) { | |
475 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
476 | return NULL; | |
477 | } | |
478 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); | |
479 | } | |
480 | { | |
481 | wxPy_BEGIN_ALLOW_THREADS; | |
482 | wxImageHandler_SetName(_arg0,*_arg1); | |
483 | ||
484 | wxPy_END_ALLOW_THREADS; | |
485 | } Py_INCREF(Py_None); | |
486 | _resultobj = Py_None; | |
487 | { | |
488 | if (_obj1) | |
489 | delete _arg1; | |
490 | } | |
491 | return _resultobj; | |
492 | } | |
493 | ||
494 | #define wxImageHandler_SetExtension(_swigobj,_swigarg0) (_swigobj->SetExtension(_swigarg0)) | |
efc5f224 | 495 | static PyObject *_wrap_wxImageHandler_SetExtension(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 RD |
496 | PyObject * _resultobj; |
497 | wxImageHandler * _arg0; | |
498 | wxString * _arg1; | |
1d99702e | 499 | PyObject * _argo0 = 0; |
cf694132 | 500 | PyObject * _obj1 = 0; |
efc5f224 | 501 | char *_kwnames[] = { "self","extension", NULL }; |
cf694132 RD |
502 | |
503 | self = self; | |
efc5f224 | 504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxImageHandler_SetExtension",_kwnames,&_argo0,&_obj1)) |
cf694132 | 505 | return NULL; |
1d99702e RD |
506 | if (_argo0) { |
507 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
508 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageHandler_p")) { | |
cf694132 RD |
509 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageHandler_SetExtension. Expected _wxImageHandler_p."); |
510 | return NULL; | |
511 | } | |
512 | } | |
513 | { | |
514 | if (!PyString_Check(_obj1)) { | |
515 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
516 | return NULL; | |
517 | } | |
518 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); | |
519 | } | |
520 | { | |
521 | wxPy_BEGIN_ALLOW_THREADS; | |
522 | wxImageHandler_SetExtension(_arg0,*_arg1); | |
523 | ||
524 | wxPy_END_ALLOW_THREADS; | |
525 | } Py_INCREF(Py_None); | |
526 | _resultobj = Py_None; | |
527 | { | |
528 | if (_obj1) | |
529 | delete _arg1; | |
530 | } | |
531 | return _resultobj; | |
532 | } | |
533 | ||
534 | #define wxImageHandler_SetType(_swigobj,_swigarg0) (_swigobj->SetType(_swigarg0)) | |
efc5f224 | 535 | static PyObject *_wrap_wxImageHandler_SetType(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 RD |
536 | PyObject * _resultobj; |
537 | wxImageHandler * _arg0; | |
538 | long _arg1; | |
1d99702e | 539 | PyObject * _argo0 = 0; |
efc5f224 | 540 | char *_kwnames[] = { "self","type", NULL }; |
cf694132 RD |
541 | |
542 | self = self; | |
efc5f224 | 543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxImageHandler_SetType",_kwnames,&_argo0,&_arg1)) |
cf694132 | 544 | return NULL; |
1d99702e RD |
545 | if (_argo0) { |
546 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
547 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageHandler_p")) { | |
cf694132 RD |
548 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageHandler_SetType. Expected _wxImageHandler_p."); |
549 | return NULL; | |
550 | } | |
551 | } | |
552 | { | |
553 | wxPy_BEGIN_ALLOW_THREADS; | |
554 | wxImageHandler_SetType(_arg0,_arg1); | |
555 | ||
556 | wxPy_END_ALLOW_THREADS; | |
557 | } Py_INCREF(Py_None); | |
558 | _resultobj = Py_None; | |
559 | return _resultobj; | |
560 | } | |
561 | ||
562 | #define wxImageHandler_SetMimeType(_swigobj,_swigarg0) (_swigobj->SetMimeType(_swigarg0)) | |
efc5f224 | 563 | static PyObject *_wrap_wxImageHandler_SetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 RD |
564 | PyObject * _resultobj; |
565 | wxImageHandler * _arg0; | |
566 | wxString * _arg1; | |
1d99702e | 567 | PyObject * _argo0 = 0; |
cf694132 | 568 | PyObject * _obj1 = 0; |
efc5f224 | 569 | char *_kwnames[] = { "self","mimetype", NULL }; |
cf694132 RD |
570 | |
571 | self = self; | |
efc5f224 | 572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxImageHandler_SetMimeType",_kwnames,&_argo0,&_obj1)) |
cf694132 | 573 | return NULL; |
1d99702e RD |
574 | if (_argo0) { |
575 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
576 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageHandler_p")) { | |
cf694132 RD |
577 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageHandler_SetMimeType. Expected _wxImageHandler_p."); |
578 | return NULL; | |
579 | } | |
580 | } | |
581 | { | |
582 | if (!PyString_Check(_obj1)) { | |
583 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
584 | return NULL; | |
585 | } | |
586 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); | |
587 | } | |
588 | { | |
589 | wxPy_BEGIN_ALLOW_THREADS; | |
590 | wxImageHandler_SetMimeType(_arg0,*_arg1); | |
591 | ||
592 | wxPy_END_ALLOW_THREADS; | |
593 | } Py_INCREF(Py_None); | |
594 | _resultobj = Py_None; | |
595 | { | |
596 | if (_obj1) | |
597 | delete _arg1; | |
598 | } | |
599 | return _resultobj; | |
600 | } | |
601 | ||
602 | static void *SwigwxPNGHandlerTowxImageHandler(void *ptr) { | |
603 | wxPNGHandler *src; | |
604 | wxImageHandler *dest; | |
605 | src = (wxPNGHandler *) ptr; | |
606 | dest = (wxImageHandler *) src; | |
607 | return (void *) dest; | |
608 | } | |
609 | ||
610 | #define new_wxPNGHandler() (new wxPNGHandler()) | |
efc5f224 | 611 | static PyObject *_wrap_new_wxPNGHandler(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 RD |
612 | PyObject * _resultobj; |
613 | wxPNGHandler * _result; | |
efc5f224 | 614 | char *_kwnames[] = { NULL }; |
cf694132 RD |
615 | char _ptemp[128]; |
616 | ||
617 | self = self; | |
efc5f224 | 618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPNGHandler",_kwnames)) |
cf694132 RD |
619 | return NULL; |
620 | { | |
621 | wxPy_BEGIN_ALLOW_THREADS; | |
622 | _result = (wxPNGHandler *)new_wxPNGHandler(); | |
623 | ||
624 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
625 | } if (_result) { |
626 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPNGHandler_p"); | |
627 | _resultobj = Py_BuildValue("s",_ptemp); | |
628 | } else { | |
629 | Py_INCREF(Py_None); | |
630 | _resultobj = Py_None; | |
631 | } | |
cf694132 RD |
632 | return _resultobj; |
633 | } | |
634 | ||
635 | static void *SwigwxJPEGHandlerTowxImageHandler(void *ptr) { | |
636 | wxJPEGHandler *src; | |
637 | wxImageHandler *dest; | |
638 | src = (wxJPEGHandler *) ptr; | |
639 | dest = (wxImageHandler *) src; | |
640 | return (void *) dest; | |
641 | } | |
642 | ||
643 | #define new_wxJPEGHandler() (new wxJPEGHandler()) | |
efc5f224 | 644 | static PyObject *_wrap_new_wxJPEGHandler(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 RD |
645 | PyObject * _resultobj; |
646 | wxJPEGHandler * _result; | |
efc5f224 | 647 | char *_kwnames[] = { NULL }; |
cf694132 RD |
648 | char _ptemp[128]; |
649 | ||
650 | self = self; | |
efc5f224 | 651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxJPEGHandler",_kwnames)) |
cf694132 RD |
652 | return NULL; |
653 | { | |
654 | wxPy_BEGIN_ALLOW_THREADS; | |
655 | _result = (wxJPEGHandler *)new_wxJPEGHandler(); | |
656 | ||
657 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
658 | } if (_result) { |
659 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxJPEGHandler_p"); | |
660 | _resultobj = Py_BuildValue("s",_ptemp); | |
661 | } else { | |
662 | Py_INCREF(Py_None); | |
663 | _resultobj = Py_None; | |
664 | } | |
cf694132 RD |
665 | return _resultobj; |
666 | } | |
667 | ||
668 | static void *SwigwxBMPHandlerTowxImageHandler(void *ptr) { | |
669 | wxBMPHandler *src; | |
670 | wxImageHandler *dest; | |
671 | src = (wxBMPHandler *) ptr; | |
672 | dest = (wxImageHandler *) src; | |
673 | return (void *) dest; | |
674 | } | |
675 | ||
676 | #define new_wxBMPHandler() (new wxBMPHandler()) | |
efc5f224 | 677 | static PyObject *_wrap_new_wxBMPHandler(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 RD |
678 | PyObject * _resultobj; |
679 | wxBMPHandler * _result; | |
efc5f224 | 680 | char *_kwnames[] = { NULL }; |
cf694132 RD |
681 | char _ptemp[128]; |
682 | ||
683 | self = self; | |
efc5f224 | 684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxBMPHandler",_kwnames)) |
cf694132 RD |
685 | return NULL; |
686 | { | |
687 | wxPy_BEGIN_ALLOW_THREADS; | |
688 | _result = (wxBMPHandler *)new_wxBMPHandler(); | |
689 | ||
690 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
691 | } if (_result) { |
692 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBMPHandler_p"); | |
693 | _resultobj = Py_BuildValue("s",_ptemp); | |
694 | } else { | |
695 | Py_INCREF(Py_None); | |
696 | _resultobj = Py_None; | |
697 | } | |
cf694132 RD |
698 | return _resultobj; |
699 | } | |
700 | ||
701 | static void *SwigwxGIFHandlerTowxImageHandler(void *ptr) { | |
702 | wxGIFHandler *src; | |
703 | wxImageHandler *dest; | |
704 | src = (wxGIFHandler *) ptr; | |
705 | dest = (wxImageHandler *) src; | |
706 | return (void *) dest; | |
707 | } | |
708 | ||
709 | #define new_wxGIFHandler() (new wxGIFHandler()) | |
efc5f224 | 710 | static PyObject *_wrap_new_wxGIFHandler(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 RD |
711 | PyObject * _resultobj; |
712 | wxGIFHandler * _result; | |
efc5f224 | 713 | char *_kwnames[] = { NULL }; |
cf694132 RD |
714 | char _ptemp[128]; |
715 | ||
716 | self = self; | |
efc5f224 | 717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxGIFHandler",_kwnames)) |
cf694132 RD |
718 | return NULL; |
719 | { | |
720 | wxPy_BEGIN_ALLOW_THREADS; | |
721 | _result = (wxGIFHandler *)new_wxGIFHandler(); | |
722 | ||
723 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
724 | } if (_result) { |
725 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGIFHandler_p"); | |
726 | _resultobj = Py_BuildValue("s",_ptemp); | |
727 | } else { | |
728 | Py_INCREF(Py_None); | |
729 | _resultobj = Py_None; | |
730 | } | |
cf694132 RD |
731 | return _resultobj; |
732 | } | |
733 | ||
06c0fba4 RD |
734 | static void *SwigwxPNMHandlerTowxImageHandler(void *ptr) { |
735 | wxPNMHandler *src; | |
736 | wxImageHandler *dest; | |
737 | src = (wxPNMHandler *) ptr; | |
738 | dest = (wxImageHandler *) src; | |
739 | return (void *) dest; | |
740 | } | |
741 | ||
742 | #define new_wxPNMHandler() (new wxPNMHandler()) | |
743 | static PyObject *_wrap_new_wxPNMHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
744 | PyObject * _resultobj; | |
745 | wxPNMHandler * _result; | |
746 | char *_kwnames[] = { NULL }; | |
747 | char _ptemp[128]; | |
748 | ||
749 | self = self; | |
750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPNMHandler",_kwnames)) | |
751 | return NULL; | |
752 | { | |
753 | wxPy_BEGIN_ALLOW_THREADS; | |
754 | _result = (wxPNMHandler *)new_wxPNMHandler(); | |
755 | ||
756 | wxPy_END_ALLOW_THREADS; | |
757 | } if (_result) { | |
758 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPNMHandler_p"); | |
759 | _resultobj = Py_BuildValue("s",_ptemp); | |
760 | } else { | |
761 | Py_INCREF(Py_None); | |
762 | _resultobj = Py_None; | |
763 | } | |
764 | return _resultobj; | |
765 | } | |
766 | ||
767 | static void *SwigwxPCXHandlerTowxImageHandler(void *ptr) { | |
768 | wxPCXHandler *src; | |
769 | wxImageHandler *dest; | |
770 | src = (wxPCXHandler *) ptr; | |
771 | dest = (wxImageHandler *) src; | |
772 | return (void *) dest; | |
773 | } | |
774 | ||
775 | #define new_wxPCXHandler() (new wxPCXHandler()) | |
776 | static PyObject *_wrap_new_wxPCXHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
777 | PyObject * _resultobj; | |
778 | wxPCXHandler * _result; | |
779 | char *_kwnames[] = { NULL }; | |
780 | char _ptemp[128]; | |
781 | ||
782 | self = self; | |
783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPCXHandler",_kwnames)) | |
784 | return NULL; | |
785 | { | |
786 | wxPy_BEGIN_ALLOW_THREADS; | |
787 | _result = (wxPCXHandler *)new_wxPCXHandler(); | |
788 | ||
789 | wxPy_END_ALLOW_THREADS; | |
790 | } if (_result) { | |
791 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPCXHandler_p"); | |
792 | _resultobj = Py_BuildValue("s",_ptemp); | |
793 | } else { | |
794 | Py_INCREF(Py_None); | |
795 | _resultobj = Py_None; | |
796 | } | |
797 | return _resultobj; | |
798 | } | |
799 | ||
cf694132 | 800 | #define new_wxImage(_swigarg0,_swigarg1) (new wxImage(_swigarg0,_swigarg1)) |
efc5f224 | 801 | static PyObject *_wrap_new_wxImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 RD |
802 | PyObject * _resultobj; |
803 | wxImage * _result; | |
804 | wxString * _arg0; | |
1d99702e | 805 | long _arg1 = (long ) wxBITMAP_TYPE_PNG; |
cf694132 | 806 | PyObject * _obj0 = 0; |
efc5f224 | 807 | char *_kwnames[] = { "name","type", NULL }; |
cf694132 RD |
808 | char _ptemp[128]; |
809 | ||
810 | self = self; | |
efc5f224 | 811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|l:new_wxImage",_kwnames,&_obj0,&_arg1)) |
cf694132 RD |
812 | return NULL; |
813 | { | |
814 | if (!PyString_Check(_obj0)) { | |
815 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
816 | return NULL; | |
817 | } | |
818 | _arg0 = new wxString(PyString_AsString(_obj0), PyString_Size(_obj0)); | |
819 | } | |
820 | { | |
821 | wxPy_BEGIN_ALLOW_THREADS; | |
822 | _result = (wxImage *)new_wxImage(*_arg0,_arg1); | |
823 | ||
824 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
825 | } if (_result) { |
826 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxImage_p"); | |
827 | _resultobj = Py_BuildValue("s",_ptemp); | |
828 | } else { | |
829 | Py_INCREF(Py_None); | |
830 | _resultobj = Py_None; | |
831 | } | |
cf694132 RD |
832 | { |
833 | if (_obj0) | |
834 | delete _arg0; | |
835 | } | |
836 | return _resultobj; | |
837 | } | |
838 | ||
839 | #define delete_wxImage(_swigobj) (delete _swigobj) | |
efc5f224 | 840 | static PyObject *_wrap_delete_wxImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 RD |
841 | PyObject * _resultobj; |
842 | wxImage * _arg0; | |
1d99702e | 843 | PyObject * _argo0 = 0; |
efc5f224 | 844 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
845 | |
846 | self = self; | |
efc5f224 | 847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxImage",_kwnames,&_argo0)) |
cf694132 | 848 | return NULL; |
1d99702e RD |
849 | if (_argo0) { |
850 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
851 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) { | |
cf694132 RD |
852 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxImage. Expected _wxImage_p."); |
853 | return NULL; | |
854 | } | |
855 | } | |
856 | { | |
857 | wxPy_BEGIN_ALLOW_THREADS; | |
858 | delete_wxImage(_arg0); | |
859 | ||
860 | wxPy_END_ALLOW_THREADS; | |
861 | } Py_INCREF(Py_None); | |
862 | _resultobj = Py_None; | |
863 | return _resultobj; | |
864 | } | |
865 | ||
866 | #define wxImage_ConvertToBitmap(_swigobj) (_swigobj->ConvertToBitmap()) | |
efc5f224 | 867 | static PyObject *_wrap_wxImage_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 RD |
868 | PyObject * _resultobj; |
869 | wxBitmap * _result; | |
870 | wxImage * _arg0; | |
1d99702e | 871 | PyObject * _argo0 = 0; |
efc5f224 | 872 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
873 | char _ptemp[128]; |
874 | ||
875 | self = self; | |
efc5f224 | 876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImage_ConvertToBitmap",_kwnames,&_argo0)) |
cf694132 | 877 | return NULL; |
1d99702e RD |
878 | if (_argo0) { |
879 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
880 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) { | |
cf694132 RD |
881 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_ConvertToBitmap. Expected _wxImage_p."); |
882 | return NULL; | |
883 | } | |
884 | } | |
885 | { | |
886 | wxPy_BEGIN_ALLOW_THREADS; | |
887 | _result = new wxBitmap (wxImage_ConvertToBitmap(_arg0)); | |
888 | ||
889 | wxPy_END_ALLOW_THREADS; | |
890 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); | |
891 | _resultobj = Py_BuildValue("s",_ptemp); | |
892 | return _resultobj; | |
893 | } | |
894 | ||
895 | #define wxImage_Create(_swigobj,_swigarg0,_swigarg1) (_swigobj->Create(_swigarg0,_swigarg1)) | |
efc5f224 | 896 | static PyObject *_wrap_wxImage_Create(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 RD |
897 | PyObject * _resultobj; |
898 | wxImage * _arg0; | |
899 | int _arg1; | |
900 | int _arg2; | |
1d99702e | 901 | PyObject * _argo0 = 0; |
efc5f224 | 902 | char *_kwnames[] = { "self","width","height", NULL }; |
cf694132 RD |
903 | |
904 | self = self; | |
efc5f224 | 905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxImage_Create",_kwnames,&_argo0,&_arg1,&_arg2)) |
cf694132 | 906 | return NULL; |
1d99702e RD |
907 | if (_argo0) { |
908 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
909 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) { | |
cf694132 RD |
910 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_Create. Expected _wxImage_p."); |
911 | return NULL; | |
912 | } | |
913 | } | |
914 | { | |
915 | wxPy_BEGIN_ALLOW_THREADS; | |
916 | wxImage_Create(_arg0,_arg1,_arg2); | |
917 | ||
918 | wxPy_END_ALLOW_THREADS; | |
919 | } Py_INCREF(Py_None); | |
920 | _resultobj = Py_None; | |
921 | return _resultobj; | |
922 | } | |
923 | ||
924 | #define wxImage_Destroy(_swigobj) (_swigobj->Destroy()) | |
efc5f224 | 925 | static PyObject *_wrap_wxImage_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 RD |
926 | PyObject * _resultobj; |
927 | wxImage * _arg0; | |
1d99702e | 928 | PyObject * _argo0 = 0; |
efc5f224 | 929 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
930 | |
931 | self = self; | |
efc5f224 | 932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImage_Destroy",_kwnames,&_argo0)) |
cf694132 | 933 | return NULL; |
1d99702e RD |
934 | if (_argo0) { |
935 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
936 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) { | |
cf694132 RD |
937 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_Destroy. Expected _wxImage_p."); |
938 | return NULL; | |
939 | } | |
940 | } | |
941 | { | |
942 | wxPy_BEGIN_ALLOW_THREADS; | |
943 | wxImage_Destroy(_arg0); | |
944 | ||
945 | wxPy_END_ALLOW_THREADS; | |
946 | } Py_INCREF(Py_None); | |
947 | _resultobj = Py_None; | |
948 | return _resultobj; | |
949 | } | |
950 | ||
951 | #define wxImage_Scale(_swigobj,_swigarg0,_swigarg1) (_swigobj->Scale(_swigarg0,_swigarg1)) | |
efc5f224 | 952 | static PyObject *_wrap_wxImage_Scale(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 RD |
953 | PyObject * _resultobj; |
954 | wxImage * _result; | |
955 | wxImage * _arg0; | |
956 | int _arg1; | |
957 | int _arg2; | |
1d99702e | 958 | PyObject * _argo0 = 0; |
efc5f224 | 959 | char *_kwnames[] = { "self","width","height", NULL }; |
cf694132 RD |
960 | char _ptemp[128]; |
961 | ||
962 | self = self; | |
efc5f224 | 963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxImage_Scale",_kwnames,&_argo0,&_arg1,&_arg2)) |
cf694132 | 964 | return NULL; |
1d99702e RD |
965 | if (_argo0) { |
966 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
967 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) { | |
cf694132 RD |
968 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_Scale. Expected _wxImage_p."); |
969 | return NULL; | |
970 | } | |
971 | } | |
972 | { | |
973 | wxPy_BEGIN_ALLOW_THREADS; | |
974 | _result = new wxImage (wxImage_Scale(_arg0,_arg1,_arg2)); | |
975 | ||
976 | wxPy_END_ALLOW_THREADS; | |
977 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxImage_p"); | |
978 | _resultobj = Py_BuildValue("s",_ptemp); | |
979 | return _resultobj; | |
980 | } | |
981 | ||
8bf5d46e | 982 | #define wxImage_Rescale(_swigobj,_swigarg0,_swigarg1) (_swigobj->Rescale(_swigarg0,_swigarg1)) |
efc5f224 | 983 | static PyObject *_wrap_wxImage_Rescale(PyObject *self, PyObject *args, PyObject *kwargs) { |
8bf5d46e RD |
984 | PyObject * _resultobj; |
985 | wxImage * _arg0; | |
986 | int _arg1; | |
987 | int _arg2; | |
1d99702e | 988 | PyObject * _argo0 = 0; |
efc5f224 | 989 | char *_kwnames[] = { "self","width","height", NULL }; |
8bf5d46e RD |
990 | |
991 | self = self; | |
efc5f224 | 992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxImage_Rescale",_kwnames,&_argo0,&_arg1,&_arg2)) |
8bf5d46e | 993 | return NULL; |
1d99702e RD |
994 | if (_argo0) { |
995 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
996 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) { | |
8bf5d46e RD |
997 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_Rescale. Expected _wxImage_p."); |
998 | return NULL; | |
999 | } | |
1000 | } | |
1001 | { | |
1002 | wxPy_BEGIN_ALLOW_THREADS; | |
1003 | wxImage_Rescale(_arg0,_arg1,_arg2); | |
1004 | ||
1005 | wxPy_END_ALLOW_THREADS; | |
1006 | } Py_INCREF(Py_None); | |
1007 | _resultobj = Py_None; | |
1008 | return _resultobj; | |
1009 | } | |
1010 | ||
cf694132 | 1011 | #define wxImage_SetRGB(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetRGB(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
efc5f224 | 1012 | static PyObject *_wrap_wxImage_SetRGB(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 RD |
1013 | PyObject * _resultobj; |
1014 | wxImage * _arg0; | |
1015 | int _arg1; | |
1016 | int _arg2; | |
1017 | unsigned char _arg3; | |
1018 | unsigned char _arg4; | |
1019 | unsigned char _arg5; | |
1d99702e | 1020 | PyObject * _argo0 = 0; |
efc5f224 | 1021 | char *_kwnames[] = { "self","x","y","r","g","b", NULL }; |
cf694132 RD |
1022 | |
1023 | self = self; | |
efc5f224 | 1024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiibbb:wxImage_SetRGB",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5)) |
cf694132 | 1025 | return NULL; |
1d99702e RD |
1026 | if (_argo0) { |
1027 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1028 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) { | |
cf694132 RD |
1029 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_SetRGB. Expected _wxImage_p."); |
1030 | return NULL; | |
1031 | } | |
1032 | } | |
1033 | { | |
1034 | wxPy_BEGIN_ALLOW_THREADS; | |
1035 | wxImage_SetRGB(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); | |
1036 | ||
1037 | wxPy_END_ALLOW_THREADS; | |
1038 | } Py_INCREF(Py_None); | |
1039 | _resultobj = Py_None; | |
1040 | return _resultobj; | |
1041 | } | |
1042 | ||
1043 | #define wxImage_GetRed(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetRed(_swigarg0,_swigarg1)) | |
efc5f224 | 1044 | static PyObject *_wrap_wxImage_GetRed(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 RD |
1045 | PyObject * _resultobj; |
1046 | unsigned char _result; | |
1047 | wxImage * _arg0; | |
1048 | int _arg1; | |
1049 | int _arg2; | |
1d99702e | 1050 | PyObject * _argo0 = 0; |
efc5f224 | 1051 | char *_kwnames[] = { "self","x","y", NULL }; |
cf694132 RD |
1052 | |
1053 | self = self; | |
efc5f224 | 1054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxImage_GetRed",_kwnames,&_argo0,&_arg1,&_arg2)) |
cf694132 | 1055 | return NULL; |
1d99702e RD |
1056 | if (_argo0) { |
1057 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1058 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) { | |
cf694132 RD |
1059 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_GetRed. Expected _wxImage_p."); |
1060 | return NULL; | |
1061 | } | |
1062 | } | |
1063 | { | |
1064 | wxPy_BEGIN_ALLOW_THREADS; | |
1065 | _result = (unsigned char )wxImage_GetRed(_arg0,_arg1,_arg2); | |
1066 | ||
1067 | wxPy_END_ALLOW_THREADS; | |
1068 | } _resultobj = Py_BuildValue("b",_result); | |
1069 | return _resultobj; | |
1070 | } | |
1071 | ||
1072 | #define wxImage_GetGreen(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetGreen(_swigarg0,_swigarg1)) | |
efc5f224 | 1073 | static PyObject *_wrap_wxImage_GetGreen(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 RD |
1074 | PyObject * _resultobj; |
1075 | unsigned char _result; | |
1076 | wxImage * _arg0; | |
1077 | int _arg1; | |
1078 | int _arg2; | |
1d99702e | 1079 | PyObject * _argo0 = 0; |
efc5f224 | 1080 | char *_kwnames[] = { "self","x","y", NULL }; |
cf694132 RD |
1081 | |
1082 | self = self; | |
efc5f224 | 1083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxImage_GetGreen",_kwnames,&_argo0,&_arg1,&_arg2)) |
cf694132 | 1084 | return NULL; |
1d99702e RD |
1085 | if (_argo0) { |
1086 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1087 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) { | |
cf694132 RD |
1088 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_GetGreen. Expected _wxImage_p."); |
1089 | return NULL; | |
1090 | } | |
1091 | } | |
1092 | { | |
1093 | wxPy_BEGIN_ALLOW_THREADS; | |
1094 | _result = (unsigned char )wxImage_GetGreen(_arg0,_arg1,_arg2); | |
1095 | ||
1096 | wxPy_END_ALLOW_THREADS; | |
1097 | } _resultobj = Py_BuildValue("b",_result); | |
1098 | return _resultobj; | |
1099 | } | |
1100 | ||
1101 | #define wxImage_GetBlue(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetBlue(_swigarg0,_swigarg1)) | |
efc5f224 | 1102 | static PyObject *_wrap_wxImage_GetBlue(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 RD |
1103 | PyObject * _resultobj; |
1104 | unsigned char _result; | |
1105 | wxImage * _arg0; | |
1106 | int _arg1; | |
1107 | int _arg2; | |
1d99702e | 1108 | PyObject * _argo0 = 0; |
efc5f224 | 1109 | char *_kwnames[] = { "self","x","y", NULL }; |
cf694132 RD |
1110 | |
1111 | self = self; | |
efc5f224 | 1112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxImage_GetBlue",_kwnames,&_argo0,&_arg1,&_arg2)) |
cf694132 | 1113 | return NULL; |
1d99702e RD |
1114 | if (_argo0) { |
1115 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1116 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) { | |
cf694132 RD |
1117 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_GetBlue. Expected _wxImage_p."); |
1118 | return NULL; | |
1119 | } | |
1120 | } | |
1121 | { | |
1122 | wxPy_BEGIN_ALLOW_THREADS; | |
1123 | _result = (unsigned char )wxImage_GetBlue(_arg0,_arg1,_arg2); | |
1124 | ||
1125 | wxPy_END_ALLOW_THREADS; | |
1126 | } _resultobj = Py_BuildValue("b",_result); | |
1127 | return _resultobj; | |
1128 | } | |
1129 | ||
1130 | #define wxImage_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1)) | |
efc5f224 | 1131 | static PyObject *_wrap_wxImage_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 RD |
1132 | PyObject * _resultobj; |
1133 | bool _result; | |
1134 | wxImage * _arg0; | |
1135 | wxString * _arg1; | |
1d99702e RD |
1136 | long _arg2 = (long ) wxBITMAP_TYPE_PNG; |
1137 | PyObject * _argo0 = 0; | |
cf694132 | 1138 | PyObject * _obj1 = 0; |
efc5f224 | 1139 | char *_kwnames[] = { "self","name","type", NULL }; |
cf694132 RD |
1140 | |
1141 | self = self; | |
efc5f224 | 1142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|l:wxImage_LoadFile",_kwnames,&_argo0,&_obj1,&_arg2)) |
cf694132 | 1143 | return NULL; |
1d99702e RD |
1144 | if (_argo0) { |
1145 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1146 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) { | |
cf694132 RD |
1147 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_LoadFile. Expected _wxImage_p."); |
1148 | return NULL; | |
1149 | } | |
1150 | } | |
1151 | { | |
1152 | if (!PyString_Check(_obj1)) { | |
1153 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1154 | return NULL; | |
1155 | } | |
1156 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); | |
1157 | } | |
1158 | { | |
1159 | wxPy_BEGIN_ALLOW_THREADS; | |
1160 | _result = (bool )wxImage_LoadFile(_arg0,*_arg1,_arg2); | |
1161 | ||
1162 | wxPy_END_ALLOW_THREADS; | |
1163 | } _resultobj = Py_BuildValue("i",_result); | |
1164 | { | |
1165 | if (_obj1) | |
1166 | delete _arg1; | |
1167 | } | |
1168 | return _resultobj; | |
1169 | } | |
1170 | ||
1171 | #define wxImage_LoadMimeFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1)) | |
efc5f224 | 1172 | static PyObject *_wrap_wxImage_LoadMimeFile(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 RD |
1173 | PyObject * _resultobj; |
1174 | bool _result; | |
1175 | wxImage * _arg0; | |
1176 | wxString * _arg1; | |
1177 | wxString * _arg2; | |
1d99702e | 1178 | PyObject * _argo0 = 0; |
cf694132 RD |
1179 | PyObject * _obj1 = 0; |
1180 | PyObject * _obj2 = 0; | |
efc5f224 | 1181 | char *_kwnames[] = { "self","name","mimetype", NULL }; |
cf694132 RD |
1182 | |
1183 | self = self; | |
efc5f224 | 1184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxImage_LoadMimeFile",_kwnames,&_argo0,&_obj1,&_obj2)) |
cf694132 | 1185 | return NULL; |
1d99702e RD |
1186 | if (_argo0) { |
1187 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1188 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) { | |
cf694132 RD |
1189 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_LoadMimeFile. Expected _wxImage_p."); |
1190 | return NULL; | |
1191 | } | |
1192 | } | |
1193 | { | |
1194 | if (!PyString_Check(_obj1)) { | |
1195 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1196 | return NULL; | |
1197 | } | |
1198 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); | |
1199 | } | |
1200 | { | |
1201 | if (!PyString_Check(_obj2)) { | |
1202 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1203 | return NULL; | |
1204 | } | |
1205 | _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2)); | |
1206 | } | |
1207 | { | |
1208 | wxPy_BEGIN_ALLOW_THREADS; | |
1209 | _result = (bool )wxImage_LoadMimeFile(_arg0,*_arg1,*_arg2); | |
1210 | ||
1211 | wxPy_END_ALLOW_THREADS; | |
1212 | } _resultobj = Py_BuildValue("i",_result); | |
1213 | { | |
1214 | if (_obj1) | |
1215 | delete _arg1; | |
1216 | } | |
1217 | { | |
1218 | if (_obj2) | |
1219 | delete _arg2; | |
1220 | } | |
1221 | return _resultobj; | |
1222 | } | |
1223 | ||
1224 | #define wxImage_SaveFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->SaveFile(_swigarg0,_swigarg1)) | |
efc5f224 | 1225 | static PyObject *_wrap_wxImage_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 RD |
1226 | PyObject * _resultobj; |
1227 | bool _result; | |
1228 | wxImage * _arg0; | |
1229 | wxString * _arg1; | |
1230 | int _arg2; | |
1d99702e | 1231 | PyObject * _argo0 = 0; |
cf694132 | 1232 | PyObject * _obj1 = 0; |
efc5f224 | 1233 | char *_kwnames[] = { "self","name","type", NULL }; |
cf694132 RD |
1234 | |
1235 | self = self; | |
efc5f224 | 1236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxImage_SaveFile",_kwnames,&_argo0,&_obj1,&_arg2)) |
cf694132 | 1237 | return NULL; |
1d99702e RD |
1238 | if (_argo0) { |
1239 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1240 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) { | |
cf694132 RD |
1241 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_SaveFile. Expected _wxImage_p."); |
1242 | return NULL; | |
1243 | } | |
1244 | } | |
1245 | { | |
1246 | if (!PyString_Check(_obj1)) { | |
1247 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1248 | return NULL; | |
1249 | } | |
1250 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); | |
1251 | } | |
1252 | { | |
1253 | wxPy_BEGIN_ALLOW_THREADS; | |
1254 | _result = (bool )wxImage_SaveFile(_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_SaveMimeFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->SaveFile(_swigarg0,_swigarg1)) | |
efc5f224 | 1266 | static PyObject *_wrap_wxImage_SaveMimeFile(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 RD |
1267 | PyObject * _resultobj; |
1268 | bool _result; | |
1269 | wxImage * _arg0; | |
1270 | wxString * _arg1; | |
1271 | wxString * _arg2; | |
1d99702e | 1272 | PyObject * _argo0 = 0; |
cf694132 RD |
1273 | PyObject * _obj1 = 0; |
1274 | PyObject * _obj2 = 0; | |
efc5f224 | 1275 | char *_kwnames[] = { "self","name","mimetype", NULL }; |
cf694132 RD |
1276 | |
1277 | self = self; | |
efc5f224 | 1278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxImage_SaveMimeFile",_kwnames,&_argo0,&_obj1,&_obj2)) |
cf694132 | 1279 | return NULL; |
1d99702e RD |
1280 | if (_argo0) { |
1281 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1282 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) { | |
cf694132 RD |
1283 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_SaveMimeFile. Expected _wxImage_p."); |
1284 | return NULL; | |
1285 | } | |
1286 | } | |
1287 | { | |
1288 | if (!PyString_Check(_obj1)) { | |
1289 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1290 | return NULL; | |
1291 | } | |
1292 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); | |
1293 | } | |
1294 | { | |
1295 | if (!PyString_Check(_obj2)) { | |
1296 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1297 | return NULL; | |
1298 | } | |
1299 | _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2)); | |
1300 | } | |
1301 | { | |
1302 | wxPy_BEGIN_ALLOW_THREADS; | |
1303 | _result = (bool )wxImage_SaveMimeFile(_arg0,*_arg1,*_arg2); | |
1304 | ||
1305 | wxPy_END_ALLOW_THREADS; | |
1306 | } _resultobj = Py_BuildValue("i",_result); | |
1307 | { | |
1308 | if (_obj1) | |
1309 | delete _arg1; | |
1310 | } | |
1311 | { | |
1312 | if (_obj2) | |
1313 | delete _arg2; | |
1314 | } | |
1315 | return _resultobj; | |
1316 | } | |
1317 | ||
1318 | #define wxImage_Ok(_swigobj) (_swigobj->Ok()) | |
efc5f224 | 1319 | static PyObject *_wrap_wxImage_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 RD |
1320 | PyObject * _resultobj; |
1321 | bool _result; | |
1322 | wxImage * _arg0; | |
1d99702e | 1323 | PyObject * _argo0 = 0; |
efc5f224 | 1324 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
1325 | |
1326 | self = self; | |
efc5f224 | 1327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImage_Ok",_kwnames,&_argo0)) |
cf694132 | 1328 | return NULL; |
1d99702e RD |
1329 | if (_argo0) { |
1330 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1331 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) { | |
cf694132 RD |
1332 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_Ok. Expected _wxImage_p."); |
1333 | return NULL; | |
1334 | } | |
1335 | } | |
1336 | { | |
1337 | wxPy_BEGIN_ALLOW_THREADS; | |
1338 | _result = (bool )wxImage_Ok(_arg0); | |
1339 | ||
1340 | wxPy_END_ALLOW_THREADS; | |
1341 | } _resultobj = Py_BuildValue("i",_result); | |
1342 | return _resultobj; | |
1343 | } | |
1344 | ||
1345 | #define wxImage_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
efc5f224 | 1346 | static PyObject *_wrap_wxImage_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 RD |
1347 | PyObject * _resultobj; |
1348 | int _result; | |
1349 | wxImage * _arg0; | |
1d99702e | 1350 | PyObject * _argo0 = 0; |
efc5f224 | 1351 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
1352 | |
1353 | self = self; | |
efc5f224 | 1354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImage_GetWidth",_kwnames,&_argo0)) |
cf694132 | 1355 | return NULL; |
1d99702e RD |
1356 | if (_argo0) { |
1357 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1358 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) { | |
cf694132 RD |
1359 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_GetWidth. Expected _wxImage_p."); |
1360 | return NULL; | |
1361 | } | |
1362 | } | |
1363 | { | |
1364 | wxPy_BEGIN_ALLOW_THREADS; | |
1365 | _result = (int )wxImage_GetWidth(_arg0); | |
1366 | ||
1367 | wxPy_END_ALLOW_THREADS; | |
1368 | } _resultobj = Py_BuildValue("i",_result); | |
1369 | return _resultobj; | |
1370 | } | |
1371 | ||
1372 | #define wxImage_GetHeight(_swigobj) (_swigobj->GetHeight()) | |
efc5f224 | 1373 | static PyObject *_wrap_wxImage_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 RD |
1374 | PyObject * _resultobj; |
1375 | int _result; | |
1376 | wxImage * _arg0; | |
1d99702e | 1377 | PyObject * _argo0 = 0; |
efc5f224 | 1378 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
1379 | |
1380 | self = self; | |
efc5f224 | 1381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImage_GetHeight",_kwnames,&_argo0)) |
cf694132 | 1382 | return NULL; |
1d99702e RD |
1383 | if (_argo0) { |
1384 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1385 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) { | |
cf694132 RD |
1386 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_GetHeight. Expected _wxImage_p."); |
1387 | return NULL; | |
1388 | } | |
1389 | } | |
1390 | { | |
1391 | wxPy_BEGIN_ALLOW_THREADS; | |
1392 | _result = (int )wxImage_GetHeight(_arg0); | |
1393 | ||
1394 | wxPy_END_ALLOW_THREADS; | |
1395 | } _resultobj = Py_BuildValue("i",_result); | |
1396 | return _resultobj; | |
1397 | } | |
1398 | ||
1dc2f865 RD |
1399 | static PyObject * wxImage_GetData(wxImage *self) { |
1400 | unsigned char* data = self->GetData(); | |
1401 | int len = self->GetWidth() * self->GetHeight() * 3; | |
1402 | return PyString_FromStringAndSize((char*)data, len); | |
1403 | } | |
efc5f224 | 1404 | static PyObject *_wrap_wxImage_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 | 1405 | PyObject * _resultobj; |
1dc2f865 | 1406 | PyObject * _result; |
cf694132 | 1407 | wxImage * _arg0; |
1d99702e | 1408 | PyObject * _argo0 = 0; |
efc5f224 | 1409 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
1410 | |
1411 | self = self; | |
efc5f224 | 1412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImage_GetData",_kwnames,&_argo0)) |
cf694132 | 1413 | return NULL; |
1d99702e RD |
1414 | if (_argo0) { |
1415 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1416 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) { | |
cf694132 RD |
1417 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_GetData. Expected _wxImage_p."); |
1418 | return NULL; | |
1419 | } | |
1420 | } | |
1421 | { | |
1422 | wxPy_BEGIN_ALLOW_THREADS; | |
1dc2f865 | 1423 | _result = (PyObject *)wxImage_GetData(_arg0); |
cf694132 RD |
1424 | |
1425 | wxPy_END_ALLOW_THREADS; | |
1dc2f865 RD |
1426 | }{ |
1427 | _resultobj = _result; | |
1428 | } | |
cf694132 RD |
1429 | return _resultobj; |
1430 | } | |
1431 | ||
1dc2f865 RD |
1432 | static void wxImage_SetData(wxImage *self,PyObject * data) { |
1433 | unsigned char* dataPtr; | |
1434 | ||
1435 | if (! PyString_Check(data)) { | |
1436 | PyErr_SetString(PyExc_TypeError, "Expected string object"); | |
1437 | return /* NULL */ ; | |
1438 | } | |
1439 | dataPtr = (unsigned char*)PyString_AsString(data); | |
1440 | self->SetData(dataPtr); | |
1441 | } | |
efc5f224 | 1442 | static PyObject *_wrap_wxImage_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 RD |
1443 | PyObject * _resultobj; |
1444 | wxImage * _arg0; | |
1dc2f865 | 1445 | PyObject * _arg1; |
1d99702e | 1446 | PyObject * _argo0 = 0; |
1dc2f865 | 1447 | PyObject * _obj1 = 0; |
efc5f224 | 1448 | char *_kwnames[] = { "self","data", NULL }; |
cf694132 RD |
1449 | |
1450 | self = self; | |
efc5f224 | 1451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxImage_SetData",_kwnames,&_argo0,&_obj1)) |
cf694132 | 1452 | return NULL; |
1d99702e RD |
1453 | if (_argo0) { |
1454 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1455 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) { | |
cf694132 RD |
1456 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_SetData. Expected _wxImage_p."); |
1457 | return NULL; | |
1458 | } | |
1459 | } | |
1dc2f865 RD |
1460 | { |
1461 | _arg1 = _obj1; | |
1462 | } | |
cf694132 RD |
1463 | { |
1464 | wxPy_BEGIN_ALLOW_THREADS; | |
1465 | wxImage_SetData(_arg0,_arg1); | |
1466 | ||
1467 | wxPy_END_ALLOW_THREADS; | |
1468 | } Py_INCREF(Py_None); | |
1469 | _resultobj = Py_None; | |
1470 | return _resultobj; | |
1471 | } | |
1472 | ||
1473 | #define wxImage_SetMaskColour(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetMaskColour(_swigarg0,_swigarg1,_swigarg2)) | |
efc5f224 | 1474 | static PyObject *_wrap_wxImage_SetMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 RD |
1475 | PyObject * _resultobj; |
1476 | wxImage * _arg0; | |
1477 | unsigned char _arg1; | |
1478 | unsigned char _arg2; | |
1479 | unsigned char _arg3; | |
1d99702e | 1480 | PyObject * _argo0 = 0; |
efc5f224 | 1481 | char *_kwnames[] = { "self","r","g","b", NULL }; |
cf694132 RD |
1482 | |
1483 | self = self; | |
efc5f224 | 1484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Obbb:wxImage_SetMaskColour",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
cf694132 | 1485 | return NULL; |
1d99702e RD |
1486 | if (_argo0) { |
1487 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1488 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) { | |
cf694132 RD |
1489 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_SetMaskColour. Expected _wxImage_p."); |
1490 | return NULL; | |
1491 | } | |
1492 | } | |
1493 | { | |
1494 | wxPy_BEGIN_ALLOW_THREADS; | |
1495 | wxImage_SetMaskColour(_arg0,_arg1,_arg2,_arg3); | |
1496 | ||
1497 | wxPy_END_ALLOW_THREADS; | |
1498 | } Py_INCREF(Py_None); | |
1499 | _resultobj = Py_None; | |
1500 | return _resultobj; | |
1501 | } | |
1502 | ||
1503 | #define wxImage_GetMaskRed(_swigobj) (_swigobj->GetMaskRed()) | |
efc5f224 | 1504 | static PyObject *_wrap_wxImage_GetMaskRed(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 RD |
1505 | PyObject * _resultobj; |
1506 | unsigned char _result; | |
1507 | wxImage * _arg0; | |
1d99702e | 1508 | PyObject * _argo0 = 0; |
efc5f224 | 1509 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
1510 | |
1511 | self = self; | |
efc5f224 | 1512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImage_GetMaskRed",_kwnames,&_argo0)) |
cf694132 | 1513 | return NULL; |
1d99702e RD |
1514 | if (_argo0) { |
1515 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1516 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) { | |
cf694132 RD |
1517 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_GetMaskRed. Expected _wxImage_p."); |
1518 | return NULL; | |
1519 | } | |
1520 | } | |
1521 | { | |
1522 | wxPy_BEGIN_ALLOW_THREADS; | |
1523 | _result = (unsigned char )wxImage_GetMaskRed(_arg0); | |
1524 | ||
1525 | wxPy_END_ALLOW_THREADS; | |
1526 | } _resultobj = Py_BuildValue("b",_result); | |
1527 | return _resultobj; | |
1528 | } | |
1529 | ||
1530 | #define wxImage_GetMaskGreen(_swigobj) (_swigobj->GetMaskGreen()) | |
efc5f224 | 1531 | static PyObject *_wrap_wxImage_GetMaskGreen(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 RD |
1532 | PyObject * _resultobj; |
1533 | unsigned char _result; | |
1534 | wxImage * _arg0; | |
1d99702e | 1535 | PyObject * _argo0 = 0; |
efc5f224 | 1536 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
1537 | |
1538 | self = self; | |
efc5f224 | 1539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImage_GetMaskGreen",_kwnames,&_argo0)) |
cf694132 | 1540 | return NULL; |
1d99702e RD |
1541 | if (_argo0) { |
1542 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1543 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) { | |
cf694132 RD |
1544 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_GetMaskGreen. Expected _wxImage_p."); |
1545 | return NULL; | |
1546 | } | |
1547 | } | |
1548 | { | |
1549 | wxPy_BEGIN_ALLOW_THREADS; | |
1550 | _result = (unsigned char )wxImage_GetMaskGreen(_arg0); | |
1551 | ||
1552 | wxPy_END_ALLOW_THREADS; | |
1553 | } _resultobj = Py_BuildValue("b",_result); | |
1554 | return _resultobj; | |
1555 | } | |
1556 | ||
1557 | #define wxImage_GetMaskBlue(_swigobj) (_swigobj->GetMaskBlue()) | |
efc5f224 | 1558 | static PyObject *_wrap_wxImage_GetMaskBlue(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 RD |
1559 | PyObject * _resultobj; |
1560 | unsigned char _result; | |
1561 | wxImage * _arg0; | |
1d99702e | 1562 | PyObject * _argo0 = 0; |
efc5f224 | 1563 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
1564 | |
1565 | self = self; | |
efc5f224 | 1566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImage_GetMaskBlue",_kwnames,&_argo0)) |
cf694132 | 1567 | return NULL; |
1d99702e RD |
1568 | if (_argo0) { |
1569 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1570 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) { | |
cf694132 RD |
1571 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_GetMaskBlue. Expected _wxImage_p."); |
1572 | return NULL; | |
1573 | } | |
1574 | } | |
1575 | { | |
1576 | wxPy_BEGIN_ALLOW_THREADS; | |
1577 | _result = (unsigned char )wxImage_GetMaskBlue(_arg0); | |
1578 | ||
1579 | wxPy_END_ALLOW_THREADS; | |
1580 | } _resultobj = Py_BuildValue("b",_result); | |
1581 | return _resultobj; | |
1582 | } | |
1583 | ||
1584 | #define wxImage_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0)) | |
efc5f224 | 1585 | static PyObject *_wrap_wxImage_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 RD |
1586 | PyObject * _resultobj; |
1587 | wxImage * _arg0; | |
1d99702e RD |
1588 | bool _arg1 = (bool ) TRUE; |
1589 | PyObject * _argo0 = 0; | |
1590 | int tempbool1 = (int) TRUE; | |
efc5f224 | 1591 | char *_kwnames[] = { "self","mask", NULL }; |
cf694132 RD |
1592 | |
1593 | self = self; | |
efc5f224 | 1594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxImage_SetMask",_kwnames,&_argo0,&tempbool1)) |
cf694132 | 1595 | return NULL; |
1d99702e RD |
1596 | if (_argo0) { |
1597 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1598 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) { | |
cf694132 RD |
1599 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_SetMask. Expected _wxImage_p."); |
1600 | return NULL; | |
1601 | } | |
1602 | } | |
1603 | _arg1 = (bool ) tempbool1; | |
1604 | { | |
1605 | wxPy_BEGIN_ALLOW_THREADS; | |
1606 | wxImage_SetMask(_arg0,_arg1); | |
1607 | ||
1608 | wxPy_END_ALLOW_THREADS; | |
1609 | } Py_INCREF(Py_None); | |
1610 | _resultobj = Py_None; | |
1611 | return _resultobj; | |
1612 | } | |
1613 | ||
1614 | #define wxImage_HasMask(_swigobj) (_swigobj->HasMask()) | |
efc5f224 | 1615 | static PyObject *_wrap_wxImage_HasMask(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 RD |
1616 | PyObject * _resultobj; |
1617 | bool _result; | |
1618 | wxImage * _arg0; | |
1d99702e | 1619 | PyObject * _argo0 = 0; |
efc5f224 | 1620 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
1621 | |
1622 | self = self; | |
efc5f224 | 1623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImage_HasMask",_kwnames,&_argo0)) |
cf694132 | 1624 | return NULL; |
1d99702e RD |
1625 | if (_argo0) { |
1626 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1627 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) { | |
cf694132 RD |
1628 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_HasMask. Expected _wxImage_p."); |
1629 | return NULL; | |
1630 | } | |
1631 | } | |
1632 | { | |
1633 | wxPy_BEGIN_ALLOW_THREADS; | |
1634 | _result = (bool )wxImage_HasMask(_arg0); | |
1635 | ||
1636 | wxPy_END_ALLOW_THREADS; | |
1637 | } _resultobj = Py_BuildValue("i",_result); | |
1638 | return _resultobj; | |
1639 | } | |
1640 | ||
1641 | static PyMethodDef imagecMethods[] = { | |
efc5f224 RD |
1642 | { "wxImage_HasMask", (PyCFunction) _wrap_wxImage_HasMask, METH_VARARGS | METH_KEYWORDS }, |
1643 | { "wxImage_SetMask", (PyCFunction) _wrap_wxImage_SetMask, METH_VARARGS | METH_KEYWORDS }, | |
1644 | { "wxImage_GetMaskBlue", (PyCFunction) _wrap_wxImage_GetMaskBlue, METH_VARARGS | METH_KEYWORDS }, | |
1645 | { "wxImage_GetMaskGreen", (PyCFunction) _wrap_wxImage_GetMaskGreen, METH_VARARGS | METH_KEYWORDS }, | |
1646 | { "wxImage_GetMaskRed", (PyCFunction) _wrap_wxImage_GetMaskRed, METH_VARARGS | METH_KEYWORDS }, | |
1647 | { "wxImage_SetMaskColour", (PyCFunction) _wrap_wxImage_SetMaskColour, METH_VARARGS | METH_KEYWORDS }, | |
1648 | { "wxImage_SetData", (PyCFunction) _wrap_wxImage_SetData, METH_VARARGS | METH_KEYWORDS }, | |
1649 | { "wxImage_GetData", (PyCFunction) _wrap_wxImage_GetData, METH_VARARGS | METH_KEYWORDS }, | |
1650 | { "wxImage_GetHeight", (PyCFunction) _wrap_wxImage_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
1651 | { "wxImage_GetWidth", (PyCFunction) _wrap_wxImage_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
1652 | { "wxImage_Ok", (PyCFunction) _wrap_wxImage_Ok, METH_VARARGS | METH_KEYWORDS }, | |
1653 | { "wxImage_SaveMimeFile", (PyCFunction) _wrap_wxImage_SaveMimeFile, METH_VARARGS | METH_KEYWORDS }, | |
1654 | { "wxImage_SaveFile", (PyCFunction) _wrap_wxImage_SaveFile, METH_VARARGS | METH_KEYWORDS }, | |
1655 | { "wxImage_LoadMimeFile", (PyCFunction) _wrap_wxImage_LoadMimeFile, METH_VARARGS | METH_KEYWORDS }, | |
1656 | { "wxImage_LoadFile", (PyCFunction) _wrap_wxImage_LoadFile, METH_VARARGS | METH_KEYWORDS }, | |
1657 | { "wxImage_GetBlue", (PyCFunction) _wrap_wxImage_GetBlue, METH_VARARGS | METH_KEYWORDS }, | |
1658 | { "wxImage_GetGreen", (PyCFunction) _wrap_wxImage_GetGreen, METH_VARARGS | METH_KEYWORDS }, | |
1659 | { "wxImage_GetRed", (PyCFunction) _wrap_wxImage_GetRed, METH_VARARGS | METH_KEYWORDS }, | |
1660 | { "wxImage_SetRGB", (PyCFunction) _wrap_wxImage_SetRGB, METH_VARARGS | METH_KEYWORDS }, | |
1661 | { "wxImage_Rescale", (PyCFunction) _wrap_wxImage_Rescale, METH_VARARGS | METH_KEYWORDS }, | |
1662 | { "wxImage_Scale", (PyCFunction) _wrap_wxImage_Scale, METH_VARARGS | METH_KEYWORDS }, | |
1663 | { "wxImage_Destroy", (PyCFunction) _wrap_wxImage_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
1664 | { "wxImage_Create", (PyCFunction) _wrap_wxImage_Create, METH_VARARGS | METH_KEYWORDS }, | |
1665 | { "wxImage_ConvertToBitmap", (PyCFunction) _wrap_wxImage_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS }, | |
1666 | { "delete_wxImage", (PyCFunction) _wrap_delete_wxImage, METH_VARARGS | METH_KEYWORDS }, | |
1667 | { "new_wxImage", (PyCFunction) _wrap_new_wxImage, METH_VARARGS | METH_KEYWORDS }, | |
06c0fba4 RD |
1668 | { "new_wxPCXHandler", (PyCFunction) _wrap_new_wxPCXHandler, METH_VARARGS | METH_KEYWORDS }, |
1669 | { "new_wxPNMHandler", (PyCFunction) _wrap_new_wxPNMHandler, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
1670 | { "new_wxGIFHandler", (PyCFunction) _wrap_new_wxGIFHandler, METH_VARARGS | METH_KEYWORDS }, |
1671 | { "new_wxBMPHandler", (PyCFunction) _wrap_new_wxBMPHandler, METH_VARARGS | METH_KEYWORDS }, | |
1672 | { "new_wxJPEGHandler", (PyCFunction) _wrap_new_wxJPEGHandler, METH_VARARGS | METH_KEYWORDS }, | |
1673 | { "new_wxPNGHandler", (PyCFunction) _wrap_new_wxPNGHandler, METH_VARARGS | METH_KEYWORDS }, | |
1674 | { "wxImageHandler_SetMimeType", (PyCFunction) _wrap_wxImageHandler_SetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
1675 | { "wxImageHandler_SetType", (PyCFunction) _wrap_wxImageHandler_SetType, METH_VARARGS | METH_KEYWORDS }, | |
1676 | { "wxImageHandler_SetExtension", (PyCFunction) _wrap_wxImageHandler_SetExtension, METH_VARARGS | METH_KEYWORDS }, | |
1677 | { "wxImageHandler_SetName", (PyCFunction) _wrap_wxImageHandler_SetName, METH_VARARGS | METH_KEYWORDS }, | |
1678 | { "wxImageHandler_GetMimeType", (PyCFunction) _wrap_wxImageHandler_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
1679 | { "wxImageHandler_GetType", (PyCFunction) _wrap_wxImageHandler_GetType, METH_VARARGS | METH_KEYWORDS }, | |
1680 | { "wxImageHandler_GetExtension", (PyCFunction) _wrap_wxImageHandler_GetExtension, METH_VARARGS | METH_KEYWORDS }, | |
1681 | { "wxImageHandler_GetName", (PyCFunction) _wrap_wxImageHandler_GetName, METH_VARARGS | METH_KEYWORDS }, | |
1682 | { "new_wxImageHandler", (PyCFunction) _wrap_new_wxImageHandler, METH_VARARGS | METH_KEYWORDS }, | |
06c0fba4 | 1683 | { "wxInitAllImageHandlers", (PyCFunction) _wrap_wxInitAllImageHandlers, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
1684 | { "wxImage_AddHandler", (PyCFunction) _wrap_wxImage_AddHandler, METH_VARARGS | METH_KEYWORDS }, |
1685 | { "wxImageFromBitmap", (PyCFunction) _wrap_wxImageFromBitmap, METH_VARARGS | METH_KEYWORDS }, | |
1686 | { "wxImageFromMime", (PyCFunction) _wrap_wxImageFromMime, METH_VARARGS | METH_KEYWORDS }, | |
1687 | { "wxEmptyImage", (PyCFunction) _wrap_wxEmptyImage, METH_VARARGS | METH_KEYWORDS }, | |
1688 | { "wxNullImage", (PyCFunction) _wrap_wxNullImage, METH_VARARGS | METH_KEYWORDS }, | |
cf694132 RD |
1689 | { NULL, NULL } |
1690 | }; | |
1d99702e RD |
1691 | #ifdef __cplusplus |
1692 | } | |
1693 | #endif | |
1694 | /* | |
1695 | * This table is used by the pointer type-checker | |
1696 | */ | |
1697 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
1698 | { "_wxAcceleratorTable","_class_wxAcceleratorTable",0}, | |
1699 | { "_signed_long","_long",0}, | |
1700 | { "_class_wxJPEGHandler","_wxJPEGHandler",0}, | |
1701 | { "_wxBMPHandler","_class_wxBMPHandler",0}, | |
1702 | { "_wxImage","_class_wxImage",0}, | |
1703 | { "_wxPrintQuality","_int",0}, | |
1704 | { "_wxPrintQuality","_signed_int",0}, | |
1705 | { "_wxPrintQuality","_unsigned_int",0}, | |
1706 | { "_wxPrintQuality","_wxWindowID",0}, | |
1707 | { "_wxPrintQuality","_uint",0}, | |
1708 | { "_wxPrintQuality","_EBool",0}, | |
1709 | { "_wxPrintQuality","_size_t",0}, | |
1710 | { "_class_wxRegionIterator","_wxRegionIterator",0}, | |
1711 | { "_wxGIFHandler","_class_wxGIFHandler",0}, | |
1712 | { "_wxIndividualLayoutConstraint","_class_wxIndividualLayoutConstraint",0}, | |
1713 | { "_wxCursor","_class_wxCursor",0}, | |
06c0fba4 RD |
1714 | { "_wxImageHandler","_class_wxPCXHandler",SwigwxPCXHandlerTowxImageHandler}, |
1715 | { "_wxImageHandler","_wxPCXHandler",SwigwxPCXHandlerTowxImageHandler}, | |
1716 | { "_wxImageHandler","_class_wxPNMHandler",SwigwxPNMHandlerTowxImageHandler}, | |
1717 | { "_wxImageHandler","_wxPNMHandler",SwigwxPNMHandlerTowxImageHandler}, | |
1d99702e RD |
1718 | { "_wxImageHandler","_class_wxGIFHandler",SwigwxGIFHandlerTowxImageHandler}, |
1719 | { "_wxImageHandler","_wxGIFHandler",SwigwxGIFHandlerTowxImageHandler}, | |
1720 | { "_wxImageHandler","_class_wxBMPHandler",SwigwxBMPHandlerTowxImageHandler}, | |
1721 | { "_wxImageHandler","_wxBMPHandler",SwigwxBMPHandlerTowxImageHandler}, | |
1722 | { "_wxImageHandler","_class_wxJPEGHandler",SwigwxJPEGHandlerTowxImageHandler}, | |
1723 | { "_wxImageHandler","_wxJPEGHandler",SwigwxJPEGHandlerTowxImageHandler}, | |
1724 | { "_wxImageHandler","_class_wxPNGHandler",SwigwxPNGHandlerTowxImageHandler}, | |
1725 | { "_wxImageHandler","_wxPNGHandler",SwigwxPNGHandlerTowxImageHandler}, | |
1726 | { "_wxImageHandler","_class_wxImageHandler",0}, | |
1727 | { "_wxMask","_class_wxMask",0}, | |
1728 | { "_wxPNGHandler","_class_wxPNGHandler",0}, | |
1729 | { "_wxPen","_class_wxPen",0}, | |
1730 | { "_byte","_unsigned_char",0}, | |
1731 | { "_long","_wxDash",0}, | |
1732 | { "_long","_unsigned_long",0}, | |
1733 | { "_long","_signed_long",0}, | |
1734 | { "_wxImageList","_class_wxImageList",0}, | |
1735 | { "_class_wxAcceleratorTable","_wxAcceleratorTable",0}, | |
1736 | { "_wxDC","_class_wxDC",0}, | |
1737 | { "_class_wxBMPHandler","_wxBMPHandler",0}, | |
1738 | { "_size_t","_wxPrintQuality",0}, | |
1739 | { "_size_t","_unsigned_int",0}, | |
1740 | { "_size_t","_int",0}, | |
1741 | { "_size_t","_wxWindowID",0}, | |
1742 | { "_size_t","_uint",0}, | |
1743 | { "_class_wxRealPoint","_wxRealPoint",0}, | |
06c0fba4 | 1744 | { "_wxPNMHandler","_class_wxPNMHandler",0}, |
1d99702e RD |
1745 | { "_wxPrinterDC","_class_wxPrinterDC",0}, |
1746 | { "_class_wxGIFHandler","_wxGIFHandler",0}, | |
1747 | { "_class_wxMask","_wxMask",0}, | |
1748 | { "_class_wxPNGHandler","_wxPNGHandler",0}, | |
1749 | { "_wxColour","_class_wxColour",0}, | |
1750 | { "_wxBrush","_class_wxBrush",0}, | |
1751 | { "_uint","_wxPrintQuality",0}, | |
1752 | { "_uint","_size_t",0}, | |
1753 | { "_uint","_unsigned_int",0}, | |
1754 | { "_uint","_int",0}, | |
1755 | { "_uint","_wxWindowID",0}, | |
1756 | { "_wxRect","_class_wxRect",0}, | |
1757 | { "_class_wxImage","_wxImage",0}, | |
1758 | { "_wxPoint","_class_wxPoint",0}, | |
06c0fba4 | 1759 | { "_class_wxPNMHandler","_wxPNMHandler",0}, |
1d99702e RD |
1760 | { "_wxBitmap","_class_wxBitmap",0}, |
1761 | { "_wxPyTimer","_class_wxPyTimer",0}, | |
1762 | { "_wxWindowDC","_class_wxWindowDC",0}, | |
1763 | { "_class_wxIndividualLayoutConstraint","_wxIndividualLayoutConstraint",0}, | |
1764 | { "_EBool","_wxPrintQuality",0}, | |
1765 | { "_EBool","_signed_int",0}, | |
1766 | { "_EBool","_int",0}, | |
1767 | { "_EBool","_wxWindowID",0}, | |
1768 | { "_class_wxRegion","_wxRegion",0}, | |
1769 | { "_wxFont","_class_wxFont",0}, | |
1770 | { "_unsigned_long","_wxDash",0}, | |
1771 | { "_unsigned_long","_long",0}, | |
1772 | { "_class_wxRect","_wxRect",0}, | |
1773 | { "_class_wxDC","_wxDC",0}, | |
1774 | { "_class_wxPyTimer","_wxPyTimer",0}, | |
1775 | { "_wxAcceleratorEntry","_class_wxAcceleratorEntry",0}, | |
1776 | { "_signed_int","_wxPrintQuality",0}, | |
1777 | { "_signed_int","_EBool",0}, | |
1778 | { "_signed_int","_wxWindowID",0}, | |
1779 | { "_signed_int","_int",0}, | |
1780 | { "_wxLayoutConstraints","_class_wxLayoutConstraints",0}, | |
1781 | { "_wxMetaFileDC","_class_wxMetaFileDC",0}, | |
1782 | { "_wxScreenDC","_class_wxScreenDC",0}, | |
1783 | { "_WXTYPE","_short",0}, | |
1784 | { "_WXTYPE","_signed_short",0}, | |
1785 | { "_WXTYPE","_unsigned_short",0}, | |
1786 | { "_class_wxBrush","_wxBrush",0}, | |
1787 | { "_unsigned_short","_WXTYPE",0}, | |
1788 | { "_unsigned_short","_short",0}, | |
1789 | { "_class_wxFont","_wxFont",0}, | |
1790 | { "_wxClientDC","_class_wxClientDC",0}, | |
1791 | { "_class_wxPoint","_wxPoint",0}, | |
1792 | { "_wxRealPoint","_class_wxRealPoint",0}, | |
1793 | { "_signed_short","_WXTYPE",0}, | |
1794 | { "_signed_short","_short",0}, | |
1795 | { "_wxMemoryDC","_class_wxMemoryDC",0}, | |
1796 | { "_wxPaintDC","_class_wxPaintDC",0}, | |
1797 | { "_class_wxWindowDC","_wxWindowDC",0}, | |
1798 | { "_class_wxAcceleratorEntry","_wxAcceleratorEntry",0}, | |
1799 | { "_class_wxCursor","_wxCursor",0}, | |
06c0fba4 RD |
1800 | { "_class_wxImageHandler","_class_wxPCXHandler",SwigwxPCXHandlerTowxImageHandler}, |
1801 | { "_class_wxImageHandler","_wxPCXHandler",SwigwxPCXHandlerTowxImageHandler}, | |
1802 | { "_class_wxImageHandler","_class_wxPNMHandler",SwigwxPNMHandlerTowxImageHandler}, | |
1803 | { "_class_wxImageHandler","_wxPNMHandler",SwigwxPNMHandlerTowxImageHandler}, | |
1d99702e RD |
1804 | { "_class_wxImageHandler","_class_wxGIFHandler",SwigwxGIFHandlerTowxImageHandler}, |
1805 | { "_class_wxImageHandler","_wxGIFHandler",SwigwxGIFHandlerTowxImageHandler}, | |
1806 | { "_class_wxImageHandler","_class_wxBMPHandler",SwigwxBMPHandlerTowxImageHandler}, | |
1807 | { "_class_wxImageHandler","_wxBMPHandler",SwigwxBMPHandlerTowxImageHandler}, | |
1808 | { "_class_wxImageHandler","_class_wxJPEGHandler",SwigwxJPEGHandlerTowxImageHandler}, | |
1809 | { "_class_wxImageHandler","_wxJPEGHandler",SwigwxJPEGHandlerTowxImageHandler}, | |
1810 | { "_class_wxImageHandler","_class_wxPNGHandler",SwigwxPNGHandlerTowxImageHandler}, | |
1811 | { "_class_wxImageHandler","_wxPNGHandler",SwigwxPNGHandlerTowxImageHandler}, | |
1812 | { "_class_wxImageHandler","_wxImageHandler",0}, | |
1813 | { "_unsigned_char","_byte",0}, | |
1814 | { "_class_wxMetaFileDC","_wxMetaFileDC",0}, | |
1815 | { "_unsigned_int","_wxPrintQuality",0}, | |
1816 | { "_unsigned_int","_size_t",0}, | |
1817 | { "_unsigned_int","_uint",0}, | |
1818 | { "_unsigned_int","_wxWindowID",0}, | |
1819 | { "_unsigned_int","_int",0}, | |
1820 | { "_wxIcon","_class_wxIcon",0}, | |
1821 | { "_class_wxPen","_wxPen",0}, | |
1822 | { "_short","_WXTYPE",0}, | |
1823 | { "_short","_unsigned_short",0}, | |
1824 | { "_short","_signed_short",0}, | |
1825 | { "_class_wxImageList","_wxImageList",0}, | |
06c0fba4 | 1826 | { "_wxPCXHandler","_class_wxPCXHandler",0}, |
1d99702e RD |
1827 | { "_wxJPEGHandler","_class_wxJPEGHandler",0}, |
1828 | { "_wxWindowID","_wxPrintQuality",0}, | |
1829 | { "_wxWindowID","_size_t",0}, | |
1830 | { "_wxWindowID","_EBool",0}, | |
1831 | { "_wxWindowID","_uint",0}, | |
1832 | { "_wxWindowID","_int",0}, | |
1833 | { "_wxWindowID","_signed_int",0}, | |
1834 | { "_wxWindowID","_unsigned_int",0}, | |
1835 | { "_int","_wxPrintQuality",0}, | |
1836 | { "_int","_size_t",0}, | |
1837 | { "_int","_EBool",0}, | |
1838 | { "_int","_uint",0}, | |
1839 | { "_int","_wxWindowID",0}, | |
1840 | { "_int","_unsigned_int",0}, | |
1841 | { "_int","_signed_int",0}, | |
1842 | { "_wxSize","_class_wxSize",0}, | |
1843 | { "_wxRegionIterator","_class_wxRegionIterator",0}, | |
1844 | { "_class_wxPrinterDC","_wxPrinterDC",0}, | |
1845 | { "_class_wxPaintDC","_wxPaintDC",0}, | |
1846 | { "_class_wxLayoutConstraints","_wxLayoutConstraints",0}, | |
1847 | { "_class_wxIcon","_wxIcon",0}, | |
1848 | { "_class_wxColour","_wxColour",0}, | |
1849 | { "_class_wxScreenDC","_wxScreenDC",0}, | |
1850 | { "_wxPalette","_class_wxPalette",0}, | |
1851 | { "_wxRegion","_class_wxRegion",0}, | |
06c0fba4 | 1852 | { "_class_wxPCXHandler","_wxPCXHandler",0}, |
1d99702e RD |
1853 | { "_class_wxClientDC","_wxClientDC",0}, |
1854 | { "_class_wxSize","_wxSize",0}, | |
1855 | { "_class_wxBitmap","_wxBitmap",0}, | |
1856 | { "_class_wxMemoryDC","_wxMemoryDC",0}, | |
1857 | { "_wxDash","_unsigned_long",0}, | |
1858 | { "_wxDash","_long",0}, | |
1859 | { "_class_wxPalette","_wxPalette",0}, | |
1860 | {0,0,0}}; | |
1861 | ||
cf694132 RD |
1862 | static PyObject *SWIG_globals; |
1863 | #ifdef __cplusplus | |
1864 | extern "C" | |
1865 | #endif | |
1d99702e | 1866 | SWIGEXPORT(void) initimagec() { |
cf694132 RD |
1867 | PyObject *m, *d; |
1868 | SWIG_globals = SWIG_newvarlink(); | |
1869 | m = Py_InitModule("imagec", imagecMethods); | |
1870 | d = PyModule_GetDict(m); | |
1d99702e RD |
1871 | { |
1872 | int i; | |
1873 | for (i = 0; _swig_mapping[i].n1; i++) | |
1874 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
1875 | } | |
cf694132 | 1876 | } |