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