]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/gtk/image.cpp
implement wxColourDialog::Move() (patch 548048)
[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 102 wxImage* wxImageFromBitmap(const wxBitmap &bitmap) {
be86ffe3 103 return new wxImage(bitmap.ConvertToImage());
ab9bc19b 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
ab9bc19b 1336#define wxImage_Create(_swigobj,_swigarg0,_swigarg1) (_swigobj->Create(_swigarg0,_swigarg1))
107e4716 1337static PyObject *_wrap_wxImage_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
1338 PyObject * _resultobj;
1339 wxImage * _arg0;
1340 int _arg1;
1341 int _arg2;
2d091820 1342 PyObject * _argo0 = 0;
107e4716 1343 char *_kwnames[] = { "self","width","height", NULL };
ab9bc19b
RD
1344
1345 self = self;
107e4716 1346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxImage_Create",_kwnames,&_argo0,&_arg1,&_arg2))
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_Create. Expected _wxImage_p.");
1352 return NULL;
1353 }
1354 }
1355{
474c48f9 1356 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1357 wxImage_Create(_arg0,_arg1,_arg2);
ab9bc19b 1358
474c48f9 1359 wxPyEndAllowThreads(__tstate);
4dfaa61e 1360 if (PyErr_Occurred()) return NULL;
ab9bc19b
RD
1361} Py_INCREF(Py_None);
1362 _resultobj = Py_None;
1363 return _resultobj;
1364}
1365
1366#define wxImage_Destroy(_swigobj) (_swigobj->Destroy())
107e4716 1367static PyObject *_wrap_wxImage_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
1368 PyObject * _resultobj;
1369 wxImage * _arg0;
2d091820 1370 PyObject * _argo0 = 0;
107e4716 1371 char *_kwnames[] = { "self", NULL };
ab9bc19b
RD
1372
1373 self = self;
107e4716 1374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImage_Destroy",_kwnames,&_argo0))
ab9bc19b 1375 return NULL;
2d091820
RD
1376 if (_argo0) {
1377 if (_argo0 == Py_None) { _arg0 = NULL; }
1378 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
ab9bc19b
RD
1379 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_Destroy. Expected _wxImage_p.");
1380 return NULL;
1381 }
1382 }
1383{
474c48f9 1384 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1385 wxImage_Destroy(_arg0);
ab9bc19b 1386
474c48f9 1387 wxPyEndAllowThreads(__tstate);
4dfaa61e 1388 if (PyErr_Occurred()) return NULL;
ab9bc19b
RD
1389} Py_INCREF(Py_None);
1390 _resultobj = Py_None;
1391 return _resultobj;
1392}
1393
1394#define wxImage_Scale(_swigobj,_swigarg0,_swigarg1) (_swigobj->Scale(_swigarg0,_swigarg1))
107e4716 1395static PyObject *_wrap_wxImage_Scale(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
1396 PyObject * _resultobj;
1397 wxImage * _result;
1398 wxImage * _arg0;
1399 int _arg1;
1400 int _arg2;
2d091820 1401 PyObject * _argo0 = 0;
107e4716 1402 char *_kwnames[] = { "self","width","height", NULL };
ab9bc19b
RD
1403 char _ptemp[128];
1404
1405 self = self;
107e4716 1406 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxImage_Scale",_kwnames,&_argo0,&_arg1,&_arg2))
ab9bc19b 1407 return NULL;
2d091820
RD
1408 if (_argo0) {
1409 if (_argo0 == Py_None) { _arg0 = NULL; }
1410 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
ab9bc19b
RD
1411 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_Scale. Expected _wxImage_p.");
1412 return NULL;
1413 }
1414 }
1415{
474c48f9 1416 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1417 _result = new wxImage (wxImage_Scale(_arg0,_arg1,_arg2));
ab9bc19b 1418
474c48f9 1419 wxPyEndAllowThreads(__tstate);
4dfaa61e 1420 if (PyErr_Occurred()) return NULL;
ab9bc19b
RD
1421} SWIG_MakePtr(_ptemp, (void *) _result,"_wxImage_p");
1422 _resultobj = Py_BuildValue("s",_ptemp);
1423 return _resultobj;
1424}
1425
8bf5d46e 1426#define wxImage_Rescale(_swigobj,_swigarg0,_swigarg1) (_swigobj->Rescale(_swigarg0,_swigarg1))
107e4716 1427static PyObject *_wrap_wxImage_Rescale(PyObject *self, PyObject *args, PyObject *kwargs) {
8bf5d46e 1428 PyObject * _resultobj;
f6bcfd97 1429 wxImage * _result;
8bf5d46e
RD
1430 wxImage * _arg0;
1431 int _arg1;
1432 int _arg2;
2d091820 1433 PyObject * _argo0 = 0;
107e4716 1434 char *_kwnames[] = { "self","width","height", NULL };
f6bcfd97 1435 char _ptemp[128];
8bf5d46e
RD
1436
1437 self = self;
107e4716 1438 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxImage_Rescale",_kwnames,&_argo0,&_arg1,&_arg2))
8bf5d46e 1439 return NULL;
2d091820
RD
1440 if (_argo0) {
1441 if (_argo0 == Py_None) { _arg0 = NULL; }
1442 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
8bf5d46e
RD
1443 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_Rescale. Expected _wxImage_p.");
1444 return NULL;
1445 }
1446 }
1447{
474c48f9 1448 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1449 wxImage & _result_ref = wxImage_Rescale(_arg0,_arg1,_arg2);
f6bcfd97 1450 _result = (wxImage *) &_result_ref;
8bf5d46e 1451
474c48f9 1452 wxPyEndAllowThreads(__tstate);
4dfaa61e 1453 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
1454} if (_result) {
1455 SWIG_MakePtr(_ptemp, (char *) _result,"_wxImage_p");
1456 _resultobj = Py_BuildValue("s",_ptemp);
1457 } else {
1458 Py_INCREF(Py_None);
1459 _resultobj = Py_None;
1460 }
8bf5d46e
RD
1461 return _resultobj;
1462}
1463
ab9bc19b 1464#define wxImage_SetRGB(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetRGB(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
107e4716 1465static PyObject *_wrap_wxImage_SetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
1466 PyObject * _resultobj;
1467 wxImage * _arg0;
1468 int _arg1;
1469 int _arg2;
1470 unsigned char _arg3;
1471 unsigned char _arg4;
1472 unsigned char _arg5;
2d091820 1473 PyObject * _argo0 = 0;
107e4716 1474 char *_kwnames[] = { "self","x","y","r","g","b", NULL };
ab9bc19b
RD
1475
1476 self = self;
107e4716 1477 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiibbb:wxImage_SetRGB",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5))
ab9bc19b 1478 return NULL;
2d091820
RD
1479 if (_argo0) {
1480 if (_argo0 == Py_None) { _arg0 = NULL; }
1481 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
ab9bc19b
RD
1482 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_SetRGB. Expected _wxImage_p.");
1483 return NULL;
1484 }
1485 }
1486{
474c48f9 1487 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1488 wxImage_SetRGB(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
ab9bc19b 1489
474c48f9 1490 wxPyEndAllowThreads(__tstate);
4dfaa61e 1491 if (PyErr_Occurred()) return NULL;
ab9bc19b
RD
1492} Py_INCREF(Py_None);
1493 _resultobj = Py_None;
1494 return _resultobj;
1495}
1496
1497#define wxImage_GetRed(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetRed(_swigarg0,_swigarg1))
107e4716 1498static PyObject *_wrap_wxImage_GetRed(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
1499 PyObject * _resultobj;
1500 unsigned char _result;
1501 wxImage * _arg0;
1502 int _arg1;
1503 int _arg2;
2d091820 1504 PyObject * _argo0 = 0;
107e4716 1505 char *_kwnames[] = { "self","x","y", NULL };
ab9bc19b
RD
1506
1507 self = self;
107e4716 1508 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxImage_GetRed",_kwnames,&_argo0,&_arg1,&_arg2))
ab9bc19b 1509 return NULL;
2d091820
RD
1510 if (_argo0) {
1511 if (_argo0 == Py_None) { _arg0 = NULL; }
1512 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
ab9bc19b
RD
1513 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_GetRed. Expected _wxImage_p.");
1514 return NULL;
1515 }
1516 }
1517{
474c48f9 1518 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1519 _result = (unsigned char )wxImage_GetRed(_arg0,_arg1,_arg2);
ab9bc19b 1520
474c48f9 1521 wxPyEndAllowThreads(__tstate);
4dfaa61e 1522 if (PyErr_Occurred()) return NULL;
ab9bc19b
RD
1523} _resultobj = Py_BuildValue("b",_result);
1524 return _resultobj;
1525}
1526
1527#define wxImage_GetGreen(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetGreen(_swigarg0,_swigarg1))
107e4716 1528static PyObject *_wrap_wxImage_GetGreen(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
1529 PyObject * _resultobj;
1530 unsigned char _result;
1531 wxImage * _arg0;
1532 int _arg1;
1533 int _arg2;
2d091820 1534 PyObject * _argo0 = 0;
107e4716 1535 char *_kwnames[] = { "self","x","y", NULL };
ab9bc19b
RD
1536
1537 self = self;
107e4716 1538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxImage_GetGreen",_kwnames,&_argo0,&_arg1,&_arg2))
ab9bc19b 1539 return NULL;
2d091820
RD
1540 if (_argo0) {
1541 if (_argo0 == Py_None) { _arg0 = NULL; }
1542 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
ab9bc19b
RD
1543 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_GetGreen. Expected _wxImage_p.");
1544 return NULL;
1545 }
1546 }
1547{
474c48f9 1548 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1549 _result = (unsigned char )wxImage_GetGreen(_arg0,_arg1,_arg2);
ab9bc19b 1550
474c48f9 1551 wxPyEndAllowThreads(__tstate);
4dfaa61e 1552 if (PyErr_Occurred()) return NULL;
ab9bc19b
RD
1553} _resultobj = Py_BuildValue("b",_result);
1554 return _resultobj;
1555}
1556
1557#define wxImage_GetBlue(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetBlue(_swigarg0,_swigarg1))
107e4716 1558static PyObject *_wrap_wxImage_GetBlue(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
1559 PyObject * _resultobj;
1560 unsigned char _result;
1561 wxImage * _arg0;
1562 int _arg1;
1563 int _arg2;
2d091820 1564 PyObject * _argo0 = 0;
107e4716 1565 char *_kwnames[] = { "self","x","y", NULL };
ab9bc19b
RD
1566
1567 self = self;
107e4716 1568 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxImage_GetBlue",_kwnames,&_argo0,&_arg1,&_arg2))
ab9bc19b 1569 return NULL;
2d091820
RD
1570 if (_argo0) {
1571 if (_argo0 == Py_None) { _arg0 = NULL; }
1572 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
ab9bc19b
RD
1573 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_GetBlue. Expected _wxImage_p.");
1574 return NULL;
1575 }
1576 }
1577{
474c48f9 1578 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1579 _result = (unsigned char )wxImage_GetBlue(_arg0,_arg1,_arg2);
ab9bc19b 1580
474c48f9 1581 wxPyEndAllowThreads(__tstate);
4dfaa61e 1582 if (PyErr_Occurred()) return NULL;
ab9bc19b
RD
1583} _resultobj = Py_BuildValue("b",_result);
1584 return _resultobj;
1585}
1586
a323d3bd
RD
1587#define wxImage_FindFirstUnusedColour(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->FindFirstUnusedColour(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
1588static PyObject *_wrap_wxImage_FindFirstUnusedColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1589 PyObject * _resultobj;
1590 bool _result;
1591 wxImage * _arg0;
1592 byte * _arg1;
1593 int temp;
1594 byte * _arg2;
1595 int temp0;
1596 byte * _arg3;
1597 int temp1;
1598 byte _arg4 = (byte ) 0;
1599 byte _arg5 = (byte ) 0;
1600 byte _arg6 = (byte ) 0;
1601 PyObject * _argo0 = 0;
1602 char *_kwnames[] = { "self","startR","startG","startB", NULL };
1603
1604 self = self;
1605{
1606 _arg1 = (byte*)&temp;
1607}
1608{
1609 _arg2 = (byte*)&temp0;
1610}
1611{
1612 _arg3 = (byte*)&temp1;
1613}
1614 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|bbb:wxImage_FindFirstUnusedColour",_kwnames,&_argo0,&_arg4,&_arg5,&_arg6))
1615 return NULL;
1616 if (_argo0) {
1617 if (_argo0 == Py_None) { _arg0 = NULL; }
1618 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
1619 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_FindFirstUnusedColour. Expected _wxImage_p.");
1620 return NULL;
1621 }
1622 }
1623{
1624 PyThreadState* __tstate = wxPyBeginAllowThreads();
1625 _result = (bool )wxImage_FindFirstUnusedColour(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
1626
1627 wxPyEndAllowThreads(__tstate);
1628 if (PyErr_Occurred()) return NULL;
1629} _resultobj = Py_BuildValue("i",_result);
1630{
1631 PyObject *o;
1632 o = PyInt_FromLong((long) (*_arg1));
1633 _resultobj = t_output_helper(_resultobj, o);
1634}
1635{
1636 PyObject *o;
1637 o = PyInt_FromLong((long) (*_arg2));
1638 _resultobj = t_output_helper(_resultobj, o);
1639}
1640{
1641 PyObject *o;
1642 o = PyInt_FromLong((long) (*_arg3));
1643 _resultobj = t_output_helper(_resultobj, o);
1644}
1645 return _resultobj;
1646}
1647
1648#define wxImage_SetMaskFromImage(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetMaskFromImage(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
1649static PyObject *_wrap_wxImage_SetMaskFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
1650 PyObject * _resultobj;
1651 bool _result;
1652 wxImage * _arg0;
1653 wxImage * _arg1;
1654 byte _arg2;
1655 byte _arg3;
1656 byte _arg4;
1657 PyObject * _argo0 = 0;
1658 PyObject * _argo1 = 0;
1659 char *_kwnames[] = { "self","mask","mr","mg","mb", NULL };
1660
1661 self = self;
1662 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OObbb:wxImage_SetMaskFromImage",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_arg4))
1663 return NULL;
1664 if (_argo0) {
1665 if (_argo0 == Py_None) { _arg0 = NULL; }
1666 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
1667 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_SetMaskFromImage. Expected _wxImage_p.");
1668 return NULL;
1669 }
1670 }
1671 if (_argo1) {
1672 if (_argo1 == Py_None) { _arg1 = NULL; }
1673 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImage_p")) {
1674 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImage_SetMaskFromImage. Expected _wxImage_p.");
1675 return NULL;
1676 }
1677 }
1678{
1679 PyThreadState* __tstate = wxPyBeginAllowThreads();
1680 _result = (bool )wxImage_SetMaskFromImage(_arg0,*_arg1,_arg2,_arg3,_arg4);
1681
1682 wxPyEndAllowThreads(__tstate);
1683 if (PyErr_Occurred()) return NULL;
1684} _resultobj = Py_BuildValue("i",_result);
1685 return _resultobj;
1686}
1687
fbcadfca
RD
1688static PyObject *_wrap_wxImage_CanRead(PyObject *self, PyObject *args, PyObject *kwargs) {
1689 PyObject * _resultobj;
1690 bool _result;
1691 wxString * _arg0;
1692 PyObject * _obj0 = 0;
1693 char *_kwnames[] = { "name", NULL };
1694
1695 self = self;
1696 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImage_CanRead",_kwnames,&_obj0))
1697 return NULL;
1698{
c8bc7bb8
RD
1699 _arg0 = wxString_in_helper(_obj0);
1700 if (_arg0 == NULL)
fbcadfca 1701 return NULL;
fbcadfca
RD
1702}
1703{
474c48f9 1704 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1705 _result = (bool )wxImage::CanRead(*_arg0);
fbcadfca 1706
474c48f9 1707 wxPyEndAllowThreads(__tstate);
4dfaa61e 1708 if (PyErr_Occurred()) return NULL;
fbcadfca
RD
1709} _resultobj = Py_BuildValue("i",_result);
1710{
1711 if (_obj0)
1712 delete _arg0;
1713}
1714 return _resultobj;
1715}
1716
1893b029
RD
1717static PyObject *_wrap_wxImage_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) {
1718 PyObject * _resultobj;
1719 int _result;
1720 wxString * _arg0;
1721 long _arg1 = (long ) wxBITMAP_TYPE_ANY;
1722 PyObject * _obj0 = 0;
1723 char *_kwnames[] = { "name","type", NULL };
1724
1725 self = self;
1726 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|l:wxImage_GetImageCount",_kwnames,&_obj0,&_arg1))
1727 return NULL;
1728{
c8bc7bb8
RD
1729 _arg0 = wxString_in_helper(_obj0);
1730 if (_arg0 == NULL)
1893b029 1731 return NULL;
1893b029
RD
1732}
1733{
1734 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1735 _result = (int )wxImage::GetImageCount(*_arg0,_arg1);
1893b029
RD
1736
1737 wxPyEndAllowThreads(__tstate);
1738 if (PyErr_Occurred()) return NULL;
1739} _resultobj = Py_BuildValue("i",_result);
1740{
1741 if (_obj0)
1742 delete _arg0;
1743}
1744 return _resultobj;
1745}
1746
1747#define wxImage_LoadFile(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->LoadFile(_swigarg0,_swigarg1,_swigarg2))
107e4716 1748static PyObject *_wrap_wxImage_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
1749 PyObject * _resultobj;
1750 bool _result;
1751 wxImage * _arg0;
1752 wxString * _arg1;
fbcadfca 1753 long _arg2 = (long ) wxBITMAP_TYPE_ANY;
1893b029 1754 int _arg3 = (int ) -1;
2d091820 1755 PyObject * _argo0 = 0;
ab9bc19b 1756 PyObject * _obj1 = 0;
1893b029 1757 char *_kwnames[] = { "self","name","type","index", NULL };
ab9bc19b
RD
1758
1759 self = self;
1893b029 1760 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|li:wxImage_LoadFile",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3))
ab9bc19b 1761 return NULL;
2d091820
RD
1762 if (_argo0) {
1763 if (_argo0 == Py_None) { _arg0 = NULL; }
1764 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
ab9bc19b
RD
1765 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_LoadFile. Expected _wxImage_p.");
1766 return NULL;
1767 }
1768 }
1769{
c8bc7bb8
RD
1770 _arg1 = wxString_in_helper(_obj1);
1771 if (_arg1 == NULL)
2cd2fac8 1772 return NULL;
ab9bc19b
RD
1773}
1774{
474c48f9 1775 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1776 _result = (bool )wxImage_LoadFile(_arg0,*_arg1,_arg2,_arg3);
ab9bc19b 1777
474c48f9 1778 wxPyEndAllowThreads(__tstate);
4dfaa61e 1779 if (PyErr_Occurred()) return NULL;
ab9bc19b
RD
1780} _resultobj = Py_BuildValue("i",_result);
1781{
1782 if (_obj1)
1783 delete _arg1;
1784}
1785 return _resultobj;
1786}
1787
1893b029 1788#define wxImage_LoadMimeFile(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->LoadFile(_swigarg0,_swigarg1,_swigarg2))
107e4716 1789static PyObject *_wrap_wxImage_LoadMimeFile(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
1790 PyObject * _resultobj;
1791 bool _result;
1792 wxImage * _arg0;
1793 wxString * _arg1;
1794 wxString * _arg2;
1893b029 1795 int _arg3 = (int ) -1;
2d091820 1796 PyObject * _argo0 = 0;
ab9bc19b
RD
1797 PyObject * _obj1 = 0;
1798 PyObject * _obj2 = 0;
1893b029 1799 char *_kwnames[] = { "self","name","mimetype","index", NULL };
ab9bc19b
RD
1800
1801 self = self;
1893b029 1802 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|i:wxImage_LoadMimeFile",_kwnames,&_argo0,&_obj1,&_obj2,&_arg3))
ab9bc19b 1803 return NULL;
2d091820
RD
1804 if (_argo0) {
1805 if (_argo0 == Py_None) { _arg0 = NULL; }
1806 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
ab9bc19b
RD
1807 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_LoadMimeFile. Expected _wxImage_p.");
1808 return NULL;
1809 }
1810 }
1811{
c8bc7bb8
RD
1812 _arg1 = wxString_in_helper(_obj1);
1813 if (_arg1 == NULL)
2cd2fac8 1814 return NULL;
ab9bc19b
RD
1815}
1816{
c8bc7bb8
RD
1817 _arg2 = wxString_in_helper(_obj2);
1818 if (_arg2 == NULL)
2cd2fac8 1819 return NULL;
ab9bc19b
RD
1820}
1821{
474c48f9 1822 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1823 _result = (bool )wxImage_LoadMimeFile(_arg0,*_arg1,*_arg2,_arg3);
ab9bc19b 1824
474c48f9 1825 wxPyEndAllowThreads(__tstate);
4dfaa61e 1826 if (PyErr_Occurred()) return NULL;
ab9bc19b
RD
1827} _resultobj = Py_BuildValue("i",_result);
1828{
1829 if (_obj1)
1830 delete _arg1;
1831}
1832{
1833 if (_obj2)
1834 delete _arg2;
1835}
1836 return _resultobj;
1837}
1838
1839#define wxImage_SaveFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->SaveFile(_swigarg0,_swigarg1))
107e4716 1840static PyObject *_wrap_wxImage_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
1841 PyObject * _resultobj;
1842 bool _result;
1843 wxImage * _arg0;
1844 wxString * _arg1;
1845 int _arg2;
2d091820 1846 PyObject * _argo0 = 0;
ab9bc19b 1847 PyObject * _obj1 = 0;
107e4716 1848 char *_kwnames[] = { "self","name","type", NULL };
ab9bc19b
RD
1849
1850 self = self;
107e4716 1851 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxImage_SaveFile",_kwnames,&_argo0,&_obj1,&_arg2))
ab9bc19b 1852 return NULL;
2d091820
RD
1853 if (_argo0) {
1854 if (_argo0 == Py_None) { _arg0 = NULL; }
1855 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
ab9bc19b
RD
1856 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_SaveFile. Expected _wxImage_p.");
1857 return NULL;
1858 }
1859 }
1860{
c8bc7bb8
RD
1861 _arg1 = wxString_in_helper(_obj1);
1862 if (_arg1 == NULL)
ab9bc19b 1863 return NULL;
ab9bc19b
RD
1864}
1865{
474c48f9 1866 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1867 _result = (bool )wxImage_SaveFile(_arg0,*_arg1,_arg2);
ab9bc19b 1868
474c48f9 1869 wxPyEndAllowThreads(__tstate);
4dfaa61e 1870 if (PyErr_Occurred()) return NULL;
ab9bc19b
RD
1871} _resultobj = Py_BuildValue("i",_result);
1872{
1873 if (_obj1)
1874 delete _arg1;
1875}
1876 return _resultobj;
1877}
1878
1879#define wxImage_SaveMimeFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->SaveFile(_swigarg0,_swigarg1))
107e4716 1880static PyObject *_wrap_wxImage_SaveMimeFile(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
1881 PyObject * _resultobj;
1882 bool _result;
1883 wxImage * _arg0;
1884 wxString * _arg1;
1885 wxString * _arg2;
2d091820 1886 PyObject * _argo0 = 0;
ab9bc19b
RD
1887 PyObject * _obj1 = 0;
1888 PyObject * _obj2 = 0;
107e4716 1889 char *_kwnames[] = { "self","name","mimetype", NULL };
ab9bc19b
RD
1890
1891 self = self;
107e4716 1892 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxImage_SaveMimeFile",_kwnames,&_argo0,&_obj1,&_obj2))
ab9bc19b 1893 return NULL;
2d091820
RD
1894 if (_argo0) {
1895 if (_argo0 == Py_None) { _arg0 = NULL; }
1896 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
ab9bc19b
RD
1897 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_SaveMimeFile. Expected _wxImage_p.");
1898 return NULL;
1899 }
1900 }
1901{
c8bc7bb8
RD
1902 _arg1 = wxString_in_helper(_obj1);
1903 if (_arg1 == NULL)
2cd2fac8 1904 return NULL;
ab9bc19b
RD
1905}
1906{
c8bc7bb8
RD
1907 _arg2 = wxString_in_helper(_obj2);
1908 if (_arg2 == NULL)
ab9bc19b 1909 return NULL;
ab9bc19b
RD
1910}
1911{
474c48f9 1912 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1913 _result = (bool )wxImage_SaveMimeFile(_arg0,*_arg1,*_arg2);
ab9bc19b 1914
474c48f9 1915 wxPyEndAllowThreads(__tstate);
4dfaa61e 1916 if (PyErr_Occurred()) return NULL;
ab9bc19b
RD
1917} _resultobj = Py_BuildValue("i",_result);
1918{
1919 if (_obj1)
1920 delete _arg1;
1921}
1922{
1923 if (_obj2)
1924 delete _arg2;
1925}
1926 return _resultobj;
1927}
1928
94082a71
RD
1929static PyObject *_wrap_wxImage_CanReadStream(PyObject *self, PyObject *args, PyObject *kwargs) {
1930 PyObject * _resultobj;
1931 bool _result;
1932 wxInputStream * _arg0;
1933 wxPyInputStream * temp;
1934 bool created;
1935 PyObject * _obj0 = 0;
1936 char *_kwnames[] = { "stream", NULL };
1937
1938 self = self;
1939 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImage_CanReadStream",_kwnames,&_obj0))
1940 return NULL;
1941{
1942 if (SWIG_GetPtrObj(_obj0, (void **) &temp, "_wxPyInputStream_p") == 0) {
1943 _arg0 = temp->m_wxis;
1944 created = FALSE;
1945 } else {
1946 _arg0 = wxPyCBInputStream::create(_obj0, FALSE);
1947 if (_arg0 == NULL) {
1948 PyErr_SetString(PyExc_TypeError,"Expected _wxInputStream_p or Python file-like object.");
1949 return NULL;
1950 }
1951 created = TRUE;
1952 }
1953}
1954{
1955 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1956 _result = (bool )wxImage::CanRead(*_arg0);
94082a71
RD
1957
1958 wxPyEndAllowThreads(__tstate);
1959 if (PyErr_Occurred()) return NULL;
1960} _resultobj = Py_BuildValue("i",_result);
1961{
1962 if (created)
1963 delete _arg0;
1964}
1965 return _resultobj;
1966}
1967
1968#define wxImage_LoadStream(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->LoadFile(_swigarg0,_swigarg1,_swigarg2))
1969static PyObject *_wrap_wxImage_LoadStream(PyObject *self, PyObject *args, PyObject *kwargs) {
1970 PyObject * _resultobj;
1971 bool _result;
1972 wxImage * _arg0;
1973 wxInputStream * _arg1;
1974 long _arg2 = (long ) wxBITMAP_TYPE_ANY;
1975 int _arg3 = (int ) -1;
1976 PyObject * _argo0 = 0;
1977 wxPyInputStream * temp;
1978 bool created;
1979 PyObject * _obj1 = 0;
1980 char *_kwnames[] = { "self","stream","type","index", NULL };
1981
1982 self = self;
1983 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|li:wxImage_LoadStream",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3))
1984 return NULL;
1985 if (_argo0) {
1986 if (_argo0 == Py_None) { _arg0 = NULL; }
1987 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
1988 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_LoadStream. Expected _wxImage_p.");
1989 return NULL;
1990 }
1991 }
1992{
1993 if (SWIG_GetPtrObj(_obj1, (void **) &temp, "_wxPyInputStream_p") == 0) {
1994 _arg1 = temp->m_wxis;
1995 created = FALSE;
1996 } else {
1997 _arg1 = wxPyCBInputStream::create(_obj1, FALSE);
1998 if (_arg1 == NULL) {
1999 PyErr_SetString(PyExc_TypeError,"Expected _wxInputStream_p or Python file-like object.");
2000 return NULL;
2001 }
2002 created = TRUE;
2003 }
2004}
2005{
2006 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2007 _result = (bool )wxImage_LoadStream(_arg0,*_arg1,_arg2,_arg3);
94082a71
RD
2008
2009 wxPyEndAllowThreads(__tstate);
2010 if (PyErr_Occurred()) return NULL;
2011} _resultobj = Py_BuildValue("i",_result);
2012{
2013 if (created)
2014 delete _arg1;
2015}
2016 return _resultobj;
2017}
2018
2019#define wxImage_LoadMimeStream(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->LoadFile(_swigarg0,_swigarg1,_swigarg2))
2020static PyObject *_wrap_wxImage_LoadMimeStream(PyObject *self, PyObject *args, PyObject *kwargs) {
2021 PyObject * _resultobj;
2022 bool _result;
2023 wxImage * _arg0;
2024 wxInputStream * _arg1;
2025 wxString * _arg2;
2026 int _arg3 = (int ) -1;
2027 PyObject * _argo0 = 0;
2028 wxPyInputStream * temp;
2029 bool created;
2030 PyObject * _obj1 = 0;
2031 PyObject * _obj2 = 0;
2032 char *_kwnames[] = { "self","stream","mimetype","index", NULL };
2033
2034 self = self;
2035 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|i:wxImage_LoadMimeStream",_kwnames,&_argo0,&_obj1,&_obj2,&_arg3))
2036 return NULL;
2037 if (_argo0) {
2038 if (_argo0 == Py_None) { _arg0 = NULL; }
2039 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
2040 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_LoadMimeStream. Expected _wxImage_p.");
2041 return NULL;
2042 }
2043 }
2044{
2045 if (SWIG_GetPtrObj(_obj1, (void **) &temp, "_wxPyInputStream_p") == 0) {
2046 _arg1 = temp->m_wxis;
2047 created = FALSE;
2048 } else {
2049 _arg1 = wxPyCBInputStream::create(_obj1, FALSE);
2050 if (_arg1 == NULL) {
2051 PyErr_SetString(PyExc_TypeError,"Expected _wxInputStream_p or Python file-like object.");
2052 return NULL;
2053 }
2054 created = TRUE;
2055 }
2056}
2057{
c8bc7bb8
RD
2058 _arg2 = wxString_in_helper(_obj2);
2059 if (_arg2 == NULL)
94082a71 2060 return NULL;
94082a71
RD
2061}
2062{
2063 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2064 _result = (bool )wxImage_LoadMimeStream(_arg0,*_arg1,*_arg2,_arg3);
94082a71
RD
2065
2066 wxPyEndAllowThreads(__tstate);
2067 if (PyErr_Occurred()) return NULL;
2068} _resultobj = Py_BuildValue("i",_result);
2069{
2070 if (created)
2071 delete _arg1;
2072}
2073{
2074 if (_obj2)
2075 delete _arg2;
2076}
2077 return _resultobj;
2078}
2079
ab9bc19b 2080#define wxImage_Ok(_swigobj) (_swigobj->Ok())
107e4716 2081static PyObject *_wrap_wxImage_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
2082 PyObject * _resultobj;
2083 bool _result;
2084 wxImage * _arg0;
2d091820 2085 PyObject * _argo0 = 0;
107e4716 2086 char *_kwnames[] = { "self", NULL };
ab9bc19b
RD
2087
2088 self = self;
107e4716 2089 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImage_Ok",_kwnames,&_argo0))
ab9bc19b 2090 return NULL;
2d091820
RD
2091 if (_argo0) {
2092 if (_argo0 == Py_None) { _arg0 = NULL; }
2093 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
ab9bc19b
RD
2094 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_Ok. Expected _wxImage_p.");
2095 return NULL;
2096 }
2097 }
2098{
474c48f9 2099 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2100 _result = (bool )wxImage_Ok(_arg0);
ab9bc19b 2101
474c48f9 2102 wxPyEndAllowThreads(__tstate);
4dfaa61e 2103 if (PyErr_Occurred()) return NULL;
ab9bc19b
RD
2104} _resultobj = Py_BuildValue("i",_result);
2105 return _resultobj;
2106}
2107
2108#define wxImage_GetWidth(_swigobj) (_swigobj->GetWidth())
107e4716 2109static PyObject *_wrap_wxImage_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
2110 PyObject * _resultobj;
2111 int _result;
2112 wxImage * _arg0;
2d091820 2113 PyObject * _argo0 = 0;
107e4716 2114 char *_kwnames[] = { "self", NULL };
ab9bc19b
RD
2115
2116 self = self;
107e4716 2117 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImage_GetWidth",_kwnames,&_argo0))
ab9bc19b 2118 return NULL;
2d091820
RD
2119 if (_argo0) {
2120 if (_argo0 == Py_None) { _arg0 = NULL; }
2121 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
ab9bc19b
RD
2122 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_GetWidth. Expected _wxImage_p.");
2123 return NULL;
2124 }
2125 }
2126{
474c48f9 2127 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2128 _result = (int )wxImage_GetWidth(_arg0);
ab9bc19b 2129
474c48f9 2130 wxPyEndAllowThreads(__tstate);
4dfaa61e 2131 if (PyErr_Occurred()) return NULL;
ab9bc19b
RD
2132} _resultobj = Py_BuildValue("i",_result);
2133 return _resultobj;
2134}
2135
2136#define wxImage_GetHeight(_swigobj) (_swigobj->GetHeight())
107e4716 2137static PyObject *_wrap_wxImage_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
2138 PyObject * _resultobj;
2139 int _result;
2140 wxImage * _arg0;
2d091820 2141 PyObject * _argo0 = 0;
107e4716 2142 char *_kwnames[] = { "self", NULL };
ab9bc19b
RD
2143
2144 self = self;
107e4716 2145 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImage_GetHeight",_kwnames,&_argo0))
ab9bc19b 2146 return NULL;
2d091820
RD
2147 if (_argo0) {
2148 if (_argo0 == Py_None) { _arg0 = NULL; }
2149 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
ab9bc19b
RD
2150 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_GetHeight. Expected _wxImage_p.");
2151 return NULL;
2152 }
2153 }
2154{
474c48f9 2155 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2156 _result = (int )wxImage_GetHeight(_arg0);
ab9bc19b 2157
474c48f9 2158 wxPyEndAllowThreads(__tstate);
4dfaa61e 2159 if (PyErr_Occurred()) return NULL;
ab9bc19b
RD
2160} _resultobj = Py_BuildValue("i",_result);
2161 return _resultobj;
2162}
2163
f078d013
RD
2164#define wxImage_GetSubImage(_swigobj,_swigarg0) (_swigobj->GetSubImage(_swigarg0))
2165static PyObject *_wrap_wxImage_GetSubImage(PyObject *self, PyObject *args, PyObject *kwargs) {
2166 PyObject * _resultobj;
2167 wxImage * _result;
2168 wxImage * _arg0;
2169 wxRect * _arg1;
2170 PyObject * _argo0 = 0;
2171 wxRect temp;
2172 PyObject * _obj1 = 0;
2173 char *_kwnames[] = { "self","rect", NULL };
2174 char _ptemp[128];
2175
2176 self = self;
2177 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxImage_GetSubImage",_kwnames,&_argo0,&_obj1))
2178 return NULL;
2179 if (_argo0) {
2180 if (_argo0 == Py_None) { _arg0 = NULL; }
2181 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
2182 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_GetSubImage. Expected _wxImage_p.");
2183 return NULL;
2184 }
2185 }
2186{
2187 _arg1 = &temp;
2188 if (! wxRect_helper(_obj1, &_arg1))
2189 return NULL;
2190}
2191{
474c48f9 2192 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2193 _result = new wxImage (wxImage_GetSubImage(_arg0,*_arg1));
f078d013 2194
474c48f9 2195 wxPyEndAllowThreads(__tstate);
4dfaa61e 2196 if (PyErr_Occurred()) return NULL;
f078d013
RD
2197} SWIG_MakePtr(_ptemp, (void *) _result,"_wxImage_p");
2198 _resultobj = Py_BuildValue("s",_ptemp);
2199 return _resultobj;
2200}
2201
f6bcfd97
BP
2202#define wxImage_Copy(_swigobj) (_swigobj->Copy())
2203static PyObject *_wrap_wxImage_Copy(PyObject *self, PyObject *args, PyObject *kwargs) {
2204 PyObject * _resultobj;
2205 wxImage * _result;
2206 wxImage * _arg0;
2207 PyObject * _argo0 = 0;
2208 char *_kwnames[] = { "self", NULL };
2209 char _ptemp[128];
2210
2211 self = self;
2212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImage_Copy",_kwnames,&_argo0))
2213 return NULL;
2214 if (_argo0) {
2215 if (_argo0 == Py_None) { _arg0 = NULL; }
2216 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
2217 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_Copy. Expected _wxImage_p.");
2218 return NULL;
2219 }
2220 }
2221{
474c48f9 2222 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2223 _result = new wxImage (wxImage_Copy(_arg0));
f6bcfd97 2224
474c48f9 2225 wxPyEndAllowThreads(__tstate);
4dfaa61e 2226 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
2227} SWIG_MakePtr(_ptemp, (void *) _result,"_wxImage_p");
2228 _resultobj = Py_BuildValue("s",_ptemp);
2229 return _resultobj;
2230}
2231
2232#define wxImage_Paste(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Paste(_swigarg0,_swigarg1,_swigarg2))
2233static PyObject *_wrap_wxImage_Paste(PyObject *self, PyObject *args, PyObject *kwargs) {
2234 PyObject * _resultobj;
2235 wxImage * _arg0;
2236 wxImage * _arg1;
2237 int _arg2;
2238 int _arg3;
2239 PyObject * _argo0 = 0;
2240 PyObject * _argo1 = 0;
2241 char *_kwnames[] = { "self","image","x","y", NULL };
2242
2243 self = self;
2244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii:wxImage_Paste",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3))
2245 return NULL;
2246 if (_argo0) {
2247 if (_argo0 == Py_None) { _arg0 = NULL; }
2248 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
2249 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_Paste. Expected _wxImage_p.");
2250 return NULL;
2251 }
2252 }
2253 if (_argo1) {
2254 if (_argo1 == Py_None) { _arg1 = NULL; }
2255 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImage_p")) {
2256 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImage_Paste. Expected _wxImage_p.");
2257 return NULL;
2258 }
2259 }
2260{
474c48f9 2261 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2262 wxImage_Paste(_arg0,*_arg1,_arg2,_arg3);
f6bcfd97 2263
474c48f9 2264 wxPyEndAllowThreads(__tstate);
4dfaa61e 2265 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
2266} Py_INCREF(Py_None);
2267 _resultobj = Py_None;
2268 return _resultobj;
2269}
2270
3f0be3ec
RD
2271static PyObject * wxImage_GetData(wxImage *self) {
2272 unsigned char* data = self->GetData();
2273 int len = self->GetWidth() * self->GetHeight() * 3;
2274 return PyString_FromStringAndSize((char*)data, len);
2275 }
107e4716 2276static PyObject *_wrap_wxImage_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b 2277 PyObject * _resultobj;
3f0be3ec 2278 PyObject * _result;
ab9bc19b 2279 wxImage * _arg0;
2d091820 2280 PyObject * _argo0 = 0;
107e4716 2281 char *_kwnames[] = { "self", NULL };
ab9bc19b
RD
2282
2283 self = self;
107e4716 2284 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImage_GetData",_kwnames,&_argo0))
ab9bc19b 2285 return NULL;
2d091820
RD
2286 if (_argo0) {
2287 if (_argo0 == Py_None) { _arg0 = NULL; }
2288 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
ab9bc19b
RD
2289 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_GetData. Expected _wxImage_p.");
2290 return NULL;
2291 }
2292 }
2293{
474c48f9 2294 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2295 _result = (PyObject *)wxImage_GetData(_arg0);
ab9bc19b 2296
474c48f9 2297 wxPyEndAllowThreads(__tstate);
4dfaa61e 2298 if (PyErr_Occurred()) return NULL;
3f0be3ec
RD
2299}{
2300 _resultobj = _result;
2301}
ab9bc19b
RD
2302 return _resultobj;
2303}
2304
3f0be3ec
RD
2305static void wxImage_SetData(wxImage *self,PyObject * data) {
2306 unsigned char* dataPtr;
2307
2308 if (! PyString_Check(data)) {
2309 PyErr_SetString(PyExc_TypeError, "Expected string object");
2310 return /* NULL */ ;
2311 }
f078d013
RD
2312
2313 size_t len = self->GetWidth() * self->GetHeight() * 3;
2cd2fac8 2314 dataPtr = (unsigned char*) malloc(len);
f078d013 2315 memcpy(dataPtr, PyString_AsString(data), len);
3f0be3ec
RD
2316 self->SetData(dataPtr);
2317 }
107e4716 2318static PyObject *_wrap_wxImage_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
2319 PyObject * _resultobj;
2320 wxImage * _arg0;
3f0be3ec 2321 PyObject * _arg1;
2d091820 2322 PyObject * _argo0 = 0;
3f0be3ec 2323 PyObject * _obj1 = 0;
107e4716 2324 char *_kwnames[] = { "self","data", NULL };
ab9bc19b
RD
2325
2326 self = self;
107e4716 2327 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxImage_SetData",_kwnames,&_argo0,&_obj1))
ab9bc19b 2328 return NULL;
2d091820
RD
2329 if (_argo0) {
2330 if (_argo0 == Py_None) { _arg0 = NULL; }
2331 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
ab9bc19b
RD
2332 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_SetData. Expected _wxImage_p.");
2333 return NULL;
2334 }
2335 }
3f0be3ec
RD
2336{
2337 _arg1 = _obj1;
2338}
ab9bc19b 2339{
474c48f9 2340 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2341 wxImage_SetData(_arg0,_arg1);
ab9bc19b 2342
474c48f9 2343 wxPyEndAllowThreads(__tstate);
4dfaa61e 2344 if (PyErr_Occurred()) return NULL;
ab9bc19b
RD
2345} Py_INCREF(Py_None);
2346 _resultobj = Py_None;
2347 return _resultobj;
2348}
2349
2350#define wxImage_SetMaskColour(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetMaskColour(_swigarg0,_swigarg1,_swigarg2))
107e4716 2351static PyObject *_wrap_wxImage_SetMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
2352 PyObject * _resultobj;
2353 wxImage * _arg0;
2354 unsigned char _arg1;
2355 unsigned char _arg2;
2356 unsigned char _arg3;
2d091820 2357 PyObject * _argo0 = 0;
107e4716 2358 char *_kwnames[] = { "self","r","g","b", NULL };
ab9bc19b
RD
2359
2360 self = self;
107e4716 2361 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Obbb:wxImage_SetMaskColour",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
ab9bc19b 2362 return NULL;
2d091820
RD
2363 if (_argo0) {
2364 if (_argo0 == Py_None) { _arg0 = NULL; }
2365 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
ab9bc19b
RD
2366 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_SetMaskColour. Expected _wxImage_p.");
2367 return NULL;
2368 }
2369 }
2370{
474c48f9 2371 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2372 wxImage_SetMaskColour(_arg0,_arg1,_arg2,_arg3);
ab9bc19b 2373
474c48f9 2374 wxPyEndAllowThreads(__tstate);
4dfaa61e 2375 if (PyErr_Occurred()) return NULL;
ab9bc19b
RD
2376} Py_INCREF(Py_None);
2377 _resultobj = Py_None;
2378 return _resultobj;
2379}
2380
2381#define wxImage_GetMaskRed(_swigobj) (_swigobj->GetMaskRed())
107e4716 2382static PyObject *_wrap_wxImage_GetMaskRed(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
2383 PyObject * _resultobj;
2384 unsigned char _result;
2385 wxImage * _arg0;
2d091820 2386 PyObject * _argo0 = 0;
107e4716 2387 char *_kwnames[] = { "self", NULL };
ab9bc19b
RD
2388
2389 self = self;
107e4716 2390 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImage_GetMaskRed",_kwnames,&_argo0))
ab9bc19b 2391 return NULL;
2d091820
RD
2392 if (_argo0) {
2393 if (_argo0 == Py_None) { _arg0 = NULL; }
2394 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
ab9bc19b
RD
2395 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_GetMaskRed. Expected _wxImage_p.");
2396 return NULL;
2397 }
2398 }
2399{
474c48f9 2400 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2401 _result = (unsigned char )wxImage_GetMaskRed(_arg0);
ab9bc19b 2402
474c48f9 2403 wxPyEndAllowThreads(__tstate);
4dfaa61e 2404 if (PyErr_Occurred()) return NULL;
ab9bc19b
RD
2405} _resultobj = Py_BuildValue("b",_result);
2406 return _resultobj;
2407}
2408
2409#define wxImage_GetMaskGreen(_swigobj) (_swigobj->GetMaskGreen())
107e4716 2410static PyObject *_wrap_wxImage_GetMaskGreen(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
2411 PyObject * _resultobj;
2412 unsigned char _result;
2413 wxImage * _arg0;
2d091820 2414 PyObject * _argo0 = 0;
107e4716 2415 char *_kwnames[] = { "self", NULL };
ab9bc19b
RD
2416
2417 self = self;
107e4716 2418 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImage_GetMaskGreen",_kwnames,&_argo0))
ab9bc19b 2419 return NULL;
2d091820
RD
2420 if (_argo0) {
2421 if (_argo0 == Py_None) { _arg0 = NULL; }
2422 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
ab9bc19b
RD
2423 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_GetMaskGreen. Expected _wxImage_p.");
2424 return NULL;
2425 }
2426 }
2427{
474c48f9 2428 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2429 _result = (unsigned char )wxImage_GetMaskGreen(_arg0);
ab9bc19b 2430
474c48f9 2431 wxPyEndAllowThreads(__tstate);
4dfaa61e 2432 if (PyErr_Occurred()) return NULL;
ab9bc19b
RD
2433} _resultobj = Py_BuildValue("b",_result);
2434 return _resultobj;
2435}
2436
2437#define wxImage_GetMaskBlue(_swigobj) (_swigobj->GetMaskBlue())
107e4716 2438static PyObject *_wrap_wxImage_GetMaskBlue(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
2439 PyObject * _resultobj;
2440 unsigned char _result;
2441 wxImage * _arg0;
2d091820 2442 PyObject * _argo0 = 0;
107e4716 2443 char *_kwnames[] = { "self", NULL };
ab9bc19b
RD
2444
2445 self = self;
107e4716 2446 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImage_GetMaskBlue",_kwnames,&_argo0))
ab9bc19b 2447 return NULL;
2d091820
RD
2448 if (_argo0) {
2449 if (_argo0 == Py_None) { _arg0 = NULL; }
2450 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
ab9bc19b
RD
2451 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_GetMaskBlue. Expected _wxImage_p.");
2452 return NULL;
2453 }
2454 }
2455{
474c48f9 2456 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2457 _result = (unsigned char )wxImage_GetMaskBlue(_arg0);
ab9bc19b 2458
474c48f9 2459 wxPyEndAllowThreads(__tstate);
4dfaa61e 2460 if (PyErr_Occurred()) return NULL;
ab9bc19b
RD
2461} _resultobj = Py_BuildValue("b",_result);
2462 return _resultobj;
2463}
2464
2465#define wxImage_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0))
107e4716 2466static PyObject *_wrap_wxImage_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
2467 PyObject * _resultobj;
2468 wxImage * _arg0;
2d091820
RD
2469 bool _arg1 = (bool ) TRUE;
2470 PyObject * _argo0 = 0;
2471 int tempbool1 = (int) TRUE;
107e4716 2472 char *_kwnames[] = { "self","mask", NULL };
ab9bc19b
RD
2473
2474 self = self;
107e4716 2475 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxImage_SetMask",_kwnames,&_argo0,&tempbool1))
ab9bc19b 2476 return NULL;
2d091820
RD
2477 if (_argo0) {
2478 if (_argo0 == Py_None) { _arg0 = NULL; }
2479 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
ab9bc19b
RD
2480 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_SetMask. Expected _wxImage_p.");
2481 return NULL;
2482 }
2483 }
2484 _arg1 = (bool ) tempbool1;
2485{
474c48f9 2486 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2487 wxImage_SetMask(_arg0,_arg1);
ab9bc19b 2488
474c48f9 2489 wxPyEndAllowThreads(__tstate);
4dfaa61e 2490 if (PyErr_Occurred()) return NULL;
ab9bc19b
RD
2491} Py_INCREF(Py_None);
2492 _resultobj = Py_None;
2493 return _resultobj;
2494}
2495
2496#define wxImage_HasMask(_swigobj) (_swigobj->HasMask())
107e4716 2497static PyObject *_wrap_wxImage_HasMask(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
2498 PyObject * _resultobj;
2499 bool _result;
2500 wxImage * _arg0;
2d091820 2501 PyObject * _argo0 = 0;
107e4716 2502 char *_kwnames[] = { "self", NULL };
ab9bc19b
RD
2503
2504 self = self;
107e4716 2505 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImage_HasMask",_kwnames,&_argo0))
ab9bc19b 2506 return NULL;
2d091820
RD
2507 if (_argo0) {
2508 if (_argo0 == Py_None) { _arg0 = NULL; }
2509 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
ab9bc19b
RD
2510 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_HasMask. Expected _wxImage_p.");
2511 return NULL;
2512 }
2513 }
2514{
474c48f9 2515 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2516 _result = (bool )wxImage_HasMask(_arg0);
ab9bc19b 2517
474c48f9 2518 wxPyEndAllowThreads(__tstate);
4dfaa61e 2519 if (PyErr_Occurred()) return NULL;
ab9bc19b
RD
2520} _resultobj = Py_BuildValue("i",_result);
2521 return _resultobj;
2522}
2523
f6bcfd97
BP
2524#define wxImage_Rotate(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Rotate(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
2525static PyObject *_wrap_wxImage_Rotate(PyObject *self, PyObject *args, PyObject *kwargs) {
2526 PyObject * _resultobj;
2527 wxImage * _result;
2528 wxImage * _arg0;
2529 double _arg1;
2530 wxPoint * _arg2;
2531 bool _arg3 = (bool ) TRUE;
2532 wxPoint * _arg4 = (wxPoint *) NULL;
2533 PyObject * _argo0 = 0;
2534 wxPoint temp;
2535 PyObject * _obj2 = 0;
2536 int tempbool3 = (int) TRUE;
2537 wxPoint temp0;
2538 PyObject * _obj4 = 0;
2539 char *_kwnames[] = { "self","angle","centre_of_rotation","interpolating","offset_after_rotation", NULL };
2540 char _ptemp[128];
2541
2542 self = self;
2543 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OdO|iO:wxImage_Rotate",_kwnames,&_argo0,&_arg1,&_obj2,&tempbool3,&_obj4))
2544 return NULL;
2545 if (_argo0) {
2546 if (_argo0 == Py_None) { _arg0 = NULL; }
2547 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
2548 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_Rotate. Expected _wxImage_p.");
2549 return NULL;
2550 }
2551 }
2552{
2553 _arg2 = &temp;
2554 if (! wxPoint_helper(_obj2, &_arg2))
2555 return NULL;
2556}
2557 _arg3 = (bool ) tempbool3;
2558 if (_obj4)
2559{
2560 _arg4 = &temp0;
2561 if (! wxPoint_helper(_obj4, &_arg4))
2562 return NULL;
2563}
2564{
474c48f9 2565 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2566 _result = new wxImage (wxImage_Rotate(_arg0,_arg1,*_arg2,_arg3,_arg4));
f6bcfd97 2567
474c48f9 2568 wxPyEndAllowThreads(__tstate);
4dfaa61e 2569 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
2570} SWIG_MakePtr(_ptemp, (void *) _result,"_wxImage_p");
2571 _resultobj = Py_BuildValue("s",_ptemp);
2572 return _resultobj;
2573}
2574
2575#define wxImage_Rotate90(_swigobj,_swigarg0) (_swigobj->Rotate90(_swigarg0))
2576static PyObject *_wrap_wxImage_Rotate90(PyObject *self, PyObject *args, PyObject *kwargs) {
2577 PyObject * _resultobj;
2578 wxImage * _result;
2579 wxImage * _arg0;
2580 bool _arg1 = (bool ) TRUE;
2581 PyObject * _argo0 = 0;
2582 int tempbool1 = (int) TRUE;
2583 char *_kwnames[] = { "self","clockwise", NULL };
2584 char _ptemp[128];
2585
2586 self = self;
2587 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxImage_Rotate90",_kwnames,&_argo0,&tempbool1))
2588 return NULL;
2589 if (_argo0) {
2590 if (_argo0 == Py_None) { _arg0 = NULL; }
2591 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
2592 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_Rotate90. Expected _wxImage_p.");
2593 return NULL;
2594 }
2595 }
2596 _arg1 = (bool ) tempbool1;
2597{
474c48f9 2598 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2599 _result = new wxImage (wxImage_Rotate90(_arg0,_arg1));
f6bcfd97 2600
474c48f9 2601 wxPyEndAllowThreads(__tstate);
4dfaa61e 2602 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
2603} SWIG_MakePtr(_ptemp, (void *) _result,"_wxImage_p");
2604 _resultobj = Py_BuildValue("s",_ptemp);
2605 return _resultobj;
2606}
2607
2608#define wxImage_Mirror(_swigobj,_swigarg0) (_swigobj->Mirror(_swigarg0))
2609static PyObject *_wrap_wxImage_Mirror(PyObject *self, PyObject *args, PyObject *kwargs) {
2610 PyObject * _resultobj;
2611 wxImage * _result;
2612 wxImage * _arg0;
2613 bool _arg1 = (bool ) TRUE;
2614 PyObject * _argo0 = 0;
2615 int tempbool1 = (int) TRUE;
2616 char *_kwnames[] = { "self","horizontally", NULL };
2617 char _ptemp[128];
2618
2619 self = self;
2620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxImage_Mirror",_kwnames,&_argo0,&tempbool1))
2621 return NULL;
2622 if (_argo0) {
2623 if (_argo0 == Py_None) { _arg0 = NULL; }
2624 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
2625 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_Mirror. Expected _wxImage_p.");
2626 return NULL;
2627 }
2628 }
2629 _arg1 = (bool ) tempbool1;
2630{
474c48f9 2631 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2632 _result = new wxImage (wxImage_Mirror(_arg0,_arg1));
f6bcfd97 2633
474c48f9 2634 wxPyEndAllowThreads(__tstate);
4dfaa61e 2635 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
2636} SWIG_MakePtr(_ptemp, (void *) _result,"_wxImage_p");
2637 _resultobj = Py_BuildValue("s",_ptemp);
2638 return _resultobj;
2639}
2640
2641#define wxImage_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
2642static PyObject *_wrap_wxImage_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
2643 PyObject * _resultobj;
2644 wxImage * _arg0;
2645 unsigned char _arg1;
2646 unsigned char _arg2;
2647 unsigned char _arg3;
2648 unsigned char _arg4;
2649 unsigned char _arg5;
2650 unsigned char _arg6;
2651 PyObject * _argo0 = 0;
2652 char *_kwnames[] = { "self","r1","g1","b1","r2","g2","b2", NULL };
2653
2654 self = self;
2655 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Obbbbbb:wxImage_Replace",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6))
2656 return NULL;
2657 if (_argo0) {
2658 if (_argo0 == Py_None) { _arg0 = NULL; }
2659 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
2660 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_Replace. Expected _wxImage_p.");
2661 return NULL;
2662 }
2663 }
2664{
474c48f9 2665 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2666 wxImage_Replace(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
f6bcfd97 2667
474c48f9 2668 wxPyEndAllowThreads(__tstate);
4dfaa61e 2669 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
2670} Py_INCREF(Py_None);
2671 _resultobj = Py_None;
2672 return _resultobj;
2673}
2674
93283355
RD
2675#define wxImage_ConvertToMono(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->ConvertToMono(_swigarg0,_swigarg1,_swigarg2))
2676static PyObject *_wrap_wxImage_ConvertToMono(PyObject *self, PyObject *args, PyObject *kwargs) {
2677 PyObject * _resultobj;
2678 wxImage * _result;
2679 wxImage * _arg0;
2680 unsigned char _arg1;
2681 unsigned char _arg2;
2682 unsigned char _arg3;
2683 PyObject * _argo0 = 0;
2684 char *_kwnames[] = { "self","r","g","b", NULL };
2685 char _ptemp[128];
2686
2687 self = self;
2688 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Obbb:wxImage_ConvertToMono",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
2689 return NULL;
2690 if (_argo0) {
2691 if (_argo0 == Py_None) { _arg0 = NULL; }
2692 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
2693 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_ConvertToMono. Expected _wxImage_p.");
2694 return NULL;
2695 }
2696 }
2697{
474c48f9 2698 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2699 _result = new wxImage (wxImage_ConvertToMono(_arg0,_arg1,_arg2,_arg3));
93283355 2700
474c48f9 2701 wxPyEndAllowThreads(__tstate);
93283355
RD
2702 if (PyErr_Occurred()) return NULL;
2703} SWIG_MakePtr(_ptemp, (void *) _result,"_wxImage_p");
2704 _resultobj = Py_BuildValue("s",_ptemp);
2705 return _resultobj;
2706}
2707
2708#define wxImage_SetOption(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetOption(_swigarg0,_swigarg1))
2709static PyObject *_wrap_wxImage_SetOption(PyObject *self, PyObject *args, PyObject *kwargs) {
2710 PyObject * _resultobj;
2711 wxImage * _arg0;
2712 wxString * _arg1;
2713 wxString * _arg2;
2714 PyObject * _argo0 = 0;
2715 PyObject * _obj1 = 0;
2716 PyObject * _obj2 = 0;
2717 char *_kwnames[] = { "self","name","value", NULL };
2718
2719 self = self;
2720 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxImage_SetOption",_kwnames,&_argo0,&_obj1,&_obj2))
2721 return NULL;
2722 if (_argo0) {
2723 if (_argo0 == Py_None) { _arg0 = NULL; }
2724 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
2725 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_SetOption. Expected _wxImage_p.");
2726 return NULL;
2727 }
2728 }
2729{
c8bc7bb8
RD
2730 _arg1 = wxString_in_helper(_obj1);
2731 if (_arg1 == NULL)
93283355 2732 return NULL;
93283355
RD
2733}
2734{
c8bc7bb8
RD
2735 _arg2 = wxString_in_helper(_obj2);
2736 if (_arg2 == NULL)
93283355 2737 return NULL;
93283355
RD
2738}
2739{
474c48f9 2740 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2741 wxImage_SetOption(_arg0,*_arg1,*_arg2);
93283355 2742
474c48f9 2743 wxPyEndAllowThreads(__tstate);
93283355
RD
2744 if (PyErr_Occurred()) return NULL;
2745} Py_INCREF(Py_None);
2746 _resultobj = Py_None;
2747{
2748 if (_obj1)
2749 delete _arg1;
2750}
2751{
2752 if (_obj2)
2753 delete _arg2;
2754}
2755 return _resultobj;
2756}
2757
2758#define wxImage_SetOptionInt(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetOption(_swigarg0,_swigarg1))
2759static PyObject *_wrap_wxImage_SetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) {
2760 PyObject * _resultobj;
2761 wxImage * _arg0;
2762 wxString * _arg1;
2763 int _arg2;
2764 PyObject * _argo0 = 0;
2765 PyObject * _obj1 = 0;
2766 char *_kwnames[] = { "self","name","value", NULL };
2767
2768 self = self;
2769 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxImage_SetOptionInt",_kwnames,&_argo0,&_obj1,&_arg2))
2770 return NULL;
2771 if (_argo0) {
2772 if (_argo0 == Py_None) { _arg0 = NULL; }
2773 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
2774 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_SetOptionInt. Expected _wxImage_p.");
2775 return NULL;
2776 }
2777 }
2778{
c8bc7bb8
RD
2779 _arg1 = wxString_in_helper(_obj1);
2780 if (_arg1 == NULL)
93283355 2781 return NULL;
93283355
RD
2782}
2783{
474c48f9 2784 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2785 wxImage_SetOptionInt(_arg0,*_arg1,_arg2);
93283355 2786
474c48f9 2787 wxPyEndAllowThreads(__tstate);
93283355
RD
2788 if (PyErr_Occurred()) return NULL;
2789} Py_INCREF(Py_None);
2790 _resultobj = Py_None;
2791{
2792 if (_obj1)
2793 delete _arg1;
2794}
2795 return _resultobj;
2796}
2797
2798#define wxImage_GetOption(_swigobj,_swigarg0) (_swigobj->GetOption(_swigarg0))
2799static PyObject *_wrap_wxImage_GetOption(PyObject *self, PyObject *args, PyObject *kwargs) {
2800 PyObject * _resultobj;
2801 wxString * _result;
2802 wxImage * _arg0;
2803 wxString * _arg1;
2804 PyObject * _argo0 = 0;
2805 PyObject * _obj1 = 0;
2806 char *_kwnames[] = { "self","name", NULL };
2807
2808 self = self;
2809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxImage_GetOption",_kwnames,&_argo0,&_obj1))
2810 return NULL;
2811 if (_argo0) {
2812 if (_argo0 == Py_None) { _arg0 = NULL; }
2813 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
2814 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_GetOption. Expected _wxImage_p.");
2815 return NULL;
2816 }
2817 }
2818{
c8bc7bb8
RD
2819 _arg1 = wxString_in_helper(_obj1);
2820 if (_arg1 == NULL)
93283355 2821 return NULL;
93283355
RD
2822}
2823{
474c48f9 2824 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2825 _result = new wxString (wxImage_GetOption(_arg0,*_arg1));
93283355 2826
474c48f9 2827 wxPyEndAllowThreads(__tstate);
93283355
RD
2828 if (PyErr_Occurred()) return NULL;
2829}{
c8bc7bb8
RD
2830#if wxUSE_UNICODE
2831 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
2832#else
93283355 2833 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
c8bc7bb8 2834#endif
93283355
RD
2835}
2836{
2837 if (_obj1)
2838 delete _arg1;
2839}
2840{
2841 delete _result;
2842}
2843 return _resultobj;
2844}
2845
2846#define wxImage_GetOptionInt(_swigobj,_swigarg0) (_swigobj->GetOptionInt(_swigarg0))
2847static PyObject *_wrap_wxImage_GetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) {
2848 PyObject * _resultobj;
2849 int _result;
2850 wxImage * _arg0;
2851 wxString * _arg1;
2852 PyObject * _argo0 = 0;
2853 PyObject * _obj1 = 0;
2854 char *_kwnames[] = { "self","name", NULL };
2855
2856 self = self;
2857 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxImage_GetOptionInt",_kwnames,&_argo0,&_obj1))
2858 return NULL;
2859 if (_argo0) {
2860 if (_argo0 == Py_None) { _arg0 = NULL; }
2861 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
2862 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_GetOptionInt. Expected _wxImage_p.");
2863 return NULL;
2864 }
2865 }
2866{
c8bc7bb8
RD
2867 _arg1 = wxString_in_helper(_obj1);
2868 if (_arg1 == NULL)
93283355 2869 return NULL;
93283355
RD
2870}
2871{
474c48f9 2872 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2873 _result = (int )wxImage_GetOptionInt(_arg0,*_arg1);
93283355 2874
474c48f9 2875 wxPyEndAllowThreads(__tstate);
93283355
RD
2876 if (PyErr_Occurred()) return NULL;
2877} _resultobj = Py_BuildValue("i",_result);
2878{
2879 if (_obj1)
2880 delete _arg1;
2881}
2882 return _resultobj;
2883}
2884
2885#define wxImage_HasOption(_swigobj,_swigarg0) (_swigobj->HasOption(_swigarg0))
2886static PyObject *_wrap_wxImage_HasOption(PyObject *self, PyObject *args, PyObject *kwargs) {
2887 PyObject * _resultobj;
2888 bool _result;
2889 wxImage * _arg0;
2890 wxString * _arg1;
2891 PyObject * _argo0 = 0;
2892 PyObject * _obj1 = 0;
2893 char *_kwnames[] = { "self","name", NULL };
2894
2895 self = self;
2896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxImage_HasOption",_kwnames,&_argo0,&_obj1))
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_HasOption. Expected _wxImage_p.");
2902 return NULL;
2903 }
2904 }
2905{
c8bc7bb8
RD
2906 _arg1 = wxString_in_helper(_obj1);
2907 if (_arg1 == NULL)
93283355 2908 return NULL;
93283355
RD
2909}
2910{
474c48f9 2911 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2912 _result = (bool )wxImage_HasOption(_arg0,*_arg1);
93283355 2913
474c48f9 2914 wxPyEndAllowThreads(__tstate);
93283355
RD
2915 if (PyErr_Occurred()) return NULL;
2916} _resultobj = Py_BuildValue("i",_result);
2917{
2918 if (_obj1)
2919 delete _arg1;
2920}
2921 return _resultobj;
2922}
2923
f6bcfd97
BP
2924#define wxImage_CountColours(_swigobj,_swigarg0) (_swigobj->CountColours(_swigarg0))
2925static PyObject *_wrap_wxImage_CountColours(PyObject *self, PyObject *args, PyObject *kwargs) {
2926 PyObject * _resultobj;
2927 unsigned long _result;
2928 wxImage * _arg0;
2929 unsigned long _arg1 = (unsigned long ) (unsigned long)-1;
2930 PyObject * _argo0 = 0;
2931 char *_kwnames[] = { "self","stopafter", NULL };
2932
2933 self = self;
2934 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|l:wxImage_CountColours",_kwnames,&_argo0,&_arg1))
2935 return NULL;
2936 if (_argo0) {
2937 if (_argo0 == Py_None) { _arg0 = NULL; }
2938 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
2939 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_CountColours. Expected _wxImage_p.");
2940 return NULL;
2941 }
2942 }
2943{
474c48f9 2944 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2945 _result = (unsigned long )wxImage_CountColours(_arg0,_arg1);
f6bcfd97 2946
474c48f9 2947 wxPyEndAllowThreads(__tstate);
4dfaa61e 2948 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
2949} _resultobj = Py_BuildValue("l",_result);
2950 return _resultobj;
2951}
2952
fbcadfca
RD
2953static PyObject *_wrap_wxImage_AddHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
2954 PyObject * _resultobj;
2955 wxImageHandler * _arg0;
2956 PyObject * _argo0 = 0;
2957 char *_kwnames[] = { "handler", NULL };
2958
2959 self = self;
2960 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImage_AddHandler",_kwnames,&_argo0))
2961 return NULL;
2962 if (_argo0) {
2963 if (_argo0 == Py_None) { _arg0 = NULL; }
2964 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageHandler_p")) {
2965 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_AddHandler. Expected _wxImageHandler_p.");
2966 return NULL;
2967 }
2968 }
2969{
474c48f9 2970 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2971 wxImage::AddHandler(_arg0);
fbcadfca 2972
474c48f9 2973 wxPyEndAllowThreads(__tstate);
4dfaa61e 2974 if (PyErr_Occurred()) return NULL;
fbcadfca
RD
2975} Py_INCREF(Py_None);
2976 _resultobj = Py_None;
2977 return _resultobj;
2978}
2979
2980static PyObject *_wrap_wxImage_InsertHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
2981 PyObject * _resultobj;
2982 wxImageHandler * _arg0;
2983 PyObject * _argo0 = 0;
2984 char *_kwnames[] = { "handler", NULL };
2985
2986 self = self;
2987 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImage_InsertHandler",_kwnames,&_argo0))
2988 return NULL;
2989 if (_argo0) {
2990 if (_argo0 == Py_None) { _arg0 = NULL; }
2991 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageHandler_p")) {
2992 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_InsertHandler. Expected _wxImageHandler_p.");
2993 return NULL;
2994 }
2995 }
2996{
474c48f9 2997 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 2998 wxImage::InsertHandler(_arg0);
fbcadfca 2999
474c48f9 3000 wxPyEndAllowThreads(__tstate);
4dfaa61e 3001 if (PyErr_Occurred()) return NULL;
fbcadfca
RD
3002} Py_INCREF(Py_None);
3003 _resultobj = Py_None;
3004 return _resultobj;
3005}
3006
3007static PyObject *_wrap_wxImage_RemoveHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
3008 PyObject * _resultobj;
3009 bool _result;
3010 wxString * _arg0;
3011 PyObject * _obj0 = 0;
3012 char *_kwnames[] = { "name", NULL };
3013
3014 self = self;
3015 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImage_RemoveHandler",_kwnames,&_obj0))
3016 return NULL;
3017{
c8bc7bb8
RD
3018 _arg0 = wxString_in_helper(_obj0);
3019 if (_arg0 == NULL)
fbcadfca 3020 return NULL;
fbcadfca
RD
3021}
3022{
474c48f9 3023 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 3024 _result = (bool )wxImage::RemoveHandler(*_arg0);
fbcadfca 3025
474c48f9 3026 wxPyEndAllowThreads(__tstate);
4dfaa61e 3027 if (PyErr_Occurred()) return NULL;
fbcadfca
RD
3028} _resultobj = Py_BuildValue("i",_result);
3029{
3030 if (_obj0)
3031 delete _arg0;
3032}
3033 return _resultobj;
3034}
3035
be86ffe3
RD
3036static wxBitmap wxImage_ConvertToBitmap(wxImage *self) {
3037 wxBitmap bitmap(*self);
3038 return bitmap;
3039 }
3040static PyObject *_wrap_wxImage_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3041 PyObject * _resultobj;
3042 wxBitmap * _result;
3043 wxImage * _arg0;
3044 PyObject * _argo0 = 0;
3045 char *_kwnames[] = { "self", NULL };
3046 char _ptemp[128];
3047
3048 self = self;
3049 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImage_ConvertToBitmap",_kwnames,&_argo0))
3050 return NULL;
3051 if (_argo0) {
3052 if (_argo0 == Py_None) { _arg0 = NULL; }
3053 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
3054 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_ConvertToBitmap. Expected _wxImage_p.");
3055 return NULL;
3056 }
3057 }
3058{
3059 PyThreadState* __tstate = wxPyBeginAllowThreads();
3060 _result = new wxBitmap (wxImage_ConvertToBitmap(_arg0));
3061
3062 wxPyEndAllowThreads(__tstate);
3063 if (PyErr_Occurred()) return NULL;
3064} SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p");
3065 _resultobj = Py_BuildValue("s",_ptemp);
3066 return _resultobj;
3067}
3068
3069static wxBitmap wxImage_ConvertToMonoBitmap(wxImage *self,unsigned char red,unsigned char green,unsigned char blue) {
3070 wxImage mono = self->ConvertToMono( red, green, blue );
3071 wxBitmap bitmap( mono, 1 );
3072 return bitmap;
3073 }
3074static PyObject *_wrap_wxImage_ConvertToMonoBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3075 PyObject * _resultobj;
3076 wxBitmap * _result;
3077 wxImage * _arg0;
3078 unsigned char _arg1;
3079 unsigned char _arg2;
3080 unsigned char _arg3;
3081 PyObject * _argo0 = 0;
3082 char *_kwnames[] = { "self","red","green","blue", NULL };
3083 char _ptemp[128];
3084
3085 self = self;
3086 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Obbb:wxImage_ConvertToMonoBitmap",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
3087 return NULL;
3088 if (_argo0) {
3089 if (_argo0 == Py_None) { _arg0 = NULL; }
3090 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
3091 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_ConvertToMonoBitmap. Expected _wxImage_p.");
3092 return NULL;
3093 }
3094 }
3095{
3096 PyThreadState* __tstate = wxPyBeginAllowThreads();
3097 _result = new wxBitmap (wxImage_ConvertToMonoBitmap(_arg0,_arg1,_arg2,_arg3));
3098
3099 wxPyEndAllowThreads(__tstate);
3100 if (PyErr_Occurred()) return NULL;
3101} SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p");
3102 _resultobj = Py_BuildValue("s",_ptemp);
3103 return _resultobj;
3104}
3105
ab9bc19b 3106static PyMethodDef imagecMethods[] = {
be86ffe3
RD
3107 { "wxImage_ConvertToMonoBitmap", (PyCFunction) _wrap_wxImage_ConvertToMonoBitmap, METH_VARARGS | METH_KEYWORDS },
3108 { "wxImage_ConvertToBitmap", (PyCFunction) _wrap_wxImage_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS },
fbcadfca
RD
3109 { "wxImage_RemoveHandler", (PyCFunction) _wrap_wxImage_RemoveHandler, METH_VARARGS | METH_KEYWORDS },
3110 { "wxImage_InsertHandler", (PyCFunction) _wrap_wxImage_InsertHandler, METH_VARARGS | METH_KEYWORDS },
3111 { "wxImage_AddHandler", (PyCFunction) _wrap_wxImage_AddHandler, METH_VARARGS | METH_KEYWORDS },
f6bcfd97 3112 { "wxImage_CountColours", (PyCFunction) _wrap_wxImage_CountColours, METH_VARARGS | METH_KEYWORDS },
93283355
RD
3113 { "wxImage_HasOption", (PyCFunction) _wrap_wxImage_HasOption, METH_VARARGS | METH_KEYWORDS },
3114 { "wxImage_GetOptionInt", (PyCFunction) _wrap_wxImage_GetOptionInt, METH_VARARGS | METH_KEYWORDS },
3115 { "wxImage_GetOption", (PyCFunction) _wrap_wxImage_GetOption, METH_VARARGS | METH_KEYWORDS },
3116 { "wxImage_SetOptionInt", (PyCFunction) _wrap_wxImage_SetOptionInt, METH_VARARGS | METH_KEYWORDS },
3117 { "wxImage_SetOption", (PyCFunction) _wrap_wxImage_SetOption, METH_VARARGS | METH_KEYWORDS },
3118 { "wxImage_ConvertToMono", (PyCFunction) _wrap_wxImage_ConvertToMono, METH_VARARGS | METH_KEYWORDS },
f6bcfd97
BP
3119 { "wxImage_Replace", (PyCFunction) _wrap_wxImage_Replace, METH_VARARGS | METH_KEYWORDS },
3120 { "wxImage_Mirror", (PyCFunction) _wrap_wxImage_Mirror, METH_VARARGS | METH_KEYWORDS },
3121 { "wxImage_Rotate90", (PyCFunction) _wrap_wxImage_Rotate90, METH_VARARGS | METH_KEYWORDS },
3122 { "wxImage_Rotate", (PyCFunction) _wrap_wxImage_Rotate, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
3123 { "wxImage_HasMask", (PyCFunction) _wrap_wxImage_HasMask, METH_VARARGS | METH_KEYWORDS },
3124 { "wxImage_SetMask", (PyCFunction) _wrap_wxImage_SetMask, METH_VARARGS | METH_KEYWORDS },
3125 { "wxImage_GetMaskBlue", (PyCFunction) _wrap_wxImage_GetMaskBlue, METH_VARARGS | METH_KEYWORDS },
3126 { "wxImage_GetMaskGreen", (PyCFunction) _wrap_wxImage_GetMaskGreen, METH_VARARGS | METH_KEYWORDS },
3127 { "wxImage_GetMaskRed", (PyCFunction) _wrap_wxImage_GetMaskRed, METH_VARARGS | METH_KEYWORDS },
3128 { "wxImage_SetMaskColour", (PyCFunction) _wrap_wxImage_SetMaskColour, METH_VARARGS | METH_KEYWORDS },
3129 { "wxImage_SetData", (PyCFunction) _wrap_wxImage_SetData, METH_VARARGS | METH_KEYWORDS },
3130 { "wxImage_GetData", (PyCFunction) _wrap_wxImage_GetData, METH_VARARGS | METH_KEYWORDS },
f6bcfd97
BP
3131 { "wxImage_Paste", (PyCFunction) _wrap_wxImage_Paste, METH_VARARGS | METH_KEYWORDS },
3132 { "wxImage_Copy", (PyCFunction) _wrap_wxImage_Copy, METH_VARARGS | METH_KEYWORDS },
f078d013 3133 { "wxImage_GetSubImage", (PyCFunction) _wrap_wxImage_GetSubImage, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
3134 { "wxImage_GetHeight", (PyCFunction) _wrap_wxImage_GetHeight, METH_VARARGS | METH_KEYWORDS },
3135 { "wxImage_GetWidth", (PyCFunction) _wrap_wxImage_GetWidth, METH_VARARGS | METH_KEYWORDS },
3136 { "wxImage_Ok", (PyCFunction) _wrap_wxImage_Ok, METH_VARARGS | METH_KEYWORDS },
94082a71
RD
3137 { "wxImage_LoadMimeStream", (PyCFunction) _wrap_wxImage_LoadMimeStream, METH_VARARGS | METH_KEYWORDS },
3138 { "wxImage_LoadStream", (PyCFunction) _wrap_wxImage_LoadStream, METH_VARARGS | METH_KEYWORDS },
3139 { "wxImage_CanReadStream", (PyCFunction) _wrap_wxImage_CanReadStream, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
3140 { "wxImage_SaveMimeFile", (PyCFunction) _wrap_wxImage_SaveMimeFile, METH_VARARGS | METH_KEYWORDS },
3141 { "wxImage_SaveFile", (PyCFunction) _wrap_wxImage_SaveFile, METH_VARARGS | METH_KEYWORDS },
3142 { "wxImage_LoadMimeFile", (PyCFunction) _wrap_wxImage_LoadMimeFile, METH_VARARGS | METH_KEYWORDS },
3143 { "wxImage_LoadFile", (PyCFunction) _wrap_wxImage_LoadFile, METH_VARARGS | METH_KEYWORDS },
1893b029 3144 { "wxImage_GetImageCount", (PyCFunction) _wrap_wxImage_GetImageCount, METH_VARARGS | METH_KEYWORDS },
fbcadfca 3145 { "wxImage_CanRead", (PyCFunction) _wrap_wxImage_CanRead, METH_VARARGS | METH_KEYWORDS },
a323d3bd
RD
3146 { "wxImage_SetMaskFromImage", (PyCFunction) _wrap_wxImage_SetMaskFromImage, METH_VARARGS | METH_KEYWORDS },
3147 { "wxImage_FindFirstUnusedColour", (PyCFunction) _wrap_wxImage_FindFirstUnusedColour, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
3148 { "wxImage_GetBlue", (PyCFunction) _wrap_wxImage_GetBlue, METH_VARARGS | METH_KEYWORDS },
3149 { "wxImage_GetGreen", (PyCFunction) _wrap_wxImage_GetGreen, METH_VARARGS | METH_KEYWORDS },
3150 { "wxImage_GetRed", (PyCFunction) _wrap_wxImage_GetRed, METH_VARARGS | METH_KEYWORDS },
3151 { "wxImage_SetRGB", (PyCFunction) _wrap_wxImage_SetRGB, METH_VARARGS | METH_KEYWORDS },
3152 { "wxImage_Rescale", (PyCFunction) _wrap_wxImage_Rescale, METH_VARARGS | METH_KEYWORDS },
3153 { "wxImage_Scale", (PyCFunction) _wrap_wxImage_Scale, METH_VARARGS | METH_KEYWORDS },
3154 { "wxImage_Destroy", (PyCFunction) _wrap_wxImage_Destroy, METH_VARARGS | METH_KEYWORDS },
3155 { "wxImage_Create", (PyCFunction) _wrap_wxImage_Create, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
3156 { "delete_wxImage", (PyCFunction) _wrap_delete_wxImage, METH_VARARGS | METH_KEYWORDS },
3157 { "new_wxImage", (PyCFunction) _wrap_new_wxImage, METH_VARARGS | METH_KEYWORDS },
ab2208b5 3158 { "new_wxTIFFHandler", (PyCFunction) _wrap_new_wxTIFFHandler, METH_VARARGS | METH_KEYWORDS },
bc29c5e0
RD
3159 { "new_wxPCXHandler", (PyCFunction) _wrap_new_wxPCXHandler, METH_VARARGS | METH_KEYWORDS },
3160 { "new_wxPNMHandler", (PyCFunction) _wrap_new_wxPNMHandler, METH_VARARGS | METH_KEYWORDS },
107e4716 3161 { "new_wxGIFHandler", (PyCFunction) _wrap_new_wxGIFHandler, METH_VARARGS | METH_KEYWORDS },
db34b2d4
RD
3162 { "new_wxANIHandler", (PyCFunction) _wrap_new_wxANIHandler, METH_VARARGS | METH_KEYWORDS },
3163 { "new_wxCURHandler", (PyCFunction) _wrap_new_wxCURHandler, METH_VARARGS | METH_KEYWORDS },
1893b029 3164 { "new_wxICOHandler", (PyCFunction) _wrap_new_wxICOHandler, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
3165 { "new_wxBMPHandler", (PyCFunction) _wrap_new_wxBMPHandler, METH_VARARGS | METH_KEYWORDS },
3166 { "new_wxJPEGHandler", (PyCFunction) _wrap_new_wxJPEGHandler, METH_VARARGS | METH_KEYWORDS },
3167 { "new_wxPNGHandler", (PyCFunction) _wrap_new_wxPNGHandler, METH_VARARGS | METH_KEYWORDS },
3168 { "wxImageHandler_SetMimeType", (PyCFunction) _wrap_wxImageHandler_SetMimeType, METH_VARARGS | METH_KEYWORDS },
3169 { "wxImageHandler_SetType", (PyCFunction) _wrap_wxImageHandler_SetType, METH_VARARGS | METH_KEYWORDS },
3170 { "wxImageHandler_SetExtension", (PyCFunction) _wrap_wxImageHandler_SetExtension, METH_VARARGS | METH_KEYWORDS },
3171 { "wxImageHandler_SetName", (PyCFunction) _wrap_wxImageHandler_SetName, METH_VARARGS | METH_KEYWORDS },
1893b029 3172 { "wxImageHandler_CanRead", (PyCFunction) _wrap_wxImageHandler_CanRead, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
3173 { "wxImageHandler_GetMimeType", (PyCFunction) _wrap_wxImageHandler_GetMimeType, METH_VARARGS | METH_KEYWORDS },
3174 { "wxImageHandler_GetType", (PyCFunction) _wrap_wxImageHandler_GetType, METH_VARARGS | METH_KEYWORDS },
3175 { "wxImageHandler_GetExtension", (PyCFunction) _wrap_wxImageHandler_GetExtension, METH_VARARGS | METH_KEYWORDS },
3176 { "wxImageHandler_GetName", (PyCFunction) _wrap_wxImageHandler_GetName, METH_VARARGS | METH_KEYWORDS },
9e689c06 3177 { "wxBitmapFromImage", (PyCFunction) _wrap_wxBitmapFromImage, METH_VARARGS | METH_KEYWORDS },
bc29c5e0 3178 { "wxInitAllImageHandlers", (PyCFunction) _wrap_wxInitAllImageHandlers, METH_VARARGS | METH_KEYWORDS },
94082a71
RD
3179 { "wxImageFromStreamMime", (PyCFunction) _wrap_wxImageFromStreamMime, METH_VARARGS | METH_KEYWORDS },
3180 { "wxImageFromStream", (PyCFunction) _wrap_wxImageFromStream, METH_VARARGS | METH_KEYWORDS },
1893b029 3181 { "wxImageFromData", (PyCFunction) _wrap_wxImageFromData, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
3182 { "wxImageFromBitmap", (PyCFunction) _wrap_wxImageFromBitmap, METH_VARARGS | METH_KEYWORDS },
3183 { "wxImageFromMime", (PyCFunction) _wrap_wxImageFromMime, METH_VARARGS | METH_KEYWORDS },
3184 { "wxEmptyImage", (PyCFunction) _wrap_wxEmptyImage, METH_VARARGS | METH_KEYWORDS },
ab9bc19b
RD
3185 { NULL, NULL }
3186};
2d091820
RD
3187#ifdef __cplusplus
3188}
3189#endif
3190/*
3191 * This table is used by the pointer type-checker
3192 */
3193static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
2d091820 3194 { "_signed_long","_long",0},
db34b2d4
RD
3195 { "_wxBMPHandler","_wxANIHandler",SwigwxANIHandlerTowxBMPHandler},
3196 { "_wxBMPHandler","_wxCURHandler",SwigwxCURHandlerTowxBMPHandler},
1893b029 3197 { "_wxBMPHandler","_wxICOHandler",SwigwxICOHandlerTowxBMPHandler},
db34b2d4
RD
3198 { "_wxICOHandler","_wxANIHandler",SwigwxANIHandlerTowxICOHandler},
3199 { "_wxICOHandler","_wxCURHandler",SwigwxCURHandlerTowxICOHandler},
4120ef2b 3200 { "_wxPrintQuality","_wxCoord",0},
2d091820
RD
3201 { "_wxPrintQuality","_int",0},
3202 { "_wxPrintQuality","_signed_int",0},
3203 { "_wxPrintQuality","_unsigned_int",0},
3204 { "_wxPrintQuality","_wxWindowID",0},
3205 { "_wxPrintQuality","_uint",0},
3206 { "_wxPrintQuality","_EBool",0},
3207 { "_wxPrintQuality","_size_t",0},
c368d904 3208 { "_wxPrintQuality","_time_t",0},
ab2208b5 3209 { "_wxImageHandler","_wxTIFFHandler",SwigwxTIFFHandlerTowxImageHandler},
bc29c5e0 3210 { "_wxImageHandler","_wxPCXHandler",SwigwxPCXHandlerTowxImageHandler},
bc29c5e0 3211 { "_wxImageHandler","_wxPNMHandler",SwigwxPNMHandlerTowxImageHandler},
2d091820 3212 { "_wxImageHandler","_wxGIFHandler",SwigwxGIFHandlerTowxImageHandler},
db34b2d4
RD
3213 { "_wxImageHandler","_wxANIHandler",SwigwxANIHandlerTowxImageHandler},
3214 { "_wxImageHandler","_wxCURHandler",SwigwxCURHandlerTowxImageHandler},
1893b029 3215 { "_wxImageHandler","_wxICOHandler",SwigwxICOHandlerTowxImageHandler},
2d091820 3216 { "_wxImageHandler","_wxBMPHandler",SwigwxBMPHandlerTowxImageHandler},
2d091820 3217 { "_wxImageHandler","_wxJPEGHandler",SwigwxJPEGHandlerTowxImageHandler},
2d091820 3218 { "_wxImageHandler","_wxPNGHandler",SwigwxPNGHandlerTowxImageHandler},
2d091820 3219 { "_byte","_unsigned_char",0},
2d091820
RD
3220 { "_long","_unsigned_long",0},
3221 { "_long","_signed_long",0},
4120ef2b 3222 { "_size_t","_wxCoord",0},
2d091820 3223 { "_size_t","_wxPrintQuality",0},
c368d904 3224 { "_size_t","_time_t",0},
2d091820
RD
3225 { "_size_t","_unsigned_int",0},
3226 { "_size_t","_int",0},
3227 { "_size_t","_wxWindowID",0},
3228 { "_size_t","_uint",0},
4120ef2b 3229 { "_uint","_wxCoord",0},
2d091820 3230 { "_uint","_wxPrintQuality",0},
c368d904 3231 { "_uint","_time_t",0},
2d091820
RD
3232 { "_uint","_size_t",0},
3233 { "_uint","_unsigned_int",0},
3234 { "_uint","_int",0},
3235 { "_uint","_wxWindowID",0},
f6bcfd97 3236 { "_wxChar","_char",0},
f6bcfd97 3237 { "_char","_wxChar",0},
32c988a3 3238 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
4120ef2b 3239 { "_EBool","_wxCoord",0},
2d091820
RD
3240 { "_EBool","_wxPrintQuality",0},
3241 { "_EBool","_signed_int",0},
3242 { "_EBool","_int",0},
3243 { "_EBool","_wxWindowID",0},
2d091820 3244 { "_unsigned_long","_long",0},
32c988a3 3245 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
4120ef2b 3246 { "_signed_int","_wxCoord",0},
2d091820
RD
3247 { "_signed_int","_wxPrintQuality",0},
3248 { "_signed_int","_EBool",0},
3249 { "_signed_int","_wxWindowID",0},
3250 { "_signed_int","_int",0},
2d091820
RD
3251 { "_WXTYPE","_short",0},
3252 { "_WXTYPE","_signed_short",0},
3253 { "_WXTYPE","_unsigned_short",0},
2d091820
RD
3254 { "_unsigned_short","_WXTYPE",0},
3255 { "_unsigned_short","_short",0},
9df61a29 3256 { "_wxObject","_wxImage",SwigwxImageTowxObject},
9df61a29 3257 { "_wxObject","_wxTIFFHandler",SwigwxTIFFHandlerTowxObject},
9df61a29 3258 { "_wxObject","_wxPCXHandler",SwigwxPCXHandlerTowxObject},
9df61a29 3259 { "_wxObject","_wxPNMHandler",SwigwxPNMHandlerTowxObject},
9df61a29 3260 { "_wxObject","_wxGIFHandler",SwigwxGIFHandlerTowxObject},
db34b2d4
RD
3261 { "_wxObject","_wxANIHandler",SwigwxANIHandlerTowxObject},
3262 { "_wxObject","_wxCURHandler",SwigwxCURHandlerTowxObject},
1893b029 3263 { "_wxObject","_wxICOHandler",SwigwxICOHandlerTowxObject},
9df61a29 3264 { "_wxObject","_wxBMPHandler",SwigwxBMPHandlerTowxObject},
9df61a29 3265 { "_wxObject","_wxJPEGHandler",SwigwxJPEGHandlerTowxObject},
9df61a29 3266 { "_wxObject","_wxPNGHandler",SwigwxPNGHandlerTowxObject},
9df61a29 3267 { "_wxObject","_wxImageHandler",SwigwxImageHandlerTowxObject},
2d091820
RD
3268 { "_signed_short","_WXTYPE",0},
3269 { "_signed_short","_short",0},
db34b2d4 3270 { "_wxCURHandler","_wxANIHandler",SwigwxANIHandlerTowxCURHandler},
2d091820 3271 { "_unsigned_char","_byte",0},
4120ef2b 3272 { "_unsigned_int","_wxCoord",0},
2d091820 3273 { "_unsigned_int","_wxPrintQuality",0},
c368d904 3274 { "_unsigned_int","_time_t",0},
2d091820
RD
3275 { "_unsigned_int","_size_t",0},
3276 { "_unsigned_int","_uint",0},
3277 { "_unsigned_int","_wxWindowID",0},
3278 { "_unsigned_int","_int",0},
2d091820
RD
3279 { "_short","_WXTYPE",0},
3280 { "_short","_unsigned_short",0},
3281 { "_short","_signed_short",0},
4120ef2b 3282 { "_wxWindowID","_wxCoord",0},
2d091820 3283 { "_wxWindowID","_wxPrintQuality",0},
c368d904 3284 { "_wxWindowID","_time_t",0},
2d091820
RD
3285 { "_wxWindowID","_size_t",0},
3286 { "_wxWindowID","_EBool",0},
3287 { "_wxWindowID","_uint",0},
3288 { "_wxWindowID","_int",0},
3289 { "_wxWindowID","_signed_int",0},
3290 { "_wxWindowID","_unsigned_int",0},
4120ef2b 3291 { "_int","_wxCoord",0},
2d091820 3292 { "_int","_wxPrintQuality",0},
c368d904 3293 { "_int","_time_t",0},
2d091820
RD
3294 { "_int","_size_t",0},
3295 { "_int","_EBool",0},
3296 { "_int","_uint",0},
3297 { "_int","_wxWindowID",0},
3298 { "_int","_unsigned_int",0},
3299 { "_int","_signed_int",0},
c368d904
RD
3300 { "_time_t","_wxCoord",0},
3301 { "_time_t","_wxPrintQuality",0},
3302 { "_time_t","_unsigned_int",0},
3303 { "_time_t","_int",0},
3304 { "_time_t","_wxWindowID",0},
3305 { "_time_t","_uint",0},
3306 { "_time_t","_size_t",0},
4120ef2b
RD
3307 { "_wxCoord","_int",0},
3308 { "_wxCoord","_signed_int",0},
3309 { "_wxCoord","_unsigned_int",0},
3310 { "_wxCoord","_wxWindowID",0},
3311 { "_wxCoord","_uint",0},
3312 { "_wxCoord","_EBool",0},
3313 { "_wxCoord","_size_t",0},
c368d904 3314 { "_wxCoord","_time_t",0},
4120ef2b 3315 { "_wxCoord","_wxPrintQuality",0},
2d091820
RD
3316{0,0,0}};
3317
ab9bc19b
RD
3318static PyObject *SWIG_globals;
3319#ifdef __cplusplus
3320extern "C"
3321#endif
2d091820 3322SWIGEXPORT(void) initimagec() {
ab9bc19b
RD
3323 PyObject *m, *d;
3324 SWIG_globals = SWIG_newvarlink();
3325 m = Py_InitModule("imagec", imagecMethods);
3326 d = PyModule_GetDict(m);
df05452e
RD
3327 PyDict_SetItemString(d,"cvar", SWIG_globals);
3328 SWIG_addvarlink(SWIG_globals,"wxNullImage",_wrap_wxNullImage_get, _wrap_wxNullImage_set);
2d091820
RD
3329{
3330 int i;
3331 for (i = 0; _swig_mapping[i].n1; i++)
3332 SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv);
3333}
ab9bc19b 3334}