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