]> git.saurik.com Git - wxWidgets.git/blame - utils/wxPython/src/msw/image.cpp
Better dependency checking
[wxWidgets.git] / utils / wxPython / src / msw / image.cpp
CommitLineData
cf694132
RD
1/*
2 * FILE : msw/image.cpp
3 *
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
efc5f224 6 * Version 1.1 (Build 794)
cf694132
RD
7 *
8 * Portions Copyright (c) 1995-1998
9 * The University of Utah and The Regents of the University of California.
10 * Permission is granted to distribute this file in any manner provided
11 * this notice remains intact.
12 *
13 * Do not make changes to this file--changes will be lost!
14 *
15 */
16
17
18#define SWIGCODE
19/* Implementation : PYTHON */
20
21#define SWIGPYTHON
22#include <string.h>
23#include <stdlib.h>
24/* Definitions for Windows/Unix exporting */
25#if defined(__WIN32__)
26# if defined(_MSC_VER)
1d99702e 27# define SWIGEXPORT(a) __declspec(dllexport) a
cf694132
RD
28# else
29# if defined(__BORLANDC__)
1d99702e 30# define SWIGEXPORT(a) a _export
cf694132 31# else
1d99702e 32# define SWIGEXPORT(a) a
cf694132
RD
33# endif
34# endif
35#else
1d99702e 36# define SWIGEXPORT(a) a
cf694132
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 *);
1d99702e 46extern char *SWIG_GetPtrObj(PyObject *, void **, char *);
cf694132
RD
47extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
48extern PyObject *SWIG_newvarlink(void);
49#ifdef __cplusplus
50}
51#endif
cf694132
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;
1d99702e
RD
61 PyObject* o3;
62 if (!target) {
cf694132 63 target = o;
1d99702e 64 } else if (target == Py_None) {
cf694132
RD
65 Py_DECREF(Py_None);
66 target = o;
1d99702e 67 } else {
cf694132
RD
68 if (!PyList_Check(target)) {
69 o2 = target;
70 target = PyList_New(0);
71 PyList_Append(target, o2);
72 Py_XDECREF(o2);
73 }
74 PyList_Append(target,o);
75 Py_XDECREF(o);
76 }
77 return target;
78}
79
80static PyObject* t_output_helper(PyObject* target, PyObject* o) {
81 PyObject* o2;
82 PyObject* o3;
83
1d99702e 84 if (!target) {
cf694132 85 target = o;
1d99702e 86 } else if (target == Py_None) {
cf694132
RD
87 Py_DECREF(Py_None);
88 target = o;
1d99702e 89 } else {
cf694132
RD
90 if (!PyTuple_Check(target)) {
91 o2 = target;
92 target = PyTuple_New(1);
93 PyTuple_SetItem(target, 0, o2);
94 }
1d99702e
RD
95 o3 = PyTuple_New(1);
96 PyTuple_SetItem(o3, 0, o);
cf694132
RD
97
98 o2 = target;
1d99702e
RD
99 target = PySequence_Concat(o2, o3);
100 Py_DECREF(o2);
cf694132
RD
101 Py_DECREF(o3);
102 }
103 return target;
104}
105
106
107extern byte* byte_LIST_helper(PyObject* source);
108extern int* int_LIST_helper(PyObject* source);
109extern long* long_LIST_helper(PyObject* source);
110extern char** string_LIST_helper(PyObject* source);
111extern wxPoint* wxPoint_LIST_helper(PyObject* source);
112extern wxBitmap** wxBitmap_LIST_helper(PyObject* source);
113extern wxString* wxString_LIST_helper(PyObject* source);
114extern wxAcceleratorEntry* wxAcceleratorEntry_LIST_helper(PyObject* source);
115
116
117static char* wxStringErrorMsg = "string type is required for parameter";
118
119 wxImage* wxNullImage() {
120 return new wxImage;
121 }
122
123 wxImage* wxEmptyImage(int width, int height) {
124 return new wxImage(width, height);
125 }
126
127 wxImage* wxImageFromMime(const wxString& name, const wxString& mimetype) {
128 return new wxImage(name, mimetype);
129 }
130
131 wxImage* wxImageFromBitmap(const wxBitmap &bitmap) {
132 return new wxImage(bitmap);
133 }
134
135 void wxImage_AddHandler(wxImageHandler *handler) {
136 wxImage::AddHandler(handler);
137 }
1d99702e
RD
138#ifdef __cplusplus
139extern "C" {
140#endif
efc5f224 141static PyObject *_wrap_wxNullImage(PyObject *self, PyObject *args, PyObject *kwargs) {
cf694132
RD
142 PyObject * _resultobj;
143 wxImage * _result;
efc5f224 144 char *_kwnames[] = { NULL };
cf694132
RD
145 char _ptemp[128];
146
147 self = self;
efc5f224 148 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxNullImage",_kwnames))
cf694132
RD
149 return NULL;
150{
151 wxPy_BEGIN_ALLOW_THREADS;
152 _result = (wxImage *)wxNullImage();
153
154 wxPy_END_ALLOW_THREADS;
1d99702e
RD
155} if (_result) {
156 SWIG_MakePtr(_ptemp, (char *) _result,"_wxImage_p");
157 _resultobj = Py_BuildValue("s",_ptemp);
158 } else {
159 Py_INCREF(Py_None);
160 _resultobj = Py_None;
161 }
cf694132
RD
162 return _resultobj;
163}
164
efc5f224 165static PyObject *_wrap_wxEmptyImage(PyObject *self, PyObject *args, PyObject *kwargs) {
cf694132
RD
166 PyObject * _resultobj;
167 wxImage * _result;
168 int _arg0;
169 int _arg1;
efc5f224 170 char *_kwnames[] = { "width","height", NULL };
cf694132
RD
171 char _ptemp[128];
172
173 self = self;
efc5f224 174 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"ii:wxEmptyImage",_kwnames,&_arg0,&_arg1))
cf694132
RD
175 return NULL;
176{
177 wxPy_BEGIN_ALLOW_THREADS;
178 _result = (wxImage *)wxEmptyImage(_arg0,_arg1);
179
180 wxPy_END_ALLOW_THREADS;
1d99702e
RD
181} if (_result) {
182 SWIG_MakePtr(_ptemp, (char *) _result,"_wxImage_p");
183 _resultobj = Py_BuildValue("s",_ptemp);
184 } else {
185 Py_INCREF(Py_None);
186 _resultobj = Py_None;
187 }
cf694132
RD
188 return _resultobj;
189}
190
efc5f224 191static PyObject *_wrap_wxImageFromMime(PyObject *self, PyObject *args, PyObject *kwargs) {
cf694132
RD
192 PyObject * _resultobj;
193 wxImage * _result;
194 wxString * _arg0;
195 wxString * _arg1;
196 PyObject * _obj0 = 0;
197 PyObject * _obj1 = 0;
efc5f224 198 char *_kwnames[] = { "name","mimetype", NULL };
cf694132
RD
199 char _ptemp[128];
200
201 self = self;
efc5f224 202 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxImageFromMime",_kwnames,&_obj0,&_obj1))
cf694132
RD
203 return NULL;
204{
205 if (!PyString_Check(_obj0)) {
206 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
207 return NULL;
208 }
209 _arg0 = new wxString(PyString_AsString(_obj0), PyString_Size(_obj0));
210}
211{
212 if (!PyString_Check(_obj1)) {
213 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
214 return NULL;
215 }
216 _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
217}
218{
219 wxPy_BEGIN_ALLOW_THREADS;
220 _result = (wxImage *)wxImageFromMime(*_arg0,*_arg1);
221
222 wxPy_END_ALLOW_THREADS;
1d99702e
RD
223} if (_result) {
224 SWIG_MakePtr(_ptemp, (char *) _result,"_wxImage_p");
225 _resultobj = Py_BuildValue("s",_ptemp);
226 } else {
227 Py_INCREF(Py_None);
228 _resultobj = Py_None;
229 }
cf694132
RD
230{
231 if (_obj0)
232 delete _arg0;
233}
234{
235 if (_obj1)
236 delete _arg1;
237}
238 return _resultobj;
239}
240
efc5f224 241static PyObject *_wrap_wxImageFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
cf694132
RD
242 PyObject * _resultobj;
243 wxImage * _result;
244 wxBitmap * _arg0;
1d99702e 245 PyObject * _argo0 = 0;
efc5f224 246 char *_kwnames[] = { "bitmap", NULL };
cf694132
RD
247 char _ptemp[128];
248
249 self = self;
efc5f224 250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageFromBitmap",_kwnames,&_argo0))
cf694132 251 return NULL;
1d99702e
RD
252 if (_argo0) {
253 if (_argo0 == Py_None) { _arg0 = NULL; }
254 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
cf694132
RD
255 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageFromBitmap. Expected _wxBitmap_p.");
256 return NULL;
257 }
258 }
259{
260 wxPy_BEGIN_ALLOW_THREADS;
261 _result = (wxImage *)wxImageFromBitmap(*_arg0);
262
263 wxPy_END_ALLOW_THREADS;
1d99702e
RD
264} if (_result) {
265 SWIG_MakePtr(_ptemp, (char *) _result,"_wxImage_p");
266 _resultobj = Py_BuildValue("s",_ptemp);
267 } else {
268 Py_INCREF(Py_None);
269 _resultobj = Py_None;
270 }
cf694132
RD
271 return _resultobj;
272}
273
efc5f224 274static PyObject *_wrap_wxImage_AddHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
cf694132
RD
275 PyObject * _resultobj;
276 wxImageHandler * _arg0;
1d99702e 277 PyObject * _argo0 = 0;
efc5f224 278 char *_kwnames[] = { "handler", NULL };
cf694132
RD
279
280 self = self;
efc5f224 281 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImage_AddHandler",_kwnames,&_argo0))
cf694132 282 return NULL;
1d99702e
RD
283 if (_argo0) {
284 if (_argo0 == Py_None) { _arg0 = NULL; }
285 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageHandler_p")) {
cf694132
RD
286 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_AddHandler. Expected _wxImageHandler_p.");
287 return NULL;
288 }
289 }
290{
291 wxPy_BEGIN_ALLOW_THREADS;
292 wxImage_AddHandler(_arg0);
293
294 wxPy_END_ALLOW_THREADS;
295} Py_INCREF(Py_None);
296 _resultobj = Py_None;
297 return _resultobj;
298}
299
300#define new_wxImageHandler() (new wxImageHandler())
efc5f224 301static PyObject *_wrap_new_wxImageHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
cf694132
RD
302 PyObject * _resultobj;
303 wxImageHandler * _result;
efc5f224 304 char *_kwnames[] = { NULL };
cf694132
RD
305 char _ptemp[128];
306
307 self = self;
efc5f224 308 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxImageHandler",_kwnames))
cf694132
RD
309 return NULL;
310{
311 wxPy_BEGIN_ALLOW_THREADS;
312 _result = (wxImageHandler *)new_wxImageHandler();
313
314 wxPy_END_ALLOW_THREADS;
1d99702e
RD
315} if (_result) {
316 SWIG_MakePtr(_ptemp, (char *) _result,"_wxImageHandler_p");
317 _resultobj = Py_BuildValue("s",_ptemp);
318 } else {
319 Py_INCREF(Py_None);
320 _resultobj = Py_None;
321 }
cf694132
RD
322 return _resultobj;
323}
324
325#define wxImageHandler_GetName(_swigobj) (_swigobj->GetName())
efc5f224 326static PyObject *_wrap_wxImageHandler_GetName(PyObject *self, PyObject *args, PyObject *kwargs) {
cf694132
RD
327 PyObject * _resultobj;
328 wxString * _result;
329 wxImageHandler * _arg0;
1d99702e 330 PyObject * _argo0 = 0;
efc5f224 331 char *_kwnames[] = { "self", NULL };
cf694132
RD
332
333 self = self;
efc5f224 334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageHandler_GetName",_kwnames,&_argo0))
cf694132 335 return NULL;
1d99702e
RD
336 if (_argo0) {
337 if (_argo0 == Py_None) { _arg0 = NULL; }
338 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageHandler_p")) {
cf694132
RD
339 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageHandler_GetName. Expected _wxImageHandler_p.");
340 return NULL;
341 }
342 }
343{
344 wxPy_BEGIN_ALLOW_THREADS;
345 _result = new wxString (wxImageHandler_GetName(_arg0));
346
347 wxPy_END_ALLOW_THREADS;
348}{
349 _resultobj = PyString_FromString(WXSTRINGCAST *(_result));
350}
351{
352 delete _result;
353}
354 return _resultobj;
355}
356
357#define wxImageHandler_GetExtension(_swigobj) (_swigobj->GetExtension())
efc5f224 358static PyObject *_wrap_wxImageHandler_GetExtension(PyObject *self, PyObject *args, PyObject *kwargs) {
cf694132
RD
359 PyObject * _resultobj;
360 wxString * _result;
361 wxImageHandler * _arg0;
1d99702e 362 PyObject * _argo0 = 0;
efc5f224 363 char *_kwnames[] = { "self", NULL };
cf694132
RD
364
365 self = self;
efc5f224 366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageHandler_GetExtension",_kwnames,&_argo0))
cf694132 367 return NULL;
1d99702e
RD
368 if (_argo0) {
369 if (_argo0 == Py_None) { _arg0 = NULL; }
370 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageHandler_p")) {
cf694132
RD
371 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageHandler_GetExtension. Expected _wxImageHandler_p.");
372 return NULL;
373 }
374 }
375{
376 wxPy_BEGIN_ALLOW_THREADS;
377 _result = new wxString (wxImageHandler_GetExtension(_arg0));
378
379 wxPy_END_ALLOW_THREADS;
380}{
381 _resultobj = PyString_FromString(WXSTRINGCAST *(_result));
382}
383{
384 delete _result;
385}
386 return _resultobj;
387}
388
389#define wxImageHandler_GetType(_swigobj) (_swigobj->GetType())
efc5f224 390static PyObject *_wrap_wxImageHandler_GetType(PyObject *self, PyObject *args, PyObject *kwargs) {
cf694132
RD
391 PyObject * _resultobj;
392 long _result;
393 wxImageHandler * _arg0;
1d99702e 394 PyObject * _argo0 = 0;
efc5f224 395 char *_kwnames[] = { "self", NULL };
cf694132
RD
396
397 self = self;
efc5f224 398 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageHandler_GetType",_kwnames,&_argo0))
cf694132 399 return NULL;
1d99702e
RD
400 if (_argo0) {
401 if (_argo0 == Py_None) { _arg0 = NULL; }
402 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageHandler_p")) {
cf694132
RD
403 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageHandler_GetType. Expected _wxImageHandler_p.");
404 return NULL;
405 }
406 }
407{
408 wxPy_BEGIN_ALLOW_THREADS;
409 _result = (long )wxImageHandler_GetType(_arg0);
410
411 wxPy_END_ALLOW_THREADS;
412} _resultobj = Py_BuildValue("l",_result);
413 return _resultobj;
414}
415
416#define wxImageHandler_GetMimeType(_swigobj) (_swigobj->GetMimeType())
efc5f224 417static PyObject *_wrap_wxImageHandler_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) {
cf694132
RD
418 PyObject * _resultobj;
419 wxString * _result;
420 wxImageHandler * _arg0;
1d99702e 421 PyObject * _argo0 = 0;
efc5f224 422 char *_kwnames[] = { "self", NULL };
cf694132
RD
423
424 self = self;
efc5f224 425 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageHandler_GetMimeType",_kwnames,&_argo0))
cf694132 426 return NULL;
1d99702e
RD
427 if (_argo0) {
428 if (_argo0 == Py_None) { _arg0 = NULL; }
429 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageHandler_p")) {
cf694132
RD
430 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageHandler_GetMimeType. Expected _wxImageHandler_p.");
431 return NULL;
432 }
433 }
434{
435 wxPy_BEGIN_ALLOW_THREADS;
436 _result = new wxString (wxImageHandler_GetMimeType(_arg0));
437
438 wxPy_END_ALLOW_THREADS;
439}{
440 _resultobj = PyString_FromString(WXSTRINGCAST *(_result));
441}
442{
443 delete _result;
444}
445 return _resultobj;
446}
447
448#define wxImageHandler_SetName(_swigobj,_swigarg0) (_swigobj->SetName(_swigarg0))
efc5f224 449static PyObject *_wrap_wxImageHandler_SetName(PyObject *self, PyObject *args, PyObject *kwargs) {
cf694132
RD
450 PyObject * _resultobj;
451 wxImageHandler * _arg0;
452 wxString * _arg1;
1d99702e 453 PyObject * _argo0 = 0;
cf694132 454 PyObject * _obj1 = 0;
efc5f224 455 char *_kwnames[] = { "self","name", NULL };
cf694132
RD
456
457 self = self;
efc5f224 458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxImageHandler_SetName",_kwnames,&_argo0,&_obj1))
cf694132 459 return NULL;
1d99702e
RD
460 if (_argo0) {
461 if (_argo0 == Py_None) { _arg0 = NULL; }
462 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageHandler_p")) {
cf694132
RD
463 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageHandler_SetName. Expected _wxImageHandler_p.");
464 return NULL;
465 }
466 }
467{
468 if (!PyString_Check(_obj1)) {
469 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
470 return NULL;
471 }
472 _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
473}
474{
475 wxPy_BEGIN_ALLOW_THREADS;
476 wxImageHandler_SetName(_arg0,*_arg1);
477
478 wxPy_END_ALLOW_THREADS;
479} Py_INCREF(Py_None);
480 _resultobj = Py_None;
481{
482 if (_obj1)
483 delete _arg1;
484}
485 return _resultobj;
486}
487
488#define wxImageHandler_SetExtension(_swigobj,_swigarg0) (_swigobj->SetExtension(_swigarg0))
efc5f224 489static PyObject *_wrap_wxImageHandler_SetExtension(PyObject *self, PyObject *args, PyObject *kwargs) {
cf694132
RD
490 PyObject * _resultobj;
491 wxImageHandler * _arg0;
492 wxString * _arg1;
1d99702e 493 PyObject * _argo0 = 0;
cf694132 494 PyObject * _obj1 = 0;
efc5f224 495 char *_kwnames[] = { "self","extension", NULL };
cf694132
RD
496
497 self = self;
efc5f224 498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxImageHandler_SetExtension",_kwnames,&_argo0,&_obj1))
cf694132 499 return NULL;
1d99702e
RD
500 if (_argo0) {
501 if (_argo0 == Py_None) { _arg0 = NULL; }
502 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageHandler_p")) {
cf694132
RD
503 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageHandler_SetExtension. Expected _wxImageHandler_p.");
504 return NULL;
505 }
506 }
507{
508 if (!PyString_Check(_obj1)) {
509 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
510 return NULL;
511 }
512 _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
513}
514{
515 wxPy_BEGIN_ALLOW_THREADS;
516 wxImageHandler_SetExtension(_arg0,*_arg1);
517
518 wxPy_END_ALLOW_THREADS;
519} Py_INCREF(Py_None);
520 _resultobj = Py_None;
521{
522 if (_obj1)
523 delete _arg1;
524}
525 return _resultobj;
526}
527
528#define wxImageHandler_SetType(_swigobj,_swigarg0) (_swigobj->SetType(_swigarg0))
efc5f224 529static PyObject *_wrap_wxImageHandler_SetType(PyObject *self, PyObject *args, PyObject *kwargs) {
cf694132
RD
530 PyObject * _resultobj;
531 wxImageHandler * _arg0;
532 long _arg1;
1d99702e 533 PyObject * _argo0 = 0;
efc5f224 534 char *_kwnames[] = { "self","type", NULL };
cf694132
RD
535
536 self = self;
efc5f224 537 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxImageHandler_SetType",_kwnames,&_argo0,&_arg1))
cf694132 538 return NULL;
1d99702e
RD
539 if (_argo0) {
540 if (_argo0 == Py_None) { _arg0 = NULL; }
541 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageHandler_p")) {
cf694132
RD
542 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageHandler_SetType. Expected _wxImageHandler_p.");
543 return NULL;
544 }
545 }
546{
547 wxPy_BEGIN_ALLOW_THREADS;
548 wxImageHandler_SetType(_arg0,_arg1);
549
550 wxPy_END_ALLOW_THREADS;
551} Py_INCREF(Py_None);
552 _resultobj = Py_None;
553 return _resultobj;
554}
555
556#define wxImageHandler_SetMimeType(_swigobj,_swigarg0) (_swigobj->SetMimeType(_swigarg0))
efc5f224 557static PyObject *_wrap_wxImageHandler_SetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) {
cf694132
RD
558 PyObject * _resultobj;
559 wxImageHandler * _arg0;
560 wxString * _arg1;
1d99702e 561 PyObject * _argo0 = 0;
cf694132 562 PyObject * _obj1 = 0;
efc5f224 563 char *_kwnames[] = { "self","mimetype", NULL };
cf694132
RD
564
565 self = self;
efc5f224 566 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxImageHandler_SetMimeType",_kwnames,&_argo0,&_obj1))
cf694132 567 return NULL;
1d99702e
RD
568 if (_argo0) {
569 if (_argo0 == Py_None) { _arg0 = NULL; }
570 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageHandler_p")) {
cf694132
RD
571 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageHandler_SetMimeType. Expected _wxImageHandler_p.");
572 return NULL;
573 }
574 }
575{
576 if (!PyString_Check(_obj1)) {
577 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
578 return NULL;
579 }
580 _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
581}
582{
583 wxPy_BEGIN_ALLOW_THREADS;
584 wxImageHandler_SetMimeType(_arg0,*_arg1);
585
586 wxPy_END_ALLOW_THREADS;
587} Py_INCREF(Py_None);
588 _resultobj = Py_None;
589{
590 if (_obj1)
591 delete _arg1;
592}
593 return _resultobj;
594}
595
596static void *SwigwxPNGHandlerTowxImageHandler(void *ptr) {
597 wxPNGHandler *src;
598 wxImageHandler *dest;
599 src = (wxPNGHandler *) ptr;
600 dest = (wxImageHandler *) src;
601 return (void *) dest;
602}
603
604#define new_wxPNGHandler() (new wxPNGHandler())
efc5f224 605static PyObject *_wrap_new_wxPNGHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
cf694132
RD
606 PyObject * _resultobj;
607 wxPNGHandler * _result;
efc5f224 608 char *_kwnames[] = { NULL };
cf694132
RD
609 char _ptemp[128];
610
611 self = self;
efc5f224 612 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPNGHandler",_kwnames))
cf694132
RD
613 return NULL;
614{
615 wxPy_BEGIN_ALLOW_THREADS;
616 _result = (wxPNGHandler *)new_wxPNGHandler();
617
618 wxPy_END_ALLOW_THREADS;
1d99702e
RD
619} if (_result) {
620 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPNGHandler_p");
621 _resultobj = Py_BuildValue("s",_ptemp);
622 } else {
623 Py_INCREF(Py_None);
624 _resultobj = Py_None;
625 }
cf694132
RD
626 return _resultobj;
627}
628
629static void *SwigwxJPEGHandlerTowxImageHandler(void *ptr) {
630 wxJPEGHandler *src;
631 wxImageHandler *dest;
632 src = (wxJPEGHandler *) ptr;
633 dest = (wxImageHandler *) src;
634 return (void *) dest;
635}
636
637#define new_wxJPEGHandler() (new wxJPEGHandler())
efc5f224 638static PyObject *_wrap_new_wxJPEGHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
cf694132
RD
639 PyObject * _resultobj;
640 wxJPEGHandler * _result;
efc5f224 641 char *_kwnames[] = { NULL };
cf694132
RD
642 char _ptemp[128];
643
644 self = self;
efc5f224 645 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxJPEGHandler",_kwnames))
cf694132
RD
646 return NULL;
647{
648 wxPy_BEGIN_ALLOW_THREADS;
649 _result = (wxJPEGHandler *)new_wxJPEGHandler();
650
651 wxPy_END_ALLOW_THREADS;
1d99702e
RD
652} if (_result) {
653 SWIG_MakePtr(_ptemp, (char *) _result,"_wxJPEGHandler_p");
654 _resultobj = Py_BuildValue("s",_ptemp);
655 } else {
656 Py_INCREF(Py_None);
657 _resultobj = Py_None;
658 }
cf694132
RD
659 return _resultobj;
660}
661
662static void *SwigwxBMPHandlerTowxImageHandler(void *ptr) {
663 wxBMPHandler *src;
664 wxImageHandler *dest;
665 src = (wxBMPHandler *) ptr;
666 dest = (wxImageHandler *) src;
667 return (void *) dest;
668}
669
670#define new_wxBMPHandler() (new wxBMPHandler())
efc5f224 671static PyObject *_wrap_new_wxBMPHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
cf694132
RD
672 PyObject * _resultobj;
673 wxBMPHandler * _result;
efc5f224 674 char *_kwnames[] = { NULL };
cf694132
RD
675 char _ptemp[128];
676
677 self = self;
efc5f224 678 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxBMPHandler",_kwnames))
cf694132
RD
679 return NULL;
680{
681 wxPy_BEGIN_ALLOW_THREADS;
682 _result = (wxBMPHandler *)new_wxBMPHandler();
683
684 wxPy_END_ALLOW_THREADS;
1d99702e
RD
685} if (_result) {
686 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBMPHandler_p");
687 _resultobj = Py_BuildValue("s",_ptemp);
688 } else {
689 Py_INCREF(Py_None);
690 _resultobj = Py_None;
691 }
cf694132
RD
692 return _resultobj;
693}
694
695static void *SwigwxGIFHandlerTowxImageHandler(void *ptr) {
696 wxGIFHandler *src;
697 wxImageHandler *dest;
698 src = (wxGIFHandler *) ptr;
699 dest = (wxImageHandler *) src;
700 return (void *) dest;
701}
702
703#define new_wxGIFHandler() (new wxGIFHandler())
efc5f224 704static PyObject *_wrap_new_wxGIFHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
cf694132
RD
705 PyObject * _resultobj;
706 wxGIFHandler * _result;
efc5f224 707 char *_kwnames[] = { NULL };
cf694132
RD
708 char _ptemp[128];
709
710 self = self;
efc5f224 711 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxGIFHandler",_kwnames))
cf694132
RD
712 return NULL;
713{
714 wxPy_BEGIN_ALLOW_THREADS;
715 _result = (wxGIFHandler *)new_wxGIFHandler();
716
717 wxPy_END_ALLOW_THREADS;
1d99702e
RD
718} if (_result) {
719 SWIG_MakePtr(_ptemp, (char *) _result,"_wxGIFHandler_p");
720 _resultobj = Py_BuildValue("s",_ptemp);
721 } else {
722 Py_INCREF(Py_None);
723 _resultobj = Py_None;
724 }
cf694132
RD
725 return _resultobj;
726}
727
728#define new_wxImage(_swigarg0,_swigarg1) (new wxImage(_swigarg0,_swigarg1))
efc5f224 729static PyObject *_wrap_new_wxImage(PyObject *self, PyObject *args, PyObject *kwargs) {
cf694132
RD
730 PyObject * _resultobj;
731 wxImage * _result;
732 wxString * _arg0;
1d99702e 733 long _arg1 = (long ) wxBITMAP_TYPE_PNG;
cf694132 734 PyObject * _obj0 = 0;
efc5f224 735 char *_kwnames[] = { "name","type", NULL };
cf694132
RD
736 char _ptemp[128];
737
738 self = self;
efc5f224 739 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|l:new_wxImage",_kwnames,&_obj0,&_arg1))
cf694132
RD
740 return NULL;
741{
742 if (!PyString_Check(_obj0)) {
743 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
744 return NULL;
745 }
746 _arg0 = new wxString(PyString_AsString(_obj0), PyString_Size(_obj0));
747}
748{
749 wxPy_BEGIN_ALLOW_THREADS;
750 _result = (wxImage *)new_wxImage(*_arg0,_arg1);
751
752 wxPy_END_ALLOW_THREADS;
1d99702e
RD
753} if (_result) {
754 SWIG_MakePtr(_ptemp, (char *) _result,"_wxImage_p");
755 _resultobj = Py_BuildValue("s",_ptemp);
756 } else {
757 Py_INCREF(Py_None);
758 _resultobj = Py_None;
759 }
cf694132
RD
760{
761 if (_obj0)
762 delete _arg0;
763}
764 return _resultobj;
765}
766
767#define delete_wxImage(_swigobj) (delete _swigobj)
efc5f224 768static PyObject *_wrap_delete_wxImage(PyObject *self, PyObject *args, PyObject *kwargs) {
cf694132
RD
769 PyObject * _resultobj;
770 wxImage * _arg0;
1d99702e 771 PyObject * _argo0 = 0;
efc5f224 772 char *_kwnames[] = { "self", NULL };
cf694132
RD
773
774 self = self;
efc5f224 775 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxImage",_kwnames,&_argo0))
cf694132 776 return NULL;
1d99702e
RD
777 if (_argo0) {
778 if (_argo0 == Py_None) { _arg0 = NULL; }
779 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
cf694132
RD
780 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxImage. Expected _wxImage_p.");
781 return NULL;
782 }
783 }
784{
785 wxPy_BEGIN_ALLOW_THREADS;
786 delete_wxImage(_arg0);
787
788 wxPy_END_ALLOW_THREADS;
789} Py_INCREF(Py_None);
790 _resultobj = Py_None;
791 return _resultobj;
792}
793
794#define wxImage_ConvertToBitmap(_swigobj) (_swigobj->ConvertToBitmap())
efc5f224 795static PyObject *_wrap_wxImage_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
cf694132
RD
796 PyObject * _resultobj;
797 wxBitmap * _result;
798 wxImage * _arg0;
1d99702e 799 PyObject * _argo0 = 0;
efc5f224 800 char *_kwnames[] = { "self", NULL };
cf694132
RD
801 char _ptemp[128];
802
803 self = self;
efc5f224 804 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImage_ConvertToBitmap",_kwnames,&_argo0))
cf694132 805 return NULL;
1d99702e
RD
806 if (_argo0) {
807 if (_argo0 == Py_None) { _arg0 = NULL; }
808 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
cf694132
RD
809 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_ConvertToBitmap. Expected _wxImage_p.");
810 return NULL;
811 }
812 }
813{
814 wxPy_BEGIN_ALLOW_THREADS;
815 _result = new wxBitmap (wxImage_ConvertToBitmap(_arg0));
816
817 wxPy_END_ALLOW_THREADS;
818} SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p");
819 _resultobj = Py_BuildValue("s",_ptemp);
820 return _resultobj;
821}
822
823#define wxImage_Create(_swigobj,_swigarg0,_swigarg1) (_swigobj->Create(_swigarg0,_swigarg1))
efc5f224 824static PyObject *_wrap_wxImage_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
cf694132
RD
825 PyObject * _resultobj;
826 wxImage * _arg0;
827 int _arg1;
828 int _arg2;
1d99702e 829 PyObject * _argo0 = 0;
efc5f224 830 char *_kwnames[] = { "self","width","height", NULL };
cf694132
RD
831
832 self = self;
efc5f224 833 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxImage_Create",_kwnames,&_argo0,&_arg1,&_arg2))
cf694132 834 return NULL;
1d99702e
RD
835 if (_argo0) {
836 if (_argo0 == Py_None) { _arg0 = NULL; }
837 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
cf694132
RD
838 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_Create. Expected _wxImage_p.");
839 return NULL;
840 }
841 }
842{
843 wxPy_BEGIN_ALLOW_THREADS;
844 wxImage_Create(_arg0,_arg1,_arg2);
845
846 wxPy_END_ALLOW_THREADS;
847} Py_INCREF(Py_None);
848 _resultobj = Py_None;
849 return _resultobj;
850}
851
852#define wxImage_Destroy(_swigobj) (_swigobj->Destroy())
efc5f224 853static PyObject *_wrap_wxImage_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
cf694132
RD
854 PyObject * _resultobj;
855 wxImage * _arg0;
1d99702e 856 PyObject * _argo0 = 0;
efc5f224 857 char *_kwnames[] = { "self", NULL };
cf694132
RD
858
859 self = self;
efc5f224 860 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImage_Destroy",_kwnames,&_argo0))
cf694132 861 return NULL;
1d99702e
RD
862 if (_argo0) {
863 if (_argo0 == Py_None) { _arg0 = NULL; }
864 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
cf694132
RD
865 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_Destroy. Expected _wxImage_p.");
866 return NULL;
867 }
868 }
869{
870 wxPy_BEGIN_ALLOW_THREADS;
871 wxImage_Destroy(_arg0);
872
873 wxPy_END_ALLOW_THREADS;
874} Py_INCREF(Py_None);
875 _resultobj = Py_None;
876 return _resultobj;
877}
878
879#define wxImage_Scale(_swigobj,_swigarg0,_swigarg1) (_swigobj->Scale(_swigarg0,_swigarg1))
efc5f224 880static PyObject *_wrap_wxImage_Scale(PyObject *self, PyObject *args, PyObject *kwargs) {
cf694132
RD
881 PyObject * _resultobj;
882 wxImage * _result;
883 wxImage * _arg0;
884 int _arg1;
885 int _arg2;
1d99702e 886 PyObject * _argo0 = 0;
efc5f224 887 char *_kwnames[] = { "self","width","height", NULL };
cf694132
RD
888 char _ptemp[128];
889
890 self = self;
efc5f224 891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxImage_Scale",_kwnames,&_argo0,&_arg1,&_arg2))
cf694132 892 return NULL;
1d99702e
RD
893 if (_argo0) {
894 if (_argo0 == Py_None) { _arg0 = NULL; }
895 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
cf694132
RD
896 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_Scale. Expected _wxImage_p.");
897 return NULL;
898 }
899 }
900{
901 wxPy_BEGIN_ALLOW_THREADS;
902 _result = new wxImage (wxImage_Scale(_arg0,_arg1,_arg2));
903
904 wxPy_END_ALLOW_THREADS;
905} SWIG_MakePtr(_ptemp, (void *) _result,"_wxImage_p");
906 _resultobj = Py_BuildValue("s",_ptemp);
907 return _resultobj;
908}
909
8bf5d46e 910#define wxImage_Rescale(_swigobj,_swigarg0,_swigarg1) (_swigobj->Rescale(_swigarg0,_swigarg1))
efc5f224 911static PyObject *_wrap_wxImage_Rescale(PyObject *self, PyObject *args, PyObject *kwargs) {
8bf5d46e
RD
912 PyObject * _resultobj;
913 wxImage * _arg0;
914 int _arg1;
915 int _arg2;
1d99702e 916 PyObject * _argo0 = 0;
efc5f224 917 char *_kwnames[] = { "self","width","height", NULL };
8bf5d46e
RD
918
919 self = self;
efc5f224 920 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxImage_Rescale",_kwnames,&_argo0,&_arg1,&_arg2))
8bf5d46e 921 return NULL;
1d99702e
RD
922 if (_argo0) {
923 if (_argo0 == Py_None) { _arg0 = NULL; }
924 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
8bf5d46e
RD
925 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_Rescale. Expected _wxImage_p.");
926 return NULL;
927 }
928 }
929{
930 wxPy_BEGIN_ALLOW_THREADS;
931 wxImage_Rescale(_arg0,_arg1,_arg2);
932
933 wxPy_END_ALLOW_THREADS;
934} Py_INCREF(Py_None);
935 _resultobj = Py_None;
936 return _resultobj;
937}
938
cf694132 939#define wxImage_SetRGB(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetRGB(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
efc5f224 940static PyObject *_wrap_wxImage_SetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
cf694132
RD
941 PyObject * _resultobj;
942 wxImage * _arg0;
943 int _arg1;
944 int _arg2;
945 unsigned char _arg3;
946 unsigned char _arg4;
947 unsigned char _arg5;
1d99702e 948 PyObject * _argo0 = 0;
efc5f224 949 char *_kwnames[] = { "self","x","y","r","g","b", NULL };
cf694132
RD
950
951 self = self;
efc5f224 952 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiibbb:wxImage_SetRGB",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5))
cf694132 953 return NULL;
1d99702e
RD
954 if (_argo0) {
955 if (_argo0 == Py_None) { _arg0 = NULL; }
956 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
cf694132
RD
957 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_SetRGB. Expected _wxImage_p.");
958 return NULL;
959 }
960 }
961{
962 wxPy_BEGIN_ALLOW_THREADS;
963 wxImage_SetRGB(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
964
965 wxPy_END_ALLOW_THREADS;
966} Py_INCREF(Py_None);
967 _resultobj = Py_None;
968 return _resultobj;
969}
970
971#define wxImage_GetRed(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetRed(_swigarg0,_swigarg1))
efc5f224 972static PyObject *_wrap_wxImage_GetRed(PyObject *self, PyObject *args, PyObject *kwargs) {
cf694132
RD
973 PyObject * _resultobj;
974 unsigned char _result;
975 wxImage * _arg0;
976 int _arg1;
977 int _arg2;
1d99702e 978 PyObject * _argo0 = 0;
efc5f224 979 char *_kwnames[] = { "self","x","y", NULL };
cf694132
RD
980
981 self = self;
efc5f224 982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxImage_GetRed",_kwnames,&_argo0,&_arg1,&_arg2))
cf694132 983 return NULL;
1d99702e
RD
984 if (_argo0) {
985 if (_argo0 == Py_None) { _arg0 = NULL; }
986 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
cf694132
RD
987 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_GetRed. Expected _wxImage_p.");
988 return NULL;
989 }
990 }
991{
992 wxPy_BEGIN_ALLOW_THREADS;
993 _result = (unsigned char )wxImage_GetRed(_arg0,_arg1,_arg2);
994
995 wxPy_END_ALLOW_THREADS;
996} _resultobj = Py_BuildValue("b",_result);
997 return _resultobj;
998}
999
1000#define wxImage_GetGreen(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetGreen(_swigarg0,_swigarg1))
efc5f224 1001static PyObject *_wrap_wxImage_GetGreen(PyObject *self, PyObject *args, PyObject *kwargs) {
cf694132
RD
1002 PyObject * _resultobj;
1003 unsigned char _result;
1004 wxImage * _arg0;
1005 int _arg1;
1006 int _arg2;
1d99702e 1007 PyObject * _argo0 = 0;
efc5f224 1008 char *_kwnames[] = { "self","x","y", NULL };
cf694132
RD
1009
1010 self = self;
efc5f224 1011 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxImage_GetGreen",_kwnames,&_argo0,&_arg1,&_arg2))
cf694132 1012 return NULL;
1d99702e
RD
1013 if (_argo0) {
1014 if (_argo0 == Py_None) { _arg0 = NULL; }
1015 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
cf694132
RD
1016 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_GetGreen. Expected _wxImage_p.");
1017 return NULL;
1018 }
1019 }
1020{
1021 wxPy_BEGIN_ALLOW_THREADS;
1022 _result = (unsigned char )wxImage_GetGreen(_arg0,_arg1,_arg2);
1023
1024 wxPy_END_ALLOW_THREADS;
1025} _resultobj = Py_BuildValue("b",_result);
1026 return _resultobj;
1027}
1028
1029#define wxImage_GetBlue(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetBlue(_swigarg0,_swigarg1))
efc5f224 1030static PyObject *_wrap_wxImage_GetBlue(PyObject *self, PyObject *args, PyObject *kwargs) {
cf694132
RD
1031 PyObject * _resultobj;
1032 unsigned char _result;
1033 wxImage * _arg0;
1034 int _arg1;
1035 int _arg2;
1d99702e 1036 PyObject * _argo0 = 0;
efc5f224 1037 char *_kwnames[] = { "self","x","y", NULL };
cf694132
RD
1038
1039 self = self;
efc5f224 1040 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxImage_GetBlue",_kwnames,&_argo0,&_arg1,&_arg2))
cf694132 1041 return NULL;
1d99702e
RD
1042 if (_argo0) {
1043 if (_argo0 == Py_None) { _arg0 = NULL; }
1044 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
cf694132
RD
1045 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_GetBlue. Expected _wxImage_p.");
1046 return NULL;
1047 }
1048 }
1049{
1050 wxPy_BEGIN_ALLOW_THREADS;
1051 _result = (unsigned char )wxImage_GetBlue(_arg0,_arg1,_arg2);
1052
1053 wxPy_END_ALLOW_THREADS;
1054} _resultobj = Py_BuildValue("b",_result);
1055 return _resultobj;
1056}
1057
1058#define wxImage_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1))
efc5f224 1059static PyObject *_wrap_wxImage_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
cf694132
RD
1060 PyObject * _resultobj;
1061 bool _result;
1062 wxImage * _arg0;
1063 wxString * _arg1;
1d99702e
RD
1064 long _arg2 = (long ) wxBITMAP_TYPE_PNG;
1065 PyObject * _argo0 = 0;
cf694132 1066 PyObject * _obj1 = 0;
efc5f224 1067 char *_kwnames[] = { "self","name","type", NULL };
cf694132
RD
1068
1069 self = self;
efc5f224 1070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|l:wxImage_LoadFile",_kwnames,&_argo0,&_obj1,&_arg2))
cf694132 1071 return NULL;
1d99702e
RD
1072 if (_argo0) {
1073 if (_argo0 == Py_None) { _arg0 = NULL; }
1074 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
cf694132
RD
1075 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_LoadFile. Expected _wxImage_p.");
1076 return NULL;
1077 }
1078 }
1079{
1080 if (!PyString_Check(_obj1)) {
1081 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1082 return NULL;
1083 }
1084 _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
1085}
1086{
1087 wxPy_BEGIN_ALLOW_THREADS;
1088 _result = (bool )wxImage_LoadFile(_arg0,*_arg1,_arg2);
1089
1090 wxPy_END_ALLOW_THREADS;
1091} _resultobj = Py_BuildValue("i",_result);
1092{
1093 if (_obj1)
1094 delete _arg1;
1095}
1096 return _resultobj;
1097}
1098
1099#define wxImage_LoadMimeFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1))
efc5f224 1100static PyObject *_wrap_wxImage_LoadMimeFile(PyObject *self, PyObject *args, PyObject *kwargs) {
cf694132
RD
1101 PyObject * _resultobj;
1102 bool _result;
1103 wxImage * _arg0;
1104 wxString * _arg1;
1105 wxString * _arg2;
1d99702e 1106 PyObject * _argo0 = 0;
cf694132
RD
1107 PyObject * _obj1 = 0;
1108 PyObject * _obj2 = 0;
efc5f224 1109 char *_kwnames[] = { "self","name","mimetype", NULL };
cf694132
RD
1110
1111 self = self;
efc5f224 1112 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxImage_LoadMimeFile",_kwnames,&_argo0,&_obj1,&_obj2))
cf694132 1113 return NULL;
1d99702e
RD
1114 if (_argo0) {
1115 if (_argo0 == Py_None) { _arg0 = NULL; }
1116 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
cf694132
RD
1117 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_LoadMimeFile. Expected _wxImage_p.");
1118 return NULL;
1119 }
1120 }
1121{
1122 if (!PyString_Check(_obj1)) {
1123 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1124 return NULL;
1125 }
1126 _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
1127}
1128{
1129 if (!PyString_Check(_obj2)) {
1130 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1131 return NULL;
1132 }
1133 _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2));
1134}
1135{
1136 wxPy_BEGIN_ALLOW_THREADS;
1137 _result = (bool )wxImage_LoadMimeFile(_arg0,*_arg1,*_arg2);
1138
1139 wxPy_END_ALLOW_THREADS;
1140} _resultobj = Py_BuildValue("i",_result);
1141{
1142 if (_obj1)
1143 delete _arg1;
1144}
1145{
1146 if (_obj2)
1147 delete _arg2;
1148}
1149 return _resultobj;
1150}
1151
1152#define wxImage_SaveFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->SaveFile(_swigarg0,_swigarg1))
efc5f224 1153static PyObject *_wrap_wxImage_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) {
cf694132
RD
1154 PyObject * _resultobj;
1155 bool _result;
1156 wxImage * _arg0;
1157 wxString * _arg1;
1158 int _arg2;
1d99702e 1159 PyObject * _argo0 = 0;
cf694132 1160 PyObject * _obj1 = 0;
efc5f224 1161 char *_kwnames[] = { "self","name","type", NULL };
cf694132
RD
1162
1163 self = self;
efc5f224 1164 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxImage_SaveFile",_kwnames,&_argo0,&_obj1,&_arg2))
cf694132 1165 return NULL;
1d99702e
RD
1166 if (_argo0) {
1167 if (_argo0 == Py_None) { _arg0 = NULL; }
1168 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
cf694132
RD
1169 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_SaveFile. Expected _wxImage_p.");
1170 return NULL;
1171 }
1172 }
1173{
1174 if (!PyString_Check(_obj1)) {
1175 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1176 return NULL;
1177 }
1178 _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
1179}
1180{
1181 wxPy_BEGIN_ALLOW_THREADS;
1182 _result = (bool )wxImage_SaveFile(_arg0,*_arg1,_arg2);
1183
1184 wxPy_END_ALLOW_THREADS;
1185} _resultobj = Py_BuildValue("i",_result);
1186{
1187 if (_obj1)
1188 delete _arg1;
1189}
1190 return _resultobj;
1191}
1192
1193#define wxImage_SaveMimeFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->SaveFile(_swigarg0,_swigarg1))
efc5f224 1194static PyObject *_wrap_wxImage_SaveMimeFile(PyObject *self, PyObject *args, PyObject *kwargs) {
cf694132
RD
1195 PyObject * _resultobj;
1196 bool _result;
1197 wxImage * _arg0;
1198 wxString * _arg1;
1199 wxString * _arg2;
1d99702e 1200 PyObject * _argo0 = 0;
cf694132
RD
1201 PyObject * _obj1 = 0;
1202 PyObject * _obj2 = 0;
efc5f224 1203 char *_kwnames[] = { "self","name","mimetype", NULL };
cf694132
RD
1204
1205 self = self;
efc5f224 1206 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxImage_SaveMimeFile",_kwnames,&_argo0,&_obj1,&_obj2))
cf694132 1207 return NULL;
1d99702e
RD
1208 if (_argo0) {
1209 if (_argo0 == Py_None) { _arg0 = NULL; }
1210 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
cf694132
RD
1211 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_SaveMimeFile. Expected _wxImage_p.");
1212 return NULL;
1213 }
1214 }
1215{
1216 if (!PyString_Check(_obj1)) {
1217 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1218 return NULL;
1219 }
1220 _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
1221}
1222{
1223 if (!PyString_Check(_obj2)) {
1224 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1225 return NULL;
1226 }
1227 _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2));
1228}
1229{
1230 wxPy_BEGIN_ALLOW_THREADS;
1231 _result = (bool )wxImage_SaveMimeFile(_arg0,*_arg1,*_arg2);
1232
1233 wxPy_END_ALLOW_THREADS;
1234} _resultobj = Py_BuildValue("i",_result);
1235{
1236 if (_obj1)
1237 delete _arg1;
1238}
1239{
1240 if (_obj2)
1241 delete _arg2;
1242}
1243 return _resultobj;
1244}
1245
1246#define wxImage_Ok(_swigobj) (_swigobj->Ok())
efc5f224 1247static PyObject *_wrap_wxImage_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
cf694132
RD
1248 PyObject * _resultobj;
1249 bool _result;
1250 wxImage * _arg0;
1d99702e 1251 PyObject * _argo0 = 0;
efc5f224 1252 char *_kwnames[] = { "self", NULL };
cf694132
RD
1253
1254 self = self;
efc5f224 1255 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImage_Ok",_kwnames,&_argo0))
cf694132 1256 return NULL;
1d99702e
RD
1257 if (_argo0) {
1258 if (_argo0 == Py_None) { _arg0 = NULL; }
1259 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
cf694132
RD
1260 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_Ok. Expected _wxImage_p.");
1261 return NULL;
1262 }
1263 }
1264{
1265 wxPy_BEGIN_ALLOW_THREADS;
1266 _result = (bool )wxImage_Ok(_arg0);
1267
1268 wxPy_END_ALLOW_THREADS;
1269} _resultobj = Py_BuildValue("i",_result);
1270 return _resultobj;
1271}
1272
1273#define wxImage_GetWidth(_swigobj) (_swigobj->GetWidth())
efc5f224 1274static PyObject *_wrap_wxImage_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
cf694132
RD
1275 PyObject * _resultobj;
1276 int _result;
1277 wxImage * _arg0;
1d99702e 1278 PyObject * _argo0 = 0;
efc5f224 1279 char *_kwnames[] = { "self", NULL };
cf694132
RD
1280
1281 self = self;
efc5f224 1282 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImage_GetWidth",_kwnames,&_argo0))
cf694132 1283 return NULL;
1d99702e
RD
1284 if (_argo0) {
1285 if (_argo0 == Py_None) { _arg0 = NULL; }
1286 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
cf694132
RD
1287 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_GetWidth. Expected _wxImage_p.");
1288 return NULL;
1289 }
1290 }
1291{
1292 wxPy_BEGIN_ALLOW_THREADS;
1293 _result = (int )wxImage_GetWidth(_arg0);
1294
1295 wxPy_END_ALLOW_THREADS;
1296} _resultobj = Py_BuildValue("i",_result);
1297 return _resultobj;
1298}
1299
1300#define wxImage_GetHeight(_swigobj) (_swigobj->GetHeight())
efc5f224 1301static PyObject *_wrap_wxImage_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
cf694132
RD
1302 PyObject * _resultobj;
1303 int _result;
1304 wxImage * _arg0;
1d99702e 1305 PyObject * _argo0 = 0;
efc5f224 1306 char *_kwnames[] = { "self", NULL };
cf694132
RD
1307
1308 self = self;
efc5f224 1309 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImage_GetHeight",_kwnames,&_argo0))
cf694132 1310 return NULL;
1d99702e
RD
1311 if (_argo0) {
1312 if (_argo0 == Py_None) { _arg0 = NULL; }
1313 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
cf694132
RD
1314 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_GetHeight. Expected _wxImage_p.");
1315 return NULL;
1316 }
1317 }
1318{
1319 wxPy_BEGIN_ALLOW_THREADS;
1320 _result = (int )wxImage_GetHeight(_arg0);
1321
1322 wxPy_END_ALLOW_THREADS;
1323} _resultobj = Py_BuildValue("i",_result);
1324 return _resultobj;
1325}
1326
1dc2f865
RD
1327static PyObject * wxImage_GetData(wxImage *self) {
1328 unsigned char* data = self->GetData();
1329 int len = self->GetWidth() * self->GetHeight() * 3;
1330 return PyString_FromStringAndSize((char*)data, len);
1331 }
efc5f224 1332static PyObject *_wrap_wxImage_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
cf694132 1333 PyObject * _resultobj;
1dc2f865 1334 PyObject * _result;
cf694132 1335 wxImage * _arg0;
1d99702e 1336 PyObject * _argo0 = 0;
efc5f224 1337 char *_kwnames[] = { "self", NULL };
cf694132
RD
1338
1339 self = self;
efc5f224 1340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImage_GetData",_kwnames,&_argo0))
cf694132 1341 return NULL;
1d99702e
RD
1342 if (_argo0) {
1343 if (_argo0 == Py_None) { _arg0 = NULL; }
1344 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
cf694132
RD
1345 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_GetData. Expected _wxImage_p.");
1346 return NULL;
1347 }
1348 }
1349{
1350 wxPy_BEGIN_ALLOW_THREADS;
1dc2f865 1351 _result = (PyObject *)wxImage_GetData(_arg0);
cf694132
RD
1352
1353 wxPy_END_ALLOW_THREADS;
1dc2f865
RD
1354}{
1355 _resultobj = _result;
1356}
cf694132
RD
1357 return _resultobj;
1358}
1359
1dc2f865
RD
1360static void wxImage_SetData(wxImage *self,PyObject * data) {
1361 unsigned char* dataPtr;
1362
1363 if (! PyString_Check(data)) {
1364 PyErr_SetString(PyExc_TypeError, "Expected string object");
1365 return /* NULL */ ;
1366 }
1367 dataPtr = (unsigned char*)PyString_AsString(data);
1368 self->SetData(dataPtr);
1369 }
efc5f224 1370static PyObject *_wrap_wxImage_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
cf694132
RD
1371 PyObject * _resultobj;
1372 wxImage * _arg0;
1dc2f865 1373 PyObject * _arg1;
1d99702e 1374 PyObject * _argo0 = 0;
1dc2f865 1375 PyObject * _obj1 = 0;
efc5f224 1376 char *_kwnames[] = { "self","data", NULL };
cf694132
RD
1377
1378 self = self;
efc5f224 1379 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxImage_SetData",_kwnames,&_argo0,&_obj1))
cf694132 1380 return NULL;
1d99702e
RD
1381 if (_argo0) {
1382 if (_argo0 == Py_None) { _arg0 = NULL; }
1383 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
cf694132
RD
1384 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_SetData. Expected _wxImage_p.");
1385 return NULL;
1386 }
1387 }
1dc2f865
RD
1388{
1389 _arg1 = _obj1;
1390}
cf694132
RD
1391{
1392 wxPy_BEGIN_ALLOW_THREADS;
1393 wxImage_SetData(_arg0,_arg1);
1394
1395 wxPy_END_ALLOW_THREADS;
1396} Py_INCREF(Py_None);
1397 _resultobj = Py_None;
1398 return _resultobj;
1399}
1400
1401#define wxImage_SetMaskColour(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetMaskColour(_swigarg0,_swigarg1,_swigarg2))
efc5f224 1402static PyObject *_wrap_wxImage_SetMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) {
cf694132
RD
1403 PyObject * _resultobj;
1404 wxImage * _arg0;
1405 unsigned char _arg1;
1406 unsigned char _arg2;
1407 unsigned char _arg3;
1d99702e 1408 PyObject * _argo0 = 0;
efc5f224 1409 char *_kwnames[] = { "self","r","g","b", NULL };
cf694132
RD
1410
1411 self = self;
efc5f224 1412 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Obbb:wxImage_SetMaskColour",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
cf694132 1413 return NULL;
1d99702e
RD
1414 if (_argo0) {
1415 if (_argo0 == Py_None) { _arg0 = NULL; }
1416 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
cf694132
RD
1417 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_SetMaskColour. Expected _wxImage_p.");
1418 return NULL;
1419 }
1420 }
1421{
1422 wxPy_BEGIN_ALLOW_THREADS;
1423 wxImage_SetMaskColour(_arg0,_arg1,_arg2,_arg3);
1424
1425 wxPy_END_ALLOW_THREADS;
1426} Py_INCREF(Py_None);
1427 _resultobj = Py_None;
1428 return _resultobj;
1429}
1430
1431#define wxImage_GetMaskRed(_swigobj) (_swigobj->GetMaskRed())
efc5f224 1432static PyObject *_wrap_wxImage_GetMaskRed(PyObject *self, PyObject *args, PyObject *kwargs) {
cf694132
RD
1433 PyObject * _resultobj;
1434 unsigned char _result;
1435 wxImage * _arg0;
1d99702e 1436 PyObject * _argo0 = 0;
efc5f224 1437 char *_kwnames[] = { "self", NULL };
cf694132
RD
1438
1439 self = self;
efc5f224 1440 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImage_GetMaskRed",_kwnames,&_argo0))
cf694132 1441 return NULL;
1d99702e
RD
1442 if (_argo0) {
1443 if (_argo0 == Py_None) { _arg0 = NULL; }
1444 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
cf694132
RD
1445 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_GetMaskRed. Expected _wxImage_p.");
1446 return NULL;
1447 }
1448 }
1449{
1450 wxPy_BEGIN_ALLOW_THREADS;
1451 _result = (unsigned char )wxImage_GetMaskRed(_arg0);
1452
1453 wxPy_END_ALLOW_THREADS;
1454} _resultobj = Py_BuildValue("b",_result);
1455 return _resultobj;
1456}
1457
1458#define wxImage_GetMaskGreen(_swigobj) (_swigobj->GetMaskGreen())
efc5f224 1459static PyObject *_wrap_wxImage_GetMaskGreen(PyObject *self, PyObject *args, PyObject *kwargs) {
cf694132
RD
1460 PyObject * _resultobj;
1461 unsigned char _result;
1462 wxImage * _arg0;
1d99702e 1463 PyObject * _argo0 = 0;
efc5f224 1464 char *_kwnames[] = { "self", NULL };
cf694132
RD
1465
1466 self = self;
efc5f224 1467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImage_GetMaskGreen",_kwnames,&_argo0))
cf694132 1468 return NULL;
1d99702e
RD
1469 if (_argo0) {
1470 if (_argo0 == Py_None) { _arg0 = NULL; }
1471 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
cf694132
RD
1472 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_GetMaskGreen. Expected _wxImage_p.");
1473 return NULL;
1474 }
1475 }
1476{
1477 wxPy_BEGIN_ALLOW_THREADS;
1478 _result = (unsigned char )wxImage_GetMaskGreen(_arg0);
1479
1480 wxPy_END_ALLOW_THREADS;
1481} _resultobj = Py_BuildValue("b",_result);
1482 return _resultobj;
1483}
1484
1485#define wxImage_GetMaskBlue(_swigobj) (_swigobj->GetMaskBlue())
efc5f224 1486static PyObject *_wrap_wxImage_GetMaskBlue(PyObject *self, PyObject *args, PyObject *kwargs) {
cf694132
RD
1487 PyObject * _resultobj;
1488 unsigned char _result;
1489 wxImage * _arg0;
1d99702e 1490 PyObject * _argo0 = 0;
efc5f224 1491 char *_kwnames[] = { "self", NULL };
cf694132
RD
1492
1493 self = self;
efc5f224 1494 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImage_GetMaskBlue",_kwnames,&_argo0))
cf694132 1495 return NULL;
1d99702e
RD
1496 if (_argo0) {
1497 if (_argo0 == Py_None) { _arg0 = NULL; }
1498 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
cf694132
RD
1499 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_GetMaskBlue. Expected _wxImage_p.");
1500 return NULL;
1501 }
1502 }
1503{
1504 wxPy_BEGIN_ALLOW_THREADS;
1505 _result = (unsigned char )wxImage_GetMaskBlue(_arg0);
1506
1507 wxPy_END_ALLOW_THREADS;
1508} _resultobj = Py_BuildValue("b",_result);
1509 return _resultobj;
1510}
1511
1512#define wxImage_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0))
efc5f224 1513static PyObject *_wrap_wxImage_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
cf694132
RD
1514 PyObject * _resultobj;
1515 wxImage * _arg0;
1d99702e
RD
1516 bool _arg1 = (bool ) TRUE;
1517 PyObject * _argo0 = 0;
1518 int tempbool1 = (int) TRUE;
efc5f224 1519 char *_kwnames[] = { "self","mask", NULL };
cf694132
RD
1520
1521 self = self;
efc5f224 1522 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxImage_SetMask",_kwnames,&_argo0,&tempbool1))
cf694132 1523 return NULL;
1d99702e
RD
1524 if (_argo0) {
1525 if (_argo0 == Py_None) { _arg0 = NULL; }
1526 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
cf694132
RD
1527 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_SetMask. Expected _wxImage_p.");
1528 return NULL;
1529 }
1530 }
1531 _arg1 = (bool ) tempbool1;
1532{
1533 wxPy_BEGIN_ALLOW_THREADS;
1534 wxImage_SetMask(_arg0,_arg1);
1535
1536 wxPy_END_ALLOW_THREADS;
1537} Py_INCREF(Py_None);
1538 _resultobj = Py_None;
1539 return _resultobj;
1540}
1541
1542#define wxImage_HasMask(_swigobj) (_swigobj->HasMask())
efc5f224 1543static PyObject *_wrap_wxImage_HasMask(PyObject *self, PyObject *args, PyObject *kwargs) {
cf694132
RD
1544 PyObject * _resultobj;
1545 bool _result;
1546 wxImage * _arg0;
1d99702e 1547 PyObject * _argo0 = 0;
efc5f224 1548 char *_kwnames[] = { "self", NULL };
cf694132
RD
1549
1550 self = self;
efc5f224 1551 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImage_HasMask",_kwnames,&_argo0))
cf694132 1552 return NULL;
1d99702e
RD
1553 if (_argo0) {
1554 if (_argo0 == Py_None) { _arg0 = NULL; }
1555 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
cf694132
RD
1556 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_HasMask. Expected _wxImage_p.");
1557 return NULL;
1558 }
1559 }
1560{
1561 wxPy_BEGIN_ALLOW_THREADS;
1562 _result = (bool )wxImage_HasMask(_arg0);
1563
1564 wxPy_END_ALLOW_THREADS;
1565} _resultobj = Py_BuildValue("i",_result);
1566 return _resultobj;
1567}
1568
1569static PyMethodDef imagecMethods[] = {
efc5f224
RD
1570 { "wxImage_HasMask", (PyCFunction) _wrap_wxImage_HasMask, METH_VARARGS | METH_KEYWORDS },
1571 { "wxImage_SetMask", (PyCFunction) _wrap_wxImage_SetMask, METH_VARARGS | METH_KEYWORDS },
1572 { "wxImage_GetMaskBlue", (PyCFunction) _wrap_wxImage_GetMaskBlue, METH_VARARGS | METH_KEYWORDS },
1573 { "wxImage_GetMaskGreen", (PyCFunction) _wrap_wxImage_GetMaskGreen, METH_VARARGS | METH_KEYWORDS },
1574 { "wxImage_GetMaskRed", (PyCFunction) _wrap_wxImage_GetMaskRed, METH_VARARGS | METH_KEYWORDS },
1575 { "wxImage_SetMaskColour", (PyCFunction) _wrap_wxImage_SetMaskColour, METH_VARARGS | METH_KEYWORDS },
1576 { "wxImage_SetData", (PyCFunction) _wrap_wxImage_SetData, METH_VARARGS | METH_KEYWORDS },
1577 { "wxImage_GetData", (PyCFunction) _wrap_wxImage_GetData, METH_VARARGS | METH_KEYWORDS },
1578 { "wxImage_GetHeight", (PyCFunction) _wrap_wxImage_GetHeight, METH_VARARGS | METH_KEYWORDS },
1579 { "wxImage_GetWidth", (PyCFunction) _wrap_wxImage_GetWidth, METH_VARARGS | METH_KEYWORDS },
1580 { "wxImage_Ok", (PyCFunction) _wrap_wxImage_Ok, METH_VARARGS | METH_KEYWORDS },
1581 { "wxImage_SaveMimeFile", (PyCFunction) _wrap_wxImage_SaveMimeFile, METH_VARARGS | METH_KEYWORDS },
1582 { "wxImage_SaveFile", (PyCFunction) _wrap_wxImage_SaveFile, METH_VARARGS | METH_KEYWORDS },
1583 { "wxImage_LoadMimeFile", (PyCFunction) _wrap_wxImage_LoadMimeFile, METH_VARARGS | METH_KEYWORDS },
1584 { "wxImage_LoadFile", (PyCFunction) _wrap_wxImage_LoadFile, METH_VARARGS | METH_KEYWORDS },
1585 { "wxImage_GetBlue", (PyCFunction) _wrap_wxImage_GetBlue, METH_VARARGS | METH_KEYWORDS },
1586 { "wxImage_GetGreen", (PyCFunction) _wrap_wxImage_GetGreen, METH_VARARGS | METH_KEYWORDS },
1587 { "wxImage_GetRed", (PyCFunction) _wrap_wxImage_GetRed, METH_VARARGS | METH_KEYWORDS },
1588 { "wxImage_SetRGB", (PyCFunction) _wrap_wxImage_SetRGB, METH_VARARGS | METH_KEYWORDS },
1589 { "wxImage_Rescale", (PyCFunction) _wrap_wxImage_Rescale, METH_VARARGS | METH_KEYWORDS },
1590 { "wxImage_Scale", (PyCFunction) _wrap_wxImage_Scale, METH_VARARGS | METH_KEYWORDS },
1591 { "wxImage_Destroy", (PyCFunction) _wrap_wxImage_Destroy, METH_VARARGS | METH_KEYWORDS },
1592 { "wxImage_Create", (PyCFunction) _wrap_wxImage_Create, METH_VARARGS | METH_KEYWORDS },
1593 { "wxImage_ConvertToBitmap", (PyCFunction) _wrap_wxImage_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS },
1594 { "delete_wxImage", (PyCFunction) _wrap_delete_wxImage, METH_VARARGS | METH_KEYWORDS },
1595 { "new_wxImage", (PyCFunction) _wrap_new_wxImage, METH_VARARGS | METH_KEYWORDS },
1596 { "new_wxGIFHandler", (PyCFunction) _wrap_new_wxGIFHandler, METH_VARARGS | METH_KEYWORDS },
1597 { "new_wxBMPHandler", (PyCFunction) _wrap_new_wxBMPHandler, METH_VARARGS | METH_KEYWORDS },
1598 { "new_wxJPEGHandler", (PyCFunction) _wrap_new_wxJPEGHandler, METH_VARARGS | METH_KEYWORDS },
1599 { "new_wxPNGHandler", (PyCFunction) _wrap_new_wxPNGHandler, METH_VARARGS | METH_KEYWORDS },
1600 { "wxImageHandler_SetMimeType", (PyCFunction) _wrap_wxImageHandler_SetMimeType, METH_VARARGS | METH_KEYWORDS },
1601 { "wxImageHandler_SetType", (PyCFunction) _wrap_wxImageHandler_SetType, METH_VARARGS | METH_KEYWORDS },
1602 { "wxImageHandler_SetExtension", (PyCFunction) _wrap_wxImageHandler_SetExtension, METH_VARARGS | METH_KEYWORDS },
1603 { "wxImageHandler_SetName", (PyCFunction) _wrap_wxImageHandler_SetName, METH_VARARGS | METH_KEYWORDS },
1604 { "wxImageHandler_GetMimeType", (PyCFunction) _wrap_wxImageHandler_GetMimeType, METH_VARARGS | METH_KEYWORDS },
1605 { "wxImageHandler_GetType", (PyCFunction) _wrap_wxImageHandler_GetType, METH_VARARGS | METH_KEYWORDS },
1606 { "wxImageHandler_GetExtension", (PyCFunction) _wrap_wxImageHandler_GetExtension, METH_VARARGS | METH_KEYWORDS },
1607 { "wxImageHandler_GetName", (PyCFunction) _wrap_wxImageHandler_GetName, METH_VARARGS | METH_KEYWORDS },
1608 { "new_wxImageHandler", (PyCFunction) _wrap_new_wxImageHandler, METH_VARARGS | METH_KEYWORDS },
1609 { "wxImage_AddHandler", (PyCFunction) _wrap_wxImage_AddHandler, METH_VARARGS | METH_KEYWORDS },
1610 { "wxImageFromBitmap", (PyCFunction) _wrap_wxImageFromBitmap, METH_VARARGS | METH_KEYWORDS },
1611 { "wxImageFromMime", (PyCFunction) _wrap_wxImageFromMime, METH_VARARGS | METH_KEYWORDS },
1612 { "wxEmptyImage", (PyCFunction) _wrap_wxEmptyImage, METH_VARARGS | METH_KEYWORDS },
1613 { "wxNullImage", (PyCFunction) _wrap_wxNullImage, METH_VARARGS | METH_KEYWORDS },
cf694132
RD
1614 { NULL, NULL }
1615};
1d99702e
RD
1616#ifdef __cplusplus
1617}
1618#endif
1619/*
1620 * This table is used by the pointer type-checker
1621 */
1622static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
1623 { "_wxAcceleratorTable","_class_wxAcceleratorTable",0},
1624 { "_signed_long","_long",0},
1625 { "_class_wxJPEGHandler","_wxJPEGHandler",0},
1626 { "_wxBMPHandler","_class_wxBMPHandler",0},
1627 { "_wxImage","_class_wxImage",0},
1628 { "_wxPrintQuality","_int",0},
1629 { "_wxPrintQuality","_signed_int",0},
1630 { "_wxPrintQuality","_unsigned_int",0},
1631 { "_wxPrintQuality","_wxWindowID",0},
1632 { "_wxPrintQuality","_uint",0},
1633 { "_wxPrintQuality","_EBool",0},
1634 { "_wxPrintQuality","_size_t",0},
1635 { "_class_wxRegionIterator","_wxRegionIterator",0},
1636 { "_wxGIFHandler","_class_wxGIFHandler",0},
1637 { "_wxIndividualLayoutConstraint","_class_wxIndividualLayoutConstraint",0},
1638 { "_wxCursor","_class_wxCursor",0},
1639 { "_wxImageHandler","_class_wxGIFHandler",SwigwxGIFHandlerTowxImageHandler},
1640 { "_wxImageHandler","_wxGIFHandler",SwigwxGIFHandlerTowxImageHandler},
1641 { "_wxImageHandler","_class_wxBMPHandler",SwigwxBMPHandlerTowxImageHandler},
1642 { "_wxImageHandler","_wxBMPHandler",SwigwxBMPHandlerTowxImageHandler},
1643 { "_wxImageHandler","_class_wxJPEGHandler",SwigwxJPEGHandlerTowxImageHandler},
1644 { "_wxImageHandler","_wxJPEGHandler",SwigwxJPEGHandlerTowxImageHandler},
1645 { "_wxImageHandler","_class_wxPNGHandler",SwigwxPNGHandlerTowxImageHandler},
1646 { "_wxImageHandler","_wxPNGHandler",SwigwxPNGHandlerTowxImageHandler},
1647 { "_wxImageHandler","_class_wxImageHandler",0},
1648 { "_wxMask","_class_wxMask",0},
1649 { "_wxPNGHandler","_class_wxPNGHandler",0},
1650 { "_wxPen","_class_wxPen",0},
1651 { "_byte","_unsigned_char",0},
1652 { "_long","_wxDash",0},
1653 { "_long","_unsigned_long",0},
1654 { "_long","_signed_long",0},
1655 { "_wxImageList","_class_wxImageList",0},
1656 { "_class_wxAcceleratorTable","_wxAcceleratorTable",0},
1657 { "_wxDC","_class_wxDC",0},
1658 { "_class_wxBMPHandler","_wxBMPHandler",0},
1659 { "_size_t","_wxPrintQuality",0},
1660 { "_size_t","_unsigned_int",0},
1661 { "_size_t","_int",0},
1662 { "_size_t","_wxWindowID",0},
1663 { "_size_t","_uint",0},
1664 { "_class_wxRealPoint","_wxRealPoint",0},
1665 { "_wxPrinterDC","_class_wxPrinterDC",0},
1666 { "_class_wxGIFHandler","_wxGIFHandler",0},
1667 { "_class_wxMask","_wxMask",0},
1668 { "_class_wxPNGHandler","_wxPNGHandler",0},
1669 { "_wxColour","_class_wxColour",0},
1670 { "_wxBrush","_class_wxBrush",0},
1671 { "_uint","_wxPrintQuality",0},
1672 { "_uint","_size_t",0},
1673 { "_uint","_unsigned_int",0},
1674 { "_uint","_int",0},
1675 { "_uint","_wxWindowID",0},
1676 { "_wxRect","_class_wxRect",0},
1677 { "_class_wxImage","_wxImage",0},
1678 { "_wxPoint","_class_wxPoint",0},
1679 { "_wxBitmap","_class_wxBitmap",0},
1680 { "_wxPyTimer","_class_wxPyTimer",0},
1681 { "_wxWindowDC","_class_wxWindowDC",0},
1682 { "_class_wxIndividualLayoutConstraint","_wxIndividualLayoutConstraint",0},
1683 { "_EBool","_wxPrintQuality",0},
1684 { "_EBool","_signed_int",0},
1685 { "_EBool","_int",0},
1686 { "_EBool","_wxWindowID",0},
1687 { "_class_wxRegion","_wxRegion",0},
1688 { "_wxFont","_class_wxFont",0},
1689 { "_unsigned_long","_wxDash",0},
1690 { "_unsigned_long","_long",0},
1691 { "_class_wxRect","_wxRect",0},
1692 { "_class_wxDC","_wxDC",0},
1693 { "_class_wxPyTimer","_wxPyTimer",0},
1694 { "_wxAcceleratorEntry","_class_wxAcceleratorEntry",0},
1695 { "_signed_int","_wxPrintQuality",0},
1696 { "_signed_int","_EBool",0},
1697 { "_signed_int","_wxWindowID",0},
1698 { "_signed_int","_int",0},
1699 { "_wxLayoutConstraints","_class_wxLayoutConstraints",0},
1700 { "_wxMetaFileDC","_class_wxMetaFileDC",0},
1701 { "_wxScreenDC","_class_wxScreenDC",0},
1702 { "_WXTYPE","_short",0},
1703 { "_WXTYPE","_signed_short",0},
1704 { "_WXTYPE","_unsigned_short",0},
1705 { "_class_wxBrush","_wxBrush",0},
1706 { "_unsigned_short","_WXTYPE",0},
1707 { "_unsigned_short","_short",0},
1708 { "_class_wxFont","_wxFont",0},
1709 { "_wxClientDC","_class_wxClientDC",0},
1710 { "_class_wxPoint","_wxPoint",0},
1711 { "_wxRealPoint","_class_wxRealPoint",0},
1712 { "_signed_short","_WXTYPE",0},
1713 { "_signed_short","_short",0},
1714 { "_wxMemoryDC","_class_wxMemoryDC",0},
1715 { "_wxPaintDC","_class_wxPaintDC",0},
1716 { "_class_wxWindowDC","_wxWindowDC",0},
1717 { "_class_wxAcceleratorEntry","_wxAcceleratorEntry",0},
1718 { "_class_wxCursor","_wxCursor",0},
1719 { "_class_wxImageHandler","_class_wxGIFHandler",SwigwxGIFHandlerTowxImageHandler},
1720 { "_class_wxImageHandler","_wxGIFHandler",SwigwxGIFHandlerTowxImageHandler},
1721 { "_class_wxImageHandler","_class_wxBMPHandler",SwigwxBMPHandlerTowxImageHandler},
1722 { "_class_wxImageHandler","_wxBMPHandler",SwigwxBMPHandlerTowxImageHandler},
1723 { "_class_wxImageHandler","_class_wxJPEGHandler",SwigwxJPEGHandlerTowxImageHandler},
1724 { "_class_wxImageHandler","_wxJPEGHandler",SwigwxJPEGHandlerTowxImageHandler},
1725 { "_class_wxImageHandler","_class_wxPNGHandler",SwigwxPNGHandlerTowxImageHandler},
1726 { "_class_wxImageHandler","_wxPNGHandler",SwigwxPNGHandlerTowxImageHandler},
1727 { "_class_wxImageHandler","_wxImageHandler",0},
1728 { "_unsigned_char","_byte",0},
1729 { "_class_wxMetaFileDC","_wxMetaFileDC",0},
1730 { "_unsigned_int","_wxPrintQuality",0},
1731 { "_unsigned_int","_size_t",0},
1732 { "_unsigned_int","_uint",0},
1733 { "_unsigned_int","_wxWindowID",0},
1734 { "_unsigned_int","_int",0},
1735 { "_wxIcon","_class_wxIcon",0},
1736 { "_class_wxPen","_wxPen",0},
1737 { "_short","_WXTYPE",0},
1738 { "_short","_unsigned_short",0},
1739 { "_short","_signed_short",0},
1740 { "_class_wxImageList","_wxImageList",0},
1741 { "_wxJPEGHandler","_class_wxJPEGHandler",0},
1742 { "_wxWindowID","_wxPrintQuality",0},
1743 { "_wxWindowID","_size_t",0},
1744 { "_wxWindowID","_EBool",0},
1745 { "_wxWindowID","_uint",0},
1746 { "_wxWindowID","_int",0},
1747 { "_wxWindowID","_signed_int",0},
1748 { "_wxWindowID","_unsigned_int",0},
1749 { "_int","_wxPrintQuality",0},
1750 { "_int","_size_t",0},
1751 { "_int","_EBool",0},
1752 { "_int","_uint",0},
1753 { "_int","_wxWindowID",0},
1754 { "_int","_unsigned_int",0},
1755 { "_int","_signed_int",0},
1756 { "_wxSize","_class_wxSize",0},
1757 { "_wxRegionIterator","_class_wxRegionIterator",0},
1758 { "_class_wxPrinterDC","_wxPrinterDC",0},
1759 { "_class_wxPaintDC","_wxPaintDC",0},
1760 { "_class_wxLayoutConstraints","_wxLayoutConstraints",0},
1761 { "_class_wxIcon","_wxIcon",0},
1762 { "_class_wxColour","_wxColour",0},
1763 { "_class_wxScreenDC","_wxScreenDC",0},
1764 { "_wxPalette","_class_wxPalette",0},
1765 { "_wxRegion","_class_wxRegion",0},
1766 { "_class_wxClientDC","_wxClientDC",0},
1767 { "_class_wxSize","_wxSize",0},
1768 { "_class_wxBitmap","_wxBitmap",0},
1769 { "_class_wxMemoryDC","_wxMemoryDC",0},
1770 { "_wxDash","_unsigned_long",0},
1771 { "_wxDash","_long",0},
1772 { "_class_wxPalette","_wxPalette",0},
1773{0,0,0}};
1774
cf694132
RD
1775static PyObject *SWIG_globals;
1776#ifdef __cplusplus
1777extern "C"
1778#endif
1d99702e 1779SWIGEXPORT(void) initimagec() {
cf694132
RD
1780 PyObject *m, *d;
1781 SWIG_globals = SWIG_newvarlink();
1782 m = Py_InitModule("imagec", imagecMethods);
1783 d = PyModule_GetDict(m);
1d99702e
RD
1784{
1785 int i;
1786 for (i = 0; _swig_mapping[i].n1; i++)
1787 SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv);
1788}
cf694132 1789}