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