]> git.saurik.com Git - wxWidgets.git/blame - utils/wxPython/src/gtk/image.cpp
workaround font data bug
[wxWidgets.git] / utils / wxPython / src / gtk / image.cpp
CommitLineData
ab9bc19b
RD
1/*
2 * FILE : gtk/image.cpp
3 *
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
9cce9de1 6 * Version 1.1 (Build 810)
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__)
2d091820 30# define SWIGEXPORT(a) a _export
ab9bc19b 31# else
2d091820 32# define SWIGEXPORT(a) a
ab9bc19b
RD
33# endif
34# endif
35#else
2d091820 36# define SWIGEXPORT(a) a
ab9bc19b
RD
37#endif
38
39#ifdef __cplusplus
40extern "C" {
41#endif
42#include "Python.h"
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;
61 PyObject* o3;
62 if (!target) {
63 target = o;
64 } else if (target == Py_None) {
65 Py_DECREF(Py_None);
66 target = o;
67 } else {
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
84 if (!target) {
85 target = o;
86 } else if (target == Py_None) {
87 Py_DECREF(Py_None);
88 target = o;
89 } else {
90 if (!PyTuple_Check(target)) {
91 o2 = target;
92 target = PyTuple_New(1);
93 PyTuple_SetItem(target, 0, o2);
94 }
95 o3 = PyTuple_New(1);
96 PyTuple_SetItem(o3, 0, o);
97
98 o2 = target;
99 target = PySequence_Concat(o2, o3);
100 Py_DECREF(o2);
101 Py_DECREF(o3);
102 }
103 return target;
104}
105
ab9bc19b
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 }
2d091820
RD
127#ifdef __cplusplus
128extern "C" {
129#endif
107e4716 130static PyObject *_wrap_wxNullImage(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
131 PyObject * _resultobj;
132 wxImage * _result;
107e4716 133 char *_kwnames[] = { NULL };
ab9bc19b
RD
134 char _ptemp[128];
135
136 self = self;
107e4716 137 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxNullImage",_kwnames))
ab9bc19b
RD
138 return NULL;
139{
140 wxPy_BEGIN_ALLOW_THREADS;
141 _result = (wxImage *)wxNullImage();
142
143 wxPy_END_ALLOW_THREADS;
2d091820
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 }
ab9bc19b
RD
151 return _resultobj;
152}
153
107e4716 154static PyObject *_wrap_wxEmptyImage(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
155 PyObject * _resultobj;
156 wxImage * _result;
157 int _arg0;
158 int _arg1;
107e4716 159 char *_kwnames[] = { "width","height", NULL };
ab9bc19b
RD
160 char _ptemp[128];
161
162 self = self;
107e4716 163 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"ii:wxEmptyImage",_kwnames,&_arg0,&_arg1))
ab9bc19b
RD
164 return NULL;
165{
166 wxPy_BEGIN_ALLOW_THREADS;
167 _result = (wxImage *)wxEmptyImage(_arg0,_arg1);
168
169 wxPy_END_ALLOW_THREADS;
2d091820
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 }
ab9bc19b
RD
177 return _resultobj;
178}
179
107e4716 180static PyObject *_wrap_wxImageFromMime(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
181 PyObject * _resultobj;
182 wxImage * _result;
183 wxString * _arg0;
184 wxString * _arg1;
185 PyObject * _obj0 = 0;
186 PyObject * _obj1 = 0;
107e4716 187 char *_kwnames[] = { "name","mimetype", NULL };
ab9bc19b
RD
188 char _ptemp[128];
189
190 self = self;
107e4716 191 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxImageFromMime",_kwnames,&_obj0,&_obj1))
ab9bc19b
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;
2d091820
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 }
ab9bc19b
RD
219{
220 if (_obj0)
221 delete _arg0;
222}
223{
224 if (_obj1)
225 delete _arg1;
226}
227 return _resultobj;
228}
229
107e4716 230static PyObject *_wrap_wxImageFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
231 PyObject * _resultobj;
232 wxImage * _result;
233 wxBitmap * _arg0;
2d091820 234 PyObject * _argo0 = 0;
107e4716 235 char *_kwnames[] = { "bitmap", NULL };
ab9bc19b
RD
236 char _ptemp[128];
237
238 self = self;
107e4716 239 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageFromBitmap",_kwnames,&_argo0))
ab9bc19b 240 return NULL;
2d091820
RD
241 if (_argo0) {
242 if (_argo0 == Py_None) { _arg0 = NULL; }
243 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
ab9bc19b
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;
2d091820
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 }
ab9bc19b
RD
260 return _resultobj;
261}
262
107e4716 263static PyObject *_wrap_wxImage_AddHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
264 PyObject * _resultobj;
265 wxImageHandler * _arg0;
2d091820 266 PyObject * _argo0 = 0;
107e4716 267 char *_kwnames[] = { "handler", NULL };
ab9bc19b
RD
268
269 self = self;
107e4716 270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImage_AddHandler",_kwnames,&_argo0))
ab9bc19b 271 return NULL;
2d091820
RD
272 if (_argo0) {
273 if (_argo0 == Py_None) { _arg0 = NULL; }
274 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageHandler_p")) {
ab9bc19b
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
bc29c5e0
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
ab9bc19b 306#define wxImageHandler_GetName(_swigobj) (_swigobj->GetName())
107e4716 307static PyObject *_wrap_wxImageHandler_GetName(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
308 PyObject * _resultobj;
309 wxString * _result;
310 wxImageHandler * _arg0;
2d091820 311 PyObject * _argo0 = 0;
107e4716 312 char *_kwnames[] = { "self", NULL };
ab9bc19b
RD
313
314 self = self;
107e4716 315 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageHandler_GetName",_kwnames,&_argo0))
ab9bc19b 316 return NULL;
2d091820
RD
317 if (_argo0) {
318 if (_argo0 == Py_None) { _arg0 = NULL; }
319 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageHandler_p")) {
ab9bc19b
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}{
330 _resultobj = PyString_FromString(WXSTRINGCAST *(_result));
331}
332{
333 delete _result;
334}
335 return _resultobj;
336}
337
338#define wxImageHandler_GetExtension(_swigobj) (_swigobj->GetExtension())
107e4716 339static PyObject *_wrap_wxImageHandler_GetExtension(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
340 PyObject * _resultobj;
341 wxString * _result;
342 wxImageHandler * _arg0;
2d091820 343 PyObject * _argo0 = 0;
107e4716 344 char *_kwnames[] = { "self", NULL };
ab9bc19b
RD
345
346 self = self;
107e4716 347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageHandler_GetExtension",_kwnames,&_argo0))
ab9bc19b 348 return NULL;
2d091820
RD
349 if (_argo0) {
350 if (_argo0 == Py_None) { _arg0 = NULL; }
351 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageHandler_p")) {
ab9bc19b
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}{
362 _resultobj = PyString_FromString(WXSTRINGCAST *(_result));
363}
364{
365 delete _result;
366}
367 return _resultobj;
368}
369
370#define wxImageHandler_GetType(_swigobj) (_swigobj->GetType())
107e4716 371static PyObject *_wrap_wxImageHandler_GetType(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
372 PyObject * _resultobj;
373 long _result;
374 wxImageHandler * _arg0;
2d091820 375 PyObject * _argo0 = 0;
107e4716 376 char *_kwnames[] = { "self", NULL };
ab9bc19b
RD
377
378 self = self;
107e4716 379 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageHandler_GetType",_kwnames,&_argo0))
ab9bc19b 380 return NULL;
2d091820
RD
381 if (_argo0) {
382 if (_argo0 == Py_None) { _arg0 = NULL; }
383 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageHandler_p")) {
ab9bc19b
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())
107e4716 398static PyObject *_wrap_wxImageHandler_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
399 PyObject * _resultobj;
400 wxString * _result;
401 wxImageHandler * _arg0;
2d091820 402 PyObject * _argo0 = 0;
107e4716 403 char *_kwnames[] = { "self", NULL };
ab9bc19b
RD
404
405 self = self;
107e4716 406 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageHandler_GetMimeType",_kwnames,&_argo0))
ab9bc19b 407 return NULL;
2d091820
RD
408 if (_argo0) {
409 if (_argo0 == Py_None) { _arg0 = NULL; }
410 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageHandler_p")) {
ab9bc19b
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}{
421 _resultobj = PyString_FromString(WXSTRINGCAST *(_result));
422}
423{
424 delete _result;
425}
426 return _resultobj;
427}
428
429#define wxImageHandler_SetName(_swigobj,_swigarg0) (_swigobj->SetName(_swigarg0))
107e4716 430static PyObject *_wrap_wxImageHandler_SetName(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
431 PyObject * _resultobj;
432 wxImageHandler * _arg0;
433 wxString * _arg1;
2d091820 434 PyObject * _argo0 = 0;
ab9bc19b 435 PyObject * _obj1 = 0;
107e4716 436 char *_kwnames[] = { "self","name", NULL };
ab9bc19b
RD
437
438 self = self;
107e4716 439 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxImageHandler_SetName",_kwnames,&_argo0,&_obj1))
ab9bc19b 440 return NULL;
2d091820
RD
441 if (_argo0) {
442 if (_argo0 == Py_None) { _arg0 = NULL; }
443 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageHandler_p")) {
ab9bc19b
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))
107e4716 470static PyObject *_wrap_wxImageHandler_SetExtension(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
471 PyObject * _resultobj;
472 wxImageHandler * _arg0;
473 wxString * _arg1;
2d091820 474 PyObject * _argo0 = 0;
ab9bc19b 475 PyObject * _obj1 = 0;
107e4716 476 char *_kwnames[] = { "self","extension", NULL };
ab9bc19b
RD
477
478 self = self;
107e4716 479 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxImageHandler_SetExtension",_kwnames,&_argo0,&_obj1))
ab9bc19b 480 return NULL;
2d091820
RD
481 if (_argo0) {
482 if (_argo0 == Py_None) { _arg0 = NULL; }
483 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageHandler_p")) {
ab9bc19b
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))
107e4716 510static PyObject *_wrap_wxImageHandler_SetType(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
511 PyObject * _resultobj;
512 wxImageHandler * _arg0;
513 long _arg1;
2d091820 514 PyObject * _argo0 = 0;
107e4716 515 char *_kwnames[] = { "self","type", NULL };
ab9bc19b
RD
516
517 self = self;
107e4716 518 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxImageHandler_SetType",_kwnames,&_argo0,&_arg1))
ab9bc19b 519 return NULL;
2d091820
RD
520 if (_argo0) {
521 if (_argo0 == Py_None) { _arg0 = NULL; }
522 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageHandler_p")) {
ab9bc19b
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))
107e4716 538static PyObject *_wrap_wxImageHandler_SetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
539 PyObject * _resultobj;
540 wxImageHandler * _arg0;
541 wxString * _arg1;
2d091820 542 PyObject * _argo0 = 0;
ab9bc19b 543 PyObject * _obj1 = 0;
107e4716 544 char *_kwnames[] = { "self","mimetype", NULL };
ab9bc19b
RD
545
546 self = self;
107e4716 547 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxImageHandler_SetMimeType",_kwnames,&_argo0,&_obj1))
ab9bc19b 548 return NULL;
2d091820
RD
549 if (_argo0) {
550 if (_argo0 == Py_None) { _arg0 = NULL; }
551 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageHandler_p")) {
ab9bc19b
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())
107e4716 586static PyObject *_wrap_new_wxPNGHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
587 PyObject * _resultobj;
588 wxPNGHandler * _result;
107e4716 589 char *_kwnames[] = { NULL };
ab9bc19b
RD
590 char _ptemp[128];
591
592 self = self;
107e4716 593 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPNGHandler",_kwnames))
ab9bc19b
RD
594 return NULL;
595{
596 wxPy_BEGIN_ALLOW_THREADS;
597 _result = (wxPNGHandler *)new_wxPNGHandler();
598
599 wxPy_END_ALLOW_THREADS;
2d091820
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 }
ab9bc19b
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())
107e4716 619static PyObject *_wrap_new_wxJPEGHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
620 PyObject * _resultobj;
621 wxJPEGHandler * _result;
107e4716 622 char *_kwnames[] = { NULL };
ab9bc19b
RD
623 char _ptemp[128];
624
625 self = self;
107e4716 626 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxJPEGHandler",_kwnames))
ab9bc19b
RD
627 return NULL;
628{
629 wxPy_BEGIN_ALLOW_THREADS;
630 _result = (wxJPEGHandler *)new_wxJPEGHandler();
631
632 wxPy_END_ALLOW_THREADS;
2d091820
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 }
ab9bc19b
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())
107e4716 652static PyObject *_wrap_new_wxBMPHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
653 PyObject * _resultobj;
654 wxBMPHandler * _result;
107e4716 655 char *_kwnames[] = { NULL };
ab9bc19b
RD
656 char _ptemp[128];
657
658 self = self;
107e4716 659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxBMPHandler",_kwnames))
ab9bc19b
RD
660 return NULL;
661{
662 wxPy_BEGIN_ALLOW_THREADS;
663 _result = (wxBMPHandler *)new_wxBMPHandler();
664
665 wxPy_END_ALLOW_THREADS;
2d091820
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 }
ab9bc19b
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())
107e4716 685static PyObject *_wrap_new_wxGIFHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
686 PyObject * _resultobj;
687 wxGIFHandler * _result;
107e4716 688 char *_kwnames[] = { NULL };
ab9bc19b
RD
689 char _ptemp[128];
690
691 self = self;
107e4716 692 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxGIFHandler",_kwnames))
ab9bc19b
RD
693 return NULL;
694{
695 wxPy_BEGIN_ALLOW_THREADS;
696 _result = (wxGIFHandler *)new_wxGIFHandler();
697
698 wxPy_END_ALLOW_THREADS;
2d091820
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 }
ab9bc19b
RD
706 return _resultobj;
707}
708
bc29c5e0
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
ab2208b5
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
ab9bc19b 808#define new_wxImage(_swigarg0,_swigarg1) (new wxImage(_swigarg0,_swigarg1))
107e4716 809static PyObject *_wrap_new_wxImage(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
810 PyObject * _resultobj;
811 wxImage * _result;
812 wxString * _arg0;
2d091820 813 long _arg1 = (long ) wxBITMAP_TYPE_PNG;
ab9bc19b 814 PyObject * _obj0 = 0;
107e4716 815 char *_kwnames[] = { "name","type", NULL };
ab9bc19b
RD
816 char _ptemp[128];
817
818 self = self;
107e4716 819 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|l:new_wxImage",_kwnames,&_obj0,&_arg1))
ab9bc19b
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;
2d091820
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 }
ab9bc19b
RD
840{
841 if (_obj0)
842 delete _arg0;
843}
844 return _resultobj;
845}
846
847#define delete_wxImage(_swigobj) (delete _swigobj)
107e4716 848static PyObject *_wrap_delete_wxImage(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
849 PyObject * _resultobj;
850 wxImage * _arg0;
2d091820 851 PyObject * _argo0 = 0;
107e4716 852 char *_kwnames[] = { "self", NULL };
ab9bc19b
RD
853
854 self = self;
107e4716 855 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxImage",_kwnames,&_argo0))
ab9bc19b 856 return NULL;
2d091820
RD
857 if (_argo0) {
858 if (_argo0 == Py_None) { _arg0 = NULL; }
859 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
ab9bc19b
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())
107e4716 875static PyObject *_wrap_wxImage_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
876 PyObject * _resultobj;
877 wxBitmap * _result;
878 wxImage * _arg0;
2d091820 879 PyObject * _argo0 = 0;
107e4716 880 char *_kwnames[] = { "self", NULL };
ab9bc19b
RD
881 char _ptemp[128];
882
883 self = self;
107e4716 884 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImage_ConvertToBitmap",_kwnames,&_argo0))
ab9bc19b 885 return NULL;
2d091820
RD
886 if (_argo0) {
887 if (_argo0 == Py_None) { _arg0 = NULL; }
888 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
ab9bc19b
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))
107e4716 904static PyObject *_wrap_wxImage_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
905 PyObject * _resultobj;
906 wxImage * _arg0;
907 int _arg1;
908 int _arg2;
2d091820 909 PyObject * _argo0 = 0;
107e4716 910 char *_kwnames[] = { "self","width","height", NULL };
ab9bc19b
RD
911
912 self = self;
107e4716 913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxImage_Create",_kwnames,&_argo0,&_arg1,&_arg2))
ab9bc19b 914 return NULL;
2d091820
RD
915 if (_argo0) {
916 if (_argo0 == Py_None) { _arg0 = NULL; }
917 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
ab9bc19b
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())
107e4716 933static PyObject *_wrap_wxImage_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
934 PyObject * _resultobj;
935 wxImage * _arg0;
2d091820 936 PyObject * _argo0 = 0;
107e4716 937 char *_kwnames[] = { "self", NULL };
ab9bc19b
RD
938
939 self = self;
107e4716 940 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImage_Destroy",_kwnames,&_argo0))
ab9bc19b 941 return NULL;
2d091820
RD
942 if (_argo0) {
943 if (_argo0 == Py_None) { _arg0 = NULL; }
944 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
ab9bc19b
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))
107e4716 960static PyObject *_wrap_wxImage_Scale(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
961 PyObject * _resultobj;
962 wxImage * _result;
963 wxImage * _arg0;
964 int _arg1;
965 int _arg2;
2d091820 966 PyObject * _argo0 = 0;
107e4716 967 char *_kwnames[] = { "self","width","height", NULL };
ab9bc19b
RD
968 char _ptemp[128];
969
970 self = self;
107e4716 971 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxImage_Scale",_kwnames,&_argo0,&_arg1,&_arg2))
ab9bc19b 972 return NULL;
2d091820
RD
973 if (_argo0) {
974 if (_argo0 == Py_None) { _arg0 = NULL; }
975 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
ab9bc19b
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))
107e4716 991static PyObject *_wrap_wxImage_Rescale(PyObject *self, PyObject *args, PyObject *kwargs) {
8bf5d46e
RD
992 PyObject * _resultobj;
993 wxImage * _arg0;
994 int _arg1;
995 int _arg2;
2d091820 996 PyObject * _argo0 = 0;
107e4716 997 char *_kwnames[] = { "self","width","height", NULL };
8bf5d46e
RD
998
999 self = self;
107e4716 1000 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxImage_Rescale",_kwnames,&_argo0,&_arg1,&_arg2))
8bf5d46e 1001 return NULL;
2d091820
RD
1002 if (_argo0) {
1003 if (_argo0 == Py_None) { _arg0 = NULL; }
1004 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
8bf5d46e
RD
1005 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_Rescale. Expected _wxImage_p.");
1006 return NULL;
1007 }
1008 }
1009{
1010 wxPy_BEGIN_ALLOW_THREADS;
1011 wxImage_Rescale(_arg0,_arg1,_arg2);
1012
1013 wxPy_END_ALLOW_THREADS;
1014} Py_INCREF(Py_None);
1015 _resultobj = Py_None;
1016 return _resultobj;
1017}
1018
ab9bc19b 1019#define wxImage_SetRGB(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetRGB(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
107e4716 1020static PyObject *_wrap_wxImage_SetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
1021 PyObject * _resultobj;
1022 wxImage * _arg0;
1023 int _arg1;
1024 int _arg2;
1025 unsigned char _arg3;
1026 unsigned char _arg4;
1027 unsigned char _arg5;
2d091820 1028 PyObject * _argo0 = 0;
107e4716 1029 char *_kwnames[] = { "self","x","y","r","g","b", NULL };
ab9bc19b
RD
1030
1031 self = self;
107e4716 1032 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiibbb:wxImage_SetRGB",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5))
ab9bc19b 1033 return NULL;
2d091820
RD
1034 if (_argo0) {
1035 if (_argo0 == Py_None) { _arg0 = NULL; }
1036 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
ab9bc19b
RD
1037 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_SetRGB. Expected _wxImage_p.");
1038 return NULL;
1039 }
1040 }
1041{
1042 wxPy_BEGIN_ALLOW_THREADS;
1043 wxImage_SetRGB(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
1044
1045 wxPy_END_ALLOW_THREADS;
1046} Py_INCREF(Py_None);
1047 _resultobj = Py_None;
1048 return _resultobj;
1049}
1050
1051#define wxImage_GetRed(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetRed(_swigarg0,_swigarg1))
107e4716 1052static PyObject *_wrap_wxImage_GetRed(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
1053 PyObject * _resultobj;
1054 unsigned char _result;
1055 wxImage * _arg0;
1056 int _arg1;
1057 int _arg2;
2d091820 1058 PyObject * _argo0 = 0;
107e4716 1059 char *_kwnames[] = { "self","x","y", NULL };
ab9bc19b
RD
1060
1061 self = self;
107e4716 1062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxImage_GetRed",_kwnames,&_argo0,&_arg1,&_arg2))
ab9bc19b 1063 return NULL;
2d091820
RD
1064 if (_argo0) {
1065 if (_argo0 == Py_None) { _arg0 = NULL; }
1066 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
ab9bc19b
RD
1067 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_GetRed. Expected _wxImage_p.");
1068 return NULL;
1069 }
1070 }
1071{
1072 wxPy_BEGIN_ALLOW_THREADS;
1073 _result = (unsigned char )wxImage_GetRed(_arg0,_arg1,_arg2);
1074
1075 wxPy_END_ALLOW_THREADS;
1076} _resultobj = Py_BuildValue("b",_result);
1077 return _resultobj;
1078}
1079
1080#define wxImage_GetGreen(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetGreen(_swigarg0,_swigarg1))
107e4716 1081static PyObject *_wrap_wxImage_GetGreen(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
1082 PyObject * _resultobj;
1083 unsigned char _result;
1084 wxImage * _arg0;
1085 int _arg1;
1086 int _arg2;
2d091820 1087 PyObject * _argo0 = 0;
107e4716 1088 char *_kwnames[] = { "self","x","y", NULL };
ab9bc19b
RD
1089
1090 self = self;
107e4716 1091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxImage_GetGreen",_kwnames,&_argo0,&_arg1,&_arg2))
ab9bc19b 1092 return NULL;
2d091820
RD
1093 if (_argo0) {
1094 if (_argo0 == Py_None) { _arg0 = NULL; }
1095 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
ab9bc19b
RD
1096 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_GetGreen. Expected _wxImage_p.");
1097 return NULL;
1098 }
1099 }
1100{
1101 wxPy_BEGIN_ALLOW_THREADS;
1102 _result = (unsigned char )wxImage_GetGreen(_arg0,_arg1,_arg2);
1103
1104 wxPy_END_ALLOW_THREADS;
1105} _resultobj = Py_BuildValue("b",_result);
1106 return _resultobj;
1107}
1108
1109#define wxImage_GetBlue(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetBlue(_swigarg0,_swigarg1))
107e4716 1110static PyObject *_wrap_wxImage_GetBlue(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
1111 PyObject * _resultobj;
1112 unsigned char _result;
1113 wxImage * _arg0;
1114 int _arg1;
1115 int _arg2;
2d091820 1116 PyObject * _argo0 = 0;
107e4716 1117 char *_kwnames[] = { "self","x","y", NULL };
ab9bc19b
RD
1118
1119 self = self;
107e4716 1120 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxImage_GetBlue",_kwnames,&_argo0,&_arg1,&_arg2))
ab9bc19b 1121 return NULL;
2d091820
RD
1122 if (_argo0) {
1123 if (_argo0 == Py_None) { _arg0 = NULL; }
1124 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
ab9bc19b
RD
1125 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_GetBlue. Expected _wxImage_p.");
1126 return NULL;
1127 }
1128 }
1129{
1130 wxPy_BEGIN_ALLOW_THREADS;
1131 _result = (unsigned char )wxImage_GetBlue(_arg0,_arg1,_arg2);
1132
1133 wxPy_END_ALLOW_THREADS;
1134} _resultobj = Py_BuildValue("b",_result);
1135 return _resultobj;
1136}
1137
1138#define wxImage_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1))
107e4716 1139static PyObject *_wrap_wxImage_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
1140 PyObject * _resultobj;
1141 bool _result;
1142 wxImage * _arg0;
1143 wxString * _arg1;
2d091820
RD
1144 long _arg2 = (long ) wxBITMAP_TYPE_PNG;
1145 PyObject * _argo0 = 0;
ab9bc19b 1146 PyObject * _obj1 = 0;
107e4716 1147 char *_kwnames[] = { "self","name","type", NULL };
ab9bc19b
RD
1148
1149 self = self;
107e4716 1150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|l:wxImage_LoadFile",_kwnames,&_argo0,&_obj1,&_arg2))
ab9bc19b 1151 return NULL;
2d091820
RD
1152 if (_argo0) {
1153 if (_argo0 == Py_None) { _arg0 = NULL; }
1154 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
ab9bc19b
RD
1155 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_LoadFile. Expected _wxImage_p.");
1156 return NULL;
1157 }
1158 }
1159{
1160 if (!PyString_Check(_obj1)) {
1161 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1162 return NULL;
1163 }
1164 _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
1165}
1166{
1167 wxPy_BEGIN_ALLOW_THREADS;
1168 _result = (bool )wxImage_LoadFile(_arg0,*_arg1,_arg2);
1169
1170 wxPy_END_ALLOW_THREADS;
1171} _resultobj = Py_BuildValue("i",_result);
1172{
1173 if (_obj1)
1174 delete _arg1;
1175}
1176 return _resultobj;
1177}
1178
1179#define wxImage_LoadMimeFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1))
107e4716 1180static PyObject *_wrap_wxImage_LoadMimeFile(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
1181 PyObject * _resultobj;
1182 bool _result;
1183 wxImage * _arg0;
1184 wxString * _arg1;
1185 wxString * _arg2;
2d091820 1186 PyObject * _argo0 = 0;
ab9bc19b
RD
1187 PyObject * _obj1 = 0;
1188 PyObject * _obj2 = 0;
107e4716 1189 char *_kwnames[] = { "self","name","mimetype", NULL };
ab9bc19b
RD
1190
1191 self = self;
107e4716 1192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxImage_LoadMimeFile",_kwnames,&_argo0,&_obj1,&_obj2))
ab9bc19b 1193 return NULL;
2d091820
RD
1194 if (_argo0) {
1195 if (_argo0 == Py_None) { _arg0 = NULL; }
1196 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
ab9bc19b
RD
1197 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_LoadMimeFile. Expected _wxImage_p.");
1198 return NULL;
1199 }
1200 }
1201{
1202 if (!PyString_Check(_obj1)) {
1203 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1204 return NULL;
1205 }
1206 _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
1207}
1208{
1209 if (!PyString_Check(_obj2)) {
1210 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1211 return NULL;
1212 }
1213 _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2));
1214}
1215{
1216 wxPy_BEGIN_ALLOW_THREADS;
1217 _result = (bool )wxImage_LoadMimeFile(_arg0,*_arg1,*_arg2);
1218
1219 wxPy_END_ALLOW_THREADS;
1220} _resultobj = Py_BuildValue("i",_result);
1221{
1222 if (_obj1)
1223 delete _arg1;
1224}
1225{
1226 if (_obj2)
1227 delete _arg2;
1228}
1229 return _resultobj;
1230}
1231
1232#define wxImage_SaveFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->SaveFile(_swigarg0,_swigarg1))
107e4716 1233static PyObject *_wrap_wxImage_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
1234 PyObject * _resultobj;
1235 bool _result;
1236 wxImage * _arg0;
1237 wxString * _arg1;
1238 int _arg2;
2d091820 1239 PyObject * _argo0 = 0;
ab9bc19b 1240 PyObject * _obj1 = 0;
107e4716 1241 char *_kwnames[] = { "self","name","type", NULL };
ab9bc19b
RD
1242
1243 self = self;
107e4716 1244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxImage_SaveFile",_kwnames,&_argo0,&_obj1,&_arg2))
ab9bc19b 1245 return NULL;
2d091820
RD
1246 if (_argo0) {
1247 if (_argo0 == Py_None) { _arg0 = NULL; }
1248 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
ab9bc19b
RD
1249 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_SaveFile. Expected _wxImage_p.");
1250 return NULL;
1251 }
1252 }
1253{
1254 if (!PyString_Check(_obj1)) {
1255 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1256 return NULL;
1257 }
1258 _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
1259}
1260{
1261 wxPy_BEGIN_ALLOW_THREADS;
1262 _result = (bool )wxImage_SaveFile(_arg0,*_arg1,_arg2);
1263
1264 wxPy_END_ALLOW_THREADS;
1265} _resultobj = Py_BuildValue("i",_result);
1266{
1267 if (_obj1)
1268 delete _arg1;
1269}
1270 return _resultobj;
1271}
1272
1273#define wxImage_SaveMimeFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->SaveFile(_swigarg0,_swigarg1))
107e4716 1274static PyObject *_wrap_wxImage_SaveMimeFile(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
1275 PyObject * _resultobj;
1276 bool _result;
1277 wxImage * _arg0;
1278 wxString * _arg1;
1279 wxString * _arg2;
2d091820 1280 PyObject * _argo0 = 0;
ab9bc19b
RD
1281 PyObject * _obj1 = 0;
1282 PyObject * _obj2 = 0;
107e4716 1283 char *_kwnames[] = { "self","name","mimetype", NULL };
ab9bc19b
RD
1284
1285 self = self;
107e4716 1286 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxImage_SaveMimeFile",_kwnames,&_argo0,&_obj1,&_obj2))
ab9bc19b 1287 return NULL;
2d091820
RD
1288 if (_argo0) {
1289 if (_argo0 == Py_None) { _arg0 = NULL; }
1290 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
ab9bc19b
RD
1291 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_SaveMimeFile. Expected _wxImage_p.");
1292 return NULL;
1293 }
1294 }
1295{
1296 if (!PyString_Check(_obj1)) {
1297 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1298 return NULL;
1299 }
1300 _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
1301}
1302{
1303 if (!PyString_Check(_obj2)) {
1304 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1305 return NULL;
1306 }
1307 _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2));
1308}
1309{
1310 wxPy_BEGIN_ALLOW_THREADS;
1311 _result = (bool )wxImage_SaveMimeFile(_arg0,*_arg1,*_arg2);
1312
1313 wxPy_END_ALLOW_THREADS;
1314} _resultobj = Py_BuildValue("i",_result);
1315{
1316 if (_obj1)
1317 delete _arg1;
1318}
1319{
1320 if (_obj2)
1321 delete _arg2;
1322}
1323 return _resultobj;
1324}
1325
1326#define wxImage_Ok(_swigobj) (_swigobj->Ok())
107e4716 1327static PyObject *_wrap_wxImage_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
1328 PyObject * _resultobj;
1329 bool _result;
1330 wxImage * _arg0;
2d091820 1331 PyObject * _argo0 = 0;
107e4716 1332 char *_kwnames[] = { "self", NULL };
ab9bc19b
RD
1333
1334 self = self;
107e4716 1335 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImage_Ok",_kwnames,&_argo0))
ab9bc19b 1336 return NULL;
2d091820
RD
1337 if (_argo0) {
1338 if (_argo0 == Py_None) { _arg0 = NULL; }
1339 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
ab9bc19b
RD
1340 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_Ok. Expected _wxImage_p.");
1341 return NULL;
1342 }
1343 }
1344{
1345 wxPy_BEGIN_ALLOW_THREADS;
1346 _result = (bool )wxImage_Ok(_arg0);
1347
1348 wxPy_END_ALLOW_THREADS;
1349} _resultobj = Py_BuildValue("i",_result);
1350 return _resultobj;
1351}
1352
1353#define wxImage_GetWidth(_swigobj) (_swigobj->GetWidth())
107e4716 1354static PyObject *_wrap_wxImage_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
1355 PyObject * _resultobj;
1356 int _result;
1357 wxImage * _arg0;
2d091820 1358 PyObject * _argo0 = 0;
107e4716 1359 char *_kwnames[] = { "self", NULL };
ab9bc19b
RD
1360
1361 self = self;
107e4716 1362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImage_GetWidth",_kwnames,&_argo0))
ab9bc19b 1363 return NULL;
2d091820
RD
1364 if (_argo0) {
1365 if (_argo0 == Py_None) { _arg0 = NULL; }
1366 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
ab9bc19b
RD
1367 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_GetWidth. Expected _wxImage_p.");
1368 return NULL;
1369 }
1370 }
1371{
1372 wxPy_BEGIN_ALLOW_THREADS;
1373 _result = (int )wxImage_GetWidth(_arg0);
1374
1375 wxPy_END_ALLOW_THREADS;
1376} _resultobj = Py_BuildValue("i",_result);
1377 return _resultobj;
1378}
1379
1380#define wxImage_GetHeight(_swigobj) (_swigobj->GetHeight())
107e4716 1381static PyObject *_wrap_wxImage_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
1382 PyObject * _resultobj;
1383 int _result;
1384 wxImage * _arg0;
2d091820 1385 PyObject * _argo0 = 0;
107e4716 1386 char *_kwnames[] = { "self", NULL };
ab9bc19b
RD
1387
1388 self = self;
107e4716 1389 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImage_GetHeight",_kwnames,&_argo0))
ab9bc19b 1390 return NULL;
2d091820
RD
1391 if (_argo0) {
1392 if (_argo0 == Py_None) { _arg0 = NULL; }
1393 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
ab9bc19b
RD
1394 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_GetHeight. Expected _wxImage_p.");
1395 return NULL;
1396 }
1397 }
1398{
1399 wxPy_BEGIN_ALLOW_THREADS;
1400 _result = (int )wxImage_GetHeight(_arg0);
1401
1402 wxPy_END_ALLOW_THREADS;
1403} _resultobj = Py_BuildValue("i",_result);
1404 return _resultobj;
1405}
1406
f078d013
RD
1407#define wxImage_GetSubImage(_swigobj,_swigarg0) (_swigobj->GetSubImage(_swigarg0))
1408static PyObject *_wrap_wxImage_GetSubImage(PyObject *self, PyObject *args, PyObject *kwargs) {
1409 PyObject * _resultobj;
1410 wxImage * _result;
1411 wxImage * _arg0;
1412 wxRect * _arg1;
1413 PyObject * _argo0 = 0;
1414 wxRect temp;
1415 PyObject * _obj1 = 0;
1416 char *_kwnames[] = { "self","rect", NULL };
1417 char _ptemp[128];
1418
1419 self = self;
1420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxImage_GetSubImage",_kwnames,&_argo0,&_obj1))
1421 return NULL;
1422 if (_argo0) {
1423 if (_argo0 == Py_None) { _arg0 = NULL; }
1424 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
1425 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_GetSubImage. Expected _wxImage_p.");
1426 return NULL;
1427 }
1428 }
1429{
1430 _arg1 = &temp;
1431 if (! wxRect_helper(_obj1, &_arg1))
1432 return NULL;
1433}
1434{
1435 wxPy_BEGIN_ALLOW_THREADS;
1436 _result = new wxImage (wxImage_GetSubImage(_arg0,*_arg1));
1437
1438 wxPy_END_ALLOW_THREADS;
1439} SWIG_MakePtr(_ptemp, (void *) _result,"_wxImage_p");
1440 _resultobj = Py_BuildValue("s",_ptemp);
1441 return _resultobj;
1442}
1443
3f0be3ec
RD
1444static PyObject * wxImage_GetData(wxImage *self) {
1445 unsigned char* data = self->GetData();
1446 int len = self->GetWidth() * self->GetHeight() * 3;
1447 return PyString_FromStringAndSize((char*)data, len);
1448 }
107e4716 1449static PyObject *_wrap_wxImage_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b 1450 PyObject * _resultobj;
3f0be3ec 1451 PyObject * _result;
ab9bc19b 1452 wxImage * _arg0;
2d091820 1453 PyObject * _argo0 = 0;
107e4716 1454 char *_kwnames[] = { "self", NULL };
ab9bc19b
RD
1455
1456 self = self;
107e4716 1457 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImage_GetData",_kwnames,&_argo0))
ab9bc19b 1458 return NULL;
2d091820
RD
1459 if (_argo0) {
1460 if (_argo0 == Py_None) { _arg0 = NULL; }
1461 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
ab9bc19b
RD
1462 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_GetData. Expected _wxImage_p.");
1463 return NULL;
1464 }
1465 }
1466{
1467 wxPy_BEGIN_ALLOW_THREADS;
3f0be3ec 1468 _result = (PyObject *)wxImage_GetData(_arg0);
ab9bc19b
RD
1469
1470 wxPy_END_ALLOW_THREADS;
3f0be3ec
RD
1471}{
1472 _resultobj = _result;
1473}
ab9bc19b
RD
1474 return _resultobj;
1475}
1476
3f0be3ec
RD
1477static void wxImage_SetData(wxImage *self,PyObject * data) {
1478 unsigned char* dataPtr;
1479
1480 if (! PyString_Check(data)) {
1481 PyErr_SetString(PyExc_TypeError, "Expected string object");
1482 return /* NULL */ ;
1483 }
f078d013
RD
1484
1485 size_t len = self->GetWidth() * self->GetHeight() * 3;
1486 dataPtr = new unsigned char[len];
1487 memcpy(dataPtr, PyString_AsString(data), len);
3f0be3ec
RD
1488 self->SetData(dataPtr);
1489 }
107e4716 1490static PyObject *_wrap_wxImage_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
1491 PyObject * _resultobj;
1492 wxImage * _arg0;
3f0be3ec 1493 PyObject * _arg1;
2d091820 1494 PyObject * _argo0 = 0;
3f0be3ec 1495 PyObject * _obj1 = 0;
107e4716 1496 char *_kwnames[] = { "self","data", NULL };
ab9bc19b
RD
1497
1498 self = self;
107e4716 1499 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxImage_SetData",_kwnames,&_argo0,&_obj1))
ab9bc19b 1500 return NULL;
2d091820
RD
1501 if (_argo0) {
1502 if (_argo0 == Py_None) { _arg0 = NULL; }
1503 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
ab9bc19b
RD
1504 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_SetData. Expected _wxImage_p.");
1505 return NULL;
1506 }
1507 }
3f0be3ec
RD
1508{
1509 _arg1 = _obj1;
1510}
ab9bc19b
RD
1511{
1512 wxPy_BEGIN_ALLOW_THREADS;
1513 wxImage_SetData(_arg0,_arg1);
1514
1515 wxPy_END_ALLOW_THREADS;
1516} Py_INCREF(Py_None);
1517 _resultobj = Py_None;
1518 return _resultobj;
1519}
1520
1521#define wxImage_SetMaskColour(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetMaskColour(_swigarg0,_swigarg1,_swigarg2))
107e4716 1522static PyObject *_wrap_wxImage_SetMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
1523 PyObject * _resultobj;
1524 wxImage * _arg0;
1525 unsigned char _arg1;
1526 unsigned char _arg2;
1527 unsigned char _arg3;
2d091820 1528 PyObject * _argo0 = 0;
107e4716 1529 char *_kwnames[] = { "self","r","g","b", NULL };
ab9bc19b
RD
1530
1531 self = self;
107e4716 1532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Obbb:wxImage_SetMaskColour",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
ab9bc19b 1533 return NULL;
2d091820
RD
1534 if (_argo0) {
1535 if (_argo0 == Py_None) { _arg0 = NULL; }
1536 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
ab9bc19b
RD
1537 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_SetMaskColour. Expected _wxImage_p.");
1538 return NULL;
1539 }
1540 }
1541{
1542 wxPy_BEGIN_ALLOW_THREADS;
1543 wxImage_SetMaskColour(_arg0,_arg1,_arg2,_arg3);
1544
1545 wxPy_END_ALLOW_THREADS;
1546} Py_INCREF(Py_None);
1547 _resultobj = Py_None;
1548 return _resultobj;
1549}
1550
1551#define wxImage_GetMaskRed(_swigobj) (_swigobj->GetMaskRed())
107e4716 1552static PyObject *_wrap_wxImage_GetMaskRed(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
1553 PyObject * _resultobj;
1554 unsigned char _result;
1555 wxImage * _arg0;
2d091820 1556 PyObject * _argo0 = 0;
107e4716 1557 char *_kwnames[] = { "self", NULL };
ab9bc19b
RD
1558
1559 self = self;
107e4716 1560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImage_GetMaskRed",_kwnames,&_argo0))
ab9bc19b 1561 return NULL;
2d091820
RD
1562 if (_argo0) {
1563 if (_argo0 == Py_None) { _arg0 = NULL; }
1564 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
ab9bc19b
RD
1565 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_GetMaskRed. Expected _wxImage_p.");
1566 return NULL;
1567 }
1568 }
1569{
1570 wxPy_BEGIN_ALLOW_THREADS;
1571 _result = (unsigned char )wxImage_GetMaskRed(_arg0);
1572
1573 wxPy_END_ALLOW_THREADS;
1574} _resultobj = Py_BuildValue("b",_result);
1575 return _resultobj;
1576}
1577
1578#define wxImage_GetMaskGreen(_swigobj) (_swigobj->GetMaskGreen())
107e4716 1579static PyObject *_wrap_wxImage_GetMaskGreen(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
1580 PyObject * _resultobj;
1581 unsigned char _result;
1582 wxImage * _arg0;
2d091820 1583 PyObject * _argo0 = 0;
107e4716 1584 char *_kwnames[] = { "self", NULL };
ab9bc19b
RD
1585
1586 self = self;
107e4716 1587 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImage_GetMaskGreen",_kwnames,&_argo0))
ab9bc19b 1588 return NULL;
2d091820
RD
1589 if (_argo0) {
1590 if (_argo0 == Py_None) { _arg0 = NULL; }
1591 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
ab9bc19b
RD
1592 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_GetMaskGreen. Expected _wxImage_p.");
1593 return NULL;
1594 }
1595 }
1596{
1597 wxPy_BEGIN_ALLOW_THREADS;
1598 _result = (unsigned char )wxImage_GetMaskGreen(_arg0);
1599
1600 wxPy_END_ALLOW_THREADS;
1601} _resultobj = Py_BuildValue("b",_result);
1602 return _resultobj;
1603}
1604
1605#define wxImage_GetMaskBlue(_swigobj) (_swigobj->GetMaskBlue())
107e4716 1606static PyObject *_wrap_wxImage_GetMaskBlue(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
1607 PyObject * _resultobj;
1608 unsigned char _result;
1609 wxImage * _arg0;
2d091820 1610 PyObject * _argo0 = 0;
107e4716 1611 char *_kwnames[] = { "self", NULL };
ab9bc19b
RD
1612
1613 self = self;
107e4716 1614 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImage_GetMaskBlue",_kwnames,&_argo0))
ab9bc19b 1615 return NULL;
2d091820
RD
1616 if (_argo0) {
1617 if (_argo0 == Py_None) { _arg0 = NULL; }
1618 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
ab9bc19b
RD
1619 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_GetMaskBlue. Expected _wxImage_p.");
1620 return NULL;
1621 }
1622 }
1623{
1624 wxPy_BEGIN_ALLOW_THREADS;
1625 _result = (unsigned char )wxImage_GetMaskBlue(_arg0);
1626
1627 wxPy_END_ALLOW_THREADS;
1628} _resultobj = Py_BuildValue("b",_result);
1629 return _resultobj;
1630}
1631
1632#define wxImage_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0))
107e4716 1633static PyObject *_wrap_wxImage_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
1634 PyObject * _resultobj;
1635 wxImage * _arg0;
2d091820
RD
1636 bool _arg1 = (bool ) TRUE;
1637 PyObject * _argo0 = 0;
1638 int tempbool1 = (int) TRUE;
107e4716 1639 char *_kwnames[] = { "self","mask", NULL };
ab9bc19b
RD
1640
1641 self = self;
107e4716 1642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxImage_SetMask",_kwnames,&_argo0,&tempbool1))
ab9bc19b 1643 return NULL;
2d091820
RD
1644 if (_argo0) {
1645 if (_argo0 == Py_None) { _arg0 = NULL; }
1646 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
ab9bc19b
RD
1647 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_SetMask. Expected _wxImage_p.");
1648 return NULL;
1649 }
1650 }
1651 _arg1 = (bool ) tempbool1;
1652{
1653 wxPy_BEGIN_ALLOW_THREADS;
1654 wxImage_SetMask(_arg0,_arg1);
1655
1656 wxPy_END_ALLOW_THREADS;
1657} Py_INCREF(Py_None);
1658 _resultobj = Py_None;
1659 return _resultobj;
1660}
1661
1662#define wxImage_HasMask(_swigobj) (_swigobj->HasMask())
107e4716 1663static PyObject *_wrap_wxImage_HasMask(PyObject *self, PyObject *args, PyObject *kwargs) {
ab9bc19b
RD
1664 PyObject * _resultobj;
1665 bool _result;
1666 wxImage * _arg0;
2d091820 1667 PyObject * _argo0 = 0;
107e4716 1668 char *_kwnames[] = { "self", NULL };
ab9bc19b
RD
1669
1670 self = self;
107e4716 1671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImage_HasMask",_kwnames,&_argo0))
ab9bc19b 1672 return NULL;
2d091820
RD
1673 if (_argo0) {
1674 if (_argo0 == Py_None) { _arg0 = NULL; }
1675 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
ab9bc19b
RD
1676 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_HasMask. Expected _wxImage_p.");
1677 return NULL;
1678 }
1679 }
1680{
1681 wxPy_BEGIN_ALLOW_THREADS;
1682 _result = (bool )wxImage_HasMask(_arg0);
1683
1684 wxPy_END_ALLOW_THREADS;
1685} _resultobj = Py_BuildValue("i",_result);
1686 return _resultobj;
1687}
1688
1689static PyMethodDef imagecMethods[] = {
107e4716
RD
1690 { "wxImage_HasMask", (PyCFunction) _wrap_wxImage_HasMask, METH_VARARGS | METH_KEYWORDS },
1691 { "wxImage_SetMask", (PyCFunction) _wrap_wxImage_SetMask, METH_VARARGS | METH_KEYWORDS },
1692 { "wxImage_GetMaskBlue", (PyCFunction) _wrap_wxImage_GetMaskBlue, METH_VARARGS | METH_KEYWORDS },
1693 { "wxImage_GetMaskGreen", (PyCFunction) _wrap_wxImage_GetMaskGreen, METH_VARARGS | METH_KEYWORDS },
1694 { "wxImage_GetMaskRed", (PyCFunction) _wrap_wxImage_GetMaskRed, METH_VARARGS | METH_KEYWORDS },
1695 { "wxImage_SetMaskColour", (PyCFunction) _wrap_wxImage_SetMaskColour, METH_VARARGS | METH_KEYWORDS },
1696 { "wxImage_SetData", (PyCFunction) _wrap_wxImage_SetData, METH_VARARGS | METH_KEYWORDS },
1697 { "wxImage_GetData", (PyCFunction) _wrap_wxImage_GetData, METH_VARARGS | METH_KEYWORDS },
f078d013 1698 { "wxImage_GetSubImage", (PyCFunction) _wrap_wxImage_GetSubImage, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
1699 { "wxImage_GetHeight", (PyCFunction) _wrap_wxImage_GetHeight, METH_VARARGS | METH_KEYWORDS },
1700 { "wxImage_GetWidth", (PyCFunction) _wrap_wxImage_GetWidth, METH_VARARGS | METH_KEYWORDS },
1701 { "wxImage_Ok", (PyCFunction) _wrap_wxImage_Ok, METH_VARARGS | METH_KEYWORDS },
1702 { "wxImage_SaveMimeFile", (PyCFunction) _wrap_wxImage_SaveMimeFile, METH_VARARGS | METH_KEYWORDS },
1703 { "wxImage_SaveFile", (PyCFunction) _wrap_wxImage_SaveFile, METH_VARARGS | METH_KEYWORDS },
1704 { "wxImage_LoadMimeFile", (PyCFunction) _wrap_wxImage_LoadMimeFile, METH_VARARGS | METH_KEYWORDS },
1705 { "wxImage_LoadFile", (PyCFunction) _wrap_wxImage_LoadFile, METH_VARARGS | METH_KEYWORDS },
1706 { "wxImage_GetBlue", (PyCFunction) _wrap_wxImage_GetBlue, METH_VARARGS | METH_KEYWORDS },
1707 { "wxImage_GetGreen", (PyCFunction) _wrap_wxImage_GetGreen, METH_VARARGS | METH_KEYWORDS },
1708 { "wxImage_GetRed", (PyCFunction) _wrap_wxImage_GetRed, METH_VARARGS | METH_KEYWORDS },
1709 { "wxImage_SetRGB", (PyCFunction) _wrap_wxImage_SetRGB, METH_VARARGS | METH_KEYWORDS },
1710 { "wxImage_Rescale", (PyCFunction) _wrap_wxImage_Rescale, METH_VARARGS | METH_KEYWORDS },
1711 { "wxImage_Scale", (PyCFunction) _wrap_wxImage_Scale, METH_VARARGS | METH_KEYWORDS },
1712 { "wxImage_Destroy", (PyCFunction) _wrap_wxImage_Destroy, METH_VARARGS | METH_KEYWORDS },
1713 { "wxImage_Create", (PyCFunction) _wrap_wxImage_Create, METH_VARARGS | METH_KEYWORDS },
1714 { "wxImage_ConvertToBitmap", (PyCFunction) _wrap_wxImage_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS },
1715 { "delete_wxImage", (PyCFunction) _wrap_delete_wxImage, METH_VARARGS | METH_KEYWORDS },
1716 { "new_wxImage", (PyCFunction) _wrap_new_wxImage, METH_VARARGS | METH_KEYWORDS },
ab2208b5 1717 { "new_wxTIFFHandler", (PyCFunction) _wrap_new_wxTIFFHandler, METH_VARARGS | METH_KEYWORDS },
bc29c5e0
RD
1718 { "new_wxPCXHandler", (PyCFunction) _wrap_new_wxPCXHandler, METH_VARARGS | METH_KEYWORDS },
1719 { "new_wxPNMHandler", (PyCFunction) _wrap_new_wxPNMHandler, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
1720 { "new_wxGIFHandler", (PyCFunction) _wrap_new_wxGIFHandler, METH_VARARGS | METH_KEYWORDS },
1721 { "new_wxBMPHandler", (PyCFunction) _wrap_new_wxBMPHandler, METH_VARARGS | METH_KEYWORDS },
1722 { "new_wxJPEGHandler", (PyCFunction) _wrap_new_wxJPEGHandler, METH_VARARGS | METH_KEYWORDS },
1723 { "new_wxPNGHandler", (PyCFunction) _wrap_new_wxPNGHandler, METH_VARARGS | METH_KEYWORDS },
1724 { "wxImageHandler_SetMimeType", (PyCFunction) _wrap_wxImageHandler_SetMimeType, METH_VARARGS | METH_KEYWORDS },
1725 { "wxImageHandler_SetType", (PyCFunction) _wrap_wxImageHandler_SetType, METH_VARARGS | METH_KEYWORDS },
1726 { "wxImageHandler_SetExtension", (PyCFunction) _wrap_wxImageHandler_SetExtension, METH_VARARGS | METH_KEYWORDS },
1727 { "wxImageHandler_SetName", (PyCFunction) _wrap_wxImageHandler_SetName, METH_VARARGS | METH_KEYWORDS },
1728 { "wxImageHandler_GetMimeType", (PyCFunction) _wrap_wxImageHandler_GetMimeType, METH_VARARGS | METH_KEYWORDS },
1729 { "wxImageHandler_GetType", (PyCFunction) _wrap_wxImageHandler_GetType, METH_VARARGS | METH_KEYWORDS },
1730 { "wxImageHandler_GetExtension", (PyCFunction) _wrap_wxImageHandler_GetExtension, METH_VARARGS | METH_KEYWORDS },
1731 { "wxImageHandler_GetName", (PyCFunction) _wrap_wxImageHandler_GetName, METH_VARARGS | METH_KEYWORDS },
bc29c5e0 1732 { "wxInitAllImageHandlers", (PyCFunction) _wrap_wxInitAllImageHandlers, METH_VARARGS | METH_KEYWORDS },
107e4716
RD
1733 { "wxImage_AddHandler", (PyCFunction) _wrap_wxImage_AddHandler, METH_VARARGS | METH_KEYWORDS },
1734 { "wxImageFromBitmap", (PyCFunction) _wrap_wxImageFromBitmap, METH_VARARGS | METH_KEYWORDS },
1735 { "wxImageFromMime", (PyCFunction) _wrap_wxImageFromMime, METH_VARARGS | METH_KEYWORDS },
1736 { "wxEmptyImage", (PyCFunction) _wrap_wxEmptyImage, METH_VARARGS | METH_KEYWORDS },
1737 { "wxNullImage", (PyCFunction) _wrap_wxNullImage, METH_VARARGS | METH_KEYWORDS },
ab9bc19b
RD
1738 { NULL, NULL }
1739};
2d091820
RD
1740#ifdef __cplusplus
1741}
1742#endif
1743/*
1744 * This table is used by the pointer type-checker
1745 */
1746static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
1747 { "_wxAcceleratorTable","_class_wxAcceleratorTable",0},
1748 { "_signed_long","_long",0},
1749 { "_class_wxJPEGHandler","_wxJPEGHandler",0},
1750 { "_wxBMPHandler","_class_wxBMPHandler",0},
1751 { "_wxImage","_class_wxImage",0},
4120ef2b 1752 { "_wxPrintQuality","_wxCoord",0},
2d091820
RD
1753 { "_wxPrintQuality","_int",0},
1754 { "_wxPrintQuality","_signed_int",0},
1755 { "_wxPrintQuality","_unsigned_int",0},
1756 { "_wxPrintQuality","_wxWindowID",0},
1757 { "_wxPrintQuality","_uint",0},
1758 { "_wxPrintQuality","_EBool",0},
1759 { "_wxPrintQuality","_size_t",0},
1760 { "_class_wxRegionIterator","_wxRegionIterator",0},
1761 { "_wxGIFHandler","_class_wxGIFHandler",0},
1762 { "_wxIndividualLayoutConstraint","_class_wxIndividualLayoutConstraint",0},
1763 { "_wxCursor","_class_wxCursor",0},
ab2208b5
RD
1764 { "_wxImageHandler","_class_wxTIFFHandler",SwigwxTIFFHandlerTowxImageHandler},
1765 { "_wxImageHandler","_wxTIFFHandler",SwigwxTIFFHandlerTowxImageHandler},
bc29c5e0
RD
1766 { "_wxImageHandler","_class_wxPCXHandler",SwigwxPCXHandlerTowxImageHandler},
1767 { "_wxImageHandler","_wxPCXHandler",SwigwxPCXHandlerTowxImageHandler},
1768 { "_wxImageHandler","_class_wxPNMHandler",SwigwxPNMHandlerTowxImageHandler},
1769 { "_wxImageHandler","_wxPNMHandler",SwigwxPNMHandlerTowxImageHandler},
2d091820
RD
1770 { "_wxImageHandler","_class_wxGIFHandler",SwigwxGIFHandlerTowxImageHandler},
1771 { "_wxImageHandler","_wxGIFHandler",SwigwxGIFHandlerTowxImageHandler},
1772 { "_wxImageHandler","_class_wxBMPHandler",SwigwxBMPHandlerTowxImageHandler},
1773 { "_wxImageHandler","_wxBMPHandler",SwigwxBMPHandlerTowxImageHandler},
1774 { "_wxImageHandler","_class_wxJPEGHandler",SwigwxJPEGHandlerTowxImageHandler},
1775 { "_wxImageHandler","_wxJPEGHandler",SwigwxJPEGHandlerTowxImageHandler},
1776 { "_wxImageHandler","_class_wxPNGHandler",SwigwxPNGHandlerTowxImageHandler},
1777 { "_wxImageHandler","_wxPNGHandler",SwigwxPNGHandlerTowxImageHandler},
1778 { "_wxImageHandler","_class_wxImageHandler",0},
1779 { "_wxMask","_class_wxMask",0},
1780 { "_wxPNGHandler","_class_wxPNGHandler",0},
1781 { "_wxPen","_class_wxPen",0},
1782 { "_byte","_unsigned_char",0},
2d091820
RD
1783 { "_long","_unsigned_long",0},
1784 { "_long","_signed_long",0},
1785 { "_wxImageList","_class_wxImageList",0},
ab2208b5 1786 { "_class_wxTIFFHandler","_wxTIFFHandler",0},
2d091820
RD
1787 { "_class_wxAcceleratorTable","_wxAcceleratorTable",0},
1788 { "_wxDC","_class_wxDC",0},
1789 { "_class_wxBMPHandler","_wxBMPHandler",0},
4120ef2b 1790 { "_size_t","_wxCoord",0},
2d091820
RD
1791 { "_size_t","_wxPrintQuality",0},
1792 { "_size_t","_unsigned_int",0},
1793 { "_size_t","_int",0},
1794 { "_size_t","_wxWindowID",0},
1795 { "_size_t","_uint",0},
1796 { "_class_wxRealPoint","_wxRealPoint",0},
bc29c5e0 1797 { "_wxPNMHandler","_class_wxPNMHandler",0},
2d091820
RD
1798 { "_class_wxGIFHandler","_wxGIFHandler",0},
1799 { "_class_wxPostScriptDC","_wxPostScriptDC",0},
1800 { "_class_wxMask","_wxMask",0},
1801 { "_class_wxPNGHandler","_wxPNGHandler",0},
1802 { "_wxColour","_class_wxColour",0},
1803 { "_wxBrush","_class_wxBrush",0},
4120ef2b 1804 { "_uint","_wxCoord",0},
2d091820
RD
1805 { "_uint","_wxPrintQuality",0},
1806 { "_uint","_size_t",0},
1807 { "_uint","_unsigned_int",0},
1808 { "_uint","_int",0},
1809 { "_uint","_wxWindowID",0},
1810 { "_wxRect","_class_wxRect",0},
1811 { "_class_wxImage","_wxImage",0},
1812 { "_wxPoint","_class_wxPoint",0},
bc29c5e0 1813 { "_class_wxPNMHandler","_wxPNMHandler",0},
2d091820 1814 { "_wxBitmap","_class_wxBitmap",0},
56f5d962 1815 { "_char","_wxDash",0},
2d091820
RD
1816 { "_wxPyTimer","_class_wxPyTimer",0},
1817 { "_wxWindowDC","_class_wxWindowDC",0},
1818 { "_class_wxIndividualLayoutConstraint","_wxIndividualLayoutConstraint",0},
4120ef2b 1819 { "_EBool","_wxCoord",0},
2d091820
RD
1820 { "_EBool","_wxPrintQuality",0},
1821 { "_EBool","_signed_int",0},
1822 { "_EBool","_int",0},
1823 { "_EBool","_wxWindowID",0},
1824 { "_class_wxRegion","_wxRegion",0},
1825 { "_wxFont","_class_wxFont",0},
2d091820
RD
1826 { "_unsigned_long","_long",0},
1827 { "_class_wxRect","_wxRect",0},
1828 { "_class_wxDC","_wxDC",0},
1829 { "_class_wxPyTimer","_wxPyTimer",0},
1830 { "_wxAcceleratorEntry","_class_wxAcceleratorEntry",0},
4120ef2b 1831 { "_signed_int","_wxCoord",0},
2d091820
RD
1832 { "_signed_int","_wxPrintQuality",0},
1833 { "_signed_int","_EBool",0},
1834 { "_signed_int","_wxWindowID",0},
1835 { "_signed_int","_int",0},
1836 { "_wxLayoutConstraints","_class_wxLayoutConstraints",0},
1837 { "_wxScreenDC","_class_wxScreenDC",0},
1838 { "_WXTYPE","_short",0},
1839 { "_WXTYPE","_signed_short",0},
1840 { "_WXTYPE","_unsigned_short",0},
1841 { "_class_wxBrush","_wxBrush",0},
1842 { "_unsigned_short","_WXTYPE",0},
1843 { "_unsigned_short","_short",0},
1844 { "_class_wxFont","_wxFont",0},
4120ef2b 1845 { "_wxBusyInfo","_class_wxBusyInfo",0},
2d091820
RD
1846 { "_wxClientDC","_class_wxClientDC",0},
1847 { "_class_wxPoint","_wxPoint",0},
1848 { "_wxRealPoint","_class_wxRealPoint",0},
1849 { "_signed_short","_WXTYPE",0},
1850 { "_signed_short","_short",0},
1851 { "_wxMemoryDC","_class_wxMemoryDC",0},
1852 { "_wxPaintDC","_class_wxPaintDC",0},
1853 { "_class_wxWindowDC","_wxWindowDC",0},
1854 { "_class_wxAcceleratorEntry","_wxAcceleratorEntry",0},
1855 { "_class_wxCursor","_wxCursor",0},
1856 { "_wxPostScriptDC","_class_wxPostScriptDC",0},
ab2208b5
RD
1857 { "_class_wxImageHandler","_class_wxTIFFHandler",SwigwxTIFFHandlerTowxImageHandler},
1858 { "_class_wxImageHandler","_wxTIFFHandler",SwigwxTIFFHandlerTowxImageHandler},
bc29c5e0
RD
1859 { "_class_wxImageHandler","_class_wxPCXHandler",SwigwxPCXHandlerTowxImageHandler},
1860 { "_class_wxImageHandler","_wxPCXHandler",SwigwxPCXHandlerTowxImageHandler},
1861 { "_class_wxImageHandler","_class_wxPNMHandler",SwigwxPNMHandlerTowxImageHandler},
1862 { "_class_wxImageHandler","_wxPNMHandler",SwigwxPNMHandlerTowxImageHandler},
2d091820
RD
1863 { "_class_wxImageHandler","_class_wxGIFHandler",SwigwxGIFHandlerTowxImageHandler},
1864 { "_class_wxImageHandler","_wxGIFHandler",SwigwxGIFHandlerTowxImageHandler},
1865 { "_class_wxImageHandler","_class_wxBMPHandler",SwigwxBMPHandlerTowxImageHandler},
1866 { "_class_wxImageHandler","_wxBMPHandler",SwigwxBMPHandlerTowxImageHandler},
1867 { "_class_wxImageHandler","_class_wxJPEGHandler",SwigwxJPEGHandlerTowxImageHandler},
1868 { "_class_wxImageHandler","_wxJPEGHandler",SwigwxJPEGHandlerTowxImageHandler},
1869 { "_class_wxImageHandler","_class_wxPNGHandler",SwigwxPNGHandlerTowxImageHandler},
1870 { "_class_wxImageHandler","_wxPNGHandler",SwigwxPNGHandlerTowxImageHandler},
1871 { "_class_wxImageHandler","_wxImageHandler",0},
1872 { "_unsigned_char","_byte",0},
4120ef2b 1873 { "_unsigned_int","_wxCoord",0},
2d091820
RD
1874 { "_unsigned_int","_wxPrintQuality",0},
1875 { "_unsigned_int","_size_t",0},
1876 { "_unsigned_int","_uint",0},
1877 { "_unsigned_int","_wxWindowID",0},
1878 { "_unsigned_int","_int",0},
1879 { "_wxIcon","_class_wxIcon",0},
1880 { "_class_wxPen","_wxPen",0},
1881 { "_short","_WXTYPE",0},
1882 { "_short","_unsigned_short",0},
1883 { "_short","_signed_short",0},
1884 { "_class_wxImageList","_wxImageList",0},
bc29c5e0 1885 { "_wxPCXHandler","_class_wxPCXHandler",0},
2d091820 1886 { "_wxJPEGHandler","_class_wxJPEGHandler",0},
4120ef2b 1887 { "_wxWindowID","_wxCoord",0},
2d091820
RD
1888 { "_wxWindowID","_wxPrintQuality",0},
1889 { "_wxWindowID","_size_t",0},
1890 { "_wxWindowID","_EBool",0},
1891 { "_wxWindowID","_uint",0},
1892 { "_wxWindowID","_int",0},
1893 { "_wxWindowID","_signed_int",0},
1894 { "_wxWindowID","_unsigned_int",0},
4120ef2b 1895 { "_int","_wxCoord",0},
2d091820
RD
1896 { "_int","_wxPrintQuality",0},
1897 { "_int","_size_t",0},
1898 { "_int","_EBool",0},
1899 { "_int","_uint",0},
1900 { "_int","_wxWindowID",0},
1901 { "_int","_unsigned_int",0},
1902 { "_int","_signed_int",0},
1903 { "_wxSize","_class_wxSize",0},
1904 { "_wxRegionIterator","_class_wxRegionIterator",0},
1905 { "_class_wxPaintDC","_wxPaintDC",0},
1906 { "_class_wxLayoutConstraints","_wxLayoutConstraints",0},
1907 { "_class_wxIcon","_wxIcon",0},
1908 { "_class_wxColour","_wxColour",0},
1909 { "_class_wxScreenDC","_wxScreenDC",0},
1910 { "_wxPalette","_class_wxPalette",0},
4120ef2b
RD
1911 { "_wxCoord","_int",0},
1912 { "_wxCoord","_signed_int",0},
1913 { "_wxCoord","_unsigned_int",0},
1914 { "_wxCoord","_wxWindowID",0},
1915 { "_wxCoord","_uint",0},
1916 { "_wxCoord","_EBool",0},
1917 { "_wxCoord","_size_t",0},
1918 { "_wxCoord","_wxPrintQuality",0},
2d091820 1919 { "_wxRegion","_class_wxRegion",0},
bc29c5e0 1920 { "_class_wxPCXHandler","_wxPCXHandler",0},
ab2208b5 1921 { "_wxTIFFHandler","_class_wxTIFFHandler",0},
4120ef2b 1922 { "_class_wxBusyInfo","_wxBusyInfo",0},
2d091820
RD
1923 { "_class_wxClientDC","_wxClientDC",0},
1924 { "_class_wxSize","_wxSize",0},
1925 { "_class_wxBitmap","_wxBitmap",0},
1926 { "_class_wxMemoryDC","_wxMemoryDC",0},
56f5d962 1927 { "_wxDash","_char",0},
2d091820
RD
1928 { "_class_wxPalette","_wxPalette",0},
1929{0,0,0}};
1930
ab9bc19b
RD
1931static PyObject *SWIG_globals;
1932#ifdef __cplusplus
1933extern "C"
1934#endif
2d091820 1935SWIGEXPORT(void) initimagec() {
ab9bc19b
RD
1936 PyObject *m, *d;
1937 SWIG_globals = SWIG_newvarlink();
1938 m = Py_InitModule("imagec", imagecMethods);
1939 d = PyModule_GetDict(m);
2d091820
RD
1940{
1941 int i;
1942 for (i = 0; _swig_mapping[i].n1; i++)
1943 SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv);
1944}
ab9bc19b 1945}