2 * FILE : src/gtk/image.cpp
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 883)
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.
13 * Do not make changes to this file--changes will be lost!
19 /* Implementation : PYTHON */
24 /* Definitions for Windows/Unix exporting */
25 #if defined(__WIN32__)
26 # if defined(_MSC_VER)
27 # define SWIGEXPORT(a) __declspec(dllexport) a
29 # if defined(__BORLANDC__)
30 # define SWIGEXPORT(a) a _export
32 # define SWIGEXPORT(a) a
36 # define SWIGEXPORT(a) a
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);
52 #define SWIG_init initimagec
54 #define SWIG_name "imagec"
59 static PyObject
* l_output_helper(PyObject
* target
, PyObject
* o
) {
63 } else if (target
== Py_None
) {
67 if (!PyList_Check(target
)) {
69 target
= PyList_New(0);
70 PyList_Append(target
, o2
);
73 PyList_Append(target
,o
);
79 static PyObject
* t_output_helper(PyObject
* target
, PyObject
* o
) {
85 } else if (target
== Py_None
) {
89 if (!PyTuple_Check(target
)) {
91 target
= PyTuple_New(1);
92 PyTuple_SetItem(target
, 0, o2
);
95 PyTuple_SetItem(o3
, 0, o
);
98 target
= PySequence_Concat(o2
, o3
);
105 static char* wxStringErrorMsg
= "string type is required for parameter";
107 wxImage
* wxNullImage() {
111 wxImage
* wxEmptyImage(int width
, int height
) {
112 return new wxImage(width
, height
);
115 wxImage
* wxImageFromMime(const wxString
& name
, const wxString
& mimetype
) {
116 return new wxImage(name
, mimetype
);
119 wxImage
* wxImageFromBitmap(const wxBitmap
&bitmap
) {
120 return new wxImage(bitmap
);
123 void wxImage_AddHandler(wxImageHandler
*handler
) {
124 wxImage::AddHandler(handler
);
129 static PyObject
*_wrap_wxNullImage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
130 PyObject
* _resultobj
;
132 char *_kwnames
[] = { NULL
};
136 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxNullImage",_kwnames
))
139 wxPy_BEGIN_ALLOW_THREADS
;
140 _result
= (wxImage
*)wxNullImage();
142 wxPy_END_ALLOW_THREADS
;
144 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImage_p");
145 _resultobj
= Py_BuildValue("s",_ptemp
);
148 _resultobj
= Py_None
;
153 static PyObject
*_wrap_wxEmptyImage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
154 PyObject
* _resultobj
;
158 char *_kwnames
[] = { "width","height", NULL
};
162 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"ii:wxEmptyImage",_kwnames
,&_arg0
,&_arg1
))
165 wxPy_BEGIN_ALLOW_THREADS
;
166 _result
= (wxImage
*)wxEmptyImage(_arg0
,_arg1
);
168 wxPy_END_ALLOW_THREADS
;
170 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImage_p");
171 _resultobj
= Py_BuildValue("s",_ptemp
);
174 _resultobj
= Py_None
;
179 static PyObject
*_wrap_wxImageFromMime(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
180 PyObject
* _resultobj
;
184 PyObject
* _obj0
= 0;
185 PyObject
* _obj1
= 0;
186 char *_kwnames
[] = { "name","mimetype", NULL
};
190 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImageFromMime",_kwnames
,&_obj0
,&_obj1
))
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");
199 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
201 _arg0
= new wxString(tmpPtr
, tmpSize
);
203 if (!PyString_Check(_obj0
)) {
204 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
207 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
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");
217 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
219 _arg1
= new wxString(tmpPtr
, tmpSize
);
221 if (!PyString_Check(_obj1
)) {
222 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
225 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
229 wxPy_BEGIN_ALLOW_THREADS
;
230 _result
= (wxImage
*)wxImageFromMime(*_arg0
,*_arg1
);
232 wxPy_END_ALLOW_THREADS
;
234 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImage_p");
235 _resultobj
= Py_BuildValue("s",_ptemp
);
238 _resultobj
= Py_None
;
251 static PyObject
*_wrap_wxImageFromBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
252 PyObject
* _resultobj
;
255 PyObject
* _argo0
= 0;
256 char *_kwnames
[] = { "bitmap", NULL
};
260 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageFromBitmap",_kwnames
,&_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.");
270 wxPy_BEGIN_ALLOW_THREADS
;
271 _result
= (wxImage
*)wxImageFromBitmap(*_arg0
);
273 wxPy_END_ALLOW_THREADS
;
275 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImage_p");
276 _resultobj
= Py_BuildValue("s",_ptemp
);
279 _resultobj
= Py_None
;
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
};
291 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_AddHandler",_kwnames
,&_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.");
301 wxPy_BEGIN_ALLOW_THREADS
;
302 wxImage_AddHandler(_arg0
);
304 wxPy_END_ALLOW_THREADS
;
305 } Py_INCREF(Py_None
);
306 _resultobj
= Py_None
;
310 static PyObject
*_wrap_wxInitAllImageHandlers(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
311 PyObject
* _resultobj
;
312 char *_kwnames
[] = { NULL
};
315 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxInitAllImageHandlers",_kwnames
))
318 wxPy_BEGIN_ALLOW_THREADS
;
319 wxInitAllImageHandlers();
321 wxPy_END_ALLOW_THREADS
;
322 } Py_INCREF(Py_None
);
323 _resultobj
= Py_None
;
327 #define wxImageHandler_GetName(_swigobj) (_swigobj->GetName())
328 static PyObject
*_wrap_wxImageHandler_GetName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
329 PyObject
* _resultobj
;
331 wxImageHandler
* _arg0
;
332 PyObject
* _argo0
= 0;
333 char *_kwnames
[] = { "self", NULL
};
336 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageHandler_GetName",_kwnames
,&_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.");
346 wxPy_BEGIN_ALLOW_THREADS
;
347 _result
= new wxString (wxImageHandler_GetName(_arg0
));
349 wxPy_END_ALLOW_THREADS
;
351 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
359 #define wxImageHandler_GetExtension(_swigobj) (_swigobj->GetExtension())
360 static PyObject
*_wrap_wxImageHandler_GetExtension(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
361 PyObject
* _resultobj
;
363 wxImageHandler
* _arg0
;
364 PyObject
* _argo0
= 0;
365 char *_kwnames
[] = { "self", NULL
};
368 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageHandler_GetExtension",_kwnames
,&_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.");
378 wxPy_BEGIN_ALLOW_THREADS
;
379 _result
= new wxString (wxImageHandler_GetExtension(_arg0
));
381 wxPy_END_ALLOW_THREADS
;
383 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
391 #define wxImageHandler_GetType(_swigobj) (_swigobj->GetType())
392 static PyObject
*_wrap_wxImageHandler_GetType(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
393 PyObject
* _resultobj
;
395 wxImageHandler
* _arg0
;
396 PyObject
* _argo0
= 0;
397 char *_kwnames
[] = { "self", NULL
};
400 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageHandler_GetType",_kwnames
,&_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.");
410 wxPy_BEGIN_ALLOW_THREADS
;
411 _result
= (long )wxImageHandler_GetType(_arg0
);
413 wxPy_END_ALLOW_THREADS
;
414 } _resultobj
= Py_BuildValue("l",_result
);
418 #define wxImageHandler_GetMimeType(_swigobj) (_swigobj->GetMimeType())
419 static PyObject
*_wrap_wxImageHandler_GetMimeType(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
420 PyObject
* _resultobj
;
422 wxImageHandler
* _arg0
;
423 PyObject
* _argo0
= 0;
424 char *_kwnames
[] = { "self", NULL
};
427 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageHandler_GetMimeType",_kwnames
,&_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.");
437 wxPy_BEGIN_ALLOW_THREADS
;
438 _result
= new wxString (wxImageHandler_GetMimeType(_arg0
));
440 wxPy_END_ALLOW_THREADS
;
442 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
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
;
455 PyObject
* _argo0
= 0;
456 PyObject
* _obj1
= 0;
457 char *_kwnames
[] = { "self","name", NULL
};
460 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImageHandler_SetName",_kwnames
,&_argo0
,&_obj1
))
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.");
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");
476 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
478 _arg1
= new wxString(tmpPtr
, tmpSize
);
480 if (!PyString_Check(_obj1
)) {
481 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
484 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
488 wxPy_BEGIN_ALLOW_THREADS
;
489 wxImageHandler_SetName(_arg0
,*_arg1
);
491 wxPy_END_ALLOW_THREADS
;
492 } Py_INCREF(Py_None
);
493 _resultobj
= Py_None
;
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
;
506 PyObject
* _argo0
= 0;
507 PyObject
* _obj1
= 0;
508 char *_kwnames
[] = { "self","extension", NULL
};
511 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImageHandler_SetExtension",_kwnames
,&_argo0
,&_obj1
))
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.");
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");
527 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
529 _arg1
= new wxString(tmpPtr
, tmpSize
);
531 if (!PyString_Check(_obj1
)) {
532 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
535 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
539 wxPy_BEGIN_ALLOW_THREADS
;
540 wxImageHandler_SetExtension(_arg0
,*_arg1
);
542 wxPy_END_ALLOW_THREADS
;
543 } Py_INCREF(Py_None
);
544 _resultobj
= Py_None
;
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
;
557 PyObject
* _argo0
= 0;
558 char *_kwnames
[] = { "self","type", NULL
};
561 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxImageHandler_SetType",_kwnames
,&_argo0
,&_arg1
))
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.");
571 wxPy_BEGIN_ALLOW_THREADS
;
572 wxImageHandler_SetType(_arg0
,_arg1
);
574 wxPy_END_ALLOW_THREADS
;
575 } Py_INCREF(Py_None
);
576 _resultobj
= Py_None
;
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
;
585 PyObject
* _argo0
= 0;
586 PyObject
* _obj1
= 0;
587 char *_kwnames
[] = { "self","mimetype", NULL
};
590 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImageHandler_SetMimeType",_kwnames
,&_argo0
,&_obj1
))
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.");
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");
606 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
608 _arg1
= new wxString(tmpPtr
, tmpSize
);
610 if (!PyString_Check(_obj1
)) {
611 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
614 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
618 wxPy_BEGIN_ALLOW_THREADS
;
619 wxImageHandler_SetMimeType(_arg0
,*_arg1
);
621 wxPy_END_ALLOW_THREADS
;
622 } Py_INCREF(Py_None
);
623 _resultobj
= Py_None
;
631 static void *SwigwxPNGHandlerTowxImageHandler(void *ptr
) {
633 wxImageHandler
*dest
;
634 src
= (wxPNGHandler
*) ptr
;
635 dest
= (wxImageHandler
*) src
;
636 return (void *) dest
;
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
};
647 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxPNGHandler",_kwnames
))
650 wxPy_BEGIN_ALLOW_THREADS
;
651 _result
= (wxPNGHandler
*)new_wxPNGHandler();
653 wxPy_END_ALLOW_THREADS
;
655 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPNGHandler_p");
656 _resultobj
= Py_BuildValue("s",_ptemp
);
659 _resultobj
= Py_None
;
664 static void *SwigwxJPEGHandlerTowxImageHandler(void *ptr
) {
666 wxImageHandler
*dest
;
667 src
= (wxJPEGHandler
*) ptr
;
668 dest
= (wxImageHandler
*) src
;
669 return (void *) dest
;
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
};
680 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxJPEGHandler",_kwnames
))
683 wxPy_BEGIN_ALLOW_THREADS
;
684 _result
= (wxJPEGHandler
*)new_wxJPEGHandler();
686 wxPy_END_ALLOW_THREADS
;
688 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxJPEGHandler_p");
689 _resultobj
= Py_BuildValue("s",_ptemp
);
692 _resultobj
= Py_None
;
697 static void *SwigwxBMPHandlerTowxImageHandler(void *ptr
) {
699 wxImageHandler
*dest
;
700 src
= (wxBMPHandler
*) ptr
;
701 dest
= (wxImageHandler
*) src
;
702 return (void *) dest
;
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
};
713 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxBMPHandler",_kwnames
))
716 wxPy_BEGIN_ALLOW_THREADS
;
717 _result
= (wxBMPHandler
*)new_wxBMPHandler();
719 wxPy_END_ALLOW_THREADS
;
721 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBMPHandler_p");
722 _resultobj
= Py_BuildValue("s",_ptemp
);
725 _resultobj
= Py_None
;
730 static void *SwigwxGIFHandlerTowxImageHandler(void *ptr
) {
732 wxImageHandler
*dest
;
733 src
= (wxGIFHandler
*) ptr
;
734 dest
= (wxImageHandler
*) src
;
735 return (void *) dest
;
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
};
746 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxGIFHandler",_kwnames
))
749 wxPy_BEGIN_ALLOW_THREADS
;
750 _result
= (wxGIFHandler
*)new_wxGIFHandler();
752 wxPy_END_ALLOW_THREADS
;
754 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxGIFHandler_p");
755 _resultobj
= Py_BuildValue("s",_ptemp
);
758 _resultobj
= Py_None
;
763 static void *SwigwxPNMHandlerTowxImageHandler(void *ptr
) {
765 wxImageHandler
*dest
;
766 src
= (wxPNMHandler
*) ptr
;
767 dest
= (wxImageHandler
*) src
;
768 return (void *) dest
;
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
};
779 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxPNMHandler",_kwnames
))
782 wxPy_BEGIN_ALLOW_THREADS
;
783 _result
= (wxPNMHandler
*)new_wxPNMHandler();
785 wxPy_END_ALLOW_THREADS
;
787 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPNMHandler_p");
788 _resultobj
= Py_BuildValue("s",_ptemp
);
791 _resultobj
= Py_None
;
796 static void *SwigwxPCXHandlerTowxImageHandler(void *ptr
) {
798 wxImageHandler
*dest
;
799 src
= (wxPCXHandler
*) ptr
;
800 dest
= (wxImageHandler
*) src
;
801 return (void *) dest
;
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
};
812 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxPCXHandler",_kwnames
))
815 wxPy_BEGIN_ALLOW_THREADS
;
816 _result
= (wxPCXHandler
*)new_wxPCXHandler();
818 wxPy_END_ALLOW_THREADS
;
820 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPCXHandler_p");
821 _resultobj
= Py_BuildValue("s",_ptemp
);
824 _resultobj
= Py_None
;
829 static void *SwigwxTIFFHandlerTowxImageHandler(void *ptr
) {
831 wxImageHandler
*dest
;
832 src
= (wxTIFFHandler
*) ptr
;
833 dest
= (wxImageHandler
*) src
;
834 return (void *) dest
;
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
};
845 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxTIFFHandler",_kwnames
))
848 wxPy_BEGIN_ALLOW_THREADS
;
849 _result
= (wxTIFFHandler
*)new_wxTIFFHandler();
851 wxPy_END_ALLOW_THREADS
;
853 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxTIFFHandler_p");
854 _resultobj
= Py_BuildValue("s",_ptemp
);
857 _resultobj
= Py_None
;
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
;
867 long _arg1
= (long ) wxBITMAP_TYPE_ANY
;
868 PyObject
* _obj0
= 0;
869 char *_kwnames
[] = { "name","type", NULL
};
873 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|l:new_wxImage",_kwnames
,&_obj0
,&_arg1
))
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");
882 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
884 _arg0
= new wxString(tmpPtr
, tmpSize
);
886 if (!PyString_Check(_obj0
)) {
887 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
890 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
894 wxPy_BEGIN_ALLOW_THREADS
;
895 _result
= (wxImage
*)new_wxImage(*_arg0
,_arg1
);
897 wxPy_END_ALLOW_THREADS
;
899 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImage_p");
900 _resultobj
= Py_BuildValue("s",_ptemp
);
903 _resultobj
= Py_None
;
912 #define delete_wxImage(_swigobj) (delete _swigobj)
913 static PyObject
*_wrap_delete_wxImage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
914 PyObject
* _resultobj
;
916 PyObject
* _argo0
= 0;
917 char *_kwnames
[] = { "self", NULL
};
920 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxImage",_kwnames
,&_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.");
930 wxPy_BEGIN_ALLOW_THREADS
;
931 delete_wxImage(_arg0
);
933 wxPy_END_ALLOW_THREADS
;
934 } Py_INCREF(Py_None
);
935 _resultobj
= Py_None
;
939 #define wxImage_ConvertToBitmap(_swigobj) (_swigobj->ConvertToBitmap())
940 static PyObject
*_wrap_wxImage_ConvertToBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
941 PyObject
* _resultobj
;
944 PyObject
* _argo0
= 0;
945 char *_kwnames
[] = { "self", NULL
};
949 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_ConvertToBitmap",_kwnames
,&_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.");
959 wxPy_BEGIN_ALLOW_THREADS
;
960 _result
= new wxBitmap (wxImage_ConvertToBitmap(_arg0
));
962 wxPy_END_ALLOW_THREADS
;
963 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBitmap_p");
964 _resultobj
= Py_BuildValue("s",_ptemp
);
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
;
974 PyObject
* _argo0
= 0;
975 char *_kwnames
[] = { "self","width","height", NULL
};
978 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxImage_Create",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
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.");
988 wxPy_BEGIN_ALLOW_THREADS
;
989 wxImage_Create(_arg0
,_arg1
,_arg2
);
991 wxPy_END_ALLOW_THREADS
;
992 } Py_INCREF(Py_None
);
993 _resultobj
= Py_None
;
997 #define wxImage_Destroy(_swigobj) (_swigobj->Destroy())
998 static PyObject
*_wrap_wxImage_Destroy(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
999 PyObject
* _resultobj
;
1001 PyObject
* _argo0
= 0;
1002 char *_kwnames
[] = { "self", NULL
};
1005 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_Destroy",_kwnames
,&_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.");
1015 wxPy_BEGIN_ALLOW_THREADS
;
1016 wxImage_Destroy(_arg0
);
1018 wxPy_END_ALLOW_THREADS
;
1019 } Py_INCREF(Py_None
);
1020 _resultobj
= Py_None
;
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
;
1031 PyObject
* _argo0
= 0;
1032 char *_kwnames
[] = { "self","width","height", NULL
};
1036 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxImage_Scale",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
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.");
1046 wxPy_BEGIN_ALLOW_THREADS
;
1047 _result
= new wxImage (wxImage_Scale(_arg0
,_arg1
,_arg2
));
1049 wxPy_END_ALLOW_THREADS
;
1050 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxImage_p");
1051 _resultobj
= Py_BuildValue("s",_ptemp
);
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
;
1062 PyObject
* _argo0
= 0;
1063 char *_kwnames
[] = { "self","width","height", NULL
};
1067 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxImage_Rescale",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
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.");
1077 wxPy_BEGIN_ALLOW_THREADS
;
1078 wxImage
& _result_ref
= wxImage_Rescale(_arg0
,_arg1
,_arg2
);
1079 _result
= (wxImage
*) &_result_ref
;
1081 wxPy_END_ALLOW_THREADS
;
1083 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImage_p");
1084 _resultobj
= Py_BuildValue("s",_ptemp
);
1087 _resultobj
= Py_None
;
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
;
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
};
1105 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiibbb:wxImage_SetRGB",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
))
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.");
1115 wxPy_BEGIN_ALLOW_THREADS
;
1116 wxImage_SetRGB(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
1118 wxPy_END_ALLOW_THREADS
;
1119 } Py_INCREF(Py_None
);
1120 _resultobj
= Py_None
;
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
;
1131 PyObject
* _argo0
= 0;
1132 char *_kwnames
[] = { "self","x","y", NULL
};
1135 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxImage_GetRed",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
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.");
1145 wxPy_BEGIN_ALLOW_THREADS
;
1146 _result
= (unsigned char )wxImage_GetRed(_arg0
,_arg1
,_arg2
);
1148 wxPy_END_ALLOW_THREADS
;
1149 } _resultobj
= Py_BuildValue("b",_result
);
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
;
1160 PyObject
* _argo0
= 0;
1161 char *_kwnames
[] = { "self","x","y", NULL
};
1164 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxImage_GetGreen",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
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.");
1174 wxPy_BEGIN_ALLOW_THREADS
;
1175 _result
= (unsigned char )wxImage_GetGreen(_arg0
,_arg1
,_arg2
);
1177 wxPy_END_ALLOW_THREADS
;
1178 } _resultobj
= Py_BuildValue("b",_result
);
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
;
1189 PyObject
* _argo0
= 0;
1190 char *_kwnames
[] = { "self","x","y", NULL
};
1193 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxImage_GetBlue",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
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.");
1203 wxPy_BEGIN_ALLOW_THREADS
;
1204 _result
= (unsigned char )wxImage_GetBlue(_arg0
,_arg1
,_arg2
);
1206 wxPy_END_ALLOW_THREADS
;
1207 } _resultobj
= Py_BuildValue("b",_result
);
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
;
1217 long _arg2
= (long ) wxBITMAP_TYPE_PNG
;
1218 PyObject
* _argo0
= 0;
1219 PyObject
* _obj1
= 0;
1220 char *_kwnames
[] = { "self","name","type", NULL
};
1223 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|l:wxImage_LoadFile",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
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.");
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");
1239 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1241 _arg1
= new wxString(tmpPtr
, tmpSize
);
1243 if (!PyString_Check(_obj1
)) {
1244 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1247 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1251 wxPy_BEGIN_ALLOW_THREADS
;
1252 _result
= (bool )wxImage_LoadFile(_arg0
,*_arg1
,_arg2
);
1254 wxPy_END_ALLOW_THREADS
;
1255 } _resultobj
= Py_BuildValue("i",_result
);
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
;
1270 PyObject
* _argo0
= 0;
1271 PyObject
* _obj1
= 0;
1272 PyObject
* _obj2
= 0;
1273 char *_kwnames
[] = { "self","name","mimetype", NULL
};
1276 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxImage_LoadMimeFile",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
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.");
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");
1292 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1294 _arg1
= new wxString(tmpPtr
, tmpSize
);
1296 if (!PyString_Check(_obj1
)) {
1297 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1300 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
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");
1310 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
1312 _arg2
= new wxString(tmpPtr
, tmpSize
);
1314 if (!PyString_Check(_obj2
)) {
1315 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1318 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
1322 wxPy_BEGIN_ALLOW_THREADS
;
1323 _result
= (bool )wxImage_LoadMimeFile(_arg0
,*_arg1
,*_arg2
);
1325 wxPy_END_ALLOW_THREADS
;
1326 } _resultobj
= Py_BuildValue("i",_result
);
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
;
1345 PyObject
* _argo0
= 0;
1346 PyObject
* _obj1
= 0;
1347 char *_kwnames
[] = { "self","name","type", NULL
};
1350 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi:wxImage_SaveFile",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
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.");
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");
1366 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1368 _arg1
= new wxString(tmpPtr
, tmpSize
);
1370 if (!PyString_Check(_obj1
)) {
1371 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1374 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1378 wxPy_BEGIN_ALLOW_THREADS
;
1379 _result
= (bool )wxImage_SaveFile(_arg0
,*_arg1
,_arg2
);
1381 wxPy_END_ALLOW_THREADS
;
1382 } _resultobj
= Py_BuildValue("i",_result
);
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
;
1397 PyObject
* _argo0
= 0;
1398 PyObject
* _obj1
= 0;
1399 PyObject
* _obj2
= 0;
1400 char *_kwnames
[] = { "self","name","mimetype", NULL
};
1403 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxImage_SaveMimeFile",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
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.");
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");
1419 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1421 _arg1
= new wxString(tmpPtr
, tmpSize
);
1423 if (!PyString_Check(_obj1
)) {
1424 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1427 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
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");
1437 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
1439 _arg2
= new wxString(tmpPtr
, tmpSize
);
1441 if (!PyString_Check(_obj2
)) {
1442 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1445 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
1449 wxPy_BEGIN_ALLOW_THREADS
;
1450 _result
= (bool )wxImage_SaveMimeFile(_arg0
,*_arg1
,*_arg2
);
1452 wxPy_END_ALLOW_THREADS
;
1453 } _resultobj
= Py_BuildValue("i",_result
);
1465 #define wxImage_Ok(_swigobj) (_swigobj->Ok())
1466 static PyObject
*_wrap_wxImage_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1467 PyObject
* _resultobj
;
1470 PyObject
* _argo0
= 0;
1471 char *_kwnames
[] = { "self", NULL
};
1474 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_Ok",_kwnames
,&_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.");
1484 wxPy_BEGIN_ALLOW_THREADS
;
1485 _result
= (bool )wxImage_Ok(_arg0
);
1487 wxPy_END_ALLOW_THREADS
;
1488 } _resultobj
= Py_BuildValue("i",_result
);
1492 #define wxImage_GetWidth(_swigobj) (_swigobj->GetWidth())
1493 static PyObject
*_wrap_wxImage_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1494 PyObject
* _resultobj
;
1497 PyObject
* _argo0
= 0;
1498 char *_kwnames
[] = { "self", NULL
};
1501 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_GetWidth",_kwnames
,&_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.");
1511 wxPy_BEGIN_ALLOW_THREADS
;
1512 _result
= (int )wxImage_GetWidth(_arg0
);
1514 wxPy_END_ALLOW_THREADS
;
1515 } _resultobj
= Py_BuildValue("i",_result
);
1519 #define wxImage_GetHeight(_swigobj) (_swigobj->GetHeight())
1520 static PyObject
*_wrap_wxImage_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1521 PyObject
* _resultobj
;
1524 PyObject
* _argo0
= 0;
1525 char *_kwnames
[] = { "self", NULL
};
1528 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_GetHeight",_kwnames
,&_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.");
1538 wxPy_BEGIN_ALLOW_THREADS
;
1539 _result
= (int )wxImage_GetHeight(_arg0
);
1541 wxPy_END_ALLOW_THREADS
;
1542 } _resultobj
= Py_BuildValue("i",_result
);
1546 #define wxImage_GetSubImage(_swigobj,_swigarg0) (_swigobj->GetSubImage(_swigarg0))
1547 static PyObject
*_wrap_wxImage_GetSubImage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1548 PyObject
* _resultobj
;
1552 PyObject
* _argo0
= 0;
1554 PyObject
* _obj1
= 0;
1555 char *_kwnames
[] = { "self","rect", NULL
};
1559 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImage_GetSubImage",_kwnames
,&_argo0
,&_obj1
))
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.");
1570 if (! wxRect_helper(_obj1
, &_arg1
))
1574 wxPy_BEGIN_ALLOW_THREADS
;
1575 _result
= new wxImage (wxImage_GetSubImage(_arg0
,*_arg1
));
1577 wxPy_END_ALLOW_THREADS
;
1578 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxImage_p");
1579 _resultobj
= Py_BuildValue("s",_ptemp
);
1583 #define wxImage_Copy(_swigobj) (_swigobj->Copy())
1584 static PyObject
*_wrap_wxImage_Copy(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1585 PyObject
* _resultobj
;
1588 PyObject
* _argo0
= 0;
1589 char *_kwnames
[] = { "self", NULL
};
1593 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_Copy",_kwnames
,&_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.");
1603 wxPy_BEGIN_ALLOW_THREADS
;
1604 _result
= new wxImage (wxImage_Copy(_arg0
));
1606 wxPy_END_ALLOW_THREADS
;
1607 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxImage_p");
1608 _resultobj
= Py_BuildValue("s",_ptemp
);
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
;
1619 PyObject
* _argo0
= 0;
1620 PyObject
* _argo1
= 0;
1621 char *_kwnames
[] = { "self","image","x","y", NULL
};
1624 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOii:wxImage_Paste",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_arg3
))
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.");
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.");
1641 wxPy_BEGIN_ALLOW_THREADS
;
1642 wxImage_Paste(_arg0
,*_arg1
,_arg2
,_arg3
);
1644 wxPy_END_ALLOW_THREADS
;
1645 } Py_INCREF(Py_None
);
1646 _resultobj
= Py_None
;
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
);
1655 static PyObject
*_wrap_wxImage_GetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1656 PyObject
* _resultobj
;
1659 PyObject
* _argo0
= 0;
1660 char *_kwnames
[] = { "self", NULL
};
1663 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_GetData",_kwnames
,&_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.");
1673 wxPy_BEGIN_ALLOW_THREADS
;
1674 _result
= (PyObject
*)wxImage_GetData(_arg0
);
1676 wxPy_END_ALLOW_THREADS
;
1678 _resultobj
= _result
;
1683 static void wxImage_SetData(wxImage
*self
,PyObject
* data
) {
1684 unsigned char* dataPtr
;
1686 if (! PyString_Check(data
)) {
1687 PyErr_SetString(PyExc_TypeError
, "Expected string object");
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
);
1696 static PyObject
*_wrap_wxImage_SetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1697 PyObject
* _resultobj
;
1700 PyObject
* _argo0
= 0;
1701 PyObject
* _obj1
= 0;
1702 char *_kwnames
[] = { "self","data", NULL
};
1705 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImage_SetData",_kwnames
,&_argo0
,&_obj1
))
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.");
1718 wxPy_BEGIN_ALLOW_THREADS
;
1719 wxImage_SetData(_arg0
,_arg1
);
1721 wxPy_END_ALLOW_THREADS
;
1722 } Py_INCREF(Py_None
);
1723 _resultobj
= Py_None
;
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
;
1731 unsigned char _arg1
;
1732 unsigned char _arg2
;
1733 unsigned char _arg3
;
1734 PyObject
* _argo0
= 0;
1735 char *_kwnames
[] = { "self","r","g","b", NULL
};
1738 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Obbb:wxImage_SetMaskColour",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
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.");
1748 wxPy_BEGIN_ALLOW_THREADS
;
1749 wxImage_SetMaskColour(_arg0
,_arg1
,_arg2
,_arg3
);
1751 wxPy_END_ALLOW_THREADS
;
1752 } Py_INCREF(Py_None
);
1753 _resultobj
= Py_None
;
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
;
1762 PyObject
* _argo0
= 0;
1763 char *_kwnames
[] = { "self", NULL
};
1766 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_GetMaskRed",_kwnames
,&_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.");
1776 wxPy_BEGIN_ALLOW_THREADS
;
1777 _result
= (unsigned char )wxImage_GetMaskRed(_arg0
);
1779 wxPy_END_ALLOW_THREADS
;
1780 } _resultobj
= Py_BuildValue("b",_result
);
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
;
1789 PyObject
* _argo0
= 0;
1790 char *_kwnames
[] = { "self", NULL
};
1793 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_GetMaskGreen",_kwnames
,&_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.");
1803 wxPy_BEGIN_ALLOW_THREADS
;
1804 _result
= (unsigned char )wxImage_GetMaskGreen(_arg0
);
1806 wxPy_END_ALLOW_THREADS
;
1807 } _resultobj
= Py_BuildValue("b",_result
);
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
;
1816 PyObject
* _argo0
= 0;
1817 char *_kwnames
[] = { "self", NULL
};
1820 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_GetMaskBlue",_kwnames
,&_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.");
1830 wxPy_BEGIN_ALLOW_THREADS
;
1831 _result
= (unsigned char )wxImage_GetMaskBlue(_arg0
);
1833 wxPy_END_ALLOW_THREADS
;
1834 } _resultobj
= Py_BuildValue("b",_result
);
1838 #define wxImage_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0))
1839 static PyObject
*_wrap_wxImage_SetMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1840 PyObject
* _resultobj
;
1842 bool _arg1
= (bool ) TRUE
;
1843 PyObject
* _argo0
= 0;
1844 int tempbool1
= (int) TRUE
;
1845 char *_kwnames
[] = { "self","mask", NULL
};
1848 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxImage_SetMask",_kwnames
,&_argo0
,&tempbool1
))
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.");
1857 _arg1
= (bool ) tempbool1
;
1859 wxPy_BEGIN_ALLOW_THREADS
;
1860 wxImage_SetMask(_arg0
,_arg1
);
1862 wxPy_END_ALLOW_THREADS
;
1863 } Py_INCREF(Py_None
);
1864 _resultobj
= Py_None
;
1868 #define wxImage_HasMask(_swigobj) (_swigobj->HasMask())
1869 static PyObject
*_wrap_wxImage_HasMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1870 PyObject
* _resultobj
;
1873 PyObject
* _argo0
= 0;
1874 char *_kwnames
[] = { "self", NULL
};
1877 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_HasMask",_kwnames
,&_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.");
1887 wxPy_BEGIN_ALLOW_THREADS
;
1888 _result
= (bool )wxImage_HasMask(_arg0
);
1890 wxPy_END_ALLOW_THREADS
;
1891 } _resultobj
= Py_BuildValue("i",_result
);
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
;
1902 bool _arg3
= (bool ) TRUE
;
1903 wxPoint
* _arg4
= (wxPoint
*) NULL
;
1904 PyObject
* _argo0
= 0;
1906 PyObject
* _obj2
= 0;
1907 int tempbool3
= (int) TRUE
;
1909 PyObject
* _obj4
= 0;
1910 char *_kwnames
[] = { "self","angle","centre_of_rotation","interpolating","offset_after_rotation", NULL
};
1914 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OdO|iO:wxImage_Rotate",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&tempbool3
,&_obj4
))
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.");
1925 if (! wxPoint_helper(_obj2
, &_arg2
))
1928 _arg3
= (bool ) tempbool3
;
1932 if (! wxPoint_helper(_obj4
, &_arg4
))
1936 wxPy_BEGIN_ALLOW_THREADS
;
1937 _result
= new wxImage (wxImage_Rotate(_arg0
,_arg1
,*_arg2
,_arg3
,_arg4
));
1939 wxPy_END_ALLOW_THREADS
;
1940 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxImage_p");
1941 _resultobj
= Py_BuildValue("s",_ptemp
);
1945 #define wxImage_Rotate90(_swigobj,_swigarg0) (_swigobj->Rotate90(_swigarg0))
1946 static PyObject
*_wrap_wxImage_Rotate90(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1947 PyObject
* _resultobj
;
1950 bool _arg1
= (bool ) TRUE
;
1951 PyObject
* _argo0
= 0;
1952 int tempbool1
= (int) TRUE
;
1953 char *_kwnames
[] = { "self","clockwise", NULL
};
1957 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxImage_Rotate90",_kwnames
,&_argo0
,&tempbool1
))
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.");
1966 _arg1
= (bool ) tempbool1
;
1968 wxPy_BEGIN_ALLOW_THREADS
;
1969 _result
= new wxImage (wxImage_Rotate90(_arg0
,_arg1
));
1971 wxPy_END_ALLOW_THREADS
;
1972 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxImage_p");
1973 _resultobj
= Py_BuildValue("s",_ptemp
);
1977 #define wxImage_Mirror(_swigobj,_swigarg0) (_swigobj->Mirror(_swigarg0))
1978 static PyObject
*_wrap_wxImage_Mirror(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1979 PyObject
* _resultobj
;
1982 bool _arg1
= (bool ) TRUE
;
1983 PyObject
* _argo0
= 0;
1984 int tempbool1
= (int) TRUE
;
1985 char *_kwnames
[] = { "self","horizontally", NULL
};
1989 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxImage_Mirror",_kwnames
,&_argo0
,&tempbool1
))
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.");
1998 _arg1
= (bool ) tempbool1
;
2000 wxPy_BEGIN_ALLOW_THREADS
;
2001 _result
= new wxImage (wxImage_Mirror(_arg0
,_arg1
));
2003 wxPy_END_ALLOW_THREADS
;
2004 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxImage_p");
2005 _resultobj
= Py_BuildValue("s",_ptemp
);
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
;
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
};
2023 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Obbbbbb:wxImage_Replace",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
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.");
2033 wxPy_BEGIN_ALLOW_THREADS
;
2034 wxImage_Replace(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
2036 wxPy_END_ALLOW_THREADS
;
2037 } Py_INCREF(Py_None
);
2038 _resultobj
= Py_None
;
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
;
2047 unsigned long _arg1
= (unsigned long ) (unsigned long)-1;
2048 PyObject
* _argo0
= 0;
2049 char *_kwnames
[] = { "self","stopafter", NULL
};
2052 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|l:wxImage_CountColours",_kwnames
,&_argo0
,&_arg1
))
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.");
2062 wxPy_BEGIN_ALLOW_THREADS
;
2063 _result
= (unsigned long )wxImage_CountColours(_arg0
,_arg1
);
2065 wxPy_END_ALLOW_THREADS
;
2066 } _resultobj
= Py_BuildValue("l",_result
);
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
},
2132 * This table is used by the pointer type-checker
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},
2331 static PyObject
*SWIG_globals
;
2335 SWIGEXPORT(void) initimagec() {
2337 SWIG_globals
= SWIG_newvarlink();
2338 m
= Py_InitModule("imagec", imagecMethods
);
2339 d
= PyModule_GetDict(m
);
2342 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
2343 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);