]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/gtk/image.cpp
Fixed compilation error and a stupid typo
[wxWidgets.git] / wxPython / src / gtk / image.cpp
CommitLineData
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__)
3bcd5e1c 30# define SWIGEXPORT(a) a _export
ab9bc19b 31# else
3bcd5e1c 32# define SWIGEXPORT(a) a
ab9bc19b
RD
33# endif
34# endif
35#else
3bcd5e1c 36# define SWIGEXPORT(a) a
ab9bc19b
RD
37#endif
38
3bcd5e1c
RD
39#include "Python.h"
40
ab9bc19b
RD
41#ifdef __cplusplus
42extern "C" {
43#endif
3bcd5e1c 44
ab9bc19b
RD
45extern void SWIG_MakePtr(char *, void *, char *);
46extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
47extern char *SWIG_GetPtr(char *, void **, char *);
2d091820 48extern char *SWIG_GetPtrObj(PyObject *, void **, char *);
ab9bc19b
RD
49extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
50extern 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"
4152e8b9 59#include "pyistream.h"
ab9bc19b
RD
60#include <wx/image.h>
61
ab9bc19b
RD
62
63static PyObject* t_output_helper(PyObject* target, PyObject* o) {
64 PyObject* o2;
65 PyObject* o3;
66
3bcd5e1c 67 if (!target) {
ab9bc19b 68 target = o;
3bcd5e1c 69 } else if (target == Py_None) {
ab9bc19b
RD
70 Py_DECREF(Py_None);
71 target = o;
3bcd5e1c 72 } else {
ab9bc19b
RD
73 if (!PyTuple_Check(target)) {
74 o2 = target;
75 target = PyTuple_New(1);
76 PyTuple_SetItem(target, 0, o2);
77 }
3bcd5e1c
RD
78 o3 = PyTuple_New(1);
79 PyTuple_SetItem(o3, 0, o);
ab9bc19b
RD
80
81 o2 = target;
3bcd5e1c
RD
82 target = PySequence_Concat(o2, o3);
83 Py_DECREF(o2);
ab9bc19b
RD
84 Py_DECREF(o3);
85 }
86 return target;
87}
88
df05452e
RD
89 wxImage* wxEmptyImage(int width=0, int height=0) {
90 if (width == 0 && height == 0)
91 return new wxImage;
92 else
93 return new wxImage(width, height);
ab9bc19b
RD
94 }
95
94082a71 96
1893b029
RD
97 wxImage* wxImageFromMime(const wxString& name, const wxString& mimetype, int index) {
98 return new wxImage(name, mimetype, index);
ab9bc19b
RD
99 }
100
94082a71 101
ab9bc19b
RD
102 wxImage* wxImageFromBitmap(const wxBitmap &bitmap) {
103 return new wxImage(bitmap);
104 }
df05452e 105
94082a71 106
1893b029
RD
107 wxImage* wxImageFromData(int width, int height, unsigned char* data) {
108 // Copy the source data so the wxImage can clean it up later
109 unsigned char* copy = (unsigned char*)malloc(width*height*3);
110 if (copy == NULL) {
111 PyErr_NoMemory();
112 return NULL;
113 }
114 memcpy(copy, data, width*height*3);
115 return new wxImage(width, height, copy, FALSE);
116 }
117
94082a71
RD
118
119 wxImage* wxImageFromStream(wxInputStream& stream,
120 long type = wxBITMAP_TYPE_ANY, int index = -1) {
121 return new wxImage(stream, type, index);
122 }
123
124
125 wxImage* wxImageFromStreamMime(wxInputStream& stream,
126 const wxString& mimetype, int index = -1 ) {
127 return new wxImage(stream, mimetype, index);
128 }
129
df05452e
RD
130#if 0
131extern wxImage wxNullImage;
132
133#endif
9e689c06
RD
134
135 wxBitmap* wxBitmapFromImage(const wxImage& img, int depth=-1) {
136 return new wxBitmap(img, depth);
137 }
138
2d091820
RD
139#ifdef __cplusplus
140extern "C" {
141#endif
107e4716 142static PyObject *_wrap_wxEmptyImage(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
143 PyObject * _resultobj;
144 wxImage * _result;
df05452e
RD
145 int _arg0 = (int ) 0;
146 int _arg1 = (int ) 0;
107e4716 147 char *_kwnames[] = { "width","height", NULL };
ab9bc19b
RD
148 char _ptemp[128];
149
150 self = self;
df05452e 151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|ii:wxEmptyImage",_kwnames,&_arg0,&_arg1))
ab9bc19b
RD
152 return NULL;
153{
474c48f9 154 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 155 _result = (wxImage *)wxEmptyImage(_arg0,_arg1);
ab9bc19b 156
474c48f9 157 wxPyEndAllowThreads(__tstate);
4dfaa61e 158 if (PyErr_Occurred()) return NULL;
2d091820
RD
159} if (_result) {
160 SWIG_MakePtr(_ptemp, (char *) _result,"_wxImage_p");
161 _resultobj = Py_BuildValue("s",_ptemp);
162 } else {
163 Py_INCREF(Py_None);
164 _resultobj = Py_None;
165 }
ab9bc19b
RD
166 return _resultobj;
167}
168
107e4716 169static PyObject *_wrap_wxImageFromMime(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
170 PyObject * _resultobj;
171 wxImage * _result;
172 wxString * _arg0;
173 wxString * _arg1;
1893b029 174 int _arg2 = (int ) -1;
ab9bc19b
RD
175 PyObject * _obj0 = 0;
176 PyObject * _obj1 = 0;
1893b029 177 char *_kwnames[] = { "name","mimetype","index", NULL };
ab9bc19b
RD
178 char _ptemp[128];
179
180 self = self;
1893b029 181 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxImageFromMime",_kwnames,&_obj0,&_obj1,&_arg2))
ab9bc19b
RD
182 return NULL;
183{
c8bc7bb8
RD
184 _arg0 = wxString_in_helper(_obj0);
185 if (_arg0 == NULL)
2cd2fac8 186 return NULL;
ab9bc19b
RD
187}
188{
c8bc7bb8
RD
189 _arg1 = wxString_in_helper(_obj1);
190 if (_arg1 == NULL)
ab9bc19b 191 return NULL;
ab9bc19b
RD
192}
193{
474c48f9 194 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 195 _result = (wxImage *)wxImageFromMime(*_arg0,*_arg1,_arg2);
ab9bc19b 196
474c48f9 197 wxPyEndAllowThreads(__tstate);
4dfaa61e 198 if (PyErr_Occurred()) return NULL;
2d091820
RD
199} if (_result) {
200 SWIG_MakePtr(_ptemp, (char *) _result,"_wxImage_p");
201 _resultobj = Py_BuildValue("s",_ptemp);
202 } else {
203 Py_INCREF(Py_None);
204 _resultobj = Py_None;
205 }
ab9bc19b
RD
206{
207 if (_obj0)
208 delete _arg0;
209}
210{
211 if (_obj1)
212 delete _arg1;
213}
214 return _resultobj;
215}
216
107e4716 217static PyObject *_wrap_wxImageFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
218 PyObject * _resultobj;
219 wxImage * _result;
220 wxBitmap * _arg0;
2d091820 221 PyObject * _argo0 = 0;
107e4716 222 char *_kwnames[] = { "bitmap", NULL };
ab9bc19b
RD
223 char _ptemp[128];
224
225 self = self;
107e4716 226 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageFromBitmap",_kwnames,&_argo0))
ab9bc19b 227 return NULL;
2d091820
RD
228 if (_argo0) {
229 if (_argo0 == Py_None) { _arg0 = NULL; }
230 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
ab9bc19b
RD
231 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageFromBitmap. Expected _wxBitmap_p.");
232 return NULL;
233 }
234 }
235{
474c48f9 236 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 237 _result = (wxImage *)wxImageFromBitmap(*_arg0);
ab9bc19b 238
474c48f9 239 wxPyEndAllowThreads(__tstate);
4dfaa61e 240 if (PyErr_Occurred()) return NULL;
2d091820
RD
241} if (_result) {
242 SWIG_MakePtr(_ptemp, (char *) _result,"_wxImage_p");
243 _resultobj = Py_BuildValue("s",_ptemp);
244 } else {
245 Py_INCREF(Py_None);
246 _resultobj = Py_None;
247 }
ab9bc19b
RD
248 return _resultobj;
249}
250
1893b029
RD
251static PyObject *_wrap_wxImageFromData(PyObject *self, PyObject *args, PyObject *kwargs) {
252 PyObject * _resultobj;
253 wxImage * _result;
254 int _arg0;
255 int _arg1;
256 unsigned char * _arg2;
257 PyObject * _argo2 = 0;
258 char *_kwnames[] = { "width","height","data", NULL };
259 char _ptemp[128];
260
261 self = self;
262 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"iiO:wxImageFromData",_kwnames,&_arg0,&_arg1,&_argo2))
263 return NULL;
264 if (_argo2) {
265 if (_argo2 == Py_None) { _arg2 = NULL; }
266 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_unsigned_char_p")) {
267 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageFromData. Expected _unsigned_char_p.");
268 return NULL;
269 }
270 }
271{
272 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 273 _result = (wxImage *)wxImageFromData(_arg0,_arg1,_arg2);
1893b029
RD
274
275 wxPyEndAllowThreads(__tstate);
276 if (PyErr_Occurred()) return NULL;
277} if (_result) {
278 SWIG_MakePtr(_ptemp, (char *) _result,"_wxImage_p");
279 _resultobj = Py_BuildValue("s",_ptemp);
280 } else {
281 Py_INCREF(Py_None);
282 _resultobj = Py_None;
283 }
284 return _resultobj;
285}
286
94082a71
RD
287static PyObject *_wrap_wxImageFromStream(PyObject *self, PyObject *args, PyObject *kwargs) {
288 PyObject * _resultobj;
289 wxImage * _result;
290 wxInputStream * _arg0;
291 long _arg1 = (long ) wxBITMAP_TYPE_ANY;
292 int _arg2 = (int ) -1;
293 wxPyInputStream * temp;
294 bool created;
295 PyObject * _obj0 = 0;
296 char *_kwnames[] = { "stream","type","index", NULL };
297 char _ptemp[128];
298
299 self = self;
300 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|li:wxImageFromStream",_kwnames,&_obj0,&_arg1,&_arg2))
301 return NULL;
302{
303 if (SWIG_GetPtrObj(_obj0, (void **) &temp, "_wxPyInputStream_p") == 0) {
304 _arg0 = temp->m_wxis;
305 created = FALSE;
306 } else {
307 _arg0 = wxPyCBInputStream::create(_obj0, FALSE);
308 if (_arg0 == NULL) {
309 PyErr_SetString(PyExc_TypeError,"Expected _wxInputStream_p or Python file-like object.");
310 return NULL;
311 }
312 created = TRUE;
313 }
314}
315{
316 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 317 _result = (wxImage *)wxImageFromStream(*_arg0,_arg1,_arg2);
94082a71
RD
318
319 wxPyEndAllowThreads(__tstate);
320 if (PyErr_Occurred()) return NULL;
321} if (_result) {
322 SWIG_MakePtr(_ptemp, (char *) _result,"_wxImage_p");
323 _resultobj = Py_BuildValue("s",_ptemp);
324 } else {
325 Py_INCREF(Py_None);
326 _resultobj = Py_None;
327 }
328{
329 if (created)
330 delete _arg0;
331}
332 return _resultobj;
333}
334
335static PyObject *_wrap_wxImageFromStreamMime(PyObject *self, PyObject *args, PyObject *kwargs) {
336 PyObject * _resultobj;
337 wxImage * _result;
338 wxInputStream * _arg0;
339 wxString * _arg1;
340 int _arg2 = (int ) -1;
341 wxPyInputStream * temp;
342 bool created;
343 PyObject * _obj0 = 0;
344 PyObject * _obj1 = 0;
345 char *_kwnames[] = { "stream","mimetype","index", NULL };
346 char _ptemp[128];
347
348 self = self;
349 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxImageFromStreamMime",_kwnames,&_obj0,&_obj1,&_arg2))
350 return NULL;
351{
352 if (SWIG_GetPtrObj(_obj0, (void **) &temp, "_wxPyInputStream_p") == 0) {
353 _arg0 = temp->m_wxis;
354 created = FALSE;
355 } else {
356 _arg0 = wxPyCBInputStream::create(_obj0, FALSE);
357 if (_arg0 == NULL) {
358 PyErr_SetString(PyExc_TypeError,"Expected _wxInputStream_p or Python file-like object.");
359 return NULL;
360 }
361 created = TRUE;
362 }
363}
364{
c8bc7bb8
RD
365 _arg1 = wxString_in_helper(_obj1);
366 if (_arg1 == NULL)
94082a71 367 return NULL;
94082a71
RD
368}
369{
370 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 371 _result = (wxImage *)wxImageFromStreamMime(*_arg0,*_arg1,_arg2);
94082a71
RD
372
373 wxPyEndAllowThreads(__tstate);
374 if (PyErr_Occurred()) return NULL;
375} if (_result) {
376 SWIG_MakePtr(_ptemp, (char *) _result,"_wxImage_p");
377 _resultobj = Py_BuildValue("s",_ptemp);
378 } else {
379 Py_INCREF(Py_None);
380 _resultobj = Py_None;
381 }
382{
383 if (created)
384 delete _arg0;
385}
386{
387 if (_obj1)
388 delete _arg1;
389}
390 return _resultobj;
391}
392
bc29c5e0
RD
393static PyObject *_wrap_wxInitAllImageHandlers(PyObject *self, PyObject *args, PyObject *kwargs) {
394 PyObject * _resultobj;
395 char *_kwnames[] = { NULL };
396
397 self = self;
398 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxInitAllImageHandlers",_kwnames))
399 return NULL;
400{
474c48f9 401 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 402 wxInitAllImageHandlers();
bc29c5e0 403
474c48f9 404 wxPyEndAllowThreads(__tstate);
4dfaa61e 405 if (PyErr_Occurred()) return NULL;
bc29c5e0
RD
406} Py_INCREF(Py_None);
407 _resultobj = Py_None;
408 return _resultobj;
409}
410
df05452e
RD
411static int _wrap_wxNullImage_set(PyObject *val) {
412
413 PyErr_SetString(PyExc_TypeError,"Variable wxNullImage is read-only.");
414 return 1;
415}
416
417static PyObject *_wrap_wxNullImage_get() {
418 PyObject * pyobj;
419 char ptemp[128];
420
421 SWIG_MakePtr(ptemp,(char *) &wxNullImage,"_wxImage_p");
422 pyobj = PyString_FromString(ptemp);
423 return pyobj;
424}
425
9e689c06
RD
426static PyObject *_wrap_wxBitmapFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
427 PyObject * _resultobj;
428 wxBitmap * _result;
429 wxImage * _arg0;
430 int _arg1 = (int ) -1;
431 PyObject * _argo0 = 0;
432 char *_kwnames[] = { "img","depth", NULL };
433 char _ptemp[128];
434
435 self = self;
436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxBitmapFromImage",_kwnames,&_argo0,&_arg1))
437 return NULL;
438 if (_argo0) {
439 if (_argo0 == Py_None) { _arg0 = NULL; }
440 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
441 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapFromImage. Expected _wxImage_p.");
442 return NULL;
443 }
444 }
445{
474c48f9 446 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 447 _result = (wxBitmap *)wxBitmapFromImage(*_arg0,_arg1);
9e689c06 448
474c48f9 449 wxPyEndAllowThreads(__tstate);
4dfaa61e 450 if (PyErr_Occurred()) return NULL;
9e689c06
RD
451} if (_result) {
452 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
453 _resultobj = Py_BuildValue("s",_ptemp);
454 } else {
455 Py_INCREF(Py_None);
456 _resultobj = Py_None;
457 }
458 return _resultobj;
459}
460
9df61a29
RD
461static void *SwigwxImageHandlerTowxObject(void *ptr) {
462 wxImageHandler *src;
463 wxObject *dest;
464 src = (wxImageHandler *) ptr;
465 dest = (wxObject *) src;
466 return (void *) dest;
467}
468
ab9bc19b 469#define wxImageHandler_GetName(_swigobj) (_swigobj->GetName())
107e4716 470static PyObject *_wrap_wxImageHandler_GetName(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
471 PyObject * _resultobj;
472 wxString * _result;
473 wxImageHandler * _arg0;
2d091820 474 PyObject * _argo0 = 0;
107e4716 475 char *_kwnames[] = { "self", NULL };
ab9bc19b
RD
476
477 self = self;
107e4716 478 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageHandler_GetName",_kwnames,&_argo0))
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_GetName. Expected _wxImageHandler_p.");
484 return NULL;
485 }
486 }
487{
474c48f9 488 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 489 _result = new wxString (wxImageHandler_GetName(_arg0));
ab9bc19b 490
474c48f9 491 wxPyEndAllowThreads(__tstate);
4dfaa61e 492 if (PyErr_Occurred()) return NULL;
ab9bc19b 493}{
c8bc7bb8
RD
494#if wxUSE_UNICODE
495 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
496#else
e02c03a4 497 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
c8bc7bb8 498#endif
ab9bc19b
RD
499}
500{
501 delete _result;
502}
503 return _resultobj;
504}
505
506#define wxImageHandler_GetExtension(_swigobj) (_swigobj->GetExtension())
107e4716 507static PyObject *_wrap_wxImageHandler_GetExtension(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
508 PyObject * _resultobj;
509 wxString * _result;
510 wxImageHandler * _arg0;
2d091820 511 PyObject * _argo0 = 0;
107e4716 512 char *_kwnames[] = { "self", NULL };
ab9bc19b
RD
513
514 self = self;
107e4716 515 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageHandler_GetExtension",_kwnames,&_argo0))
ab9bc19b 516 return NULL;
2d091820
RD
517 if (_argo0) {
518 if (_argo0 == Py_None) { _arg0 = NULL; }
519 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageHandler_p")) {
ab9bc19b
RD
520 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageHandler_GetExtension. Expected _wxImageHandler_p.");
521 return NULL;
522 }
523 }
524{
474c48f9 525 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 526 _result = new wxString (wxImageHandler_GetExtension(_arg0));
ab9bc19b 527
474c48f9 528 wxPyEndAllowThreads(__tstate);
4dfaa61e 529 if (PyErr_Occurred()) return NULL;
ab9bc19b 530}{
c8bc7bb8
RD
531#if wxUSE_UNICODE
532 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
533#else
e02c03a4 534 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
c8bc7bb8 535#endif
ab9bc19b
RD
536}
537{
538 delete _result;
539}
540 return _resultobj;
541}
542
543#define wxImageHandler_GetType(_swigobj) (_swigobj->GetType())
107e4716 544static PyObject *_wrap_wxImageHandler_GetType(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
545 PyObject * _resultobj;
546 long _result;
547 wxImageHandler * _arg0;
2d091820 548 PyObject * _argo0 = 0;
107e4716 549 char *_kwnames[] = { "self", NULL };
ab9bc19b
RD
550
551 self = self;
107e4716 552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageHandler_GetType",_kwnames,&_argo0))
ab9bc19b 553 return NULL;
2d091820
RD
554 if (_argo0) {
555 if (_argo0 == Py_None) { _arg0 = NULL; }
556 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageHandler_p")) {
ab9bc19b
RD
557 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageHandler_GetType. Expected _wxImageHandler_p.");
558 return NULL;
559 }
560 }
561{
474c48f9 562 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 563 _result = (long )wxImageHandler_GetType(_arg0);
ab9bc19b 564
474c48f9 565 wxPyEndAllowThreads(__tstate);
4dfaa61e 566 if (PyErr_Occurred()) return NULL;
ab9bc19b
RD
567} _resultobj = Py_BuildValue("l",_result);
568 return _resultobj;
569}
570
571#define wxImageHandler_GetMimeType(_swigobj) (_swigobj->GetMimeType())
107e4716 572static PyObject *_wrap_wxImageHandler_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
573 PyObject * _resultobj;
574 wxString * _result;
575 wxImageHandler * _arg0;
2d091820 576 PyObject * _argo0 = 0;
107e4716 577 char *_kwnames[] = { "self", NULL };
ab9bc19b
RD
578
579 self = self;
107e4716 580 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageHandler_GetMimeType",_kwnames,&_argo0))
ab9bc19b 581 return NULL;
2d091820
RD
582 if (_argo0) {
583 if (_argo0 == Py_None) { _arg0 = NULL; }
584 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageHandler_p")) {
ab9bc19b
RD
585 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageHandler_GetMimeType. Expected _wxImageHandler_p.");
586 return NULL;
587 }
588 }
589{
474c48f9 590 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 591 _result = new wxString (wxImageHandler_GetMimeType(_arg0));
ab9bc19b 592
474c48f9 593 wxPyEndAllowThreads(__tstate);
4dfaa61e 594 if (PyErr_Occurred()) return NULL;
ab9bc19b 595}{
c8bc7bb8
RD
596#if wxUSE_UNICODE
597 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
598#else
e02c03a4 599 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
c8bc7bb8 600#endif
ab9bc19b
RD
601}
602{
603 delete _result;
604}
605 return _resultobj;
606}
607
1893b029
RD
608#define wxImageHandler_CanRead(_swigobj,_swigarg0) (_swigobj->CanRead(_swigarg0))
609static PyObject *_wrap_wxImageHandler_CanRead(PyObject *self, PyObject *args, PyObject *kwargs) {
610 PyObject * _resultobj;
611 bool _result;
612 wxImageHandler * _arg0;
613 wxString * _arg1;
614 PyObject * _argo0 = 0;
615 PyObject * _obj1 = 0;
616 char *_kwnames[] = { "self","name", NULL };
617
618 self = self;
619 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxImageHandler_CanRead",_kwnames,&_argo0,&_obj1))
620 return NULL;
621 if (_argo0) {
622 if (_argo0 == Py_None) { _arg0 = NULL; }
623 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageHandler_p")) {
624 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageHandler_CanRead. Expected _wxImageHandler_p.");
625 return NULL;
626 }
627 }
628{
c8bc7bb8
RD
629 _arg1 = wxString_in_helper(_obj1);
630 if (_arg1 == NULL)
1893b029 631 return NULL;
1893b029
RD
632}
633{
634 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 635 _result = (bool )wxImageHandler_CanRead(_arg0,*_arg1);
1893b029
RD
636
637 wxPyEndAllowThreads(__tstate);
638 if (PyErr_Occurred()) return NULL;
639} _resultobj = Py_BuildValue("i",_result);
640{
641 if (_obj1)
642 delete _arg1;
643}
644 return _resultobj;
645}
646
ab9bc19b 647#define wxImageHandler_SetName(_swigobj,_swigarg0) (_swigobj->SetName(_swigarg0))
107e4716 648static PyObject *_wrap_wxImageHandler_SetName(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
649 PyObject * _resultobj;
650 wxImageHandler * _arg0;
651 wxString * _arg1;
2d091820 652 PyObject * _argo0 = 0;
ab9bc19b 653 PyObject * _obj1 = 0;
107e4716 654 char *_kwnames[] = { "self","name", NULL };
ab9bc19b
RD
655
656 self = self;
107e4716 657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxImageHandler_SetName",_kwnames,&_argo0,&_obj1))
ab9bc19b 658 return NULL;
2d091820
RD
659 if (_argo0) {
660 if (_argo0 == Py_None) { _arg0 = NULL; }
661 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageHandler_p")) {
ab9bc19b
RD
662 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageHandler_SetName. Expected _wxImageHandler_p.");
663 return NULL;
664 }
665 }
666{
c8bc7bb8
RD
667 _arg1 = wxString_in_helper(_obj1);
668 if (_arg1 == NULL)
2cd2fac8 669 return NULL;
ab9bc19b
RD
670}
671{
474c48f9 672 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 673 wxImageHandler_SetName(_arg0,*_arg1);
ab9bc19b 674
474c48f9 675 wxPyEndAllowThreads(__tstate);
4dfaa61e 676 if (PyErr_Occurred()) return NULL;
ab9bc19b
RD
677} Py_INCREF(Py_None);
678 _resultobj = Py_None;
679{
680 if (_obj1)
681 delete _arg1;
682}
683 return _resultobj;
684}
685
686#define wxImageHandler_SetExtension(_swigobj,_swigarg0) (_swigobj->SetExtension(_swigarg0))
107e4716 687static PyObject *_wrap_wxImageHandler_SetExtension(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
688 PyObject * _resultobj;
689 wxImageHandler * _arg0;
690 wxString * _arg1;
2d091820 691 PyObject * _argo0 = 0;
ab9bc19b 692 PyObject * _obj1 = 0;
107e4716 693 char *_kwnames[] = { "self","extension", NULL };
ab9bc19b
RD
694
695 self = self;
107e4716 696 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxImageHandler_SetExtension",_kwnames,&_argo0,&_obj1))
ab9bc19b 697 return NULL;
2d091820
RD
698 if (_argo0) {
699 if (_argo0 == Py_None) { _arg0 = NULL; }
700 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageHandler_p")) {
ab9bc19b
RD
701 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageHandler_SetExtension. Expected _wxImageHandler_p.");
702 return NULL;
703 }
704 }
705{
c8bc7bb8
RD
706 _arg1 = wxString_in_helper(_obj1);
707 if (_arg1 == NULL)
2cd2fac8 708 return NULL;
ab9bc19b
RD
709}
710{
474c48f9 711 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 712 wxImageHandler_SetExtension(_arg0,*_arg1);
ab9bc19b 713
474c48f9 714 wxPyEndAllowThreads(__tstate);
4dfaa61e 715 if (PyErr_Occurred()) return NULL;
ab9bc19b
RD
716} Py_INCREF(Py_None);
717 _resultobj = Py_None;
718{
719 if (_obj1)
720 delete _arg1;
721}
722 return _resultobj;
723}
724
725#define wxImageHandler_SetType(_swigobj,_swigarg0) (_swigobj->SetType(_swigarg0))
107e4716 726static PyObject *_wrap_wxImageHandler_SetType(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
727 PyObject * _resultobj;
728 wxImageHandler * _arg0;
729 long _arg1;
2d091820 730 PyObject * _argo0 = 0;
107e4716 731 char *_kwnames[] = { "self","type", NULL };
ab9bc19b
RD
732
733 self = self;
107e4716 734 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxImageHandler_SetType",_kwnames,&_argo0,&_arg1))
ab9bc19b 735 return NULL;
2d091820
RD
736 if (_argo0) {
737 if (_argo0 == Py_None) { _arg0 = NULL; }
738 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageHandler_p")) {
ab9bc19b
RD
739 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageHandler_SetType. Expected _wxImageHandler_p.");
740 return NULL;
741 }
742 }
743{
474c48f9 744 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 745 wxImageHandler_SetType(_arg0,_arg1);
ab9bc19b 746
474c48f9 747 wxPyEndAllowThreads(__tstate);
4dfaa61e 748 if (PyErr_Occurred()) return NULL;
ab9bc19b
RD
749} Py_INCREF(Py_None);
750 _resultobj = Py_None;
751 return _resultobj;
752}
753
754#define wxImageHandler_SetMimeType(_swigobj,_swigarg0) (_swigobj->SetMimeType(_swigarg0))
107e4716 755static PyObject *_wrap_wxImageHandler_SetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
756 PyObject * _resultobj;
757 wxImageHandler * _arg0;
758 wxString * _arg1;
2d091820 759 PyObject * _argo0 = 0;
ab9bc19b 760 PyObject * _obj1 = 0;
107e4716 761 char *_kwnames[] = { "self","mimetype", NULL };
ab9bc19b
RD
762
763 self = self;
107e4716 764 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxImageHandler_SetMimeType",_kwnames,&_argo0,&_obj1))
ab9bc19b 765 return NULL;
2d091820
RD
766 if (_argo0) {
767 if (_argo0 == Py_None) { _arg0 = NULL; }
768 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageHandler_p")) {
ab9bc19b
RD
769 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageHandler_SetMimeType. Expected _wxImageHandler_p.");
770 return NULL;
771 }
772 }
773{
c8bc7bb8
RD
774 _arg1 = wxString_in_helper(_obj1);
775 if (_arg1 == NULL)
ab9bc19b 776 return NULL;
ab9bc19b
RD
777}
778{
474c48f9 779 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 780 wxImageHandler_SetMimeType(_arg0,*_arg1);
ab9bc19b 781
474c48f9 782 wxPyEndAllowThreads(__tstate);
4dfaa61e 783 if (PyErr_Occurred()) return NULL;
ab9bc19b
RD
784} Py_INCREF(Py_None);
785 _resultobj = Py_None;
786{
787 if (_obj1)
788 delete _arg1;
789}
790 return _resultobj;
791}
792
793static void *SwigwxPNGHandlerTowxImageHandler(void *ptr) {
794 wxPNGHandler *src;
795 wxImageHandler *dest;
796 src = (wxPNGHandler *) ptr;
797 dest = (wxImageHandler *) src;
798 return (void *) dest;
799}
800
9df61a29
RD
801static void *SwigwxPNGHandlerTowxObject(void *ptr) {
802 wxPNGHandler *src;
803 wxObject *dest;
804 src = (wxPNGHandler *) ptr;
805 dest = (wxObject *) src;
806 return (void *) dest;
807}
808
ab9bc19b 809#define new_wxPNGHandler() (new wxPNGHandler())
107e4716 810static PyObject *_wrap_new_wxPNGHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
811 PyObject * _resultobj;
812 wxPNGHandler * _result;
107e4716 813 char *_kwnames[] = { NULL };
ab9bc19b
RD
814 char _ptemp[128];
815
816 self = self;
107e4716 817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPNGHandler",_kwnames))
ab9bc19b
RD
818 return NULL;
819{
474c48f9 820 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 821 _result = (wxPNGHandler *)new_wxPNGHandler();
ab9bc19b 822
474c48f9 823 wxPyEndAllowThreads(__tstate);
4dfaa61e 824 if (PyErr_Occurred()) return NULL;
2d091820
RD
825} if (_result) {
826 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPNGHandler_p");
827 _resultobj = Py_BuildValue("s",_ptemp);
828 } else {
829 Py_INCREF(Py_None);
830 _resultobj = Py_None;
831 }
ab9bc19b
RD
832 return _resultobj;
833}
834
835static void *SwigwxJPEGHandlerTowxImageHandler(void *ptr) {
836 wxJPEGHandler *src;
837 wxImageHandler *dest;
838 src = (wxJPEGHandler *) ptr;
839 dest = (wxImageHandler *) src;
840 return (void *) dest;
841}
842
9df61a29
RD
843static void *SwigwxJPEGHandlerTowxObject(void *ptr) {
844 wxJPEGHandler *src;
845 wxObject *dest;
846 src = (wxJPEGHandler *) ptr;
847 dest = (wxObject *) src;
848 return (void *) dest;
849}
850
ab9bc19b 851#define new_wxJPEGHandler() (new wxJPEGHandler())
107e4716 852static PyObject *_wrap_new_wxJPEGHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
853 PyObject * _resultobj;
854 wxJPEGHandler * _result;
107e4716 855 char *_kwnames[] = { NULL };
ab9bc19b
RD
856 char _ptemp[128];
857
858 self = self;
107e4716 859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxJPEGHandler",_kwnames))
ab9bc19b
RD
860 return NULL;
861{
474c48f9 862 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 863 _result = (wxJPEGHandler *)new_wxJPEGHandler();
ab9bc19b 864
474c48f9 865 wxPyEndAllowThreads(__tstate);
4dfaa61e 866 if (PyErr_Occurred()) return NULL;
2d091820
RD
867} if (_result) {
868 SWIG_MakePtr(_ptemp, (char *) _result,"_wxJPEGHandler_p");
869 _resultobj = Py_BuildValue("s",_ptemp);
870 } else {
871 Py_INCREF(Py_None);
872 _resultobj = Py_None;
873 }
ab9bc19b
RD
874 return _resultobj;
875}
876
877static void *SwigwxBMPHandlerTowxImageHandler(void *ptr) {
878 wxBMPHandler *src;
879 wxImageHandler *dest;
880 src = (wxBMPHandler *) ptr;
881 dest = (wxImageHandler *) src;
882 return (void *) dest;
883}
884
9df61a29
RD
885static void *SwigwxBMPHandlerTowxObject(void *ptr) {
886 wxBMPHandler *src;
887 wxObject *dest;
888 src = (wxBMPHandler *) ptr;
889 dest = (wxObject *) src;
890 return (void *) dest;
891}
892
ab9bc19b 893#define new_wxBMPHandler() (new wxBMPHandler())
107e4716 894static PyObject *_wrap_new_wxBMPHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
895 PyObject * _resultobj;
896 wxBMPHandler * _result;
107e4716 897 char *_kwnames[] = { NULL };
ab9bc19b
RD
898 char _ptemp[128];
899
900 self = self;
107e4716 901 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxBMPHandler",_kwnames))
ab9bc19b
RD
902 return NULL;
903{
474c48f9 904 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 905 _result = (wxBMPHandler *)new_wxBMPHandler();
ab9bc19b 906
474c48f9 907 wxPyEndAllowThreads(__tstate);
4dfaa61e 908 if (PyErr_Occurred()) return NULL;
2d091820
RD
909} if (_result) {
910 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBMPHandler_p");
911 _resultobj = Py_BuildValue("s",_ptemp);
912 } else {
913 Py_INCREF(Py_None);
914 _resultobj = Py_None;
915 }
ab9bc19b
RD
916 return _resultobj;
917}
918
1893b029
RD
919static void *SwigwxICOHandlerTowxBMPHandler(void *ptr) {
920 wxICOHandler *src;
921 wxBMPHandler *dest;
922 src = (wxICOHandler *) ptr;
923 dest = (wxBMPHandler *) src;
924 return (void *) dest;
925}
926
927static void *SwigwxICOHandlerTowxImageHandler(void *ptr) {
928 wxICOHandler *src;
929 wxImageHandler *dest;
930 src = (wxICOHandler *) ptr;
931 dest = (wxImageHandler *) src;
932 return (void *) dest;
933}
934
935static void *SwigwxICOHandlerTowxObject(void *ptr) {
936 wxICOHandler *src;
937 wxObject *dest;
938 src = (wxICOHandler *) ptr;
939 dest = (wxObject *) src;
940 return (void *) dest;
941}
942
943#define new_wxICOHandler() (new wxICOHandler())
944static PyObject *_wrap_new_wxICOHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
945 PyObject * _resultobj;
946 wxICOHandler * _result;
947 char *_kwnames[] = { NULL };
948 char _ptemp[128];
949
950 self = self;
951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxICOHandler",_kwnames))
952 return NULL;
953{
954 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 955 _result = (wxICOHandler *)new_wxICOHandler();
1893b029
RD
956
957 wxPyEndAllowThreads(__tstate);
958 if (PyErr_Occurred()) return NULL;
959} if (_result) {
960 SWIG_MakePtr(_ptemp, (char *) _result,"_wxICOHandler_p");
961 _resultobj = Py_BuildValue("s",_ptemp);
962 } else {
963 Py_INCREF(Py_None);
964 _resultobj = Py_None;
965 }
966 return _resultobj;
967}
968
db34b2d4
RD
969static void *SwigwxCURHandlerTowxICOHandler(void *ptr) {
970 wxCURHandler *src;
971 wxICOHandler *dest;
972 src = (wxCURHandler *) ptr;
973 dest = (wxICOHandler *) src;
974 return (void *) dest;
975}
976
977static void *SwigwxCURHandlerTowxBMPHandler(void *ptr) {
978 wxCURHandler *src;
979 wxBMPHandler *dest;
980 src = (wxCURHandler *) ptr;
981 dest = (wxBMPHandler *) src;
982 return (void *) dest;
983}
984
985static void *SwigwxCURHandlerTowxImageHandler(void *ptr) {
986 wxCURHandler *src;
987 wxImageHandler *dest;
988 src = (wxCURHandler *) ptr;
989 dest = (wxImageHandler *) src;
990 return (void *) dest;
991}
992
993static void *SwigwxCURHandlerTowxObject(void *ptr) {
994 wxCURHandler *src;
995 wxObject *dest;
996 src = (wxCURHandler *) ptr;
997 dest = (wxObject *) src;
998 return (void *) dest;
999}
1000
1001#define new_wxCURHandler() (new wxCURHandler())
1002static PyObject *_wrap_new_wxCURHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
1003 PyObject * _resultobj;
1004 wxCURHandler * _result;
1005 char *_kwnames[] = { NULL };
1006 char _ptemp[128];
1007
1008 self = self;
1009 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxCURHandler",_kwnames))
1010 return NULL;
1011{
1012 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1013 _result = (wxCURHandler *)new_wxCURHandler();
db34b2d4
RD
1014
1015 wxPyEndAllowThreads(__tstate);
1016 if (PyErr_Occurred()) return NULL;
1017} if (_result) {
1018 SWIG_MakePtr(_ptemp, (char *) _result,"_wxCURHandler_p");
1019 _resultobj = Py_BuildValue("s",_ptemp);
1020 } else {
1021 Py_INCREF(Py_None);
1022 _resultobj = Py_None;
1023 }
1024 return _resultobj;
1025}
1026
1027static void *SwigwxANIHandlerTowxCURHandler(void *ptr) {
1028 wxANIHandler *src;
1029 wxCURHandler *dest;
1030 src = (wxANIHandler *) ptr;
1031 dest = (wxCURHandler *) src;
1032 return (void *) dest;
1033}
1034
1035static void *SwigwxANIHandlerTowxICOHandler(void *ptr) {
1036 wxANIHandler *src;
1037 wxICOHandler *dest;
1038 src = (wxANIHandler *) ptr;
1039 dest = (wxICOHandler *) src;
1040 return (void *) dest;
1041}
1042
1043static void *SwigwxANIHandlerTowxBMPHandler(void *ptr) {
1044 wxANIHandler *src;
1045 wxBMPHandler *dest;
1046 src = (wxANIHandler *) ptr;
1047 dest = (wxBMPHandler *) src;
1048 return (void *) dest;
1049}
1050
1051static void *SwigwxANIHandlerTowxImageHandler(void *ptr) {
1052 wxANIHandler *src;
1053 wxImageHandler *dest;
1054 src = (wxANIHandler *) ptr;
1055 dest = (wxImageHandler *) src;
1056 return (void *) dest;
1057}
1058
1059static void *SwigwxANIHandlerTowxObject(void *ptr) {
1060 wxANIHandler *src;
1061 wxObject *dest;
1062 src = (wxANIHandler *) ptr;
1063 dest = (wxObject *) src;
1064 return (void *) dest;
1065}
1066
1067#define new_wxANIHandler() (new wxANIHandler())
1068static PyObject *_wrap_new_wxANIHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
1069 PyObject * _resultobj;
1070 wxANIHandler * _result;
1071 char *_kwnames[] = { NULL };
1072 char _ptemp[128];
1073
1074 self = self;
1075 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxANIHandler",_kwnames))
1076 return NULL;
1077{
1078 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1079 _result = (wxANIHandler *)new_wxANIHandler();
db34b2d4
RD
1080
1081 wxPyEndAllowThreads(__tstate);
1082 if (PyErr_Occurred()) return NULL;
1083} if (_result) {
1084 SWIG_MakePtr(_ptemp, (char *) _result,"_wxANIHandler_p");
1085 _resultobj = Py_BuildValue("s",_ptemp);
1086 } else {
1087 Py_INCREF(Py_None);
1088 _resultobj = Py_None;
1089 }
1090 return _resultobj;
1091}
1092
ab9bc19b
RD
1093static void *SwigwxGIFHandlerTowxImageHandler(void *ptr) {
1094 wxGIFHandler *src;
1095 wxImageHandler *dest;
1096 src = (wxGIFHandler *) ptr;
1097 dest = (wxImageHandler *) src;
1098 return (void *) dest;
1099}
1100
9df61a29
RD
1101static void *SwigwxGIFHandlerTowxObject(void *ptr) {
1102 wxGIFHandler *src;
1103 wxObject *dest;
1104 src = (wxGIFHandler *) ptr;
1105 dest = (wxObject *) src;
1106 return (void *) dest;
1107}
1108
ab9bc19b 1109#define new_wxGIFHandler() (new wxGIFHandler())
107e4716 1110static PyObject *_wrap_new_wxGIFHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
1111 PyObject * _resultobj;
1112 wxGIFHandler * _result;
107e4716 1113 char *_kwnames[] = { NULL };
ab9bc19b
RD
1114 char _ptemp[128];
1115
1116 self = self;
107e4716 1117 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxGIFHandler",_kwnames))
ab9bc19b
RD
1118 return NULL;
1119{
474c48f9 1120 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1121 _result = (wxGIFHandler *)new_wxGIFHandler();
ab9bc19b 1122
474c48f9 1123 wxPyEndAllowThreads(__tstate);
4dfaa61e 1124 if (PyErr_Occurred()) return NULL;
2d091820
RD
1125} if (_result) {
1126 SWIG_MakePtr(_ptemp, (char *) _result,"_wxGIFHandler_p");
1127 _resultobj = Py_BuildValue("s",_ptemp);
1128 } else {
1129 Py_INCREF(Py_None);
1130 _resultobj = Py_None;
1131 }
ab9bc19b
RD
1132 return _resultobj;
1133}
1134
bc29c5e0
RD
1135static void *SwigwxPNMHandlerTowxImageHandler(void *ptr) {
1136 wxPNMHandler *src;
1137 wxImageHandler *dest;
1138 src = (wxPNMHandler *) ptr;
1139 dest = (wxImageHandler *) src;
1140 return (void *) dest;
1141}
1142
9df61a29
RD
1143static void *SwigwxPNMHandlerTowxObject(void *ptr) {
1144 wxPNMHandler *src;
1145 wxObject *dest;
1146 src = (wxPNMHandler *) ptr;
1147 dest = (wxObject *) src;
1148 return (void *) dest;
1149}
1150
bc29c5e0
RD
1151#define new_wxPNMHandler() (new wxPNMHandler())
1152static PyObject *_wrap_new_wxPNMHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
1153 PyObject * _resultobj;
1154 wxPNMHandler * _result;
1155 char *_kwnames[] = { NULL };
1156 char _ptemp[128];
1157
1158 self = self;
1159 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPNMHandler",_kwnames))
1160 return NULL;
1161{
474c48f9 1162 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1163 _result = (wxPNMHandler *)new_wxPNMHandler();
bc29c5e0 1164
474c48f9 1165 wxPyEndAllowThreads(__tstate);
4dfaa61e 1166 if (PyErr_Occurred()) return NULL;
bc29c5e0
RD
1167} if (_result) {
1168 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPNMHandler_p");
1169 _resultobj = Py_BuildValue("s",_ptemp);
1170 } else {
1171 Py_INCREF(Py_None);
1172 _resultobj = Py_None;
1173 }
1174 return _resultobj;
1175}
1176
1177static void *SwigwxPCXHandlerTowxImageHandler(void *ptr) {
1178 wxPCXHandler *src;
1179 wxImageHandler *dest;
1180 src = (wxPCXHandler *) ptr;
1181 dest = (wxImageHandler *) src;
1182 return (void *) dest;
1183}
1184
9df61a29
RD
1185static void *SwigwxPCXHandlerTowxObject(void *ptr) {
1186 wxPCXHandler *src;
1187 wxObject *dest;
1188 src = (wxPCXHandler *) ptr;
1189 dest = (wxObject *) src;
1190 return (void *) dest;
1191}
1192
bc29c5e0
RD
1193#define new_wxPCXHandler() (new wxPCXHandler())
1194static PyObject *_wrap_new_wxPCXHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
1195 PyObject * _resultobj;
1196 wxPCXHandler * _result;
1197 char *_kwnames[] = { NULL };
1198 char _ptemp[128];
1199
1200 self = self;
1201 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPCXHandler",_kwnames))
1202 return NULL;
1203{
474c48f9 1204 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1205 _result = (wxPCXHandler *)new_wxPCXHandler();
bc29c5e0 1206
474c48f9 1207 wxPyEndAllowThreads(__tstate);
4dfaa61e 1208 if (PyErr_Occurred()) return NULL;
bc29c5e0
RD
1209} if (_result) {
1210 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPCXHandler_p");
1211 _resultobj = Py_BuildValue("s",_ptemp);
1212 } else {
1213 Py_INCREF(Py_None);
1214 _resultobj = Py_None;
1215 }
1216 return _resultobj;
1217}
1218
ab2208b5
RD
1219static void *SwigwxTIFFHandlerTowxImageHandler(void *ptr) {
1220 wxTIFFHandler *src;
1221 wxImageHandler *dest;
1222 src = (wxTIFFHandler *) ptr;
1223 dest = (wxImageHandler *) src;
1224 return (void *) dest;
1225}
1226
9df61a29
RD
1227static void *SwigwxTIFFHandlerTowxObject(void *ptr) {
1228 wxTIFFHandler *src;
1229 wxObject *dest;
1230 src = (wxTIFFHandler *) ptr;
1231 dest = (wxObject *) src;
1232 return (void *) dest;
1233}
1234
ab2208b5
RD
1235#define new_wxTIFFHandler() (new wxTIFFHandler())
1236static PyObject *_wrap_new_wxTIFFHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
1237 PyObject * _resultobj;
1238 wxTIFFHandler * _result;
1239 char *_kwnames[] = { NULL };
1240 char _ptemp[128];
1241
1242 self = self;
1243 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxTIFFHandler",_kwnames))
1244 return NULL;
1245{
474c48f9 1246 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1247 _result = (wxTIFFHandler *)new_wxTIFFHandler();
ab2208b5 1248
474c48f9 1249 wxPyEndAllowThreads(__tstate);
4dfaa61e 1250 if (PyErr_Occurred()) return NULL;
ab2208b5
RD
1251} if (_result) {
1252 SWIG_MakePtr(_ptemp, (char *) _result,"_wxTIFFHandler_p");
1253 _resultobj = Py_BuildValue("s",_ptemp);
1254 } else {
1255 Py_INCREF(Py_None);
1256 _resultobj = Py_None;
1257 }
1258 return _resultobj;
1259}
1260
9df61a29
RD
1261static void *SwigwxImageTowxObject(void *ptr) {
1262 wxImage *src;
1263 wxObject *dest;
1264 src = (wxImage *) ptr;
1265 dest = (wxObject *) src;
1266 return (void *) dest;
1267}
1268
1893b029 1269#define new_wxImage(_swigarg0,_swigarg1,_swigarg2) (new wxImage(_swigarg0,_swigarg1,_swigarg2))
107e4716 1270static PyObject *_wrap_new_wxImage(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
1271 PyObject * _resultobj;
1272 wxImage * _result;
1273 wxString * _arg0;
f6bcfd97 1274 long _arg1 = (long ) wxBITMAP_TYPE_ANY;
1893b029 1275 int _arg2 = (int ) -1;
ab9bc19b 1276 PyObject * _obj0 = 0;
1893b029 1277 char *_kwnames[] = { "name","type","index", NULL };
ab9bc19b
RD
1278 char _ptemp[128];
1279
1280 self = self;
1893b029 1281 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|li:new_wxImage",_kwnames,&_obj0,&_arg1,&_arg2))
ab9bc19b
RD
1282 return NULL;
1283{
c8bc7bb8
RD
1284 _arg0 = wxString_in_helper(_obj0);
1285 if (_arg0 == NULL)
ab9bc19b 1286 return NULL;
ab9bc19b
RD
1287}
1288{
474c48f9 1289 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1290 _result = (wxImage *)new_wxImage(*_arg0,_arg1,_arg2);
ab9bc19b 1291
474c48f9 1292 wxPyEndAllowThreads(__tstate);
4dfaa61e 1293 if (PyErr_Occurred()) return NULL;
2d091820
RD
1294} if (_result) {
1295 SWIG_MakePtr(_ptemp, (char *) _result,"_wxImage_p");
1296 _resultobj = Py_BuildValue("s",_ptemp);
1297 } else {
1298 Py_INCREF(Py_None);
1299 _resultobj = Py_None;
1300 }
ab9bc19b
RD
1301{
1302 if (_obj0)
1303 delete _arg0;
1304}
1305 return _resultobj;
1306}
1307
1308#define delete_wxImage(_swigobj) (delete _swigobj)
107e4716 1309static PyObject *_wrap_delete_wxImage(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
1310 PyObject * _resultobj;
1311 wxImage * _arg0;
2d091820 1312 PyObject * _argo0 = 0;
107e4716 1313 char *_kwnames[] = { "self", NULL };
ab9bc19b
RD
1314
1315 self = self;
107e4716 1316 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxImage",_kwnames,&_argo0))
ab9bc19b 1317 return NULL;
2d091820
RD
1318 if (_argo0) {
1319 if (_argo0 == Py_None) { _arg0 = NULL; }
1320 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
ab9bc19b
RD
1321 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxImage. Expected _wxImage_p.");
1322 return NULL;
1323 }
1324 }
1325{
474c48f9 1326 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1327 delete_wxImage(_arg0);
ab9bc19b 1328
474c48f9 1329 wxPyEndAllowThreads(__tstate);
4dfaa61e 1330 if (PyErr_Occurred()) return NULL;
ab9bc19b
RD
1331} Py_INCREF(Py_None);
1332 _resultobj = Py_None;
1333 return _resultobj;
1334}
1335
1336#define wxImage_ConvertToBitmap(_swigobj) (_swigobj->ConvertToBitmap())
107e4716 1337static PyObject *_wrap_wxImage_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
1338 PyObject * _resultobj;
1339 wxBitmap * _result;
1340 wxImage * _arg0;
2d091820 1341 PyObject * _argo0 = 0;
107e4716 1342 char *_kwnames[] = { "self", NULL };
ab9bc19b
RD
1343 char _ptemp[128];
1344
1345 self = self;
107e4716 1346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImage_ConvertToBitmap",_kwnames,&_argo0))
ab9bc19b 1347 return NULL;
2d091820
RD
1348 if (_argo0) {
1349 if (_argo0 == Py_None) { _arg0 = NULL; }
1350 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
ab9bc19b
RD
1351 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_ConvertToBitmap. Expected _wxImage_p.");
1352 return NULL;
1353 }
1354 }
1355{
474c48f9 1356 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1357 _result = new wxBitmap (wxImage_ConvertToBitmap(_arg0));
ab9bc19b 1358
474c48f9 1359 wxPyEndAllowThreads(__tstate);
4dfaa61e 1360 if (PyErr_Occurred()) return NULL;
ab9bc19b
RD
1361} SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p");
1362 _resultobj = Py_BuildValue("s",_ptemp);
1363 return _resultobj;
1364}
1365
9e689c06
RD
1366#define wxImage_ConvertToMonoBitmap(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->ConvertToMonoBitmap(_swigarg0,_swigarg1,_swigarg2))
1367static PyObject *_wrap_wxImage_ConvertToMonoBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
1368 PyObject * _resultobj;
1369 wxBitmap * _result;
1370 wxImage * _arg0;
1371 unsigned char _arg1;
1372 unsigned char _arg2;
1373 unsigned char _arg3;
1374 PyObject * _argo0 = 0;
1375 char *_kwnames[] = { "self","red","green","blue", NULL };
1376 char _ptemp[128];
1377
1378 self = self;
1379 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Obbb:wxImage_ConvertToMonoBitmap",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
1380 return NULL;
1381 if (_argo0) {
1382 if (_argo0 == Py_None) { _arg0 = NULL; }
1383 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
1384 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_ConvertToMonoBitmap. Expected _wxImage_p.");
1385 return NULL;
1386 }
1387 }
1388{
474c48f9 1389 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1390 _result = new wxBitmap (wxImage_ConvertToMonoBitmap(_arg0,_arg1,_arg2,_arg3));
9e689c06 1391
474c48f9 1392 wxPyEndAllowThreads(__tstate);
4dfaa61e 1393 if (PyErr_Occurred()) return NULL;
9e689c06
RD
1394} SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p");
1395 _resultobj = Py_BuildValue("s",_ptemp);
1396 return _resultobj;
1397}
1398
ab9bc19b 1399#define wxImage_Create(_swigobj,_swigarg0,_swigarg1) (_swigobj->Create(_swigarg0,_swigarg1))
107e4716 1400static PyObject *_wrap_wxImage_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
1401 PyObject * _resultobj;
1402 wxImage * _arg0;
1403 int _arg1;
1404 int _arg2;
2d091820 1405 PyObject * _argo0 = 0;
107e4716 1406 char *_kwnames[] = { "self","width","height", NULL };
ab9bc19b
RD
1407
1408 self = self;
107e4716 1409 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxImage_Create",_kwnames,&_argo0,&_arg1,&_arg2))
ab9bc19b 1410 return NULL;
2d091820
RD
1411 if (_argo0) {
1412 if (_argo0 == Py_None) { _arg0 = NULL; }
1413 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
ab9bc19b
RD
1414 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_Create. Expected _wxImage_p.");
1415 return NULL;
1416 }
1417 }
1418{
474c48f9 1419 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1420 wxImage_Create(_arg0,_arg1,_arg2);
ab9bc19b 1421
474c48f9 1422 wxPyEndAllowThreads(__tstate);
4dfaa61e 1423 if (PyErr_Occurred()) return NULL;
ab9bc19b
RD
1424} Py_INCREF(Py_None);
1425 _resultobj = Py_None;
1426 return _resultobj;
1427}
1428
1429#define wxImage_Destroy(_swigobj) (_swigobj->Destroy())
107e4716 1430static PyObject *_wrap_wxImage_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
1431 PyObject * _resultobj;
1432 wxImage * _arg0;
2d091820 1433 PyObject * _argo0 = 0;
107e4716 1434 char *_kwnames[] = { "self", NULL };
ab9bc19b
RD
1435
1436 self = self;
107e4716 1437 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImage_Destroy",_kwnames,&_argo0))
ab9bc19b 1438 return NULL;
2d091820
RD
1439 if (_argo0) {
1440 if (_argo0 == Py_None) { _arg0 = NULL; }
1441 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
ab9bc19b
RD
1442 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_Destroy. Expected _wxImage_p.");
1443 return NULL;
1444 }
1445 }
1446{
474c48f9 1447 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1448 wxImage_Destroy(_arg0);
ab9bc19b 1449
474c48f9 1450 wxPyEndAllowThreads(__tstate);
4dfaa61e 1451 if (PyErr_Occurred()) return NULL;
ab9bc19b
RD
1452} Py_INCREF(Py_None);
1453 _resultobj = Py_None;
1454 return _resultobj;
1455}
1456
1457#define wxImage_Scale(_swigobj,_swigarg0,_swigarg1) (_swigobj->Scale(_swigarg0,_swigarg1))
107e4716 1458static PyObject *_wrap_wxImage_Scale(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
1459 PyObject * _resultobj;
1460 wxImage * _result;
1461 wxImage * _arg0;
1462 int _arg1;
1463 int _arg2;
2d091820 1464 PyObject * _argo0 = 0;
107e4716 1465 char *_kwnames[] = { "self","width","height", NULL };
ab9bc19b
RD
1466 char _ptemp[128];
1467
1468 self = self;
107e4716 1469 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxImage_Scale",_kwnames,&_argo0,&_arg1,&_arg2))
ab9bc19b 1470 return NULL;
2d091820
RD
1471 if (_argo0) {
1472 if (_argo0 == Py_None) { _arg0 = NULL; }
1473 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
ab9bc19b
RD
1474 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_Scale. Expected _wxImage_p.");
1475 return NULL;
1476 }
1477 }
1478{
474c48f9 1479 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1480 _result = new wxImage (wxImage_Scale(_arg0,_arg1,_arg2));
ab9bc19b 1481
474c48f9 1482 wxPyEndAllowThreads(__tstate);
4dfaa61e 1483 if (PyErr_Occurred()) return NULL;
ab9bc19b
RD
1484} SWIG_MakePtr(_ptemp, (void *) _result,"_wxImage_p");
1485 _resultobj = Py_BuildValue("s",_ptemp);
1486 return _resultobj;
1487}
1488
8bf5d46e 1489#define wxImage_Rescale(_swigobj,_swigarg0,_swigarg1) (_swigobj->Rescale(_swigarg0,_swigarg1))
107e4716 1490static PyObject *_wrap_wxImage_Rescale(PyObject *self, PyObject *args, PyObject *kwargs) {
8bf5d46e 1491 PyObject * _resultobj;
f6bcfd97 1492 wxImage * _result;
8bf5d46e
RD
1493 wxImage * _arg0;
1494 int _arg1;
1495 int _arg2;
2d091820 1496 PyObject * _argo0 = 0;
107e4716 1497 char *_kwnames[] = { "self","width","height", NULL };
f6bcfd97 1498 char _ptemp[128];
8bf5d46e
RD
1499
1500 self = self;
107e4716 1501 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxImage_Rescale",_kwnames,&_argo0,&_arg1,&_arg2))
8bf5d46e 1502 return NULL;
2d091820
RD
1503 if (_argo0) {
1504 if (_argo0 == Py_None) { _arg0 = NULL; }
1505 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
8bf5d46e
RD
1506 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_Rescale. Expected _wxImage_p.");
1507 return NULL;
1508 }
1509 }
1510{
474c48f9 1511 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1512 wxImage & _result_ref = wxImage_Rescale(_arg0,_arg1,_arg2);
f6bcfd97 1513 _result = (wxImage *) &_result_ref;
8bf5d46e 1514
474c48f9 1515 wxPyEndAllowThreads(__tstate);
4dfaa61e 1516 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
1517} if (_result) {
1518 SWIG_MakePtr(_ptemp, (char *) _result,"_wxImage_p");
1519 _resultobj = Py_BuildValue("s",_ptemp);
1520 } else {
1521 Py_INCREF(Py_None);
1522 _resultobj = Py_None;
1523 }
8bf5d46e
RD
1524 return _resultobj;
1525}
1526
ab9bc19b 1527#define wxImage_SetRGB(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetRGB(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
107e4716 1528static PyObject *_wrap_wxImage_SetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
1529 PyObject * _resultobj;
1530 wxImage * _arg0;
1531 int _arg1;
1532 int _arg2;
1533 unsigned char _arg3;
1534 unsigned char _arg4;
1535 unsigned char _arg5;
2d091820 1536 PyObject * _argo0 = 0;
107e4716 1537 char *_kwnames[] = { "self","x","y","r","g","b", NULL };
ab9bc19b
RD
1538
1539 self = self;
107e4716 1540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiibbb:wxImage_SetRGB",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5))
ab9bc19b 1541 return NULL;
2d091820
RD
1542 if (_argo0) {
1543 if (_argo0 == Py_None) { _arg0 = NULL; }
1544 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
ab9bc19b
RD
1545 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_SetRGB. Expected _wxImage_p.");
1546 return NULL;
1547 }
1548 }
1549{
474c48f9 1550 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1551 wxImage_SetRGB(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
ab9bc19b 1552
474c48f9 1553 wxPyEndAllowThreads(__tstate);
4dfaa61e 1554 if (PyErr_Occurred()) return NULL;
ab9bc19b
RD
1555} Py_INCREF(Py_None);
1556 _resultobj = Py_None;
1557 return _resultobj;
1558}
1559
1560#define wxImage_GetRed(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetRed(_swigarg0,_swigarg1))
107e4716 1561static PyObject *_wrap_wxImage_GetRed(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
1562 PyObject * _resultobj;
1563 unsigned char _result;
1564 wxImage * _arg0;
1565 int _arg1;
1566 int _arg2;
2d091820 1567 PyObject * _argo0 = 0;
107e4716 1568 char *_kwnames[] = { "self","x","y", NULL };
ab9bc19b
RD
1569
1570 self = self;
107e4716 1571 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxImage_GetRed",_kwnames,&_argo0,&_arg1,&_arg2))
ab9bc19b 1572 return NULL;
2d091820
RD
1573 if (_argo0) {
1574 if (_argo0 == Py_None) { _arg0 = NULL; }
1575 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
ab9bc19b
RD
1576 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_GetRed. Expected _wxImage_p.");
1577 return NULL;
1578 }
1579 }
1580{
474c48f9 1581 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1582 _result = (unsigned char )wxImage_GetRed(_arg0,_arg1,_arg2);
ab9bc19b 1583
474c48f9 1584 wxPyEndAllowThreads(__tstate);
4dfaa61e 1585 if (PyErr_Occurred()) return NULL;
ab9bc19b
RD
1586} _resultobj = Py_BuildValue("b",_result);
1587 return _resultobj;
1588}
1589
1590#define wxImage_GetGreen(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetGreen(_swigarg0,_swigarg1))
107e4716 1591static PyObject *_wrap_wxImage_GetGreen(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
1592 PyObject * _resultobj;
1593 unsigned char _result;
1594 wxImage * _arg0;
1595 int _arg1;
1596 int _arg2;
2d091820 1597 PyObject * _argo0 = 0;
107e4716 1598 char *_kwnames[] = { "self","x","y", NULL };
ab9bc19b
RD
1599
1600 self = self;
107e4716 1601 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxImage_GetGreen",_kwnames,&_argo0,&_arg1,&_arg2))
ab9bc19b 1602 return NULL;
2d091820
RD
1603 if (_argo0) {
1604 if (_argo0 == Py_None) { _arg0 = NULL; }
1605 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
ab9bc19b
RD
1606 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_GetGreen. Expected _wxImage_p.");
1607 return NULL;
1608 }
1609 }
1610{
474c48f9 1611 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1612 _result = (unsigned char )wxImage_GetGreen(_arg0,_arg1,_arg2);
ab9bc19b 1613
474c48f9 1614 wxPyEndAllowThreads(__tstate);
4dfaa61e 1615 if (PyErr_Occurred()) return NULL;
ab9bc19b
RD
1616} _resultobj = Py_BuildValue("b",_result);
1617 return _resultobj;
1618}
1619
1620#define wxImage_GetBlue(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetBlue(_swigarg0,_swigarg1))
107e4716 1621static PyObject *_wrap_wxImage_GetBlue(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
1622 PyObject * _resultobj;
1623 unsigned char _result;
1624 wxImage * _arg0;
1625 int _arg1;
1626 int _arg2;
2d091820 1627 PyObject * _argo0 = 0;
107e4716 1628 char *_kwnames[] = { "self","x","y", NULL };
ab9bc19b
RD
1629
1630 self = self;
107e4716 1631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxImage_GetBlue",_kwnames,&_argo0,&_arg1,&_arg2))
ab9bc19b 1632 return NULL;
2d091820
RD
1633 if (_argo0) {
1634 if (_argo0 == Py_None) { _arg0 = NULL; }
1635 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
ab9bc19b
RD
1636 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_GetBlue. Expected _wxImage_p.");
1637 return NULL;
1638 }
1639 }
1640{
474c48f9 1641 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1642 _result = (unsigned char )wxImage_GetBlue(_arg0,_arg1,_arg2);
ab9bc19b 1643
474c48f9 1644 wxPyEndAllowThreads(__tstate);
4dfaa61e 1645 if (PyErr_Occurred()) return NULL;
ab9bc19b
RD
1646} _resultobj = Py_BuildValue("b",_result);
1647 return _resultobj;
1648}
1649
fbcadfca
RD
1650static PyObject *_wrap_wxImage_CanRead(PyObject *self, PyObject *args, PyObject *kwargs) {
1651 PyObject * _resultobj;
1652 bool _result;
1653 wxString * _arg0;
1654 PyObject * _obj0 = 0;
1655 char *_kwnames[] = { "name", NULL };
1656
1657 self = self;
1658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImage_CanRead",_kwnames,&_obj0))
1659 return NULL;
1660{
c8bc7bb8
RD
1661 _arg0 = wxString_in_helper(_obj0);
1662 if (_arg0 == NULL)
fbcadfca 1663 return NULL;
fbcadfca
RD
1664}
1665{
474c48f9 1666 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1667 _result = (bool )wxImage::CanRead(*_arg0);
fbcadfca 1668
474c48f9 1669 wxPyEndAllowThreads(__tstate);
4dfaa61e 1670 if (PyErr_Occurred()) return NULL;
fbcadfca
RD
1671} _resultobj = Py_BuildValue("i",_result);
1672{
1673 if (_obj0)
1674 delete _arg0;
1675}
1676 return _resultobj;
1677}
1678
1893b029
RD
1679static PyObject *_wrap_wxImage_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) {
1680 PyObject * _resultobj;
1681 int _result;
1682 wxString * _arg0;
1683 long _arg1 = (long ) wxBITMAP_TYPE_ANY;
1684 PyObject * _obj0 = 0;
1685 char *_kwnames[] = { "name","type", NULL };
1686
1687 self = self;
1688 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|l:wxImage_GetImageCount",_kwnames,&_obj0,&_arg1))
1689 return NULL;
1690{
c8bc7bb8
RD
1691 _arg0 = wxString_in_helper(_obj0);
1692 if (_arg0 == NULL)
1893b029 1693 return NULL;
1893b029
RD
1694}
1695{
1696 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1697 _result = (int )wxImage::GetImageCount(*_arg0,_arg1);
1893b029
RD
1698
1699 wxPyEndAllowThreads(__tstate);
1700 if (PyErr_Occurred()) return NULL;
1701} _resultobj = Py_BuildValue("i",_result);
1702{
1703 if (_obj0)
1704 delete _arg0;
1705}
1706 return _resultobj;
1707}
1708
1709#define wxImage_LoadFile(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->LoadFile(_swigarg0,_swigarg1,_swigarg2))
107e4716 1710static PyObject *_wrap_wxImage_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
1711 PyObject * _resultobj;
1712 bool _result;
1713 wxImage * _arg0;
1714 wxString * _arg1;
fbcadfca 1715 long _arg2 = (long ) wxBITMAP_TYPE_ANY;
1893b029 1716 int _arg3 = (int ) -1;
2d091820 1717 PyObject * _argo0 = 0;
ab9bc19b 1718 PyObject * _obj1 = 0;
1893b029 1719 char *_kwnames[] = { "self","name","type","index", NULL };
ab9bc19b
RD
1720
1721 self = self;
1893b029 1722 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|li:wxImage_LoadFile",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3))
ab9bc19b 1723 return NULL;
2d091820
RD
1724 if (_argo0) {
1725 if (_argo0 == Py_None) { _arg0 = NULL; }
1726 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
ab9bc19b
RD
1727 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_LoadFile. Expected _wxImage_p.");
1728 return NULL;
1729 }
1730 }
1731{
c8bc7bb8
RD
1732 _arg1 = wxString_in_helper(_obj1);
1733 if (_arg1 == NULL)
2cd2fac8 1734 return NULL;
ab9bc19b
RD
1735}
1736{
474c48f9 1737 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1738 _result = (bool )wxImage_LoadFile(_arg0,*_arg1,_arg2,_arg3);
ab9bc19b 1739
474c48f9 1740 wxPyEndAllowThreads(__tstate);
4dfaa61e 1741 if (PyErr_Occurred()) return NULL;
ab9bc19b
RD
1742} _resultobj = Py_BuildValue("i",_result);
1743{
1744 if (_obj1)
1745 delete _arg1;
1746}
1747 return _resultobj;
1748}
1749
1893b029 1750#define wxImage_LoadMimeFile(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->LoadFile(_swigarg0,_swigarg1,_swigarg2))
107e4716 1751static PyObject *_wrap_wxImage_LoadMimeFile(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
1752 PyObject * _resultobj;
1753 bool _result;
1754 wxImage * _arg0;
1755 wxString * _arg1;
1756 wxString * _arg2;
1893b029 1757 int _arg3 = (int ) -1;
2d091820 1758 PyObject * _argo0 = 0;
ab9bc19b
RD
1759 PyObject * _obj1 = 0;
1760 PyObject * _obj2 = 0;
1893b029 1761 char *_kwnames[] = { "self","name","mimetype","index", NULL };
ab9bc19b
RD
1762
1763 self = self;
1893b029 1764 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|i:wxImage_LoadMimeFile",_kwnames,&_argo0,&_obj1,&_obj2,&_arg3))
ab9bc19b 1765 return NULL;
2d091820
RD
1766 if (_argo0) {
1767 if (_argo0 == Py_None) { _arg0 = NULL; }
1768 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
ab9bc19b
RD
1769 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_LoadMimeFile. Expected _wxImage_p.");
1770 return NULL;
1771 }
1772 }
1773{
c8bc7bb8
RD
1774 _arg1 = wxString_in_helper(_obj1);
1775 if (_arg1 == NULL)
2cd2fac8 1776 return NULL;
ab9bc19b
RD
1777}
1778{
c8bc7bb8
RD
1779 _arg2 = wxString_in_helper(_obj2);
1780 if (_arg2 == NULL)
2cd2fac8 1781 return NULL;
ab9bc19b
RD
1782}
1783{
474c48f9 1784 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1785 _result = (bool )wxImage_LoadMimeFile(_arg0,*_arg1,*_arg2,_arg3);
ab9bc19b 1786
474c48f9 1787 wxPyEndAllowThreads(__tstate);
4dfaa61e 1788 if (PyErr_Occurred()) return NULL;
ab9bc19b
RD
1789} _resultobj = Py_BuildValue("i",_result);
1790{
1791 if (_obj1)
1792 delete _arg1;
1793}
1794{
1795 if (_obj2)
1796 delete _arg2;
1797}
1798 return _resultobj;
1799}
1800
1801#define wxImage_SaveFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->SaveFile(_swigarg0,_swigarg1))
107e4716 1802static PyObject *_wrap_wxImage_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
1803 PyObject * _resultobj;
1804 bool _result;
1805 wxImage * _arg0;
1806 wxString * _arg1;
1807 int _arg2;
2d091820 1808 PyObject * _argo0 = 0;
ab9bc19b 1809 PyObject * _obj1 = 0;
107e4716 1810 char *_kwnames[] = { "self","name","type", NULL };
ab9bc19b
RD
1811
1812 self = self;
107e4716 1813 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxImage_SaveFile",_kwnames,&_argo0,&_obj1,&_arg2))
ab9bc19b 1814 return NULL;
2d091820
RD
1815 if (_argo0) {
1816 if (_argo0 == Py_None) { _arg0 = NULL; }
1817 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
ab9bc19b
RD
1818 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_SaveFile. Expected _wxImage_p.");
1819 return NULL;
1820 }
1821 }
1822{
c8bc7bb8
RD
1823 _arg1 = wxString_in_helper(_obj1);
1824 if (_arg1 == NULL)
ab9bc19b 1825 return NULL;
ab9bc19b
RD
1826}
1827{
474c48f9 1828 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1829 _result = (bool )wxImage_SaveFile(_arg0,*_arg1,_arg2);
ab9bc19b 1830
474c48f9 1831 wxPyEndAllowThreads(__tstate);
4dfaa61e 1832 if (PyErr_Occurred()) return NULL;
ab9bc19b
RD
1833} _resultobj = Py_BuildValue("i",_result);
1834{
1835 if (_obj1)
1836 delete _arg1;
1837}
1838 return _resultobj;
1839}
1840
1841#define wxImage_SaveMimeFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->SaveFile(_swigarg0,_swigarg1))
107e4716 1842static PyObject *_wrap_wxImage_SaveMimeFile(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
1843 PyObject * _resultobj;
1844 bool _result;
1845 wxImage * _arg0;
1846 wxString * _arg1;
1847 wxString * _arg2;
2d091820 1848 PyObject * _argo0 = 0;
ab9bc19b
RD
1849 PyObject * _obj1 = 0;
1850 PyObject * _obj2 = 0;
107e4716 1851 char *_kwnames[] = { "self","name","mimetype", NULL };
ab9bc19b
RD
1852
1853 self = self;
107e4716 1854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxImage_SaveMimeFile",_kwnames,&_argo0,&_obj1,&_obj2))
ab9bc19b 1855 return NULL;
2d091820
RD
1856 if (_argo0) {
1857 if (_argo0 == Py_None) { _arg0 = NULL; }
1858 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
ab9bc19b
RD
1859 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_SaveMimeFile. Expected _wxImage_p.");
1860 return NULL;
1861 }
1862 }
1863{
c8bc7bb8
RD
1864 _arg1 = wxString_in_helper(_obj1);
1865 if (_arg1 == NULL)
2cd2fac8 1866 return NULL;
ab9bc19b
RD
1867}
1868{
c8bc7bb8
RD
1869 _arg2 = wxString_in_helper(_obj2);
1870 if (_arg2 == NULL)
ab9bc19b 1871 return NULL;
ab9bc19b
RD
1872}
1873{
474c48f9 1874 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1875 _result = (bool )wxImage_SaveMimeFile(_arg0,*_arg1,*_arg2);
ab9bc19b 1876
474c48f9 1877 wxPyEndAllowThreads(__tstate);
4dfaa61e 1878 if (PyErr_Occurred()) return NULL;
ab9bc19b
RD
1879} _resultobj = Py_BuildValue("i",_result);
1880{
1881 if (_obj1)
1882 delete _arg1;
1883}
1884{
1885 if (_obj2)
1886 delete _arg2;
1887}
1888 return _resultobj;
1889}
1890
94082a71
RD
1891static PyObject *_wrap_wxImage_CanReadStream(PyObject *self, PyObject *args, PyObject *kwargs) {
1892 PyObject * _resultobj;
1893 bool _result;
1894 wxInputStream * _arg0;
1895 wxPyInputStream * temp;
1896 bool created;
1897 PyObject * _obj0 = 0;
1898 char *_kwnames[] = { "stream", NULL };
1899
1900 self = self;
1901 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImage_CanReadStream",_kwnames,&_obj0))
1902 return NULL;
1903{
1904 if (SWIG_GetPtrObj(_obj0, (void **) &temp, "_wxPyInputStream_p") == 0) {
1905 _arg0 = temp->m_wxis;
1906 created = FALSE;
1907 } else {
1908 _arg0 = wxPyCBInputStream::create(_obj0, FALSE);
1909 if (_arg0 == NULL) {
1910 PyErr_SetString(PyExc_TypeError,"Expected _wxInputStream_p or Python file-like object.");
1911 return NULL;
1912 }
1913 created = TRUE;
1914 }
1915}
1916{
1917 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1918 _result = (bool )wxImage::CanRead(*_arg0);
94082a71
RD
1919
1920 wxPyEndAllowThreads(__tstate);
1921 if (PyErr_Occurred()) return NULL;
1922} _resultobj = Py_BuildValue("i",_result);
1923{
1924 if (created)
1925 delete _arg0;
1926}
1927 return _resultobj;
1928}
1929
1930#define wxImage_LoadStream(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->LoadFile(_swigarg0,_swigarg1,_swigarg2))
1931static PyObject *_wrap_wxImage_LoadStream(PyObject *self, PyObject *args, PyObject *kwargs) {
1932 PyObject * _resultobj;
1933 bool _result;
1934 wxImage * _arg0;
1935 wxInputStream * _arg1;
1936 long _arg2 = (long ) wxBITMAP_TYPE_ANY;
1937 int _arg3 = (int ) -1;
1938 PyObject * _argo0 = 0;
1939 wxPyInputStream * temp;
1940 bool created;
1941 PyObject * _obj1 = 0;
1942 char *_kwnames[] = { "self","stream","type","index", NULL };
1943
1944 self = self;
1945 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|li:wxImage_LoadStream",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3))
1946 return NULL;
1947 if (_argo0) {
1948 if (_argo0 == Py_None) { _arg0 = NULL; }
1949 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
1950 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_LoadStream. Expected _wxImage_p.");
1951 return NULL;
1952 }
1953 }
1954{
1955 if (SWIG_GetPtrObj(_obj1, (void **) &temp, "_wxPyInputStream_p") == 0) {
1956 _arg1 = temp->m_wxis;
1957 created = FALSE;
1958 } else {
1959 _arg1 = wxPyCBInputStream::create(_obj1, FALSE);
1960 if (_arg1 == NULL) {
1961 PyErr_SetString(PyExc_TypeError,"Expected _wxInputStream_p or Python file-like object.");
1962 return NULL;
1963 }
1964 created = TRUE;
1965 }
1966}
1967{
1968 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1969 _result = (bool )wxImage_LoadStream(_arg0,*_arg1,_arg2,_arg3);
94082a71
RD
1970
1971 wxPyEndAllowThreads(__tstate);
1972 if (PyErr_Occurred()) return NULL;
1973} _resultobj = Py_BuildValue("i",_result);
1974{
1975 if (created)
1976 delete _arg1;
1977}
1978 return _resultobj;
1979}
1980
1981#define wxImage_LoadMimeStream(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->LoadFile(_swigarg0,_swigarg1,_swigarg2))
1982static PyObject *_wrap_wxImage_LoadMimeStream(PyObject *self, PyObject *args, PyObject *kwargs) {
1983 PyObject * _resultobj;
1984 bool _result;
1985 wxImage * _arg0;
1986 wxInputStream * _arg1;
1987 wxString * _arg2;
1988 int _arg3 = (int ) -1;
1989 PyObject * _argo0 = 0;
1990 wxPyInputStream * temp;
1991 bool created;
1992 PyObject * _obj1 = 0;
1993 PyObject * _obj2 = 0;
1994 char *_kwnames[] = { "self","stream","mimetype","index", NULL };
1995
1996 self = self;
1997 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|i:wxImage_LoadMimeStream",_kwnames,&_argo0,&_obj1,&_obj2,&_arg3))
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_LoadMimeStream. Expected _wxImage_p.");
2003 return NULL;
2004 }
2005 }
2006{
2007 if (SWIG_GetPtrObj(_obj1, (void **) &temp, "_wxPyInputStream_p") == 0) {
2008 _arg1 = temp->m_wxis;
2009 created = FALSE;
2010 } else {
2011 _arg1 = wxPyCBInputStream::create(_obj1, FALSE);
2012 if (_arg1 == NULL) {
2013 PyErr_SetString(PyExc_TypeError,"Expected _wxInputStream_p or Python file-like object.");
2014 return NULL;
2015 }
2016 created = TRUE;
2017 }
2018}
2019{
c8bc7bb8
RD
2020 _arg2 = wxString_in_helper(_obj2);
2021 if (_arg2 == NULL)
94082a71 2022 return NULL;
94082a71
RD
2023}
2024{
2025 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2026 _result = (bool )wxImage_LoadMimeStream(_arg0,*_arg1,*_arg2,_arg3);
94082a71
RD
2027
2028 wxPyEndAllowThreads(__tstate);
2029 if (PyErr_Occurred()) return NULL;
2030} _resultobj = Py_BuildValue("i",_result);
2031{
2032 if (created)
2033 delete _arg1;
2034}
2035{
2036 if (_obj2)
2037 delete _arg2;
2038}
2039 return _resultobj;
2040}
2041
ab9bc19b 2042#define wxImage_Ok(_swigobj) (_swigobj->Ok())
107e4716 2043static PyObject *_wrap_wxImage_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
2044 PyObject * _resultobj;
2045 bool _result;
2046 wxImage * _arg0;
2d091820 2047 PyObject * _argo0 = 0;
107e4716 2048 char *_kwnames[] = { "self", NULL };
ab9bc19b
RD
2049
2050 self = self;
107e4716 2051 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImage_Ok",_kwnames,&_argo0))
ab9bc19b 2052 return NULL;
2d091820
RD
2053 if (_argo0) {
2054 if (_argo0 == Py_None) { _arg0 = NULL; }
2055 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
ab9bc19b
RD
2056 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_Ok. Expected _wxImage_p.");
2057 return NULL;
2058 }
2059 }
2060{
474c48f9 2061 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2062 _result = (bool )wxImage_Ok(_arg0);
ab9bc19b 2063
474c48f9 2064 wxPyEndAllowThreads(__tstate);
4dfaa61e 2065 if (PyErr_Occurred()) return NULL;
ab9bc19b
RD
2066} _resultobj = Py_BuildValue("i",_result);
2067 return _resultobj;
2068}
2069
2070#define wxImage_GetWidth(_swigobj) (_swigobj->GetWidth())
107e4716 2071static PyObject *_wrap_wxImage_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
2072 PyObject * _resultobj;
2073 int _result;
2074 wxImage * _arg0;
2d091820 2075 PyObject * _argo0 = 0;
107e4716 2076 char *_kwnames[] = { "self", NULL };
ab9bc19b
RD
2077
2078 self = self;
107e4716 2079 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImage_GetWidth",_kwnames,&_argo0))
ab9bc19b 2080 return NULL;
2d091820
RD
2081 if (_argo0) {
2082 if (_argo0 == Py_None) { _arg0 = NULL; }
2083 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
ab9bc19b
RD
2084 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_GetWidth. Expected _wxImage_p.");
2085 return NULL;
2086 }
2087 }
2088{
474c48f9 2089 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2090 _result = (int )wxImage_GetWidth(_arg0);
ab9bc19b 2091
474c48f9 2092 wxPyEndAllowThreads(__tstate);
4dfaa61e 2093 if (PyErr_Occurred()) return NULL;
ab9bc19b
RD
2094} _resultobj = Py_BuildValue("i",_result);
2095 return _resultobj;
2096}
2097
2098#define wxImage_GetHeight(_swigobj) (_swigobj->GetHeight())
107e4716 2099static PyObject *_wrap_wxImage_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
2100 PyObject * _resultobj;
2101 int _result;
2102 wxImage * _arg0;
2d091820 2103 PyObject * _argo0 = 0;
107e4716 2104 char *_kwnames[] = { "self", NULL };
ab9bc19b
RD
2105
2106 self = self;
107e4716 2107 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImage_GetHeight",_kwnames,&_argo0))
ab9bc19b 2108 return NULL;
2d091820
RD
2109 if (_argo0) {
2110 if (_argo0 == Py_None) { _arg0 = NULL; }
2111 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
ab9bc19b
RD
2112 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_GetHeight. Expected _wxImage_p.");
2113 return NULL;
2114 }
2115 }
2116{
474c48f9 2117 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2118 _result = (int )wxImage_GetHeight(_arg0);
ab9bc19b 2119
474c48f9 2120 wxPyEndAllowThreads(__tstate);
4dfaa61e 2121 if (PyErr_Occurred()) return NULL;
ab9bc19b
RD
2122} _resultobj = Py_BuildValue("i",_result);
2123 return _resultobj;
2124}
2125
f078d013
RD
2126#define wxImage_GetSubImage(_swigobj,_swigarg0) (_swigobj->GetSubImage(_swigarg0))
2127static PyObject *_wrap_wxImage_GetSubImage(PyObject *self, PyObject *args, PyObject *kwargs) {
2128 PyObject * _resultobj;
2129 wxImage * _result;
2130 wxImage * _arg0;
2131 wxRect * _arg1;
2132 PyObject * _argo0 = 0;
2133 wxRect temp;
2134 PyObject * _obj1 = 0;
2135 char *_kwnames[] = { "self","rect", NULL };
2136 char _ptemp[128];
2137
2138 self = self;
2139 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxImage_GetSubImage",_kwnames,&_argo0,&_obj1))
2140 return NULL;
2141 if (_argo0) {
2142 if (_argo0 == Py_None) { _arg0 = NULL; }
2143 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
2144 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_GetSubImage. Expected _wxImage_p.");
2145 return NULL;
2146 }
2147 }
2148{
2149 _arg1 = &temp;
2150 if (! wxRect_helper(_obj1, &_arg1))
2151 return NULL;
2152}
2153{
474c48f9 2154 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2155 _result = new wxImage (wxImage_GetSubImage(_arg0,*_arg1));
f078d013 2156
474c48f9 2157 wxPyEndAllowThreads(__tstate);
4dfaa61e 2158 if (PyErr_Occurred()) return NULL;
f078d013
RD
2159} SWIG_MakePtr(_ptemp, (void *) _result,"_wxImage_p");
2160 _resultobj = Py_BuildValue("s",_ptemp);
2161 return _resultobj;
2162}
2163
f6bcfd97
BP
2164#define wxImage_Copy(_swigobj) (_swigobj->Copy())
2165static PyObject *_wrap_wxImage_Copy(PyObject *self, PyObject *args, PyObject *kwargs) {
2166 PyObject * _resultobj;
2167 wxImage * _result;
2168 wxImage * _arg0;
2169 PyObject * _argo0 = 0;
2170 char *_kwnames[] = { "self", NULL };
2171 char _ptemp[128];
2172
2173 self = self;
2174 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImage_Copy",_kwnames,&_argo0))
2175 return NULL;
2176 if (_argo0) {
2177 if (_argo0 == Py_None) { _arg0 = NULL; }
2178 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
2179 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_Copy. Expected _wxImage_p.");
2180 return NULL;
2181 }
2182 }
2183{
474c48f9 2184 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2185 _result = new wxImage (wxImage_Copy(_arg0));
f6bcfd97 2186
474c48f9 2187 wxPyEndAllowThreads(__tstate);
4dfaa61e 2188 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
2189} SWIG_MakePtr(_ptemp, (void *) _result,"_wxImage_p");
2190 _resultobj = Py_BuildValue("s",_ptemp);
2191 return _resultobj;
2192}
2193
2194#define wxImage_Paste(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Paste(_swigarg0,_swigarg1,_swigarg2))
2195static PyObject *_wrap_wxImage_Paste(PyObject *self, PyObject *args, PyObject *kwargs) {
2196 PyObject * _resultobj;
2197 wxImage * _arg0;
2198 wxImage * _arg1;
2199 int _arg2;
2200 int _arg3;
2201 PyObject * _argo0 = 0;
2202 PyObject * _argo1 = 0;
2203 char *_kwnames[] = { "self","image","x","y", NULL };
2204
2205 self = self;
2206 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii:wxImage_Paste",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3))
2207 return NULL;
2208 if (_argo0) {
2209 if (_argo0 == Py_None) { _arg0 = NULL; }
2210 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
2211 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_Paste. Expected _wxImage_p.");
2212 return NULL;
2213 }
2214 }
2215 if (_argo1) {
2216 if (_argo1 == Py_None) { _arg1 = NULL; }
2217 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImage_p")) {
2218 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImage_Paste. Expected _wxImage_p.");
2219 return NULL;
2220 }
2221 }
2222{
474c48f9 2223 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2224 wxImage_Paste(_arg0,*_arg1,_arg2,_arg3);
f6bcfd97 2225
474c48f9 2226 wxPyEndAllowThreads(__tstate);
4dfaa61e 2227 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
2228} Py_INCREF(Py_None);
2229 _resultobj = Py_None;
2230 return _resultobj;
2231}
2232
3f0be3ec
RD
2233static PyObject * wxImage_GetData(wxImage *self) {
2234 unsigned char* data = self->GetData();
2235 int len = self->GetWidth() * self->GetHeight() * 3;
2236 return PyString_FromStringAndSize((char*)data, len);
2237 }
107e4716 2238static PyObject *_wrap_wxImage_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b 2239 PyObject * _resultobj;
3f0be3ec 2240 PyObject * _result;
ab9bc19b 2241 wxImage * _arg0;
2d091820 2242 PyObject * _argo0 = 0;
107e4716 2243 char *_kwnames[] = { "self", NULL };
ab9bc19b
RD
2244
2245 self = self;
107e4716 2246 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImage_GetData",_kwnames,&_argo0))
ab9bc19b 2247 return NULL;
2d091820
RD
2248 if (_argo0) {
2249 if (_argo0 == Py_None) { _arg0 = NULL; }
2250 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
ab9bc19b
RD
2251 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_GetData. Expected _wxImage_p.");
2252 return NULL;
2253 }
2254 }
2255{
474c48f9 2256 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2257 _result = (PyObject *)wxImage_GetData(_arg0);
ab9bc19b 2258
474c48f9 2259 wxPyEndAllowThreads(__tstate);
4dfaa61e 2260 if (PyErr_Occurred()) return NULL;
3f0be3ec
RD
2261}{
2262 _resultobj = _result;
2263}
ab9bc19b
RD
2264 return _resultobj;
2265}
2266
3f0be3ec
RD
2267static void wxImage_SetData(wxImage *self,PyObject * data) {
2268 unsigned char* dataPtr;
2269
2270 if (! PyString_Check(data)) {
2271 PyErr_SetString(PyExc_TypeError, "Expected string object");
2272 return /* NULL */ ;
2273 }
f078d013
RD
2274
2275 size_t len = self->GetWidth() * self->GetHeight() * 3;
2cd2fac8 2276 dataPtr = (unsigned char*) malloc(len);
f078d013 2277 memcpy(dataPtr, PyString_AsString(data), len);
3f0be3ec
RD
2278 self->SetData(dataPtr);
2279 }
107e4716 2280static PyObject *_wrap_wxImage_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
2281 PyObject * _resultobj;
2282 wxImage * _arg0;
3f0be3ec 2283 PyObject * _arg1;
2d091820 2284 PyObject * _argo0 = 0;
3f0be3ec 2285 PyObject * _obj1 = 0;
107e4716 2286 char *_kwnames[] = { "self","data", NULL };
ab9bc19b
RD
2287
2288 self = self;
107e4716 2289 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxImage_SetData",_kwnames,&_argo0,&_obj1))
ab9bc19b 2290 return NULL;
2d091820
RD
2291 if (_argo0) {
2292 if (_argo0 == Py_None) { _arg0 = NULL; }
2293 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
ab9bc19b
RD
2294 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_SetData. Expected _wxImage_p.");
2295 return NULL;
2296 }
2297 }
3f0be3ec
RD
2298{
2299 _arg1 = _obj1;
2300}
ab9bc19b 2301{
474c48f9 2302 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2303 wxImage_SetData(_arg0,_arg1);
ab9bc19b 2304
474c48f9 2305 wxPyEndAllowThreads(__tstate);
4dfaa61e 2306 if (PyErr_Occurred()) return NULL;
ab9bc19b
RD
2307} Py_INCREF(Py_None);
2308 _resultobj = Py_None;
2309 return _resultobj;
2310}
2311
2312#define wxImage_SetMaskColour(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetMaskColour(_swigarg0,_swigarg1,_swigarg2))
107e4716 2313static PyObject *_wrap_wxImage_SetMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
2314 PyObject * _resultobj;
2315 wxImage * _arg0;
2316 unsigned char _arg1;
2317 unsigned char _arg2;
2318 unsigned char _arg3;
2d091820 2319 PyObject * _argo0 = 0;
107e4716 2320 char *_kwnames[] = { "self","r","g","b", NULL };
ab9bc19b
RD
2321
2322 self = self;
107e4716 2323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Obbb:wxImage_SetMaskColour",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
ab9bc19b 2324 return NULL;
2d091820
RD
2325 if (_argo0) {
2326 if (_argo0 == Py_None) { _arg0 = NULL; }
2327 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
ab9bc19b
RD
2328 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_SetMaskColour. Expected _wxImage_p.");
2329 return NULL;
2330 }
2331 }
2332{
474c48f9 2333 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2334 wxImage_SetMaskColour(_arg0,_arg1,_arg2,_arg3);
ab9bc19b 2335
474c48f9 2336 wxPyEndAllowThreads(__tstate);
4dfaa61e 2337 if (PyErr_Occurred()) return NULL;
ab9bc19b
RD
2338} Py_INCREF(Py_None);
2339 _resultobj = Py_None;
2340 return _resultobj;
2341}
2342
2343#define wxImage_GetMaskRed(_swigobj) (_swigobj->GetMaskRed())
107e4716 2344static PyObject *_wrap_wxImage_GetMaskRed(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
2345 PyObject * _resultobj;
2346 unsigned char _result;
2347 wxImage * _arg0;
2d091820 2348 PyObject * _argo0 = 0;
107e4716 2349 char *_kwnames[] = { "self", NULL };
ab9bc19b
RD
2350
2351 self = self;
107e4716 2352 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImage_GetMaskRed",_kwnames,&_argo0))
ab9bc19b 2353 return NULL;
2d091820
RD
2354 if (_argo0) {
2355 if (_argo0 == Py_None) { _arg0 = NULL; }
2356 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
ab9bc19b
RD
2357 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_GetMaskRed. Expected _wxImage_p.");
2358 return NULL;
2359 }
2360 }
2361{
474c48f9 2362 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2363 _result = (unsigned char )wxImage_GetMaskRed(_arg0);
ab9bc19b 2364
474c48f9 2365 wxPyEndAllowThreads(__tstate);
4dfaa61e 2366 if (PyErr_Occurred()) return NULL;
ab9bc19b
RD
2367} _resultobj = Py_BuildValue("b",_result);
2368 return _resultobj;
2369}
2370
2371#define wxImage_GetMaskGreen(_swigobj) (_swigobj->GetMaskGreen())
107e4716 2372static PyObject *_wrap_wxImage_GetMaskGreen(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
2373 PyObject * _resultobj;
2374 unsigned char _result;
2375 wxImage * _arg0;
2d091820 2376 PyObject * _argo0 = 0;
107e4716 2377 char *_kwnames[] = { "self", NULL };
ab9bc19b
RD
2378
2379 self = self;
107e4716 2380 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImage_GetMaskGreen",_kwnames,&_argo0))
ab9bc19b 2381 return NULL;
2d091820
RD
2382 if (_argo0) {
2383 if (_argo0 == Py_None) { _arg0 = NULL; }
2384 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
ab9bc19b
RD
2385 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_GetMaskGreen. Expected _wxImage_p.");
2386 return NULL;
2387 }
2388 }
2389{
474c48f9 2390 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2391 _result = (unsigned char )wxImage_GetMaskGreen(_arg0);
ab9bc19b 2392
474c48f9 2393 wxPyEndAllowThreads(__tstate);
4dfaa61e 2394 if (PyErr_Occurred()) return NULL;
ab9bc19b
RD
2395} _resultobj = Py_BuildValue("b",_result);
2396 return _resultobj;
2397}
2398
2399#define wxImage_GetMaskBlue(_swigobj) (_swigobj->GetMaskBlue())
107e4716 2400static PyObject *_wrap_wxImage_GetMaskBlue(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
2401 PyObject * _resultobj;
2402 unsigned char _result;
2403 wxImage * _arg0;
2d091820 2404 PyObject * _argo0 = 0;
107e4716 2405 char *_kwnames[] = { "self", NULL };
ab9bc19b
RD
2406
2407 self = self;
107e4716 2408 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImage_GetMaskBlue",_kwnames,&_argo0))
ab9bc19b 2409 return NULL;
2d091820
RD
2410 if (_argo0) {
2411 if (_argo0 == Py_None) { _arg0 = NULL; }
2412 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
ab9bc19b
RD
2413 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_GetMaskBlue. Expected _wxImage_p.");
2414 return NULL;
2415 }
2416 }
2417{
474c48f9 2418 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2419 _result = (unsigned char )wxImage_GetMaskBlue(_arg0);
ab9bc19b 2420
474c48f9 2421 wxPyEndAllowThreads(__tstate);
4dfaa61e 2422 if (PyErr_Occurred()) return NULL;
ab9bc19b
RD
2423} _resultobj = Py_BuildValue("b",_result);
2424 return _resultobj;
2425}
2426
2427#define wxImage_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0))
107e4716 2428static PyObject *_wrap_wxImage_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
2429 PyObject * _resultobj;
2430 wxImage * _arg0;
2d091820
RD
2431 bool _arg1 = (bool ) TRUE;
2432 PyObject * _argo0 = 0;
2433 int tempbool1 = (int) TRUE;
107e4716 2434 char *_kwnames[] = { "self","mask", NULL };
ab9bc19b
RD
2435
2436 self = self;
107e4716 2437 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxImage_SetMask",_kwnames,&_argo0,&tempbool1))
ab9bc19b 2438 return NULL;
2d091820
RD
2439 if (_argo0) {
2440 if (_argo0 == Py_None) { _arg0 = NULL; }
2441 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
ab9bc19b
RD
2442 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_SetMask. Expected _wxImage_p.");
2443 return NULL;
2444 }
2445 }
2446 _arg1 = (bool ) tempbool1;
2447{
474c48f9 2448 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2449 wxImage_SetMask(_arg0,_arg1);
ab9bc19b 2450
474c48f9 2451 wxPyEndAllowThreads(__tstate);
4dfaa61e 2452 if (PyErr_Occurred()) return NULL;
ab9bc19b
RD
2453} Py_INCREF(Py_None);
2454 _resultobj = Py_None;
2455 return _resultobj;
2456}
2457
2458#define wxImage_HasMask(_swigobj) (_swigobj->HasMask())
107e4716 2459static PyObject *_wrap_wxImage_HasMask(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
2460 PyObject * _resultobj;
2461 bool _result;
2462 wxImage * _arg0;
2d091820 2463 PyObject * _argo0 = 0;
107e4716 2464 char *_kwnames[] = { "self", NULL };
ab9bc19b
RD
2465
2466 self = self;
107e4716 2467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImage_HasMask",_kwnames,&_argo0))
ab9bc19b 2468 return NULL;
2d091820
RD
2469 if (_argo0) {
2470 if (_argo0 == Py_None) { _arg0 = NULL; }
2471 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
ab9bc19b
RD
2472 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_HasMask. Expected _wxImage_p.");
2473 return NULL;
2474 }
2475 }
2476{
474c48f9 2477 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2478 _result = (bool )wxImage_HasMask(_arg0);
ab9bc19b 2479
474c48f9 2480 wxPyEndAllowThreads(__tstate);
4dfaa61e 2481 if (PyErr_Occurred()) return NULL;
ab9bc19b
RD
2482} _resultobj = Py_BuildValue("i",_result);
2483 return _resultobj;
2484}
2485
f6bcfd97
BP
2486#define wxImage_Rotate(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Rotate(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
2487static PyObject *_wrap_wxImage_Rotate(PyObject *self, PyObject *args, PyObject *kwargs) {
2488 PyObject * _resultobj;
2489 wxImage * _result;
2490 wxImage * _arg0;
2491 double _arg1;
2492 wxPoint * _arg2;
2493 bool _arg3 = (bool ) TRUE;
2494 wxPoint * _arg4 = (wxPoint *) NULL;
2495 PyObject * _argo0 = 0;
2496 wxPoint temp;
2497 PyObject * _obj2 = 0;
2498 int tempbool3 = (int) TRUE;
2499 wxPoint temp0;
2500 PyObject * _obj4 = 0;
2501 char *_kwnames[] = { "self","angle","centre_of_rotation","interpolating","offset_after_rotation", NULL };
2502 char _ptemp[128];
2503
2504 self = self;
2505 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OdO|iO:wxImage_Rotate",_kwnames,&_argo0,&_arg1,&_obj2,&tempbool3,&_obj4))
2506 return NULL;
2507 if (_argo0) {
2508 if (_argo0 == Py_None) { _arg0 = NULL; }
2509 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
2510 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_Rotate. Expected _wxImage_p.");
2511 return NULL;
2512 }
2513 }
2514{
2515 _arg2 = &temp;
2516 if (! wxPoint_helper(_obj2, &_arg2))
2517 return NULL;
2518}
2519 _arg3 = (bool ) tempbool3;
2520 if (_obj4)
2521{
2522 _arg4 = &temp0;
2523 if (! wxPoint_helper(_obj4, &_arg4))
2524 return NULL;
2525}
2526{
474c48f9 2527 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2528 _result = new wxImage (wxImage_Rotate(_arg0,_arg1,*_arg2,_arg3,_arg4));
f6bcfd97 2529
474c48f9 2530 wxPyEndAllowThreads(__tstate);
4dfaa61e 2531 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
2532} SWIG_MakePtr(_ptemp, (void *) _result,"_wxImage_p");
2533 _resultobj = Py_BuildValue("s",_ptemp);
2534 return _resultobj;
2535}
2536
2537#define wxImage_Rotate90(_swigobj,_swigarg0) (_swigobj->Rotate90(_swigarg0))
2538static PyObject *_wrap_wxImage_Rotate90(PyObject *self, PyObject *args, PyObject *kwargs) {
2539 PyObject * _resultobj;
2540 wxImage * _result;
2541 wxImage * _arg0;
2542 bool _arg1 = (bool ) TRUE;
2543 PyObject * _argo0 = 0;
2544 int tempbool1 = (int) TRUE;
2545 char *_kwnames[] = { "self","clockwise", NULL };
2546 char _ptemp[128];
2547
2548 self = self;
2549 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxImage_Rotate90",_kwnames,&_argo0,&tempbool1))
2550 return NULL;
2551 if (_argo0) {
2552 if (_argo0 == Py_None) { _arg0 = NULL; }
2553 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
2554 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_Rotate90. Expected _wxImage_p.");
2555 return NULL;
2556 }
2557 }
2558 _arg1 = (bool ) tempbool1;
2559{
474c48f9 2560 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2561 _result = new wxImage (wxImage_Rotate90(_arg0,_arg1));
f6bcfd97 2562
474c48f9 2563 wxPyEndAllowThreads(__tstate);
4dfaa61e 2564 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
2565} SWIG_MakePtr(_ptemp, (void *) _result,"_wxImage_p");
2566 _resultobj = Py_BuildValue("s",_ptemp);
2567 return _resultobj;
2568}
2569
2570#define wxImage_Mirror(_swigobj,_swigarg0) (_swigobj->Mirror(_swigarg0))
2571static PyObject *_wrap_wxImage_Mirror(PyObject *self, PyObject *args, PyObject *kwargs) {
2572 PyObject * _resultobj;
2573 wxImage * _result;
2574 wxImage * _arg0;
2575 bool _arg1 = (bool ) TRUE;
2576 PyObject * _argo0 = 0;
2577 int tempbool1 = (int) TRUE;
2578 char *_kwnames[] = { "self","horizontally", NULL };
2579 char _ptemp[128];
2580
2581 self = self;
2582 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxImage_Mirror",_kwnames,&_argo0,&tempbool1))
2583 return NULL;
2584 if (_argo0) {
2585 if (_argo0 == Py_None) { _arg0 = NULL; }
2586 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
2587 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_Mirror. Expected _wxImage_p.");
2588 return NULL;
2589 }
2590 }
2591 _arg1 = (bool ) tempbool1;
2592{
474c48f9 2593 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2594 _result = new wxImage (wxImage_Mirror(_arg0,_arg1));
f6bcfd97 2595
474c48f9 2596 wxPyEndAllowThreads(__tstate);
4dfaa61e 2597 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
2598} SWIG_MakePtr(_ptemp, (void *) _result,"_wxImage_p");
2599 _resultobj = Py_BuildValue("s",_ptemp);
2600 return _resultobj;
2601}
2602
2603#define wxImage_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
2604static PyObject *_wrap_wxImage_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
2605 PyObject * _resultobj;
2606 wxImage * _arg0;
2607 unsigned char _arg1;
2608 unsigned char _arg2;
2609 unsigned char _arg3;
2610 unsigned char _arg4;
2611 unsigned char _arg5;
2612 unsigned char _arg6;
2613 PyObject * _argo0 = 0;
2614 char *_kwnames[] = { "self","r1","g1","b1","r2","g2","b2", NULL };
2615
2616 self = self;
2617 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Obbbbbb:wxImage_Replace",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6))
2618 return NULL;
2619 if (_argo0) {
2620 if (_argo0 == Py_None) { _arg0 = NULL; }
2621 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
2622 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_Replace. Expected _wxImage_p.");
2623 return NULL;
2624 }
2625 }
2626{
474c48f9 2627 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2628 wxImage_Replace(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
f6bcfd97 2629
474c48f9 2630 wxPyEndAllowThreads(__tstate);
4dfaa61e 2631 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
2632} Py_INCREF(Py_None);
2633 _resultobj = Py_None;
2634 return _resultobj;
2635}
2636
93283355
RD
2637#define wxImage_ConvertToMono(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->ConvertToMono(_swigarg0,_swigarg1,_swigarg2))
2638static PyObject *_wrap_wxImage_ConvertToMono(PyObject *self, PyObject *args, PyObject *kwargs) {
2639 PyObject * _resultobj;
2640 wxImage * _result;
2641 wxImage * _arg0;
2642 unsigned char _arg1;
2643 unsigned char _arg2;
2644 unsigned char _arg3;
2645 PyObject * _argo0 = 0;
2646 char *_kwnames[] = { "self","r","g","b", NULL };
2647 char _ptemp[128];
2648
2649 self = self;
2650 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Obbb:wxImage_ConvertToMono",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
2651 return NULL;
2652 if (_argo0) {
2653 if (_argo0 == Py_None) { _arg0 = NULL; }
2654 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
2655 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_ConvertToMono. Expected _wxImage_p.");
2656 return NULL;
2657 }
2658 }
2659{
474c48f9 2660 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2661 _result = new wxImage (wxImage_ConvertToMono(_arg0,_arg1,_arg2,_arg3));
93283355 2662
474c48f9 2663 wxPyEndAllowThreads(__tstate);
93283355
RD
2664 if (PyErr_Occurred()) return NULL;
2665} SWIG_MakePtr(_ptemp, (void *) _result,"_wxImage_p");
2666 _resultobj = Py_BuildValue("s",_ptemp);
2667 return _resultobj;
2668}
2669
2670#define wxImage_SetOption(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetOption(_swigarg0,_swigarg1))
2671static PyObject *_wrap_wxImage_SetOption(PyObject *self, PyObject *args, PyObject *kwargs) {
2672 PyObject * _resultobj;
2673 wxImage * _arg0;
2674 wxString * _arg1;
2675 wxString * _arg2;
2676 PyObject * _argo0 = 0;
2677 PyObject * _obj1 = 0;
2678 PyObject * _obj2 = 0;
2679 char *_kwnames[] = { "self","name","value", NULL };
2680
2681 self = self;
2682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxImage_SetOption",_kwnames,&_argo0,&_obj1,&_obj2))
2683 return NULL;
2684 if (_argo0) {
2685 if (_argo0 == Py_None) { _arg0 = NULL; }
2686 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
2687 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_SetOption. Expected _wxImage_p.");
2688 return NULL;
2689 }
2690 }
2691{
c8bc7bb8
RD
2692 _arg1 = wxString_in_helper(_obj1);
2693 if (_arg1 == NULL)
93283355 2694 return NULL;
93283355
RD
2695}
2696{
c8bc7bb8
RD
2697 _arg2 = wxString_in_helper(_obj2);
2698 if (_arg2 == NULL)
93283355 2699 return NULL;
93283355
RD
2700}
2701{
474c48f9 2702 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2703 wxImage_SetOption(_arg0,*_arg1,*_arg2);
93283355 2704
474c48f9 2705 wxPyEndAllowThreads(__tstate);
93283355
RD
2706 if (PyErr_Occurred()) return NULL;
2707} Py_INCREF(Py_None);
2708 _resultobj = Py_None;
2709{
2710 if (_obj1)
2711 delete _arg1;
2712}
2713{
2714 if (_obj2)
2715 delete _arg2;
2716}
2717 return _resultobj;
2718}
2719
2720#define wxImage_SetOptionInt(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetOption(_swigarg0,_swigarg1))
2721static PyObject *_wrap_wxImage_SetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) {
2722 PyObject * _resultobj;
2723 wxImage * _arg0;
2724 wxString * _arg1;
2725 int _arg2;
2726 PyObject * _argo0 = 0;
2727 PyObject * _obj1 = 0;
2728 char *_kwnames[] = { "self","name","value", NULL };
2729
2730 self = self;
2731 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxImage_SetOptionInt",_kwnames,&_argo0,&_obj1,&_arg2))
2732 return NULL;
2733 if (_argo0) {
2734 if (_argo0 == Py_None) { _arg0 = NULL; }
2735 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
2736 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_SetOptionInt. Expected _wxImage_p.");
2737 return NULL;
2738 }
2739 }
2740{
c8bc7bb8
RD
2741 _arg1 = wxString_in_helper(_obj1);
2742 if (_arg1 == NULL)
93283355 2743 return NULL;
93283355
RD
2744}
2745{
474c48f9 2746 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2747 wxImage_SetOptionInt(_arg0,*_arg1,_arg2);
93283355 2748
474c48f9 2749 wxPyEndAllowThreads(__tstate);
93283355
RD
2750 if (PyErr_Occurred()) return NULL;
2751} Py_INCREF(Py_None);
2752 _resultobj = Py_None;
2753{
2754 if (_obj1)
2755 delete _arg1;
2756}
2757 return _resultobj;
2758}
2759
2760#define wxImage_GetOption(_swigobj,_swigarg0) (_swigobj->GetOption(_swigarg0))
2761static PyObject *_wrap_wxImage_GetOption(PyObject *self, PyObject *args, PyObject *kwargs) {
2762 PyObject * _resultobj;
2763 wxString * _result;
2764 wxImage * _arg0;
2765 wxString * _arg1;
2766 PyObject * _argo0 = 0;
2767 PyObject * _obj1 = 0;
2768 char *_kwnames[] = { "self","name", NULL };
2769
2770 self = self;
2771 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxImage_GetOption",_kwnames,&_argo0,&_obj1))
2772 return NULL;
2773 if (_argo0) {
2774 if (_argo0 == Py_None) { _arg0 = NULL; }
2775 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
2776 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_GetOption. Expected _wxImage_p.");
2777 return NULL;
2778 }
2779 }
2780{
c8bc7bb8
RD
2781 _arg1 = wxString_in_helper(_obj1);
2782 if (_arg1 == NULL)
93283355 2783 return NULL;
93283355
RD
2784}
2785{
474c48f9 2786 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2787 _result = new wxString (wxImage_GetOption(_arg0,*_arg1));
93283355 2788
474c48f9 2789 wxPyEndAllowThreads(__tstate);
93283355
RD
2790 if (PyErr_Occurred()) return NULL;
2791}{
c8bc7bb8
RD
2792#if wxUSE_UNICODE
2793 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
2794#else
93283355 2795 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
c8bc7bb8 2796#endif
93283355
RD
2797}
2798{
2799 if (_obj1)
2800 delete _arg1;
2801}
2802{
2803 delete _result;
2804}
2805 return _resultobj;
2806}
2807
2808#define wxImage_GetOptionInt(_swigobj,_swigarg0) (_swigobj->GetOptionInt(_swigarg0))
2809static PyObject *_wrap_wxImage_GetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) {
2810 PyObject * _resultobj;
2811 int _result;
2812 wxImage * _arg0;
2813 wxString * _arg1;
2814 PyObject * _argo0 = 0;
2815 PyObject * _obj1 = 0;
2816 char *_kwnames[] = { "self","name", NULL };
2817
2818 self = self;
2819 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxImage_GetOptionInt",_kwnames,&_argo0,&_obj1))
2820 return NULL;
2821 if (_argo0) {
2822 if (_argo0 == Py_None) { _arg0 = NULL; }
2823 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
2824 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_GetOptionInt. Expected _wxImage_p.");
2825 return NULL;
2826 }
2827 }
2828{
c8bc7bb8
RD
2829 _arg1 = wxString_in_helper(_obj1);
2830 if (_arg1 == NULL)
93283355 2831 return NULL;
93283355
RD
2832}
2833{
474c48f9 2834 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2835 _result = (int )wxImage_GetOptionInt(_arg0,*_arg1);
93283355 2836
474c48f9 2837 wxPyEndAllowThreads(__tstate);
93283355
RD
2838 if (PyErr_Occurred()) return NULL;
2839} _resultobj = Py_BuildValue("i",_result);
2840{
2841 if (_obj1)
2842 delete _arg1;
2843}
2844 return _resultobj;
2845}
2846
2847#define wxImage_HasOption(_swigobj,_swigarg0) (_swigobj->HasOption(_swigarg0))
2848static PyObject *_wrap_wxImage_HasOption(PyObject *self, PyObject *args, PyObject *kwargs) {
2849 PyObject * _resultobj;
2850 bool _result;
2851 wxImage * _arg0;
2852 wxString * _arg1;
2853 PyObject * _argo0 = 0;
2854 PyObject * _obj1 = 0;
2855 char *_kwnames[] = { "self","name", NULL };
2856
2857 self = self;
2858 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxImage_HasOption",_kwnames,&_argo0,&_obj1))
2859 return NULL;
2860 if (_argo0) {
2861 if (_argo0 == Py_None) { _arg0 = NULL; }
2862 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
2863 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_HasOption. Expected _wxImage_p.");
2864 return NULL;
2865 }
2866 }
2867{
c8bc7bb8
RD
2868 _arg1 = wxString_in_helper(_obj1);
2869 if (_arg1 == NULL)
93283355 2870 return NULL;
93283355
RD
2871}
2872{
474c48f9 2873 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2874 _result = (bool )wxImage_HasOption(_arg0,*_arg1);
93283355 2875
474c48f9 2876 wxPyEndAllowThreads(__tstate);
93283355
RD
2877 if (PyErr_Occurred()) return NULL;
2878} _resultobj = Py_BuildValue("i",_result);
2879{
2880 if (_obj1)
2881 delete _arg1;
2882}
2883 return _resultobj;
2884}
2885
f6bcfd97
BP
2886#define wxImage_CountColours(_swigobj,_swigarg0) (_swigobj->CountColours(_swigarg0))
2887static PyObject *_wrap_wxImage_CountColours(PyObject *self, PyObject *args, PyObject *kwargs) {
2888 PyObject * _resultobj;
2889 unsigned long _result;
2890 wxImage * _arg0;
2891 unsigned long _arg1 = (unsigned long ) (unsigned long)-1;
2892 PyObject * _argo0 = 0;
2893 char *_kwnames[] = { "self","stopafter", NULL };
2894
2895 self = self;
2896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|l:wxImage_CountColours",_kwnames,&_argo0,&_arg1))
2897 return NULL;
2898 if (_argo0) {
2899 if (_argo0 == Py_None) { _arg0 = NULL; }
2900 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
2901 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_CountColours. Expected _wxImage_p.");
2902 return NULL;
2903 }
2904 }
2905{
474c48f9 2906 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2907 _result = (unsigned long )wxImage_CountColours(_arg0,_arg1);
f6bcfd97 2908
474c48f9 2909 wxPyEndAllowThreads(__tstate);
4dfaa61e 2910 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
2911} _resultobj = Py_BuildValue("l",_result);
2912 return _resultobj;
2913}
2914
fbcadfca
RD
2915static PyObject *_wrap_wxImage_AddHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
2916 PyObject * _resultobj;
2917 wxImageHandler * _arg0;
2918 PyObject * _argo0 = 0;
2919 char *_kwnames[] = { "handler", NULL };
2920
2921 self = self;
2922 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImage_AddHandler",_kwnames,&_argo0))
2923 return NULL;
2924 if (_argo0) {
2925 if (_argo0 == Py_None) { _arg0 = NULL; }
2926 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageHandler_p")) {
2927 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_AddHandler. Expected _wxImageHandler_p.");
2928 return NULL;
2929 }
2930 }
2931{
474c48f9 2932 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2933 wxImage::AddHandler(_arg0);
fbcadfca 2934
474c48f9 2935 wxPyEndAllowThreads(__tstate);
4dfaa61e 2936 if (PyErr_Occurred()) return NULL;
fbcadfca
RD
2937} Py_INCREF(Py_None);
2938 _resultobj = Py_None;
2939 return _resultobj;
2940}
2941
2942static PyObject *_wrap_wxImage_InsertHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
2943 PyObject * _resultobj;
2944 wxImageHandler * _arg0;
2945 PyObject * _argo0 = 0;
2946 char *_kwnames[] = { "handler", NULL };
2947
2948 self = self;
2949 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImage_InsertHandler",_kwnames,&_argo0))
2950 return NULL;
2951 if (_argo0) {
2952 if (_argo0 == Py_None) { _arg0 = NULL; }
2953 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageHandler_p")) {
2954 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_InsertHandler. Expected _wxImageHandler_p.");
2955 return NULL;
2956 }
2957 }
2958{
474c48f9 2959 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2960 wxImage::InsertHandler(_arg0);
fbcadfca 2961
474c48f9 2962 wxPyEndAllowThreads(__tstate);
4dfaa61e 2963 if (PyErr_Occurred()) return NULL;
fbcadfca
RD
2964} Py_INCREF(Py_None);
2965 _resultobj = Py_None;
2966 return _resultobj;
2967}
2968
2969static PyObject *_wrap_wxImage_RemoveHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
2970 PyObject * _resultobj;
2971 bool _result;
2972 wxString * _arg0;
2973 PyObject * _obj0 = 0;
2974 char *_kwnames[] = { "name", NULL };
2975
2976 self = self;
2977 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImage_RemoveHandler",_kwnames,&_obj0))
2978 return NULL;
2979{
c8bc7bb8
RD
2980 _arg0 = wxString_in_helper(_obj0);
2981 if (_arg0 == NULL)
fbcadfca 2982 return NULL;
fbcadfca
RD
2983}
2984{
474c48f9 2985 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2986 _result = (bool )wxImage::RemoveHandler(*_arg0);
fbcadfca 2987
474c48f9 2988 wxPyEndAllowThreads(__tstate);
4dfaa61e 2989 if (PyErr_Occurred()) return NULL;
fbcadfca
RD
2990} _resultobj = Py_BuildValue("i",_result);
2991{
2992 if (_obj0)
2993 delete _arg0;
2994}
2995 return _resultobj;
2996}
2997
ab9bc19b 2998static PyMethodDef imagecMethods[] = {
fbcadfca
RD
2999 { "wxImage_RemoveHandler", (PyCFunction) _wrap_wxImage_RemoveHandler, METH_VARARGS | METH_KEYWORDS },
3000 { "wxImage_InsertHandler", (PyCFunction) _wrap_wxImage_InsertHandler, METH_VARARGS | METH_KEYWORDS },
3001 { "wxImage_AddHandler", (PyCFunction) _wrap_wxImage_AddHandler, METH_VARARGS | METH_KEYWORDS },
f6bcfd97 3002 { "wxImage_CountColours", (PyCFunction) _wrap_wxImage_CountColours, METH_VARARGS | METH_KEYWORDS },
93283355
RD
3003 { "wxImage_HasOption", (PyCFunction) _wrap_wxImage_HasOption, METH_VARARGS | METH_KEYWORDS },
3004 { "wxImage_GetOptionInt", (PyCFunction) _wrap_wxImage_GetOptionInt, METH_VARARGS | METH_KEYWORDS },
3005 { "wxImage_GetOption", (PyCFunction) _wrap_wxImage_GetOption, METH_VARARGS | METH_KEYWORDS },
3006 { "wxImage_SetOptionInt", (PyCFunction) _wrap_wxImage_SetOptionInt, METH_VARARGS | METH_KEYWORDS },
3007 { "wxImage_SetOption", (PyCFunction) _wrap_wxImage_SetOption, METH_VARARGS | METH_KEYWORDS },
3008 { "wxImage_ConvertToMono", (PyCFunction) _wrap_wxImage_ConvertToMono, METH_VARARGS | METH_KEYWORDS },
f6bcfd97
BP
3009 { "wxImage_Replace", (PyCFunction) _wrap_wxImage_Replace, METH_VARARGS | METH_KEYWORDS },
3010 { "wxImage_Mirror", (PyCFunction) _wrap_wxImage_Mirror, METH_VARARGS | METH_KEYWORDS },
3011 { "wxImage_Rotate90", (PyCFunction) _wrap_wxImage_Rotate90, METH_VARARGS | METH_KEYWORDS },
3012 { "wxImage_Rotate", (PyCFunction) _wrap_wxImage_Rotate, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
3013 { "wxImage_HasMask", (PyCFunction) _wrap_wxImage_HasMask, METH_VARARGS | METH_KEYWORDS },
3014 { "wxImage_SetMask", (PyCFunction) _wrap_wxImage_SetMask, METH_VARARGS | METH_KEYWORDS },
3015 { "wxImage_GetMaskBlue", (PyCFunction) _wrap_wxImage_GetMaskBlue, METH_VARARGS | METH_KEYWORDS },
3016 { "wxImage_GetMaskGreen", (PyCFunction) _wrap_wxImage_GetMaskGreen, METH_VARARGS | METH_KEYWORDS },
3017 { "wxImage_GetMaskRed", (PyCFunction) _wrap_wxImage_GetMaskRed, METH_VARARGS | METH_KEYWORDS },
3018 { "wxImage_SetMaskColour", (PyCFunction) _wrap_wxImage_SetMaskColour, METH_VARARGS | METH_KEYWORDS },
3019 { "wxImage_SetData", (PyCFunction) _wrap_wxImage_SetData, METH_VARARGS | METH_KEYWORDS },
3020 { "wxImage_GetData", (PyCFunction) _wrap_wxImage_GetData, METH_VARARGS | METH_KEYWORDS },
f6bcfd97
BP
3021 { "wxImage_Paste", (PyCFunction) _wrap_wxImage_Paste, METH_VARARGS | METH_KEYWORDS },
3022 { "wxImage_Copy", (PyCFunction) _wrap_wxImage_Copy, METH_VARARGS | METH_KEYWORDS },
f078d013 3023 { "wxImage_GetSubImage", (PyCFunction) _wrap_wxImage_GetSubImage, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
3024 { "wxImage_GetHeight", (PyCFunction) _wrap_wxImage_GetHeight, METH_VARARGS | METH_KEYWORDS },
3025 { "wxImage_GetWidth", (PyCFunction) _wrap_wxImage_GetWidth, METH_VARARGS | METH_KEYWORDS },
3026 { "wxImage_Ok", (PyCFunction) _wrap_wxImage_Ok, METH_VARARGS | METH_KEYWORDS },
94082a71
RD
3027 { "wxImage_LoadMimeStream", (PyCFunction) _wrap_wxImage_LoadMimeStream, METH_VARARGS | METH_KEYWORDS },
3028 { "wxImage_LoadStream", (PyCFunction) _wrap_wxImage_LoadStream, METH_VARARGS | METH_KEYWORDS },
3029 { "wxImage_CanReadStream", (PyCFunction) _wrap_wxImage_CanReadStream, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
3030 { "wxImage_SaveMimeFile", (PyCFunction) _wrap_wxImage_SaveMimeFile, METH_VARARGS | METH_KEYWORDS },
3031 { "wxImage_SaveFile", (PyCFunction) _wrap_wxImage_SaveFile, METH_VARARGS | METH_KEYWORDS },
3032 { "wxImage_LoadMimeFile", (PyCFunction) _wrap_wxImage_LoadMimeFile, METH_VARARGS | METH_KEYWORDS },
3033 { "wxImage_LoadFile", (PyCFunction) _wrap_wxImage_LoadFile, METH_VARARGS | METH_KEYWORDS },
1893b029 3034 { "wxImage_GetImageCount", (PyCFunction) _wrap_wxImage_GetImageCount, METH_VARARGS | METH_KEYWORDS },
fbcadfca 3035 { "wxImage_CanRead", (PyCFunction) _wrap_wxImage_CanRead, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
3036 { "wxImage_GetBlue", (PyCFunction) _wrap_wxImage_GetBlue, METH_VARARGS | METH_KEYWORDS },
3037 { "wxImage_GetGreen", (PyCFunction) _wrap_wxImage_GetGreen, METH_VARARGS | METH_KEYWORDS },
3038 { "wxImage_GetRed", (PyCFunction) _wrap_wxImage_GetRed, METH_VARARGS | METH_KEYWORDS },
3039 { "wxImage_SetRGB", (PyCFunction) _wrap_wxImage_SetRGB, METH_VARARGS | METH_KEYWORDS },
3040 { "wxImage_Rescale", (PyCFunction) _wrap_wxImage_Rescale, METH_VARARGS | METH_KEYWORDS },
3041 { "wxImage_Scale", (PyCFunction) _wrap_wxImage_Scale, METH_VARARGS | METH_KEYWORDS },
3042 { "wxImage_Destroy", (PyCFunction) _wrap_wxImage_Destroy, METH_VARARGS | METH_KEYWORDS },
3043 { "wxImage_Create", (PyCFunction) _wrap_wxImage_Create, METH_VARARGS | METH_KEYWORDS },
9e689c06 3044 { "wxImage_ConvertToMonoBitmap", (PyCFunction) _wrap_wxImage_ConvertToMonoBitmap, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
3045 { "wxImage_ConvertToBitmap", (PyCFunction) _wrap_wxImage_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS },
3046 { "delete_wxImage", (PyCFunction) _wrap_delete_wxImage, METH_VARARGS | METH_KEYWORDS },
3047 { "new_wxImage", (PyCFunction) _wrap_new_wxImage, METH_VARARGS | METH_KEYWORDS },
ab2208b5 3048 { "new_wxTIFFHandler", (PyCFunction) _wrap_new_wxTIFFHandler, METH_VARARGS | METH_KEYWORDS },
bc29c5e0
RD
3049 { "new_wxPCXHandler", (PyCFunction) _wrap_new_wxPCXHandler, METH_VARARGS | METH_KEYWORDS },
3050 { "new_wxPNMHandler", (PyCFunction) _wrap_new_wxPNMHandler, METH_VARARGS | METH_KEYWORDS },
107e4716 3051 { "new_wxGIFHandler", (PyCFunction) _wrap_new_wxGIFHandler, METH_VARARGS | METH_KEYWORDS },
db34b2d4
RD
3052 { "new_wxANIHandler", (PyCFunction) _wrap_new_wxANIHandler, METH_VARARGS | METH_KEYWORDS },
3053 { "new_wxCURHandler", (PyCFunction) _wrap_new_wxCURHandler, METH_VARARGS | METH_KEYWORDS },
1893b029 3054 { "new_wxICOHandler", (PyCFunction) _wrap_new_wxICOHandler, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
3055 { "new_wxBMPHandler", (PyCFunction) _wrap_new_wxBMPHandler, METH_VARARGS | METH_KEYWORDS },
3056 { "new_wxJPEGHandler", (PyCFunction) _wrap_new_wxJPEGHandler, METH_VARARGS | METH_KEYWORDS },
3057 { "new_wxPNGHandler", (PyCFunction) _wrap_new_wxPNGHandler, METH_VARARGS | METH_KEYWORDS },
3058 { "wxImageHandler_SetMimeType", (PyCFunction) _wrap_wxImageHandler_SetMimeType, METH_VARARGS | METH_KEYWORDS },
3059 { "wxImageHandler_SetType", (PyCFunction) _wrap_wxImageHandler_SetType, METH_VARARGS | METH_KEYWORDS },
3060 { "wxImageHandler_SetExtension", (PyCFunction) _wrap_wxImageHandler_SetExtension, METH_VARARGS | METH_KEYWORDS },
3061 { "wxImageHandler_SetName", (PyCFunction) _wrap_wxImageHandler_SetName, METH_VARARGS | METH_KEYWORDS },
1893b029 3062 { "wxImageHandler_CanRead", (PyCFunction) _wrap_wxImageHandler_CanRead, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
3063 { "wxImageHandler_GetMimeType", (PyCFunction) _wrap_wxImageHandler_GetMimeType, METH_VARARGS | METH_KEYWORDS },
3064 { "wxImageHandler_GetType", (PyCFunction) _wrap_wxImageHandler_GetType, METH_VARARGS | METH_KEYWORDS },
3065 { "wxImageHandler_GetExtension", (PyCFunction) _wrap_wxImageHandler_GetExtension, METH_VARARGS | METH_KEYWORDS },
3066 { "wxImageHandler_GetName", (PyCFunction) _wrap_wxImageHandler_GetName, METH_VARARGS | METH_KEYWORDS },
9e689c06 3067 { "wxBitmapFromImage", (PyCFunction) _wrap_wxBitmapFromImage, METH_VARARGS | METH_KEYWORDS },
bc29c5e0 3068 { "wxInitAllImageHandlers", (PyCFunction) _wrap_wxInitAllImageHandlers, METH_VARARGS | METH_KEYWORDS },
94082a71
RD
3069 { "wxImageFromStreamMime", (PyCFunction) _wrap_wxImageFromStreamMime, METH_VARARGS | METH_KEYWORDS },
3070 { "wxImageFromStream", (PyCFunction) _wrap_wxImageFromStream, METH_VARARGS | METH_KEYWORDS },
1893b029 3071 { "wxImageFromData", (PyCFunction) _wrap_wxImageFromData, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
3072 { "wxImageFromBitmap", (PyCFunction) _wrap_wxImageFromBitmap, METH_VARARGS | METH_KEYWORDS },
3073 { "wxImageFromMime", (PyCFunction) _wrap_wxImageFromMime, METH_VARARGS | METH_KEYWORDS },
3074 { "wxEmptyImage", (PyCFunction) _wrap_wxEmptyImage, METH_VARARGS | METH_KEYWORDS },
ab9bc19b
RD
3075 { NULL, NULL }
3076};
2d091820
RD
3077#ifdef __cplusplus
3078}
3079#endif
3080/*
3081 * This table is used by the pointer type-checker
3082 */
3083static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
2d091820 3084 { "_signed_long","_long",0},
db34b2d4
RD
3085 { "_wxBMPHandler","_wxANIHandler",SwigwxANIHandlerTowxBMPHandler},
3086 { "_wxBMPHandler","_wxCURHandler",SwigwxCURHandlerTowxBMPHandler},
1893b029 3087 { "_wxBMPHandler","_wxICOHandler",SwigwxICOHandlerTowxBMPHandler},
db34b2d4
RD
3088 { "_wxICOHandler","_wxANIHandler",SwigwxANIHandlerTowxICOHandler},
3089 { "_wxICOHandler","_wxCURHandler",SwigwxCURHandlerTowxICOHandler},
4120ef2b 3090 { "_wxPrintQuality","_wxCoord",0},
2d091820
RD
3091 { "_wxPrintQuality","_int",0},
3092 { "_wxPrintQuality","_signed_int",0},
3093 { "_wxPrintQuality","_unsigned_int",0},
3094 { "_wxPrintQuality","_wxWindowID",0},
3095 { "_wxPrintQuality","_uint",0},
3096 { "_wxPrintQuality","_EBool",0},
3097 { "_wxPrintQuality","_size_t",0},
c368d904 3098 { "_wxPrintQuality","_time_t",0},
ab2208b5 3099 { "_wxImageHandler","_wxTIFFHandler",SwigwxTIFFHandlerTowxImageHandler},
bc29c5e0 3100 { "_wxImageHandler","_wxPCXHandler",SwigwxPCXHandlerTowxImageHandler},
bc29c5e0 3101 { "_wxImageHandler","_wxPNMHandler",SwigwxPNMHandlerTowxImageHandler},
2d091820 3102 { "_wxImageHandler","_wxGIFHandler",SwigwxGIFHandlerTowxImageHandler},
db34b2d4
RD
3103 { "_wxImageHandler","_wxANIHandler",SwigwxANIHandlerTowxImageHandler},
3104 { "_wxImageHandler","_wxCURHandler",SwigwxCURHandlerTowxImageHandler},
1893b029 3105 { "_wxImageHandler","_wxICOHandler",SwigwxICOHandlerTowxImageHandler},
2d091820 3106 { "_wxImageHandler","_wxBMPHandler",SwigwxBMPHandlerTowxImageHandler},
2d091820 3107 { "_wxImageHandler","_wxJPEGHandler",SwigwxJPEGHandlerTowxImageHandler},
2d091820 3108 { "_wxImageHandler","_wxPNGHandler",SwigwxPNGHandlerTowxImageHandler},
2d091820 3109 { "_byte","_unsigned_char",0},
2d091820
RD
3110 { "_long","_unsigned_long",0},
3111 { "_long","_signed_long",0},
4120ef2b 3112 { "_size_t","_wxCoord",0},
2d091820 3113 { "_size_t","_wxPrintQuality",0},
c368d904 3114 { "_size_t","_time_t",0},
2d091820
RD
3115 { "_size_t","_unsigned_int",0},
3116 { "_size_t","_int",0},
3117 { "_size_t","_wxWindowID",0},
3118 { "_size_t","_uint",0},
4120ef2b 3119 { "_uint","_wxCoord",0},
2d091820 3120 { "_uint","_wxPrintQuality",0},
c368d904 3121 { "_uint","_time_t",0},
2d091820
RD
3122 { "_uint","_size_t",0},
3123 { "_uint","_unsigned_int",0},
3124 { "_uint","_int",0},
3125 { "_uint","_wxWindowID",0},
f6bcfd97 3126 { "_wxChar","_char",0},
f6bcfd97 3127 { "_char","_wxChar",0},
32c988a3 3128 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
4120ef2b 3129 { "_EBool","_wxCoord",0},
2d091820
RD
3130 { "_EBool","_wxPrintQuality",0},
3131 { "_EBool","_signed_int",0},
3132 { "_EBool","_int",0},
3133 { "_EBool","_wxWindowID",0},
2d091820 3134 { "_unsigned_long","_long",0},
32c988a3 3135 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
4120ef2b 3136 { "_signed_int","_wxCoord",0},
2d091820
RD
3137 { "_signed_int","_wxPrintQuality",0},
3138 { "_signed_int","_EBool",0},
3139 { "_signed_int","_wxWindowID",0},
3140 { "_signed_int","_int",0},
2d091820
RD
3141 { "_WXTYPE","_short",0},
3142 { "_WXTYPE","_signed_short",0},
3143 { "_WXTYPE","_unsigned_short",0},
2d091820
RD
3144 { "_unsigned_short","_WXTYPE",0},
3145 { "_unsigned_short","_short",0},
9df61a29 3146 { "_wxObject","_wxImage",SwigwxImageTowxObject},
9df61a29 3147 { "_wxObject","_wxTIFFHandler",SwigwxTIFFHandlerTowxObject},
9df61a29 3148 { "_wxObject","_wxPCXHandler",SwigwxPCXHandlerTowxObject},
9df61a29 3149 { "_wxObject","_wxPNMHandler",SwigwxPNMHandlerTowxObject},
9df61a29 3150 { "_wxObject","_wxGIFHandler",SwigwxGIFHandlerTowxObject},
db34b2d4
RD
3151 { "_wxObject","_wxANIHandler",SwigwxANIHandlerTowxObject},
3152 { "_wxObject","_wxCURHandler",SwigwxCURHandlerTowxObject},
1893b029 3153 { "_wxObject","_wxICOHandler",SwigwxICOHandlerTowxObject},
9df61a29 3154 { "_wxObject","_wxBMPHandler",SwigwxBMPHandlerTowxObject},
9df61a29 3155 { "_wxObject","_wxJPEGHandler",SwigwxJPEGHandlerTowxObject},
9df61a29 3156 { "_wxObject","_wxPNGHandler",SwigwxPNGHandlerTowxObject},
9df61a29 3157 { "_wxObject","_wxImageHandler",SwigwxImageHandlerTowxObject},
2d091820
RD
3158 { "_signed_short","_WXTYPE",0},
3159 { "_signed_short","_short",0},
db34b2d4 3160 { "_wxCURHandler","_wxANIHandler",SwigwxANIHandlerTowxCURHandler},
2d091820 3161 { "_unsigned_char","_byte",0},
4120ef2b 3162 { "_unsigned_int","_wxCoord",0},
2d091820 3163 { "_unsigned_int","_wxPrintQuality",0},
c368d904 3164 { "_unsigned_int","_time_t",0},
2d091820
RD
3165 { "_unsigned_int","_size_t",0},
3166 { "_unsigned_int","_uint",0},
3167 { "_unsigned_int","_wxWindowID",0},
3168 { "_unsigned_int","_int",0},
2d091820
RD
3169 { "_short","_WXTYPE",0},
3170 { "_short","_unsigned_short",0},
3171 { "_short","_signed_short",0},
4120ef2b 3172 { "_wxWindowID","_wxCoord",0},
2d091820 3173 { "_wxWindowID","_wxPrintQuality",0},
c368d904 3174 { "_wxWindowID","_time_t",0},
2d091820
RD
3175 { "_wxWindowID","_size_t",0},
3176 { "_wxWindowID","_EBool",0},
3177 { "_wxWindowID","_uint",0},
3178 { "_wxWindowID","_int",0},
3179 { "_wxWindowID","_signed_int",0},
3180 { "_wxWindowID","_unsigned_int",0},
4120ef2b 3181 { "_int","_wxCoord",0},
2d091820 3182 { "_int","_wxPrintQuality",0},
c368d904 3183 { "_int","_time_t",0},
2d091820
RD
3184 { "_int","_size_t",0},
3185 { "_int","_EBool",0},
3186 { "_int","_uint",0},
3187 { "_int","_wxWindowID",0},
3188 { "_int","_unsigned_int",0},
3189 { "_int","_signed_int",0},
c368d904
RD
3190 { "_time_t","_wxCoord",0},
3191 { "_time_t","_wxPrintQuality",0},
3192 { "_time_t","_unsigned_int",0},
3193 { "_time_t","_int",0},
3194 { "_time_t","_wxWindowID",0},
3195 { "_time_t","_uint",0},
3196 { "_time_t","_size_t",0},
4120ef2b
RD
3197 { "_wxCoord","_int",0},
3198 { "_wxCoord","_signed_int",0},
3199 { "_wxCoord","_unsigned_int",0},
3200 { "_wxCoord","_wxWindowID",0},
3201 { "_wxCoord","_uint",0},
3202 { "_wxCoord","_EBool",0},
3203 { "_wxCoord","_size_t",0},
c368d904 3204 { "_wxCoord","_time_t",0},
4120ef2b 3205 { "_wxCoord","_wxPrintQuality",0},
2d091820
RD
3206{0,0,0}};
3207
ab9bc19b
RD
3208static PyObject *SWIG_globals;
3209#ifdef __cplusplus
3210extern "C"
3211#endif
2d091820 3212SWIGEXPORT(void) initimagec() {
ab9bc19b
RD
3213 PyObject *m, *d;
3214 SWIG_globals = SWIG_newvarlink();
3215 m = Py_InitModule("imagec", imagecMethods);
3216 d = PyModule_GetDict(m);
df05452e
RD
3217 PyDict_SetItemString(d,"cvar", SWIG_globals);
3218 SWIG_addvarlink(SWIG_globals,"wxNullImage",_wrap_wxNullImage_get, _wrap_wxNullImage_set);
2d091820
RD
3219{
3220 int i;
3221 for (i = 0; _swig_mapping[i].n1; i++)
3222 SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv);
3223}
ab9bc19b 3224}