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