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