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