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