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