]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/gtk/image.cpp
made wxLocale::GetSystemLanguage and wxLocale::AddLanguage static;
[wxWidgets.git] / wxPython / src / gtk / image.cpp
1 /*
2 * FILE : src/gtk/image.cpp
3 *
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 883)
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 if (!target) {
62 target = o;
63 } else if (target == Py_None) {
64 Py_DECREF(Py_None);
65 target = o;
66 } else {
67 if (!PyList_Check(target)) {
68 o2 = target;
69 target = PyList_New(0);
70 PyList_Append(target, o2);
71 Py_XDECREF(o2);
72 }
73 PyList_Append(target,o);
74 Py_XDECREF(o);
75 }
76 return target;
77 }
78
79 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
80 PyObject* o2;
81 PyObject* o3;
82
83 if (!target) {
84 target = o;
85 } else if (target == Py_None) {
86 Py_DECREF(Py_None);
87 target = o;
88 } else {
89 if (!PyTuple_Check(target)) {
90 o2 = target;
91 target = PyTuple_New(1);
92 PyTuple_SetItem(target, 0, o2);
93 }
94 o3 = PyTuple_New(1);
95 PyTuple_SetItem(o3, 0, o);
96
97 o2 = target;
98 target = PySequence_Concat(o2, o3);
99 Py_DECREF(o2);
100 Py_DECREF(o3);
101 }
102 return target;
103 }
104
105 static char* wxStringErrorMsg = "string type is required for parameter";
106
107 wxImage* wxNullImage() {
108 return new wxImage;
109 }
110
111 wxImage* wxEmptyImage(int width, int height) {
112 return new wxImage(width, height);
113 }
114
115 wxImage* wxImageFromMime(const wxString& name, const wxString& mimetype) {
116 return new wxImage(name, mimetype);
117 }
118
119 wxImage* wxImageFromBitmap(const wxBitmap &bitmap) {
120 return new wxImage(bitmap);
121 }
122
123 void wxImage_AddHandler(wxImageHandler *handler) {
124 wxImage::AddHandler(handler);
125 }
126 #ifdef __cplusplus
127 extern "C" {
128 #endif
129 static PyObject *_wrap_wxNullImage(PyObject *self, PyObject *args, PyObject *kwargs) {
130 PyObject * _resultobj;
131 wxImage * _result;
132 char *_kwnames[] = { NULL };
133 char _ptemp[128];
134
135 self = self;
136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxNullImage",_kwnames))
137 return NULL;
138 {
139 wxPy_BEGIN_ALLOW_THREADS;
140 _result = (wxImage *)wxNullImage();
141
142 wxPy_END_ALLOW_THREADS;
143 } if (_result) {
144 SWIG_MakePtr(_ptemp, (char *) _result,"_wxImage_p");
145 _resultobj = Py_BuildValue("s",_ptemp);
146 } else {
147 Py_INCREF(Py_None);
148 _resultobj = Py_None;
149 }
150 return _resultobj;
151 }
152
153 static PyObject *_wrap_wxEmptyImage(PyObject *self, PyObject *args, PyObject *kwargs) {
154 PyObject * _resultobj;
155 wxImage * _result;
156 int _arg0;
157 int _arg1;
158 char *_kwnames[] = { "width","height", NULL };
159 char _ptemp[128];
160
161 self = self;
162 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"ii:wxEmptyImage",_kwnames,&_arg0,&_arg1))
163 return NULL;
164 {
165 wxPy_BEGIN_ALLOW_THREADS;
166 _result = (wxImage *)wxEmptyImage(_arg0,_arg1);
167
168 wxPy_END_ALLOW_THREADS;
169 } if (_result) {
170 SWIG_MakePtr(_ptemp, (char *) _result,"_wxImage_p");
171 _resultobj = Py_BuildValue("s",_ptemp);
172 } else {
173 Py_INCREF(Py_None);
174 _resultobj = Py_None;
175 }
176 return _resultobj;
177 }
178
179 static PyObject *_wrap_wxImageFromMime(PyObject *self, PyObject *args, PyObject *kwargs) {
180 PyObject * _resultobj;
181 wxImage * _result;
182 wxString * _arg0;
183 wxString * _arg1;
184 PyObject * _obj0 = 0;
185 PyObject * _obj1 = 0;
186 char *_kwnames[] = { "name","mimetype", NULL };
187 char _ptemp[128];
188
189 self = self;
190 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxImageFromMime",_kwnames,&_obj0,&_obj1))
191 return NULL;
192 {
193 #if PYTHON_API_VERSION >= 1009
194 char* tmpPtr; int tmpSize;
195 if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) {
196 PyErr_SetString(PyExc_TypeError, "String or Unicode type required");
197 return NULL;
198 }
199 if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1)
200 return NULL;
201 _arg0 = new wxString(tmpPtr, tmpSize);
202 #else
203 if (!PyString_Check(_obj0)) {
204 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
205 return NULL;
206 }
207 _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0));
208 #endif
209 }
210 {
211 #if PYTHON_API_VERSION >= 1009
212 char* tmpPtr; int tmpSize;
213 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
214 PyErr_SetString(PyExc_TypeError, "String or Unicode type required");
215 return NULL;
216 }
217 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
218 return NULL;
219 _arg1 = new wxString(tmpPtr, tmpSize);
220 #else
221 if (!PyString_Check(_obj1)) {
222 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
223 return NULL;
224 }
225 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
226 #endif
227 }
228 {
229 wxPy_BEGIN_ALLOW_THREADS;
230 _result = (wxImage *)wxImageFromMime(*_arg0,*_arg1);
231
232 wxPy_END_ALLOW_THREADS;
233 } if (_result) {
234 SWIG_MakePtr(_ptemp, (char *) _result,"_wxImage_p");
235 _resultobj = Py_BuildValue("s",_ptemp);
236 } else {
237 Py_INCREF(Py_None);
238 _resultobj = Py_None;
239 }
240 {
241 if (_obj0)
242 delete _arg0;
243 }
244 {
245 if (_obj1)
246 delete _arg1;
247 }
248 return _resultobj;
249 }
250
251 static PyObject *_wrap_wxImageFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
252 PyObject * _resultobj;
253 wxImage * _result;
254 wxBitmap * _arg0;
255 PyObject * _argo0 = 0;
256 char *_kwnames[] = { "bitmap", NULL };
257 char _ptemp[128];
258
259 self = self;
260 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageFromBitmap",_kwnames,&_argo0))
261 return NULL;
262 if (_argo0) {
263 if (_argo0 == Py_None) { _arg0 = NULL; }
264 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
265 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageFromBitmap. Expected _wxBitmap_p.");
266 return NULL;
267 }
268 }
269 {
270 wxPy_BEGIN_ALLOW_THREADS;
271 _result = (wxImage *)wxImageFromBitmap(*_arg0);
272
273 wxPy_END_ALLOW_THREADS;
274 } if (_result) {
275 SWIG_MakePtr(_ptemp, (char *) _result,"_wxImage_p");
276 _resultobj = Py_BuildValue("s",_ptemp);
277 } else {
278 Py_INCREF(Py_None);
279 _resultobj = Py_None;
280 }
281 return _resultobj;
282 }
283
284 static PyObject *_wrap_wxImage_AddHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
285 PyObject * _resultobj;
286 wxImageHandler * _arg0;
287 PyObject * _argo0 = 0;
288 char *_kwnames[] = { "handler", NULL };
289
290 self = self;
291 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImage_AddHandler",_kwnames,&_argo0))
292 return NULL;
293 if (_argo0) {
294 if (_argo0 == Py_None) { _arg0 = NULL; }
295 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageHandler_p")) {
296 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_AddHandler. Expected _wxImageHandler_p.");
297 return NULL;
298 }
299 }
300 {
301 wxPy_BEGIN_ALLOW_THREADS;
302 wxImage_AddHandler(_arg0);
303
304 wxPy_END_ALLOW_THREADS;
305 } Py_INCREF(Py_None);
306 _resultobj = Py_None;
307 return _resultobj;
308 }
309
310 static PyObject *_wrap_wxInitAllImageHandlers(PyObject *self, PyObject *args, PyObject *kwargs) {
311 PyObject * _resultobj;
312 char *_kwnames[] = { NULL };
313
314 self = self;
315 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxInitAllImageHandlers",_kwnames))
316 return NULL;
317 {
318 wxPy_BEGIN_ALLOW_THREADS;
319 wxInitAllImageHandlers();
320
321 wxPy_END_ALLOW_THREADS;
322 } Py_INCREF(Py_None);
323 _resultobj = Py_None;
324 return _resultobj;
325 }
326
327 #define wxImageHandler_GetName(_swigobj) (_swigobj->GetName())
328 static PyObject *_wrap_wxImageHandler_GetName(PyObject *self, PyObject *args, PyObject *kwargs) {
329 PyObject * _resultobj;
330 wxString * _result;
331 wxImageHandler * _arg0;
332 PyObject * _argo0 = 0;
333 char *_kwnames[] = { "self", NULL };
334
335 self = self;
336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageHandler_GetName",_kwnames,&_argo0))
337 return NULL;
338 if (_argo0) {
339 if (_argo0 == Py_None) { _arg0 = NULL; }
340 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageHandler_p")) {
341 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageHandler_GetName. Expected _wxImageHandler_p.");
342 return NULL;
343 }
344 }
345 {
346 wxPy_BEGIN_ALLOW_THREADS;
347 _result = new wxString (wxImageHandler_GetName(_arg0));
348
349 wxPy_END_ALLOW_THREADS;
350 }{
351 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
352 }
353 {
354 delete _result;
355 }
356 return _resultobj;
357 }
358
359 #define wxImageHandler_GetExtension(_swigobj) (_swigobj->GetExtension())
360 static PyObject *_wrap_wxImageHandler_GetExtension(PyObject *self, PyObject *args, PyObject *kwargs) {
361 PyObject * _resultobj;
362 wxString * _result;
363 wxImageHandler * _arg0;
364 PyObject * _argo0 = 0;
365 char *_kwnames[] = { "self", NULL };
366
367 self = self;
368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageHandler_GetExtension",_kwnames,&_argo0))
369 return NULL;
370 if (_argo0) {
371 if (_argo0 == Py_None) { _arg0 = NULL; }
372 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageHandler_p")) {
373 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageHandler_GetExtension. Expected _wxImageHandler_p.");
374 return NULL;
375 }
376 }
377 {
378 wxPy_BEGIN_ALLOW_THREADS;
379 _result = new wxString (wxImageHandler_GetExtension(_arg0));
380
381 wxPy_END_ALLOW_THREADS;
382 }{
383 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
384 }
385 {
386 delete _result;
387 }
388 return _resultobj;
389 }
390
391 #define wxImageHandler_GetType(_swigobj) (_swigobj->GetType())
392 static PyObject *_wrap_wxImageHandler_GetType(PyObject *self, PyObject *args, PyObject *kwargs) {
393 PyObject * _resultobj;
394 long _result;
395 wxImageHandler * _arg0;
396 PyObject * _argo0 = 0;
397 char *_kwnames[] = { "self", NULL };
398
399 self = self;
400 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageHandler_GetType",_kwnames,&_argo0))
401 return NULL;
402 if (_argo0) {
403 if (_argo0 == Py_None) { _arg0 = NULL; }
404 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageHandler_p")) {
405 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageHandler_GetType. Expected _wxImageHandler_p.");
406 return NULL;
407 }
408 }
409 {
410 wxPy_BEGIN_ALLOW_THREADS;
411 _result = (long )wxImageHandler_GetType(_arg0);
412
413 wxPy_END_ALLOW_THREADS;
414 } _resultobj = Py_BuildValue("l",_result);
415 return _resultobj;
416 }
417
418 #define wxImageHandler_GetMimeType(_swigobj) (_swigobj->GetMimeType())
419 static PyObject *_wrap_wxImageHandler_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) {
420 PyObject * _resultobj;
421 wxString * _result;
422 wxImageHandler * _arg0;
423 PyObject * _argo0 = 0;
424 char *_kwnames[] = { "self", NULL };
425
426 self = self;
427 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageHandler_GetMimeType",_kwnames,&_argo0))
428 return NULL;
429 if (_argo0) {
430 if (_argo0 == Py_None) { _arg0 = NULL; }
431 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageHandler_p")) {
432 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageHandler_GetMimeType. Expected _wxImageHandler_p.");
433 return NULL;
434 }
435 }
436 {
437 wxPy_BEGIN_ALLOW_THREADS;
438 _result = new wxString (wxImageHandler_GetMimeType(_arg0));
439
440 wxPy_END_ALLOW_THREADS;
441 }{
442 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
443 }
444 {
445 delete _result;
446 }
447 return _resultobj;
448 }
449
450 #define wxImageHandler_SetName(_swigobj,_swigarg0) (_swigobj->SetName(_swigarg0))
451 static PyObject *_wrap_wxImageHandler_SetName(PyObject *self, PyObject *args, PyObject *kwargs) {
452 PyObject * _resultobj;
453 wxImageHandler * _arg0;
454 wxString * _arg1;
455 PyObject * _argo0 = 0;
456 PyObject * _obj1 = 0;
457 char *_kwnames[] = { "self","name", NULL };
458
459 self = self;
460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxImageHandler_SetName",_kwnames,&_argo0,&_obj1))
461 return NULL;
462 if (_argo0) {
463 if (_argo0 == Py_None) { _arg0 = NULL; }
464 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageHandler_p")) {
465 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageHandler_SetName. Expected _wxImageHandler_p.");
466 return NULL;
467 }
468 }
469 {
470 #if PYTHON_API_VERSION >= 1009
471 char* tmpPtr; int tmpSize;
472 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
473 PyErr_SetString(PyExc_TypeError, "String or Unicode type required");
474 return NULL;
475 }
476 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
477 return NULL;
478 _arg1 = new wxString(tmpPtr, tmpSize);
479 #else
480 if (!PyString_Check(_obj1)) {
481 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
482 return NULL;
483 }
484 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
485 #endif
486 }
487 {
488 wxPy_BEGIN_ALLOW_THREADS;
489 wxImageHandler_SetName(_arg0,*_arg1);
490
491 wxPy_END_ALLOW_THREADS;
492 } Py_INCREF(Py_None);
493 _resultobj = Py_None;
494 {
495 if (_obj1)
496 delete _arg1;
497 }
498 return _resultobj;
499 }
500
501 #define wxImageHandler_SetExtension(_swigobj,_swigarg0) (_swigobj->SetExtension(_swigarg0))
502 static PyObject *_wrap_wxImageHandler_SetExtension(PyObject *self, PyObject *args, PyObject *kwargs) {
503 PyObject * _resultobj;
504 wxImageHandler * _arg0;
505 wxString * _arg1;
506 PyObject * _argo0 = 0;
507 PyObject * _obj1 = 0;
508 char *_kwnames[] = { "self","extension", NULL };
509
510 self = self;
511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxImageHandler_SetExtension",_kwnames,&_argo0,&_obj1))
512 return NULL;
513 if (_argo0) {
514 if (_argo0 == Py_None) { _arg0 = NULL; }
515 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageHandler_p")) {
516 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageHandler_SetExtension. Expected _wxImageHandler_p.");
517 return NULL;
518 }
519 }
520 {
521 #if PYTHON_API_VERSION >= 1009
522 char* tmpPtr; int tmpSize;
523 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
524 PyErr_SetString(PyExc_TypeError, "String or Unicode type required");
525 return NULL;
526 }
527 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
528 return NULL;
529 _arg1 = new wxString(tmpPtr, tmpSize);
530 #else
531 if (!PyString_Check(_obj1)) {
532 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
533 return NULL;
534 }
535 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
536 #endif
537 }
538 {
539 wxPy_BEGIN_ALLOW_THREADS;
540 wxImageHandler_SetExtension(_arg0,*_arg1);
541
542 wxPy_END_ALLOW_THREADS;
543 } Py_INCREF(Py_None);
544 _resultobj = Py_None;
545 {
546 if (_obj1)
547 delete _arg1;
548 }
549 return _resultobj;
550 }
551
552 #define wxImageHandler_SetType(_swigobj,_swigarg0) (_swigobj->SetType(_swigarg0))
553 static PyObject *_wrap_wxImageHandler_SetType(PyObject *self, PyObject *args, PyObject *kwargs) {
554 PyObject * _resultobj;
555 wxImageHandler * _arg0;
556 long _arg1;
557 PyObject * _argo0 = 0;
558 char *_kwnames[] = { "self","type", NULL };
559
560 self = self;
561 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxImageHandler_SetType",_kwnames,&_argo0,&_arg1))
562 return NULL;
563 if (_argo0) {
564 if (_argo0 == Py_None) { _arg0 = NULL; }
565 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageHandler_p")) {
566 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageHandler_SetType. Expected _wxImageHandler_p.");
567 return NULL;
568 }
569 }
570 {
571 wxPy_BEGIN_ALLOW_THREADS;
572 wxImageHandler_SetType(_arg0,_arg1);
573
574 wxPy_END_ALLOW_THREADS;
575 } Py_INCREF(Py_None);
576 _resultobj = Py_None;
577 return _resultobj;
578 }
579
580 #define wxImageHandler_SetMimeType(_swigobj,_swigarg0) (_swigobj->SetMimeType(_swigarg0))
581 static PyObject *_wrap_wxImageHandler_SetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) {
582 PyObject * _resultobj;
583 wxImageHandler * _arg0;
584 wxString * _arg1;
585 PyObject * _argo0 = 0;
586 PyObject * _obj1 = 0;
587 char *_kwnames[] = { "self","mimetype", NULL };
588
589 self = self;
590 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxImageHandler_SetMimeType",_kwnames,&_argo0,&_obj1))
591 return NULL;
592 if (_argo0) {
593 if (_argo0 == Py_None) { _arg0 = NULL; }
594 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageHandler_p")) {
595 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageHandler_SetMimeType. Expected _wxImageHandler_p.");
596 return NULL;
597 }
598 }
599 {
600 #if PYTHON_API_VERSION >= 1009
601 char* tmpPtr; int tmpSize;
602 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
603 PyErr_SetString(PyExc_TypeError, "String or Unicode type required");
604 return NULL;
605 }
606 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
607 return NULL;
608 _arg1 = new wxString(tmpPtr, tmpSize);
609 #else
610 if (!PyString_Check(_obj1)) {
611 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
612 return NULL;
613 }
614 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
615 #endif
616 }
617 {
618 wxPy_BEGIN_ALLOW_THREADS;
619 wxImageHandler_SetMimeType(_arg0,*_arg1);
620
621 wxPy_END_ALLOW_THREADS;
622 } Py_INCREF(Py_None);
623 _resultobj = Py_None;
624 {
625 if (_obj1)
626 delete _arg1;
627 }
628 return _resultobj;
629 }
630
631 static void *SwigwxPNGHandlerTowxImageHandler(void *ptr) {
632 wxPNGHandler *src;
633 wxImageHandler *dest;
634 src = (wxPNGHandler *) ptr;
635 dest = (wxImageHandler *) src;
636 return (void *) dest;
637 }
638
639 #define new_wxPNGHandler() (new wxPNGHandler())
640 static PyObject *_wrap_new_wxPNGHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
641 PyObject * _resultobj;
642 wxPNGHandler * _result;
643 char *_kwnames[] = { NULL };
644 char _ptemp[128];
645
646 self = self;
647 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPNGHandler",_kwnames))
648 return NULL;
649 {
650 wxPy_BEGIN_ALLOW_THREADS;
651 _result = (wxPNGHandler *)new_wxPNGHandler();
652
653 wxPy_END_ALLOW_THREADS;
654 } if (_result) {
655 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPNGHandler_p");
656 _resultobj = Py_BuildValue("s",_ptemp);
657 } else {
658 Py_INCREF(Py_None);
659 _resultobj = Py_None;
660 }
661 return _resultobj;
662 }
663
664 static void *SwigwxJPEGHandlerTowxImageHandler(void *ptr) {
665 wxJPEGHandler *src;
666 wxImageHandler *dest;
667 src = (wxJPEGHandler *) ptr;
668 dest = (wxImageHandler *) src;
669 return (void *) dest;
670 }
671
672 #define new_wxJPEGHandler() (new wxJPEGHandler())
673 static PyObject *_wrap_new_wxJPEGHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
674 PyObject * _resultobj;
675 wxJPEGHandler * _result;
676 char *_kwnames[] = { NULL };
677 char _ptemp[128];
678
679 self = self;
680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxJPEGHandler",_kwnames))
681 return NULL;
682 {
683 wxPy_BEGIN_ALLOW_THREADS;
684 _result = (wxJPEGHandler *)new_wxJPEGHandler();
685
686 wxPy_END_ALLOW_THREADS;
687 } if (_result) {
688 SWIG_MakePtr(_ptemp, (char *) _result,"_wxJPEGHandler_p");
689 _resultobj = Py_BuildValue("s",_ptemp);
690 } else {
691 Py_INCREF(Py_None);
692 _resultobj = Py_None;
693 }
694 return _resultobj;
695 }
696
697 static void *SwigwxBMPHandlerTowxImageHandler(void *ptr) {
698 wxBMPHandler *src;
699 wxImageHandler *dest;
700 src = (wxBMPHandler *) ptr;
701 dest = (wxImageHandler *) src;
702 return (void *) dest;
703 }
704
705 #define new_wxBMPHandler() (new wxBMPHandler())
706 static PyObject *_wrap_new_wxBMPHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
707 PyObject * _resultobj;
708 wxBMPHandler * _result;
709 char *_kwnames[] = { NULL };
710 char _ptemp[128];
711
712 self = self;
713 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxBMPHandler",_kwnames))
714 return NULL;
715 {
716 wxPy_BEGIN_ALLOW_THREADS;
717 _result = (wxBMPHandler *)new_wxBMPHandler();
718
719 wxPy_END_ALLOW_THREADS;
720 } if (_result) {
721 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBMPHandler_p");
722 _resultobj = Py_BuildValue("s",_ptemp);
723 } else {
724 Py_INCREF(Py_None);
725 _resultobj = Py_None;
726 }
727 return _resultobj;
728 }
729
730 static void *SwigwxGIFHandlerTowxImageHandler(void *ptr) {
731 wxGIFHandler *src;
732 wxImageHandler *dest;
733 src = (wxGIFHandler *) ptr;
734 dest = (wxImageHandler *) src;
735 return (void *) dest;
736 }
737
738 #define new_wxGIFHandler() (new wxGIFHandler())
739 static PyObject *_wrap_new_wxGIFHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
740 PyObject * _resultobj;
741 wxGIFHandler * _result;
742 char *_kwnames[] = { NULL };
743 char _ptemp[128];
744
745 self = self;
746 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxGIFHandler",_kwnames))
747 return NULL;
748 {
749 wxPy_BEGIN_ALLOW_THREADS;
750 _result = (wxGIFHandler *)new_wxGIFHandler();
751
752 wxPy_END_ALLOW_THREADS;
753 } if (_result) {
754 SWIG_MakePtr(_ptemp, (char *) _result,"_wxGIFHandler_p");
755 _resultobj = Py_BuildValue("s",_ptemp);
756 } else {
757 Py_INCREF(Py_None);
758 _resultobj = Py_None;
759 }
760 return _resultobj;
761 }
762
763 static void *SwigwxPNMHandlerTowxImageHandler(void *ptr) {
764 wxPNMHandler *src;
765 wxImageHandler *dest;
766 src = (wxPNMHandler *) ptr;
767 dest = (wxImageHandler *) src;
768 return (void *) dest;
769 }
770
771 #define new_wxPNMHandler() (new wxPNMHandler())
772 static PyObject *_wrap_new_wxPNMHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
773 PyObject * _resultobj;
774 wxPNMHandler * _result;
775 char *_kwnames[] = { NULL };
776 char _ptemp[128];
777
778 self = self;
779 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPNMHandler",_kwnames))
780 return NULL;
781 {
782 wxPy_BEGIN_ALLOW_THREADS;
783 _result = (wxPNMHandler *)new_wxPNMHandler();
784
785 wxPy_END_ALLOW_THREADS;
786 } if (_result) {
787 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPNMHandler_p");
788 _resultobj = Py_BuildValue("s",_ptemp);
789 } else {
790 Py_INCREF(Py_None);
791 _resultobj = Py_None;
792 }
793 return _resultobj;
794 }
795
796 static void *SwigwxPCXHandlerTowxImageHandler(void *ptr) {
797 wxPCXHandler *src;
798 wxImageHandler *dest;
799 src = (wxPCXHandler *) ptr;
800 dest = (wxImageHandler *) src;
801 return (void *) dest;
802 }
803
804 #define new_wxPCXHandler() (new wxPCXHandler())
805 static PyObject *_wrap_new_wxPCXHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
806 PyObject * _resultobj;
807 wxPCXHandler * _result;
808 char *_kwnames[] = { NULL };
809 char _ptemp[128];
810
811 self = self;
812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPCXHandler",_kwnames))
813 return NULL;
814 {
815 wxPy_BEGIN_ALLOW_THREADS;
816 _result = (wxPCXHandler *)new_wxPCXHandler();
817
818 wxPy_END_ALLOW_THREADS;
819 } if (_result) {
820 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPCXHandler_p");
821 _resultobj = Py_BuildValue("s",_ptemp);
822 } else {
823 Py_INCREF(Py_None);
824 _resultobj = Py_None;
825 }
826 return _resultobj;
827 }
828
829 static void *SwigwxTIFFHandlerTowxImageHandler(void *ptr) {
830 wxTIFFHandler *src;
831 wxImageHandler *dest;
832 src = (wxTIFFHandler *) ptr;
833 dest = (wxImageHandler *) src;
834 return (void *) dest;
835 }
836
837 #define new_wxTIFFHandler() (new wxTIFFHandler())
838 static PyObject *_wrap_new_wxTIFFHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
839 PyObject * _resultobj;
840 wxTIFFHandler * _result;
841 char *_kwnames[] = { NULL };
842 char _ptemp[128];
843
844 self = self;
845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxTIFFHandler",_kwnames))
846 return NULL;
847 {
848 wxPy_BEGIN_ALLOW_THREADS;
849 _result = (wxTIFFHandler *)new_wxTIFFHandler();
850
851 wxPy_END_ALLOW_THREADS;
852 } if (_result) {
853 SWIG_MakePtr(_ptemp, (char *) _result,"_wxTIFFHandler_p");
854 _resultobj = Py_BuildValue("s",_ptemp);
855 } else {
856 Py_INCREF(Py_None);
857 _resultobj = Py_None;
858 }
859 return _resultobj;
860 }
861
862 #define new_wxImage(_swigarg0,_swigarg1) (new wxImage(_swigarg0,_swigarg1))
863 static PyObject *_wrap_new_wxImage(PyObject *self, PyObject *args, PyObject *kwargs) {
864 PyObject * _resultobj;
865 wxImage * _result;
866 wxString * _arg0;
867 long _arg1 = (long ) wxBITMAP_TYPE_ANY;
868 PyObject * _obj0 = 0;
869 char *_kwnames[] = { "name","type", NULL };
870 char _ptemp[128];
871
872 self = self;
873 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|l:new_wxImage",_kwnames,&_obj0,&_arg1))
874 return NULL;
875 {
876 #if PYTHON_API_VERSION >= 1009
877 char* tmpPtr; int tmpSize;
878 if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) {
879 PyErr_SetString(PyExc_TypeError, "String or Unicode type required");
880 return NULL;
881 }
882 if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1)
883 return NULL;
884 _arg0 = new wxString(tmpPtr, tmpSize);
885 #else
886 if (!PyString_Check(_obj0)) {
887 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
888 return NULL;
889 }
890 _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0));
891 #endif
892 }
893 {
894 wxPy_BEGIN_ALLOW_THREADS;
895 _result = (wxImage *)new_wxImage(*_arg0,_arg1);
896
897 wxPy_END_ALLOW_THREADS;
898 } if (_result) {
899 SWIG_MakePtr(_ptemp, (char *) _result,"_wxImage_p");
900 _resultobj = Py_BuildValue("s",_ptemp);
901 } else {
902 Py_INCREF(Py_None);
903 _resultobj = Py_None;
904 }
905 {
906 if (_obj0)
907 delete _arg0;
908 }
909 return _resultobj;
910 }
911
912 #define delete_wxImage(_swigobj) (delete _swigobj)
913 static PyObject *_wrap_delete_wxImage(PyObject *self, PyObject *args, PyObject *kwargs) {
914 PyObject * _resultobj;
915 wxImage * _arg0;
916 PyObject * _argo0 = 0;
917 char *_kwnames[] = { "self", NULL };
918
919 self = self;
920 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxImage",_kwnames,&_argo0))
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 delete_wxImage. Expected _wxImage_p.");
926 return NULL;
927 }
928 }
929 {
930 wxPy_BEGIN_ALLOW_THREADS;
931 delete_wxImage(_arg0);
932
933 wxPy_END_ALLOW_THREADS;
934 } Py_INCREF(Py_None);
935 _resultobj = Py_None;
936 return _resultobj;
937 }
938
939 #define wxImage_ConvertToBitmap(_swigobj) (_swigobj->ConvertToBitmap())
940 static PyObject *_wrap_wxImage_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
941 PyObject * _resultobj;
942 wxBitmap * _result;
943 wxImage * _arg0;
944 PyObject * _argo0 = 0;
945 char *_kwnames[] = { "self", NULL };
946 char _ptemp[128];
947
948 self = self;
949 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImage_ConvertToBitmap",_kwnames,&_argo0))
950 return NULL;
951 if (_argo0) {
952 if (_argo0 == Py_None) { _arg0 = NULL; }
953 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
954 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_ConvertToBitmap. Expected _wxImage_p.");
955 return NULL;
956 }
957 }
958 {
959 wxPy_BEGIN_ALLOW_THREADS;
960 _result = new wxBitmap (wxImage_ConvertToBitmap(_arg0));
961
962 wxPy_END_ALLOW_THREADS;
963 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p");
964 _resultobj = Py_BuildValue("s",_ptemp);
965 return _resultobj;
966 }
967
968 #define wxImage_Create(_swigobj,_swigarg0,_swigarg1) (_swigobj->Create(_swigarg0,_swigarg1))
969 static PyObject *_wrap_wxImage_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
970 PyObject * _resultobj;
971 wxImage * _arg0;
972 int _arg1;
973 int _arg2;
974 PyObject * _argo0 = 0;
975 char *_kwnames[] = { "self","width","height", NULL };
976
977 self = self;
978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxImage_Create",_kwnames,&_argo0,&_arg1,&_arg2))
979 return NULL;
980 if (_argo0) {
981 if (_argo0 == Py_None) { _arg0 = NULL; }
982 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
983 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_Create. Expected _wxImage_p.");
984 return NULL;
985 }
986 }
987 {
988 wxPy_BEGIN_ALLOW_THREADS;
989 wxImage_Create(_arg0,_arg1,_arg2);
990
991 wxPy_END_ALLOW_THREADS;
992 } Py_INCREF(Py_None);
993 _resultobj = Py_None;
994 return _resultobj;
995 }
996
997 #define wxImage_Destroy(_swigobj) (_swigobj->Destroy())
998 static PyObject *_wrap_wxImage_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
999 PyObject * _resultobj;
1000 wxImage * _arg0;
1001 PyObject * _argo0 = 0;
1002 char *_kwnames[] = { "self", NULL };
1003
1004 self = self;
1005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImage_Destroy",_kwnames,&_argo0))
1006 return NULL;
1007 if (_argo0) {
1008 if (_argo0 == Py_None) { _arg0 = NULL; }
1009 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
1010 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_Destroy. Expected _wxImage_p.");
1011 return NULL;
1012 }
1013 }
1014 {
1015 wxPy_BEGIN_ALLOW_THREADS;
1016 wxImage_Destroy(_arg0);
1017
1018 wxPy_END_ALLOW_THREADS;
1019 } Py_INCREF(Py_None);
1020 _resultobj = Py_None;
1021 return _resultobj;
1022 }
1023
1024 #define wxImage_Scale(_swigobj,_swigarg0,_swigarg1) (_swigobj->Scale(_swigarg0,_swigarg1))
1025 static PyObject *_wrap_wxImage_Scale(PyObject *self, PyObject *args, PyObject *kwargs) {
1026 PyObject * _resultobj;
1027 wxImage * _result;
1028 wxImage * _arg0;
1029 int _arg1;
1030 int _arg2;
1031 PyObject * _argo0 = 0;
1032 char *_kwnames[] = { "self","width","height", NULL };
1033 char _ptemp[128];
1034
1035 self = self;
1036 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxImage_Scale",_kwnames,&_argo0,&_arg1,&_arg2))
1037 return NULL;
1038 if (_argo0) {
1039 if (_argo0 == Py_None) { _arg0 = NULL; }
1040 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
1041 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_Scale. Expected _wxImage_p.");
1042 return NULL;
1043 }
1044 }
1045 {
1046 wxPy_BEGIN_ALLOW_THREADS;
1047 _result = new wxImage (wxImage_Scale(_arg0,_arg1,_arg2));
1048
1049 wxPy_END_ALLOW_THREADS;
1050 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxImage_p");
1051 _resultobj = Py_BuildValue("s",_ptemp);
1052 return _resultobj;
1053 }
1054
1055 #define wxImage_Rescale(_swigobj,_swigarg0,_swigarg1) (_swigobj->Rescale(_swigarg0,_swigarg1))
1056 static PyObject *_wrap_wxImage_Rescale(PyObject *self, PyObject *args, PyObject *kwargs) {
1057 PyObject * _resultobj;
1058 wxImage * _result;
1059 wxImage * _arg0;
1060 int _arg1;
1061 int _arg2;
1062 PyObject * _argo0 = 0;
1063 char *_kwnames[] = { "self","width","height", NULL };
1064 char _ptemp[128];
1065
1066 self = self;
1067 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxImage_Rescale",_kwnames,&_argo0,&_arg1,&_arg2))
1068 return NULL;
1069 if (_argo0) {
1070 if (_argo0 == Py_None) { _arg0 = NULL; }
1071 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
1072 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_Rescale. Expected _wxImage_p.");
1073 return NULL;
1074 }
1075 }
1076 {
1077 wxPy_BEGIN_ALLOW_THREADS;
1078 wxImage & _result_ref = wxImage_Rescale(_arg0,_arg1,_arg2);
1079 _result = (wxImage *) &_result_ref;
1080
1081 wxPy_END_ALLOW_THREADS;
1082 } if (_result) {
1083 SWIG_MakePtr(_ptemp, (char *) _result,"_wxImage_p");
1084 _resultobj = Py_BuildValue("s",_ptemp);
1085 } else {
1086 Py_INCREF(Py_None);
1087 _resultobj = Py_None;
1088 }
1089 return _resultobj;
1090 }
1091
1092 #define wxImage_SetRGB(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetRGB(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
1093 static PyObject *_wrap_wxImage_SetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1094 PyObject * _resultobj;
1095 wxImage * _arg0;
1096 int _arg1;
1097 int _arg2;
1098 unsigned char _arg3;
1099 unsigned char _arg4;
1100 unsigned char _arg5;
1101 PyObject * _argo0 = 0;
1102 char *_kwnames[] = { "self","x","y","r","g","b", NULL };
1103
1104 self = self;
1105 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiibbb:wxImage_SetRGB",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5))
1106 return NULL;
1107 if (_argo0) {
1108 if (_argo0 == Py_None) { _arg0 = NULL; }
1109 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
1110 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_SetRGB. Expected _wxImage_p.");
1111 return NULL;
1112 }
1113 }
1114 {
1115 wxPy_BEGIN_ALLOW_THREADS;
1116 wxImage_SetRGB(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
1117
1118 wxPy_END_ALLOW_THREADS;
1119 } Py_INCREF(Py_None);
1120 _resultobj = Py_None;
1121 return _resultobj;
1122 }
1123
1124 #define wxImage_GetRed(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetRed(_swigarg0,_swigarg1))
1125 static PyObject *_wrap_wxImage_GetRed(PyObject *self, PyObject *args, PyObject *kwargs) {
1126 PyObject * _resultobj;
1127 unsigned char _result;
1128 wxImage * _arg0;
1129 int _arg1;
1130 int _arg2;
1131 PyObject * _argo0 = 0;
1132 char *_kwnames[] = { "self","x","y", NULL };
1133
1134 self = self;
1135 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxImage_GetRed",_kwnames,&_argo0,&_arg1,&_arg2))
1136 return NULL;
1137 if (_argo0) {
1138 if (_argo0 == Py_None) { _arg0 = NULL; }
1139 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
1140 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_GetRed. Expected _wxImage_p.");
1141 return NULL;
1142 }
1143 }
1144 {
1145 wxPy_BEGIN_ALLOW_THREADS;
1146 _result = (unsigned char )wxImage_GetRed(_arg0,_arg1,_arg2);
1147
1148 wxPy_END_ALLOW_THREADS;
1149 } _resultobj = Py_BuildValue("b",_result);
1150 return _resultobj;
1151 }
1152
1153 #define wxImage_GetGreen(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetGreen(_swigarg0,_swigarg1))
1154 static PyObject *_wrap_wxImage_GetGreen(PyObject *self, PyObject *args, PyObject *kwargs) {
1155 PyObject * _resultobj;
1156 unsigned char _result;
1157 wxImage * _arg0;
1158 int _arg1;
1159 int _arg2;
1160 PyObject * _argo0 = 0;
1161 char *_kwnames[] = { "self","x","y", NULL };
1162
1163 self = self;
1164 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxImage_GetGreen",_kwnames,&_argo0,&_arg1,&_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_GetGreen. Expected _wxImage_p.");
1170 return NULL;
1171 }
1172 }
1173 {
1174 wxPy_BEGIN_ALLOW_THREADS;
1175 _result = (unsigned char )wxImage_GetGreen(_arg0,_arg1,_arg2);
1176
1177 wxPy_END_ALLOW_THREADS;
1178 } _resultobj = Py_BuildValue("b",_result);
1179 return _resultobj;
1180 }
1181
1182 #define wxImage_GetBlue(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetBlue(_swigarg0,_swigarg1))
1183 static PyObject *_wrap_wxImage_GetBlue(PyObject *self, PyObject *args, PyObject *kwargs) {
1184 PyObject * _resultobj;
1185 unsigned char _result;
1186 wxImage * _arg0;
1187 int _arg1;
1188 int _arg2;
1189 PyObject * _argo0 = 0;
1190 char *_kwnames[] = { "self","x","y", NULL };
1191
1192 self = self;
1193 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxImage_GetBlue",_kwnames,&_argo0,&_arg1,&_arg2))
1194 return NULL;
1195 if (_argo0) {
1196 if (_argo0 == Py_None) { _arg0 = NULL; }
1197 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
1198 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_GetBlue. Expected _wxImage_p.");
1199 return NULL;
1200 }
1201 }
1202 {
1203 wxPy_BEGIN_ALLOW_THREADS;
1204 _result = (unsigned char )wxImage_GetBlue(_arg0,_arg1,_arg2);
1205
1206 wxPy_END_ALLOW_THREADS;
1207 } _resultobj = Py_BuildValue("b",_result);
1208 return _resultobj;
1209 }
1210
1211 #define wxImage_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1))
1212 static PyObject *_wrap_wxImage_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
1213 PyObject * _resultobj;
1214 bool _result;
1215 wxImage * _arg0;
1216 wxString * _arg1;
1217 long _arg2 = (long ) wxBITMAP_TYPE_PNG;
1218 PyObject * _argo0 = 0;
1219 PyObject * _obj1 = 0;
1220 char *_kwnames[] = { "self","name","type", NULL };
1221
1222 self = self;
1223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|l:wxImage_LoadFile",_kwnames,&_argo0,&_obj1,&_arg2))
1224 return NULL;
1225 if (_argo0) {
1226 if (_argo0 == Py_None) { _arg0 = NULL; }
1227 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
1228 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_LoadFile. Expected _wxImage_p.");
1229 return NULL;
1230 }
1231 }
1232 {
1233 #if PYTHON_API_VERSION >= 1009
1234 char* tmpPtr; int tmpSize;
1235 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
1236 PyErr_SetString(PyExc_TypeError, "String or Unicode type required");
1237 return NULL;
1238 }
1239 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
1240 return NULL;
1241 _arg1 = new wxString(tmpPtr, tmpSize);
1242 #else
1243 if (!PyString_Check(_obj1)) {
1244 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1245 return NULL;
1246 }
1247 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
1248 #endif
1249 }
1250 {
1251 wxPy_BEGIN_ALLOW_THREADS;
1252 _result = (bool )wxImage_LoadFile(_arg0,*_arg1,_arg2);
1253
1254 wxPy_END_ALLOW_THREADS;
1255 } _resultobj = Py_BuildValue("i",_result);
1256 {
1257 if (_obj1)
1258 delete _arg1;
1259 }
1260 return _resultobj;
1261 }
1262
1263 #define wxImage_LoadMimeFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1))
1264 static PyObject *_wrap_wxImage_LoadMimeFile(PyObject *self, PyObject *args, PyObject *kwargs) {
1265 PyObject * _resultobj;
1266 bool _result;
1267 wxImage * _arg0;
1268 wxString * _arg1;
1269 wxString * _arg2;
1270 PyObject * _argo0 = 0;
1271 PyObject * _obj1 = 0;
1272 PyObject * _obj2 = 0;
1273 char *_kwnames[] = { "self","name","mimetype", NULL };
1274
1275 self = self;
1276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxImage_LoadMimeFile",_kwnames,&_argo0,&_obj1,&_obj2))
1277 return NULL;
1278 if (_argo0) {
1279 if (_argo0 == Py_None) { _arg0 = NULL; }
1280 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
1281 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_LoadMimeFile. Expected _wxImage_p.");
1282 return NULL;
1283 }
1284 }
1285 {
1286 #if PYTHON_API_VERSION >= 1009
1287 char* tmpPtr; int tmpSize;
1288 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
1289 PyErr_SetString(PyExc_TypeError, "String or Unicode type required");
1290 return NULL;
1291 }
1292 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
1293 return NULL;
1294 _arg1 = new wxString(tmpPtr, tmpSize);
1295 #else
1296 if (!PyString_Check(_obj1)) {
1297 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1298 return NULL;
1299 }
1300 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
1301 #endif
1302 }
1303 {
1304 #if PYTHON_API_VERSION >= 1009
1305 char* tmpPtr; int tmpSize;
1306 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
1307 PyErr_SetString(PyExc_TypeError, "String or Unicode type required");
1308 return NULL;
1309 }
1310 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
1311 return NULL;
1312 _arg2 = new wxString(tmpPtr, tmpSize);
1313 #else
1314 if (!PyString_Check(_obj2)) {
1315 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1316 return NULL;
1317 }
1318 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
1319 #endif
1320 }
1321 {
1322 wxPy_BEGIN_ALLOW_THREADS;
1323 _result = (bool )wxImage_LoadMimeFile(_arg0,*_arg1,*_arg2);
1324
1325 wxPy_END_ALLOW_THREADS;
1326 } _resultobj = Py_BuildValue("i",_result);
1327 {
1328 if (_obj1)
1329 delete _arg1;
1330 }
1331 {
1332 if (_obj2)
1333 delete _arg2;
1334 }
1335 return _resultobj;
1336 }
1337
1338 #define wxImage_SaveFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->SaveFile(_swigarg0,_swigarg1))
1339 static PyObject *_wrap_wxImage_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) {
1340 PyObject * _resultobj;
1341 bool _result;
1342 wxImage * _arg0;
1343 wxString * _arg1;
1344 int _arg2;
1345 PyObject * _argo0 = 0;
1346 PyObject * _obj1 = 0;
1347 char *_kwnames[] = { "self","name","type", NULL };
1348
1349 self = self;
1350 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxImage_SaveFile",_kwnames,&_argo0,&_obj1,&_arg2))
1351 return NULL;
1352 if (_argo0) {
1353 if (_argo0 == Py_None) { _arg0 = NULL; }
1354 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
1355 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_SaveFile. Expected _wxImage_p.");
1356 return NULL;
1357 }
1358 }
1359 {
1360 #if PYTHON_API_VERSION >= 1009
1361 char* tmpPtr; int tmpSize;
1362 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
1363 PyErr_SetString(PyExc_TypeError, "String or Unicode type required");
1364 return NULL;
1365 }
1366 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
1367 return NULL;
1368 _arg1 = new wxString(tmpPtr, tmpSize);
1369 #else
1370 if (!PyString_Check(_obj1)) {
1371 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1372 return NULL;
1373 }
1374 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
1375 #endif
1376 }
1377 {
1378 wxPy_BEGIN_ALLOW_THREADS;
1379 _result = (bool )wxImage_SaveFile(_arg0,*_arg1,_arg2);
1380
1381 wxPy_END_ALLOW_THREADS;
1382 } _resultobj = Py_BuildValue("i",_result);
1383 {
1384 if (_obj1)
1385 delete _arg1;
1386 }
1387 return _resultobj;
1388 }
1389
1390 #define wxImage_SaveMimeFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->SaveFile(_swigarg0,_swigarg1))
1391 static PyObject *_wrap_wxImage_SaveMimeFile(PyObject *self, PyObject *args, PyObject *kwargs) {
1392 PyObject * _resultobj;
1393 bool _result;
1394 wxImage * _arg0;
1395 wxString * _arg1;
1396 wxString * _arg2;
1397 PyObject * _argo0 = 0;
1398 PyObject * _obj1 = 0;
1399 PyObject * _obj2 = 0;
1400 char *_kwnames[] = { "self","name","mimetype", NULL };
1401
1402 self = self;
1403 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxImage_SaveMimeFile",_kwnames,&_argo0,&_obj1,&_obj2))
1404 return NULL;
1405 if (_argo0) {
1406 if (_argo0 == Py_None) { _arg0 = NULL; }
1407 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
1408 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_SaveMimeFile. Expected _wxImage_p.");
1409 return NULL;
1410 }
1411 }
1412 {
1413 #if PYTHON_API_VERSION >= 1009
1414 char* tmpPtr; int tmpSize;
1415 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
1416 PyErr_SetString(PyExc_TypeError, "String or Unicode type required");
1417 return NULL;
1418 }
1419 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
1420 return NULL;
1421 _arg1 = new wxString(tmpPtr, tmpSize);
1422 #else
1423 if (!PyString_Check(_obj1)) {
1424 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1425 return NULL;
1426 }
1427 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
1428 #endif
1429 }
1430 {
1431 #if PYTHON_API_VERSION >= 1009
1432 char* tmpPtr; int tmpSize;
1433 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
1434 PyErr_SetString(PyExc_TypeError, "String or Unicode type required");
1435 return NULL;
1436 }
1437 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
1438 return NULL;
1439 _arg2 = new wxString(tmpPtr, tmpSize);
1440 #else
1441 if (!PyString_Check(_obj2)) {
1442 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1443 return NULL;
1444 }
1445 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
1446 #endif
1447 }
1448 {
1449 wxPy_BEGIN_ALLOW_THREADS;
1450 _result = (bool )wxImage_SaveMimeFile(_arg0,*_arg1,*_arg2);
1451
1452 wxPy_END_ALLOW_THREADS;
1453 } _resultobj = Py_BuildValue("i",_result);
1454 {
1455 if (_obj1)
1456 delete _arg1;
1457 }
1458 {
1459 if (_obj2)
1460 delete _arg2;
1461 }
1462 return _resultobj;
1463 }
1464
1465 #define wxImage_Ok(_swigobj) (_swigobj->Ok())
1466 static PyObject *_wrap_wxImage_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1467 PyObject * _resultobj;
1468 bool _result;
1469 wxImage * _arg0;
1470 PyObject * _argo0 = 0;
1471 char *_kwnames[] = { "self", NULL };
1472
1473 self = self;
1474 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImage_Ok",_kwnames,&_argo0))
1475 return NULL;
1476 if (_argo0) {
1477 if (_argo0 == Py_None) { _arg0 = NULL; }
1478 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
1479 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_Ok. Expected _wxImage_p.");
1480 return NULL;
1481 }
1482 }
1483 {
1484 wxPy_BEGIN_ALLOW_THREADS;
1485 _result = (bool )wxImage_Ok(_arg0);
1486
1487 wxPy_END_ALLOW_THREADS;
1488 } _resultobj = Py_BuildValue("i",_result);
1489 return _resultobj;
1490 }
1491
1492 #define wxImage_GetWidth(_swigobj) (_swigobj->GetWidth())
1493 static PyObject *_wrap_wxImage_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1494 PyObject * _resultobj;
1495 int _result;
1496 wxImage * _arg0;
1497 PyObject * _argo0 = 0;
1498 char *_kwnames[] = { "self", NULL };
1499
1500 self = self;
1501 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImage_GetWidth",_kwnames,&_argo0))
1502 return NULL;
1503 if (_argo0) {
1504 if (_argo0 == Py_None) { _arg0 = NULL; }
1505 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
1506 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_GetWidth. Expected _wxImage_p.");
1507 return NULL;
1508 }
1509 }
1510 {
1511 wxPy_BEGIN_ALLOW_THREADS;
1512 _result = (int )wxImage_GetWidth(_arg0);
1513
1514 wxPy_END_ALLOW_THREADS;
1515 } _resultobj = Py_BuildValue("i",_result);
1516 return _resultobj;
1517 }
1518
1519 #define wxImage_GetHeight(_swigobj) (_swigobj->GetHeight())
1520 static PyObject *_wrap_wxImage_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
1521 PyObject * _resultobj;
1522 int _result;
1523 wxImage * _arg0;
1524 PyObject * _argo0 = 0;
1525 char *_kwnames[] = { "self", NULL };
1526
1527 self = self;
1528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImage_GetHeight",_kwnames,&_argo0))
1529 return NULL;
1530 if (_argo0) {
1531 if (_argo0 == Py_None) { _arg0 = NULL; }
1532 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
1533 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_GetHeight. Expected _wxImage_p.");
1534 return NULL;
1535 }
1536 }
1537 {
1538 wxPy_BEGIN_ALLOW_THREADS;
1539 _result = (int )wxImage_GetHeight(_arg0);
1540
1541 wxPy_END_ALLOW_THREADS;
1542 } _resultobj = Py_BuildValue("i",_result);
1543 return _resultobj;
1544 }
1545
1546 #define wxImage_GetSubImage(_swigobj,_swigarg0) (_swigobj->GetSubImage(_swigarg0))
1547 static PyObject *_wrap_wxImage_GetSubImage(PyObject *self, PyObject *args, PyObject *kwargs) {
1548 PyObject * _resultobj;
1549 wxImage * _result;
1550 wxImage * _arg0;
1551 wxRect * _arg1;
1552 PyObject * _argo0 = 0;
1553 wxRect temp;
1554 PyObject * _obj1 = 0;
1555 char *_kwnames[] = { "self","rect", NULL };
1556 char _ptemp[128];
1557
1558 self = self;
1559 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxImage_GetSubImage",_kwnames,&_argo0,&_obj1))
1560 return NULL;
1561 if (_argo0) {
1562 if (_argo0 == Py_None) { _arg0 = NULL; }
1563 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
1564 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_GetSubImage. Expected _wxImage_p.");
1565 return NULL;
1566 }
1567 }
1568 {
1569 _arg1 = &temp;
1570 if (! wxRect_helper(_obj1, &_arg1))
1571 return NULL;
1572 }
1573 {
1574 wxPy_BEGIN_ALLOW_THREADS;
1575 _result = new wxImage (wxImage_GetSubImage(_arg0,*_arg1));
1576
1577 wxPy_END_ALLOW_THREADS;
1578 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxImage_p");
1579 _resultobj = Py_BuildValue("s",_ptemp);
1580 return _resultobj;
1581 }
1582
1583 #define wxImage_Copy(_swigobj) (_swigobj->Copy())
1584 static PyObject *_wrap_wxImage_Copy(PyObject *self, PyObject *args, PyObject *kwargs) {
1585 PyObject * _resultobj;
1586 wxImage * _result;
1587 wxImage * _arg0;
1588 PyObject * _argo0 = 0;
1589 char *_kwnames[] = { "self", NULL };
1590 char _ptemp[128];
1591
1592 self = self;
1593 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImage_Copy",_kwnames,&_argo0))
1594 return NULL;
1595 if (_argo0) {
1596 if (_argo0 == Py_None) { _arg0 = NULL; }
1597 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
1598 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_Copy. Expected _wxImage_p.");
1599 return NULL;
1600 }
1601 }
1602 {
1603 wxPy_BEGIN_ALLOW_THREADS;
1604 _result = new wxImage (wxImage_Copy(_arg0));
1605
1606 wxPy_END_ALLOW_THREADS;
1607 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxImage_p");
1608 _resultobj = Py_BuildValue("s",_ptemp);
1609 return _resultobj;
1610 }
1611
1612 #define wxImage_Paste(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Paste(_swigarg0,_swigarg1,_swigarg2))
1613 static PyObject *_wrap_wxImage_Paste(PyObject *self, PyObject *args, PyObject *kwargs) {
1614 PyObject * _resultobj;
1615 wxImage * _arg0;
1616 wxImage * _arg1;
1617 int _arg2;
1618 int _arg3;
1619 PyObject * _argo0 = 0;
1620 PyObject * _argo1 = 0;
1621 char *_kwnames[] = { "self","image","x","y", NULL };
1622
1623 self = self;
1624 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii:wxImage_Paste",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3))
1625 return NULL;
1626 if (_argo0) {
1627 if (_argo0 == Py_None) { _arg0 = NULL; }
1628 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
1629 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_Paste. Expected _wxImage_p.");
1630 return NULL;
1631 }
1632 }
1633 if (_argo1) {
1634 if (_argo1 == Py_None) { _arg1 = NULL; }
1635 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImage_p")) {
1636 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImage_Paste. Expected _wxImage_p.");
1637 return NULL;
1638 }
1639 }
1640 {
1641 wxPy_BEGIN_ALLOW_THREADS;
1642 wxImage_Paste(_arg0,*_arg1,_arg2,_arg3);
1643
1644 wxPy_END_ALLOW_THREADS;
1645 } Py_INCREF(Py_None);
1646 _resultobj = Py_None;
1647 return _resultobj;
1648 }
1649
1650 static PyObject * wxImage_GetData(wxImage *self) {
1651 unsigned char* data = self->GetData();
1652 int len = self->GetWidth() * self->GetHeight() * 3;
1653 return PyString_FromStringAndSize((char*)data, len);
1654 }
1655 static PyObject *_wrap_wxImage_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
1656 PyObject * _resultobj;
1657 PyObject * _result;
1658 wxImage * _arg0;
1659 PyObject * _argo0 = 0;
1660 char *_kwnames[] = { "self", NULL };
1661
1662 self = self;
1663 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImage_GetData",_kwnames,&_argo0))
1664 return NULL;
1665 if (_argo0) {
1666 if (_argo0 == Py_None) { _arg0 = NULL; }
1667 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
1668 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_GetData. Expected _wxImage_p.");
1669 return NULL;
1670 }
1671 }
1672 {
1673 wxPy_BEGIN_ALLOW_THREADS;
1674 _result = (PyObject *)wxImage_GetData(_arg0);
1675
1676 wxPy_END_ALLOW_THREADS;
1677 }{
1678 _resultobj = _result;
1679 }
1680 return _resultobj;
1681 }
1682
1683 static void wxImage_SetData(wxImage *self,PyObject * data) {
1684 unsigned char* dataPtr;
1685
1686 if (! PyString_Check(data)) {
1687 PyErr_SetString(PyExc_TypeError, "Expected string object");
1688 return /* NULL */ ;
1689 }
1690
1691 size_t len = self->GetWidth() * self->GetHeight() * 3;
1692 dataPtr = (unsigned char*) malloc(len);
1693 memcpy(dataPtr, PyString_AsString(data), len);
1694 self->SetData(dataPtr);
1695 }
1696 static PyObject *_wrap_wxImage_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
1697 PyObject * _resultobj;
1698 wxImage * _arg0;
1699 PyObject * _arg1;
1700 PyObject * _argo0 = 0;
1701 PyObject * _obj1 = 0;
1702 char *_kwnames[] = { "self","data", NULL };
1703
1704 self = self;
1705 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxImage_SetData",_kwnames,&_argo0,&_obj1))
1706 return NULL;
1707 if (_argo0) {
1708 if (_argo0 == Py_None) { _arg0 = NULL; }
1709 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
1710 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_SetData. Expected _wxImage_p.");
1711 return NULL;
1712 }
1713 }
1714 {
1715 _arg1 = _obj1;
1716 }
1717 {
1718 wxPy_BEGIN_ALLOW_THREADS;
1719 wxImage_SetData(_arg0,_arg1);
1720
1721 wxPy_END_ALLOW_THREADS;
1722 } Py_INCREF(Py_None);
1723 _resultobj = Py_None;
1724 return _resultobj;
1725 }
1726
1727 #define wxImage_SetMaskColour(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetMaskColour(_swigarg0,_swigarg1,_swigarg2))
1728 static PyObject *_wrap_wxImage_SetMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1729 PyObject * _resultobj;
1730 wxImage * _arg0;
1731 unsigned char _arg1;
1732 unsigned char _arg2;
1733 unsigned char _arg3;
1734 PyObject * _argo0 = 0;
1735 char *_kwnames[] = { "self","r","g","b", NULL };
1736
1737 self = self;
1738 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Obbb:wxImage_SetMaskColour",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
1739 return NULL;
1740 if (_argo0) {
1741 if (_argo0 == Py_None) { _arg0 = NULL; }
1742 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
1743 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_SetMaskColour. Expected _wxImage_p.");
1744 return NULL;
1745 }
1746 }
1747 {
1748 wxPy_BEGIN_ALLOW_THREADS;
1749 wxImage_SetMaskColour(_arg0,_arg1,_arg2,_arg3);
1750
1751 wxPy_END_ALLOW_THREADS;
1752 } Py_INCREF(Py_None);
1753 _resultobj = Py_None;
1754 return _resultobj;
1755 }
1756
1757 #define wxImage_GetMaskRed(_swigobj) (_swigobj->GetMaskRed())
1758 static PyObject *_wrap_wxImage_GetMaskRed(PyObject *self, PyObject *args, PyObject *kwargs) {
1759 PyObject * _resultobj;
1760 unsigned char _result;
1761 wxImage * _arg0;
1762 PyObject * _argo0 = 0;
1763 char *_kwnames[] = { "self", NULL };
1764
1765 self = self;
1766 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImage_GetMaskRed",_kwnames,&_argo0))
1767 return NULL;
1768 if (_argo0) {
1769 if (_argo0 == Py_None) { _arg0 = NULL; }
1770 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
1771 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_GetMaskRed. Expected _wxImage_p.");
1772 return NULL;
1773 }
1774 }
1775 {
1776 wxPy_BEGIN_ALLOW_THREADS;
1777 _result = (unsigned char )wxImage_GetMaskRed(_arg0);
1778
1779 wxPy_END_ALLOW_THREADS;
1780 } _resultobj = Py_BuildValue("b",_result);
1781 return _resultobj;
1782 }
1783
1784 #define wxImage_GetMaskGreen(_swigobj) (_swigobj->GetMaskGreen())
1785 static PyObject *_wrap_wxImage_GetMaskGreen(PyObject *self, PyObject *args, PyObject *kwargs) {
1786 PyObject * _resultobj;
1787 unsigned char _result;
1788 wxImage * _arg0;
1789 PyObject * _argo0 = 0;
1790 char *_kwnames[] = { "self", NULL };
1791
1792 self = self;
1793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImage_GetMaskGreen",_kwnames,&_argo0))
1794 return NULL;
1795 if (_argo0) {
1796 if (_argo0 == Py_None) { _arg0 = NULL; }
1797 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
1798 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_GetMaskGreen. Expected _wxImage_p.");
1799 return NULL;
1800 }
1801 }
1802 {
1803 wxPy_BEGIN_ALLOW_THREADS;
1804 _result = (unsigned char )wxImage_GetMaskGreen(_arg0);
1805
1806 wxPy_END_ALLOW_THREADS;
1807 } _resultobj = Py_BuildValue("b",_result);
1808 return _resultobj;
1809 }
1810
1811 #define wxImage_GetMaskBlue(_swigobj) (_swigobj->GetMaskBlue())
1812 static PyObject *_wrap_wxImage_GetMaskBlue(PyObject *self, PyObject *args, PyObject *kwargs) {
1813 PyObject * _resultobj;
1814 unsigned char _result;
1815 wxImage * _arg0;
1816 PyObject * _argo0 = 0;
1817 char *_kwnames[] = { "self", NULL };
1818
1819 self = self;
1820 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImage_GetMaskBlue",_kwnames,&_argo0))
1821 return NULL;
1822 if (_argo0) {
1823 if (_argo0 == Py_None) { _arg0 = NULL; }
1824 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
1825 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_GetMaskBlue. Expected _wxImage_p.");
1826 return NULL;
1827 }
1828 }
1829 {
1830 wxPy_BEGIN_ALLOW_THREADS;
1831 _result = (unsigned char )wxImage_GetMaskBlue(_arg0);
1832
1833 wxPy_END_ALLOW_THREADS;
1834 } _resultobj = Py_BuildValue("b",_result);
1835 return _resultobj;
1836 }
1837
1838 #define wxImage_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0))
1839 static PyObject *_wrap_wxImage_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
1840 PyObject * _resultobj;
1841 wxImage * _arg0;
1842 bool _arg1 = (bool ) TRUE;
1843 PyObject * _argo0 = 0;
1844 int tempbool1 = (int) TRUE;
1845 char *_kwnames[] = { "self","mask", NULL };
1846
1847 self = self;
1848 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxImage_SetMask",_kwnames,&_argo0,&tempbool1))
1849 return NULL;
1850 if (_argo0) {
1851 if (_argo0 == Py_None) { _arg0 = NULL; }
1852 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
1853 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_SetMask. Expected _wxImage_p.");
1854 return NULL;
1855 }
1856 }
1857 _arg1 = (bool ) tempbool1;
1858 {
1859 wxPy_BEGIN_ALLOW_THREADS;
1860 wxImage_SetMask(_arg0,_arg1);
1861
1862 wxPy_END_ALLOW_THREADS;
1863 } Py_INCREF(Py_None);
1864 _resultobj = Py_None;
1865 return _resultobj;
1866 }
1867
1868 #define wxImage_HasMask(_swigobj) (_swigobj->HasMask())
1869 static PyObject *_wrap_wxImage_HasMask(PyObject *self, PyObject *args, PyObject *kwargs) {
1870 PyObject * _resultobj;
1871 bool _result;
1872 wxImage * _arg0;
1873 PyObject * _argo0 = 0;
1874 char *_kwnames[] = { "self", NULL };
1875
1876 self = self;
1877 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImage_HasMask",_kwnames,&_argo0))
1878 return NULL;
1879 if (_argo0) {
1880 if (_argo0 == Py_None) { _arg0 = NULL; }
1881 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
1882 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_HasMask. Expected _wxImage_p.");
1883 return NULL;
1884 }
1885 }
1886 {
1887 wxPy_BEGIN_ALLOW_THREADS;
1888 _result = (bool )wxImage_HasMask(_arg0);
1889
1890 wxPy_END_ALLOW_THREADS;
1891 } _resultobj = Py_BuildValue("i",_result);
1892 return _resultobj;
1893 }
1894
1895 #define wxImage_Rotate(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Rotate(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
1896 static PyObject *_wrap_wxImage_Rotate(PyObject *self, PyObject *args, PyObject *kwargs) {
1897 PyObject * _resultobj;
1898 wxImage * _result;
1899 wxImage * _arg0;
1900 double _arg1;
1901 wxPoint * _arg2;
1902 bool _arg3 = (bool ) TRUE;
1903 wxPoint * _arg4 = (wxPoint *) NULL;
1904 PyObject * _argo0 = 0;
1905 wxPoint temp;
1906 PyObject * _obj2 = 0;
1907 int tempbool3 = (int) TRUE;
1908 wxPoint temp0;
1909 PyObject * _obj4 = 0;
1910 char *_kwnames[] = { "self","angle","centre_of_rotation","interpolating","offset_after_rotation", NULL };
1911 char _ptemp[128];
1912
1913 self = self;
1914 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OdO|iO:wxImage_Rotate",_kwnames,&_argo0,&_arg1,&_obj2,&tempbool3,&_obj4))
1915 return NULL;
1916 if (_argo0) {
1917 if (_argo0 == Py_None) { _arg0 = NULL; }
1918 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
1919 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_Rotate. Expected _wxImage_p.");
1920 return NULL;
1921 }
1922 }
1923 {
1924 _arg2 = &temp;
1925 if (! wxPoint_helper(_obj2, &_arg2))
1926 return NULL;
1927 }
1928 _arg3 = (bool ) tempbool3;
1929 if (_obj4)
1930 {
1931 _arg4 = &temp0;
1932 if (! wxPoint_helper(_obj4, &_arg4))
1933 return NULL;
1934 }
1935 {
1936 wxPy_BEGIN_ALLOW_THREADS;
1937 _result = new wxImage (wxImage_Rotate(_arg0,_arg1,*_arg2,_arg3,_arg4));
1938
1939 wxPy_END_ALLOW_THREADS;
1940 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxImage_p");
1941 _resultobj = Py_BuildValue("s",_ptemp);
1942 return _resultobj;
1943 }
1944
1945 #define wxImage_Rotate90(_swigobj,_swigarg0) (_swigobj->Rotate90(_swigarg0))
1946 static PyObject *_wrap_wxImage_Rotate90(PyObject *self, PyObject *args, PyObject *kwargs) {
1947 PyObject * _resultobj;
1948 wxImage * _result;
1949 wxImage * _arg0;
1950 bool _arg1 = (bool ) TRUE;
1951 PyObject * _argo0 = 0;
1952 int tempbool1 = (int) TRUE;
1953 char *_kwnames[] = { "self","clockwise", NULL };
1954 char _ptemp[128];
1955
1956 self = self;
1957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxImage_Rotate90",_kwnames,&_argo0,&tempbool1))
1958 return NULL;
1959 if (_argo0) {
1960 if (_argo0 == Py_None) { _arg0 = NULL; }
1961 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
1962 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_Rotate90. Expected _wxImage_p.");
1963 return NULL;
1964 }
1965 }
1966 _arg1 = (bool ) tempbool1;
1967 {
1968 wxPy_BEGIN_ALLOW_THREADS;
1969 _result = new wxImage (wxImage_Rotate90(_arg0,_arg1));
1970
1971 wxPy_END_ALLOW_THREADS;
1972 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxImage_p");
1973 _resultobj = Py_BuildValue("s",_ptemp);
1974 return _resultobj;
1975 }
1976
1977 #define wxImage_Mirror(_swigobj,_swigarg0) (_swigobj->Mirror(_swigarg0))
1978 static PyObject *_wrap_wxImage_Mirror(PyObject *self, PyObject *args, PyObject *kwargs) {
1979 PyObject * _resultobj;
1980 wxImage * _result;
1981 wxImage * _arg0;
1982 bool _arg1 = (bool ) TRUE;
1983 PyObject * _argo0 = 0;
1984 int tempbool1 = (int) TRUE;
1985 char *_kwnames[] = { "self","horizontally", NULL };
1986 char _ptemp[128];
1987
1988 self = self;
1989 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxImage_Mirror",_kwnames,&_argo0,&tempbool1))
1990 return NULL;
1991 if (_argo0) {
1992 if (_argo0 == Py_None) { _arg0 = NULL; }
1993 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
1994 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_Mirror. Expected _wxImage_p.");
1995 return NULL;
1996 }
1997 }
1998 _arg1 = (bool ) tempbool1;
1999 {
2000 wxPy_BEGIN_ALLOW_THREADS;
2001 _result = new wxImage (wxImage_Mirror(_arg0,_arg1));
2002
2003 wxPy_END_ALLOW_THREADS;
2004 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxImage_p");
2005 _resultobj = Py_BuildValue("s",_ptemp);
2006 return _resultobj;
2007 }
2008
2009 #define wxImage_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
2010 static PyObject *_wrap_wxImage_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
2011 PyObject * _resultobj;
2012 wxImage * _arg0;
2013 unsigned char _arg1;
2014 unsigned char _arg2;
2015 unsigned char _arg3;
2016 unsigned char _arg4;
2017 unsigned char _arg5;
2018 unsigned char _arg6;
2019 PyObject * _argo0 = 0;
2020 char *_kwnames[] = { "self","r1","g1","b1","r2","g2","b2", NULL };
2021
2022 self = self;
2023 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Obbbbbb:wxImage_Replace",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6))
2024 return NULL;
2025 if (_argo0) {
2026 if (_argo0 == Py_None) { _arg0 = NULL; }
2027 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
2028 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_Replace. Expected _wxImage_p.");
2029 return NULL;
2030 }
2031 }
2032 {
2033 wxPy_BEGIN_ALLOW_THREADS;
2034 wxImage_Replace(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
2035
2036 wxPy_END_ALLOW_THREADS;
2037 } Py_INCREF(Py_None);
2038 _resultobj = Py_None;
2039 return _resultobj;
2040 }
2041
2042 #define wxImage_CountColours(_swigobj,_swigarg0) (_swigobj->CountColours(_swigarg0))
2043 static PyObject *_wrap_wxImage_CountColours(PyObject *self, PyObject *args, PyObject *kwargs) {
2044 PyObject * _resultobj;
2045 unsigned long _result;
2046 wxImage * _arg0;
2047 unsigned long _arg1 = (unsigned long ) (unsigned long)-1;
2048 PyObject * _argo0 = 0;
2049 char *_kwnames[] = { "self","stopafter", NULL };
2050
2051 self = self;
2052 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|l:wxImage_CountColours",_kwnames,&_argo0,&_arg1))
2053 return NULL;
2054 if (_argo0) {
2055 if (_argo0 == Py_None) { _arg0 = NULL; }
2056 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
2057 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_CountColours. Expected _wxImage_p.");
2058 return NULL;
2059 }
2060 }
2061 {
2062 wxPy_BEGIN_ALLOW_THREADS;
2063 _result = (unsigned long )wxImage_CountColours(_arg0,_arg1);
2064
2065 wxPy_END_ALLOW_THREADS;
2066 } _resultobj = Py_BuildValue("l",_result);
2067 return _resultobj;
2068 }
2069
2070 static PyMethodDef imagecMethods[] = {
2071 { "wxImage_CountColours", (PyCFunction) _wrap_wxImage_CountColours, METH_VARARGS | METH_KEYWORDS },
2072 { "wxImage_Replace", (PyCFunction) _wrap_wxImage_Replace, METH_VARARGS | METH_KEYWORDS },
2073 { "wxImage_Mirror", (PyCFunction) _wrap_wxImage_Mirror, METH_VARARGS | METH_KEYWORDS },
2074 { "wxImage_Rotate90", (PyCFunction) _wrap_wxImage_Rotate90, METH_VARARGS | METH_KEYWORDS },
2075 { "wxImage_Rotate", (PyCFunction) _wrap_wxImage_Rotate, METH_VARARGS | METH_KEYWORDS },
2076 { "wxImage_HasMask", (PyCFunction) _wrap_wxImage_HasMask, METH_VARARGS | METH_KEYWORDS },
2077 { "wxImage_SetMask", (PyCFunction) _wrap_wxImage_SetMask, METH_VARARGS | METH_KEYWORDS },
2078 { "wxImage_GetMaskBlue", (PyCFunction) _wrap_wxImage_GetMaskBlue, METH_VARARGS | METH_KEYWORDS },
2079 { "wxImage_GetMaskGreen", (PyCFunction) _wrap_wxImage_GetMaskGreen, METH_VARARGS | METH_KEYWORDS },
2080 { "wxImage_GetMaskRed", (PyCFunction) _wrap_wxImage_GetMaskRed, METH_VARARGS | METH_KEYWORDS },
2081 { "wxImage_SetMaskColour", (PyCFunction) _wrap_wxImage_SetMaskColour, METH_VARARGS | METH_KEYWORDS },
2082 { "wxImage_SetData", (PyCFunction) _wrap_wxImage_SetData, METH_VARARGS | METH_KEYWORDS },
2083 { "wxImage_GetData", (PyCFunction) _wrap_wxImage_GetData, METH_VARARGS | METH_KEYWORDS },
2084 { "wxImage_Paste", (PyCFunction) _wrap_wxImage_Paste, METH_VARARGS | METH_KEYWORDS },
2085 { "wxImage_Copy", (PyCFunction) _wrap_wxImage_Copy, METH_VARARGS | METH_KEYWORDS },
2086 { "wxImage_GetSubImage", (PyCFunction) _wrap_wxImage_GetSubImage, METH_VARARGS | METH_KEYWORDS },
2087 { "wxImage_GetHeight", (PyCFunction) _wrap_wxImage_GetHeight, METH_VARARGS | METH_KEYWORDS },
2088 { "wxImage_GetWidth", (PyCFunction) _wrap_wxImage_GetWidth, METH_VARARGS | METH_KEYWORDS },
2089 { "wxImage_Ok", (PyCFunction) _wrap_wxImage_Ok, METH_VARARGS | METH_KEYWORDS },
2090 { "wxImage_SaveMimeFile", (PyCFunction) _wrap_wxImage_SaveMimeFile, METH_VARARGS | METH_KEYWORDS },
2091 { "wxImage_SaveFile", (PyCFunction) _wrap_wxImage_SaveFile, METH_VARARGS | METH_KEYWORDS },
2092 { "wxImage_LoadMimeFile", (PyCFunction) _wrap_wxImage_LoadMimeFile, METH_VARARGS | METH_KEYWORDS },
2093 { "wxImage_LoadFile", (PyCFunction) _wrap_wxImage_LoadFile, METH_VARARGS | METH_KEYWORDS },
2094 { "wxImage_GetBlue", (PyCFunction) _wrap_wxImage_GetBlue, METH_VARARGS | METH_KEYWORDS },
2095 { "wxImage_GetGreen", (PyCFunction) _wrap_wxImage_GetGreen, METH_VARARGS | METH_KEYWORDS },
2096 { "wxImage_GetRed", (PyCFunction) _wrap_wxImage_GetRed, METH_VARARGS | METH_KEYWORDS },
2097 { "wxImage_SetRGB", (PyCFunction) _wrap_wxImage_SetRGB, METH_VARARGS | METH_KEYWORDS },
2098 { "wxImage_Rescale", (PyCFunction) _wrap_wxImage_Rescale, METH_VARARGS | METH_KEYWORDS },
2099 { "wxImage_Scale", (PyCFunction) _wrap_wxImage_Scale, METH_VARARGS | METH_KEYWORDS },
2100 { "wxImage_Destroy", (PyCFunction) _wrap_wxImage_Destroy, METH_VARARGS | METH_KEYWORDS },
2101 { "wxImage_Create", (PyCFunction) _wrap_wxImage_Create, METH_VARARGS | METH_KEYWORDS },
2102 { "wxImage_ConvertToBitmap", (PyCFunction) _wrap_wxImage_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS },
2103 { "delete_wxImage", (PyCFunction) _wrap_delete_wxImage, METH_VARARGS | METH_KEYWORDS },
2104 { "new_wxImage", (PyCFunction) _wrap_new_wxImage, METH_VARARGS | METH_KEYWORDS },
2105 { "new_wxTIFFHandler", (PyCFunction) _wrap_new_wxTIFFHandler, METH_VARARGS | METH_KEYWORDS },
2106 { "new_wxPCXHandler", (PyCFunction) _wrap_new_wxPCXHandler, METH_VARARGS | METH_KEYWORDS },
2107 { "new_wxPNMHandler", (PyCFunction) _wrap_new_wxPNMHandler, METH_VARARGS | METH_KEYWORDS },
2108 { "new_wxGIFHandler", (PyCFunction) _wrap_new_wxGIFHandler, METH_VARARGS | METH_KEYWORDS },
2109 { "new_wxBMPHandler", (PyCFunction) _wrap_new_wxBMPHandler, METH_VARARGS | METH_KEYWORDS },
2110 { "new_wxJPEGHandler", (PyCFunction) _wrap_new_wxJPEGHandler, METH_VARARGS | METH_KEYWORDS },
2111 { "new_wxPNGHandler", (PyCFunction) _wrap_new_wxPNGHandler, METH_VARARGS | METH_KEYWORDS },
2112 { "wxImageHandler_SetMimeType", (PyCFunction) _wrap_wxImageHandler_SetMimeType, METH_VARARGS | METH_KEYWORDS },
2113 { "wxImageHandler_SetType", (PyCFunction) _wrap_wxImageHandler_SetType, METH_VARARGS | METH_KEYWORDS },
2114 { "wxImageHandler_SetExtension", (PyCFunction) _wrap_wxImageHandler_SetExtension, METH_VARARGS | METH_KEYWORDS },
2115 { "wxImageHandler_SetName", (PyCFunction) _wrap_wxImageHandler_SetName, METH_VARARGS | METH_KEYWORDS },
2116 { "wxImageHandler_GetMimeType", (PyCFunction) _wrap_wxImageHandler_GetMimeType, METH_VARARGS | METH_KEYWORDS },
2117 { "wxImageHandler_GetType", (PyCFunction) _wrap_wxImageHandler_GetType, METH_VARARGS | METH_KEYWORDS },
2118 { "wxImageHandler_GetExtension", (PyCFunction) _wrap_wxImageHandler_GetExtension, METH_VARARGS | METH_KEYWORDS },
2119 { "wxImageHandler_GetName", (PyCFunction) _wrap_wxImageHandler_GetName, METH_VARARGS | METH_KEYWORDS },
2120 { "wxInitAllImageHandlers", (PyCFunction) _wrap_wxInitAllImageHandlers, METH_VARARGS | METH_KEYWORDS },
2121 { "wxImage_AddHandler", (PyCFunction) _wrap_wxImage_AddHandler, METH_VARARGS | METH_KEYWORDS },
2122 { "wxImageFromBitmap", (PyCFunction) _wrap_wxImageFromBitmap, METH_VARARGS | METH_KEYWORDS },
2123 { "wxImageFromMime", (PyCFunction) _wrap_wxImageFromMime, METH_VARARGS | METH_KEYWORDS },
2124 { "wxEmptyImage", (PyCFunction) _wrap_wxEmptyImage, METH_VARARGS | METH_KEYWORDS },
2125 { "wxNullImage", (PyCFunction) _wrap_wxNullImage, METH_VARARGS | METH_KEYWORDS },
2126 { NULL, NULL }
2127 };
2128 #ifdef __cplusplus
2129 }
2130 #endif
2131 /*
2132 * This table is used by the pointer type-checker
2133 */
2134 static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
2135 { "_wxAcceleratorTable","_class_wxAcceleratorTable",0},
2136 { "_signed_long","_long",0},
2137 { "_class_wxJPEGHandler","_wxJPEGHandler",0},
2138 { "_wxBMPHandler","_class_wxBMPHandler",0},
2139 { "_wxImage","_class_wxImage",0},
2140 { "_wxPrintQuality","_wxCoord",0},
2141 { "_wxPrintQuality","_int",0},
2142 { "_wxPrintQuality","_signed_int",0},
2143 { "_wxPrintQuality","_unsigned_int",0},
2144 { "_wxPrintQuality","_wxWindowID",0},
2145 { "_wxPrintQuality","_uint",0},
2146 { "_wxPrintQuality","_EBool",0},
2147 { "_wxPrintQuality","_size_t",0},
2148 { "_wxPrintQuality","_time_t",0},
2149 { "_class_wxRegionIterator","_wxRegionIterator",0},
2150 { "_wxGIFHandler","_class_wxGIFHandler",0},
2151 { "_wxIndividualLayoutConstraint","_class_wxIndividualLayoutConstraint",0},
2152 { "_wxCursor","_class_wxCursor",0},
2153 { "_wxImageHandler","_class_wxTIFFHandler",SwigwxTIFFHandlerTowxImageHandler},
2154 { "_wxImageHandler","_wxTIFFHandler",SwigwxTIFFHandlerTowxImageHandler},
2155 { "_wxImageHandler","_class_wxPCXHandler",SwigwxPCXHandlerTowxImageHandler},
2156 { "_wxImageHandler","_wxPCXHandler",SwigwxPCXHandlerTowxImageHandler},
2157 { "_wxImageHandler","_class_wxPNMHandler",SwigwxPNMHandlerTowxImageHandler},
2158 { "_wxImageHandler","_wxPNMHandler",SwigwxPNMHandlerTowxImageHandler},
2159 { "_wxImageHandler","_class_wxGIFHandler",SwigwxGIFHandlerTowxImageHandler},
2160 { "_wxImageHandler","_wxGIFHandler",SwigwxGIFHandlerTowxImageHandler},
2161 { "_wxImageHandler","_class_wxBMPHandler",SwigwxBMPHandlerTowxImageHandler},
2162 { "_wxImageHandler","_wxBMPHandler",SwigwxBMPHandlerTowxImageHandler},
2163 { "_wxImageHandler","_class_wxJPEGHandler",SwigwxJPEGHandlerTowxImageHandler},
2164 { "_wxImageHandler","_wxJPEGHandler",SwigwxJPEGHandlerTowxImageHandler},
2165 { "_wxImageHandler","_class_wxPNGHandler",SwigwxPNGHandlerTowxImageHandler},
2166 { "_wxImageHandler","_wxPNGHandler",SwigwxPNGHandlerTowxImageHandler},
2167 { "_wxImageHandler","_class_wxImageHandler",0},
2168 { "_wxMask","_class_wxMask",0},
2169 { "_wxPNGHandler","_class_wxPNGHandler",0},
2170 { "_wxPen","_class_wxPen",0},
2171 { "_byte","_unsigned_char",0},
2172 { "_long","_unsigned_long",0},
2173 { "_long","_signed_long",0},
2174 { "_wxImageList","_class_wxImageList",0},
2175 { "_class_wxTIFFHandler","_wxTIFFHandler",0},
2176 { "_class_wxAcceleratorTable","_wxAcceleratorTable",0},
2177 { "_wxDC","_class_wxDC",0},
2178 { "_class_wxBMPHandler","_wxBMPHandler",0},
2179 { "_size_t","_wxCoord",0},
2180 { "_size_t","_wxPrintQuality",0},
2181 { "_size_t","_time_t",0},
2182 { "_size_t","_unsigned_int",0},
2183 { "_size_t","_int",0},
2184 { "_size_t","_wxWindowID",0},
2185 { "_size_t","_uint",0},
2186 { "_class_wxRealPoint","_wxRealPoint",0},
2187 { "_wxPNMHandler","_class_wxPNMHandler",0},
2188 { "_class_wxGIFHandler","_wxGIFHandler",0},
2189 { "_class_wxPostScriptDC","_wxPostScriptDC",0},
2190 { "_class_wxMask","_wxMask",0},
2191 { "_class_wxPNGHandler","_wxPNGHandler",0},
2192 { "_wxColour","_class_wxColour",0},
2193 { "_wxBrush","_class_wxBrush",0},
2194 { "_uint","_wxCoord",0},
2195 { "_uint","_wxPrintQuality",0},
2196 { "_uint","_time_t",0},
2197 { "_uint","_size_t",0},
2198 { "_uint","_unsigned_int",0},
2199 { "_uint","_int",0},
2200 { "_uint","_wxWindowID",0},
2201 { "_wxChar","_char",0},
2202 { "_wxRect","_class_wxRect",0},
2203 { "_class_wxImage","_wxImage",0},
2204 { "_wxPoint","_class_wxPoint",0},
2205 { "_class_wxPNMHandler","_wxPNMHandler",0},
2206 { "_char","_wxChar",0},
2207 { "_wxBitmap","_class_wxBitmap",0},
2208 { "_wxWindowDC","_class_wxWindowDC",0},
2209 { "_class_wxIndividualLayoutConstraint","_wxIndividualLayoutConstraint",0},
2210 { "_EBool","_wxCoord",0},
2211 { "_EBool","_wxPrintQuality",0},
2212 { "_EBool","_signed_int",0},
2213 { "_EBool","_int",0},
2214 { "_EBool","_wxWindowID",0},
2215 { "_class_wxRegion","_wxRegion",0},
2216 { "_wxFont","_class_wxFont",0},
2217 { "_unsigned_long","_long",0},
2218 { "_class_wxRect","_wxRect",0},
2219 { "_class_wxDC","_wxDC",0},
2220 { "_wxAcceleratorEntry","_class_wxAcceleratorEntry",0},
2221 { "_signed_int","_wxCoord",0},
2222 { "_signed_int","_wxPrintQuality",0},
2223 { "_signed_int","_EBool",0},
2224 { "_signed_int","_wxWindowID",0},
2225 { "_signed_int","_int",0},
2226 { "_wxLayoutConstraints","_class_wxLayoutConstraints",0},
2227 { "_wxScreenDC","_class_wxScreenDC",0},
2228 { "_WXTYPE","_short",0},
2229 { "_WXTYPE","_signed_short",0},
2230 { "_WXTYPE","_unsigned_short",0},
2231 { "_class_wxBrush","_wxBrush",0},
2232 { "_unsigned_short","_WXTYPE",0},
2233 { "_unsigned_short","_short",0},
2234 { "_class_wxFont","_wxFont",0},
2235 { "_wxBusyInfo","_class_wxBusyInfo",0},
2236 { "_wxClientDC","_class_wxClientDC",0},
2237 { "_class_wxPoint","_wxPoint",0},
2238 { "_wxRealPoint","_class_wxRealPoint",0},
2239 { "_signed_short","_WXTYPE",0},
2240 { "_signed_short","_short",0},
2241 { "_wxMemoryDC","_class_wxMemoryDC",0},
2242 { "_wxPaintDC","_class_wxPaintDC",0},
2243 { "_class_wxWindowDC","_wxWindowDC",0},
2244 { "_class_wxAcceleratorEntry","_wxAcceleratorEntry",0},
2245 { "_class_wxCursor","_wxCursor",0},
2246 { "_wxPostScriptDC","_class_wxPostScriptDC",0},
2247 { "_class_wxImageHandler","_class_wxTIFFHandler",SwigwxTIFFHandlerTowxImageHandler},
2248 { "_class_wxImageHandler","_wxTIFFHandler",SwigwxTIFFHandlerTowxImageHandler},
2249 { "_class_wxImageHandler","_class_wxPCXHandler",SwigwxPCXHandlerTowxImageHandler},
2250 { "_class_wxImageHandler","_wxPCXHandler",SwigwxPCXHandlerTowxImageHandler},
2251 { "_class_wxImageHandler","_class_wxPNMHandler",SwigwxPNMHandlerTowxImageHandler},
2252 { "_class_wxImageHandler","_wxPNMHandler",SwigwxPNMHandlerTowxImageHandler},
2253 { "_class_wxImageHandler","_class_wxGIFHandler",SwigwxGIFHandlerTowxImageHandler},
2254 { "_class_wxImageHandler","_wxGIFHandler",SwigwxGIFHandlerTowxImageHandler},
2255 { "_class_wxImageHandler","_class_wxBMPHandler",SwigwxBMPHandlerTowxImageHandler},
2256 { "_class_wxImageHandler","_wxBMPHandler",SwigwxBMPHandlerTowxImageHandler},
2257 { "_class_wxImageHandler","_class_wxJPEGHandler",SwigwxJPEGHandlerTowxImageHandler},
2258 { "_class_wxImageHandler","_wxJPEGHandler",SwigwxJPEGHandlerTowxImageHandler},
2259 { "_class_wxImageHandler","_class_wxPNGHandler",SwigwxPNGHandlerTowxImageHandler},
2260 { "_class_wxImageHandler","_wxPNGHandler",SwigwxPNGHandlerTowxImageHandler},
2261 { "_class_wxImageHandler","_wxImageHandler",0},
2262 { "_unsigned_char","_byte",0},
2263 { "_unsigned_int","_wxCoord",0},
2264 { "_unsigned_int","_wxPrintQuality",0},
2265 { "_unsigned_int","_time_t",0},
2266 { "_unsigned_int","_size_t",0},
2267 { "_unsigned_int","_uint",0},
2268 { "_unsigned_int","_wxWindowID",0},
2269 { "_unsigned_int","_int",0},
2270 { "_wxIcon","_class_wxIcon",0},
2271 { "_class_wxPen","_wxPen",0},
2272 { "_short","_WXTYPE",0},
2273 { "_short","_unsigned_short",0},
2274 { "_short","_signed_short",0},
2275 { "_class_wxImageList","_wxImageList",0},
2276 { "_wxPCXHandler","_class_wxPCXHandler",0},
2277 { "_wxJPEGHandler","_class_wxJPEGHandler",0},
2278 { "_wxWindowID","_wxCoord",0},
2279 { "_wxWindowID","_wxPrintQuality",0},
2280 { "_wxWindowID","_time_t",0},
2281 { "_wxWindowID","_size_t",0},
2282 { "_wxWindowID","_EBool",0},
2283 { "_wxWindowID","_uint",0},
2284 { "_wxWindowID","_int",0},
2285 { "_wxWindowID","_signed_int",0},
2286 { "_wxWindowID","_unsigned_int",0},
2287 { "_int","_wxCoord",0},
2288 { "_int","_wxPrintQuality",0},
2289 { "_int","_time_t",0},
2290 { "_int","_size_t",0},
2291 { "_int","_EBool",0},
2292 { "_int","_uint",0},
2293 { "_int","_wxWindowID",0},
2294 { "_int","_unsigned_int",0},
2295 { "_int","_signed_int",0},
2296 { "_time_t","_wxCoord",0},
2297 { "_time_t","_wxPrintQuality",0},
2298 { "_time_t","_unsigned_int",0},
2299 { "_time_t","_int",0},
2300 { "_time_t","_wxWindowID",0},
2301 { "_time_t","_uint",0},
2302 { "_time_t","_size_t",0},
2303 { "_wxSize","_class_wxSize",0},
2304 { "_wxRegionIterator","_class_wxRegionIterator",0},
2305 { "_class_wxPaintDC","_wxPaintDC",0},
2306 { "_class_wxLayoutConstraints","_wxLayoutConstraints",0},
2307 { "_class_wxIcon","_wxIcon",0},
2308 { "_class_wxColour","_wxColour",0},
2309 { "_class_wxScreenDC","_wxScreenDC",0},
2310 { "_wxPalette","_class_wxPalette",0},
2311 { "_wxCoord","_int",0},
2312 { "_wxCoord","_signed_int",0},
2313 { "_wxCoord","_unsigned_int",0},
2314 { "_wxCoord","_wxWindowID",0},
2315 { "_wxCoord","_uint",0},
2316 { "_wxCoord","_EBool",0},
2317 { "_wxCoord","_size_t",0},
2318 { "_wxCoord","_time_t",0},
2319 { "_wxCoord","_wxPrintQuality",0},
2320 { "_wxRegion","_class_wxRegion",0},
2321 { "_class_wxPCXHandler","_wxPCXHandler",0},
2322 { "_wxTIFFHandler","_class_wxTIFFHandler",0},
2323 { "_class_wxBusyInfo","_wxBusyInfo",0},
2324 { "_class_wxClientDC","_wxClientDC",0},
2325 { "_class_wxSize","_wxSize",0},
2326 { "_class_wxBitmap","_wxBitmap",0},
2327 { "_class_wxMemoryDC","_wxMemoryDC",0},
2328 { "_class_wxPalette","_wxPalette",0},
2329 {0,0,0}};
2330
2331 static PyObject *SWIG_globals;
2332 #ifdef __cplusplus
2333 extern "C"
2334 #endif
2335 SWIGEXPORT(void) initimagec() {
2336 PyObject *m, *d;
2337 SWIG_globals = SWIG_newvarlink();
2338 m = Py_InitModule("imagec", imagecMethods);
2339 d = PyModule_GetDict(m);
2340 {
2341 int i;
2342 for (i = 0; _swig_mapping[i].n1; i++)
2343 SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv);
2344 }
2345 }