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