4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Patch 5)
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,b) __declspec(dllexport) a b
29 # if defined(__BORLANDC__)
30 # define SWIGEXPORT(a,b) a _export b
32 # define SWIGEXPORT(a,b) a b
36 # define SWIGEXPORT(a,b) a b
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 void SWIG_addvarlink(PyObject
*, char *, PyObject
*(*)(void), int (*)(PyObject
*));
47 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
);
106 extern byte
* byte_LIST_helper(PyObject
* source
);
107 extern int* int_LIST_helper(PyObject
* source
);
108 extern long* long_LIST_helper(PyObject
* source
);
109 extern char** string_LIST_helper(PyObject
* source
);
110 extern wxPoint
* wxPoint_LIST_helper(PyObject
* source
);
111 extern wxBitmap
** wxBitmap_LIST_helper(PyObject
* source
);
112 extern wxString
* wxString_LIST_helper(PyObject
* source
);
113 extern wxAcceleratorEntry
* wxAcceleratorEntry_LIST_helper(PyObject
* source
);
116 static char* wxStringErrorMsg
= "string type is required for parameter";
118 wxImage
* wxNullImage() {
122 wxImage
* wxEmptyImage(int width
, int height
) {
123 return new wxImage(width
, height
);
126 wxImage
* wxImageFromMime(const wxString
& name
, const wxString
& mimetype
) {
127 return new wxImage(name
, mimetype
);
130 wxImage
* wxImageFromBitmap(const wxBitmap
&bitmap
) {
131 return new wxImage(bitmap
);
134 void wxImage_AddHandler(wxImageHandler
*handler
) {
135 wxImage::AddHandler(handler
);
137 static PyObject
*_wrap_wxNullImage(PyObject
*self
, PyObject
*args
) {
138 PyObject
* _resultobj
;
143 if(!PyArg_ParseTuple(args
,":wxNullImage"))
146 wxPy_BEGIN_ALLOW_THREADS
;
147 _result
= (wxImage
*)wxNullImage();
149 wxPy_END_ALLOW_THREADS
;
150 } SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImage_p");
151 _resultobj
= Py_BuildValue("s",_ptemp
);
155 static PyObject
*_wrap_wxEmptyImage(PyObject
*self
, PyObject
*args
) {
156 PyObject
* _resultobj
;
163 if(!PyArg_ParseTuple(args
,"ii:wxEmptyImage",&_arg0
,&_arg1
))
166 wxPy_BEGIN_ALLOW_THREADS
;
167 _result
= (wxImage
*)wxEmptyImage(_arg0
,_arg1
);
169 wxPy_END_ALLOW_THREADS
;
170 } SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImage_p");
171 _resultobj
= Py_BuildValue("s",_ptemp
);
175 static PyObject
*_wrap_wxImageFromMime(PyObject
*self
, PyObject
*args
) {
176 PyObject
* _resultobj
;
180 PyObject
* _obj0
= 0;
181 PyObject
* _obj1
= 0;
185 if(!PyArg_ParseTuple(args
,"OO:wxImageFromMime",&_obj0
,&_obj1
))
188 if (!PyString_Check(_obj0
)) {
189 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
192 _arg0
= new wxString(PyString_AsString(_obj0
), PyString_Size(_obj0
));
195 if (!PyString_Check(_obj1
)) {
196 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
199 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
202 wxPy_BEGIN_ALLOW_THREADS
;
203 _result
= (wxImage
*)wxImageFromMime(*_arg0
,*_arg1
);
205 wxPy_END_ALLOW_THREADS
;
206 } SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImage_p");
207 _resultobj
= Py_BuildValue("s",_ptemp
);
219 static PyObject
*_wrap_wxImageFromBitmap(PyObject
*self
, PyObject
*args
) {
220 PyObject
* _resultobj
;
227 if(!PyArg_ParseTuple(args
,"s:wxImageFromBitmap",&_argc0
))
230 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxBitmap_p")) {
231 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageFromBitmap. Expected _wxBitmap_p.");
236 wxPy_BEGIN_ALLOW_THREADS
;
237 _result
= (wxImage
*)wxImageFromBitmap(*_arg0
);
239 wxPy_END_ALLOW_THREADS
;
240 } SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImage_p");
241 _resultobj
= Py_BuildValue("s",_ptemp
);
245 static PyObject
*_wrap_wxImage_AddHandler(PyObject
*self
, PyObject
*args
) {
246 PyObject
* _resultobj
;
247 wxImageHandler
* _arg0
;
251 if(!PyArg_ParseTuple(args
,"s:wxImage_AddHandler",&_argc0
))
254 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxImageHandler_p")) {
255 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_AddHandler. Expected _wxImageHandler_p.");
260 wxPy_BEGIN_ALLOW_THREADS
;
261 wxImage_AddHandler(_arg0
);
263 wxPy_END_ALLOW_THREADS
;
264 } Py_INCREF(Py_None
);
265 _resultobj
= Py_None
;
269 #define new_wxImageHandler() (new wxImageHandler())
270 static PyObject
*_wrap_new_wxImageHandler(PyObject
*self
, PyObject
*args
) {
271 PyObject
* _resultobj
;
272 wxImageHandler
* _result
;
276 if(!PyArg_ParseTuple(args
,":new_wxImageHandler"))
279 wxPy_BEGIN_ALLOW_THREADS
;
280 _result
= (wxImageHandler
*)new_wxImageHandler();
282 wxPy_END_ALLOW_THREADS
;
283 } SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImageHandler_p");
284 _resultobj
= Py_BuildValue("s",_ptemp
);
288 #define wxImageHandler_GetName(_swigobj) (_swigobj->GetName())
289 static PyObject
*_wrap_wxImageHandler_GetName(PyObject
*self
, PyObject
*args
) {
290 PyObject
* _resultobj
;
292 wxImageHandler
* _arg0
;
296 if(!PyArg_ParseTuple(args
,"s:wxImageHandler_GetName",&_argc0
))
299 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxImageHandler_p")) {
300 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageHandler_GetName. Expected _wxImageHandler_p.");
305 wxPy_BEGIN_ALLOW_THREADS
;
306 _result
= new wxString (wxImageHandler_GetName(_arg0
));
308 wxPy_END_ALLOW_THREADS
;
310 _resultobj
= PyString_FromString(WXSTRINGCAST
*(_result
));
318 #define wxImageHandler_GetExtension(_swigobj) (_swigobj->GetExtension())
319 static PyObject
*_wrap_wxImageHandler_GetExtension(PyObject
*self
, PyObject
*args
) {
320 PyObject
* _resultobj
;
322 wxImageHandler
* _arg0
;
326 if(!PyArg_ParseTuple(args
,"s:wxImageHandler_GetExtension",&_argc0
))
329 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxImageHandler_p")) {
330 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageHandler_GetExtension. Expected _wxImageHandler_p.");
335 wxPy_BEGIN_ALLOW_THREADS
;
336 _result
= new wxString (wxImageHandler_GetExtension(_arg0
));
338 wxPy_END_ALLOW_THREADS
;
340 _resultobj
= PyString_FromString(WXSTRINGCAST
*(_result
));
348 #define wxImageHandler_GetType(_swigobj) (_swigobj->GetType())
349 static PyObject
*_wrap_wxImageHandler_GetType(PyObject
*self
, PyObject
*args
) {
350 PyObject
* _resultobj
;
352 wxImageHandler
* _arg0
;
356 if(!PyArg_ParseTuple(args
,"s:wxImageHandler_GetType",&_argc0
))
359 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxImageHandler_p")) {
360 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageHandler_GetType. Expected _wxImageHandler_p.");
365 wxPy_BEGIN_ALLOW_THREADS
;
366 _result
= (long )wxImageHandler_GetType(_arg0
);
368 wxPy_END_ALLOW_THREADS
;
369 } _resultobj
= Py_BuildValue("l",_result
);
373 #define wxImageHandler_GetMimeType(_swigobj) (_swigobj->GetMimeType())
374 static PyObject
*_wrap_wxImageHandler_GetMimeType(PyObject
*self
, PyObject
*args
) {
375 PyObject
* _resultobj
;
377 wxImageHandler
* _arg0
;
381 if(!PyArg_ParseTuple(args
,"s:wxImageHandler_GetMimeType",&_argc0
))
384 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxImageHandler_p")) {
385 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageHandler_GetMimeType. Expected _wxImageHandler_p.");
390 wxPy_BEGIN_ALLOW_THREADS
;
391 _result
= new wxString (wxImageHandler_GetMimeType(_arg0
));
393 wxPy_END_ALLOW_THREADS
;
395 _resultobj
= PyString_FromString(WXSTRINGCAST
*(_result
));
403 #define wxImageHandler_SetName(_swigobj,_swigarg0) (_swigobj->SetName(_swigarg0))
404 static PyObject
*_wrap_wxImageHandler_SetName(PyObject
*self
, PyObject
*args
) {
405 PyObject
* _resultobj
;
406 wxImageHandler
* _arg0
;
409 PyObject
* _obj1
= 0;
412 if(!PyArg_ParseTuple(args
,"sO:wxImageHandler_SetName",&_argc0
,&_obj1
))
415 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxImageHandler_p")) {
416 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageHandler_SetName. Expected _wxImageHandler_p.");
421 if (!PyString_Check(_obj1
)) {
422 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
425 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
428 wxPy_BEGIN_ALLOW_THREADS
;
429 wxImageHandler_SetName(_arg0
,*_arg1
);
431 wxPy_END_ALLOW_THREADS
;
432 } Py_INCREF(Py_None
);
433 _resultobj
= Py_None
;
441 #define wxImageHandler_SetExtension(_swigobj,_swigarg0) (_swigobj->SetExtension(_swigarg0))
442 static PyObject
*_wrap_wxImageHandler_SetExtension(PyObject
*self
, PyObject
*args
) {
443 PyObject
* _resultobj
;
444 wxImageHandler
* _arg0
;
447 PyObject
* _obj1
= 0;
450 if(!PyArg_ParseTuple(args
,"sO:wxImageHandler_SetExtension",&_argc0
,&_obj1
))
453 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxImageHandler_p")) {
454 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageHandler_SetExtension. Expected _wxImageHandler_p.");
459 if (!PyString_Check(_obj1
)) {
460 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
463 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
466 wxPy_BEGIN_ALLOW_THREADS
;
467 wxImageHandler_SetExtension(_arg0
,*_arg1
);
469 wxPy_END_ALLOW_THREADS
;
470 } Py_INCREF(Py_None
);
471 _resultobj
= Py_None
;
479 #define wxImageHandler_SetType(_swigobj,_swigarg0) (_swigobj->SetType(_swigarg0))
480 static PyObject
*_wrap_wxImageHandler_SetType(PyObject
*self
, PyObject
*args
) {
481 PyObject
* _resultobj
;
482 wxImageHandler
* _arg0
;
487 if(!PyArg_ParseTuple(args
,"sl:wxImageHandler_SetType",&_argc0
,&_arg1
))
490 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxImageHandler_p")) {
491 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageHandler_SetType. Expected _wxImageHandler_p.");
496 wxPy_BEGIN_ALLOW_THREADS
;
497 wxImageHandler_SetType(_arg0
,_arg1
);
499 wxPy_END_ALLOW_THREADS
;
500 } Py_INCREF(Py_None
);
501 _resultobj
= Py_None
;
505 #define wxImageHandler_SetMimeType(_swigobj,_swigarg0) (_swigobj->SetMimeType(_swigarg0))
506 static PyObject
*_wrap_wxImageHandler_SetMimeType(PyObject
*self
, PyObject
*args
) {
507 PyObject
* _resultobj
;
508 wxImageHandler
* _arg0
;
511 PyObject
* _obj1
= 0;
514 if(!PyArg_ParseTuple(args
,"sO:wxImageHandler_SetMimeType",&_argc0
,&_obj1
))
517 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxImageHandler_p")) {
518 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageHandler_SetMimeType. Expected _wxImageHandler_p.");
523 if (!PyString_Check(_obj1
)) {
524 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
527 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
530 wxPy_BEGIN_ALLOW_THREADS
;
531 wxImageHandler_SetMimeType(_arg0
,*_arg1
);
533 wxPy_END_ALLOW_THREADS
;
534 } Py_INCREF(Py_None
);
535 _resultobj
= Py_None
;
543 static void *SwigwxPNGHandlerTowxImageHandler(void *ptr
) {
545 wxImageHandler
*dest
;
546 src
= (wxPNGHandler
*) ptr
;
547 dest
= (wxImageHandler
*) src
;
548 return (void *) dest
;
551 #define new_wxPNGHandler() (new wxPNGHandler())
552 static PyObject
*_wrap_new_wxPNGHandler(PyObject
*self
, PyObject
*args
) {
553 PyObject
* _resultobj
;
554 wxPNGHandler
* _result
;
558 if(!PyArg_ParseTuple(args
,":new_wxPNGHandler"))
561 wxPy_BEGIN_ALLOW_THREADS
;
562 _result
= (wxPNGHandler
*)new_wxPNGHandler();
564 wxPy_END_ALLOW_THREADS
;
565 } SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPNGHandler_p");
566 _resultobj
= Py_BuildValue("s",_ptemp
);
570 static void *SwigwxJPEGHandlerTowxImageHandler(void *ptr
) {
572 wxImageHandler
*dest
;
573 src
= (wxJPEGHandler
*) ptr
;
574 dest
= (wxImageHandler
*) src
;
575 return (void *) dest
;
578 #define new_wxJPEGHandler() (new wxJPEGHandler())
579 static PyObject
*_wrap_new_wxJPEGHandler(PyObject
*self
, PyObject
*args
) {
580 PyObject
* _resultobj
;
581 wxJPEGHandler
* _result
;
585 if(!PyArg_ParseTuple(args
,":new_wxJPEGHandler"))
588 wxPy_BEGIN_ALLOW_THREADS
;
589 _result
= (wxJPEGHandler
*)new_wxJPEGHandler();
591 wxPy_END_ALLOW_THREADS
;
592 } SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxJPEGHandler_p");
593 _resultobj
= Py_BuildValue("s",_ptemp
);
597 static void *SwigwxBMPHandlerTowxImageHandler(void *ptr
) {
599 wxImageHandler
*dest
;
600 src
= (wxBMPHandler
*) ptr
;
601 dest
= (wxImageHandler
*) src
;
602 return (void *) dest
;
605 #define new_wxBMPHandler() (new wxBMPHandler())
606 static PyObject
*_wrap_new_wxBMPHandler(PyObject
*self
, PyObject
*args
) {
607 PyObject
* _resultobj
;
608 wxBMPHandler
* _result
;
612 if(!PyArg_ParseTuple(args
,":new_wxBMPHandler"))
615 wxPy_BEGIN_ALLOW_THREADS
;
616 _result
= (wxBMPHandler
*)new_wxBMPHandler();
618 wxPy_END_ALLOW_THREADS
;
619 } SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBMPHandler_p");
620 _resultobj
= Py_BuildValue("s",_ptemp
);
624 static void *SwigwxGIFHandlerTowxImageHandler(void *ptr
) {
626 wxImageHandler
*dest
;
627 src
= (wxGIFHandler
*) ptr
;
628 dest
= (wxImageHandler
*) src
;
629 return (void *) dest
;
632 #define new_wxGIFHandler() (new wxGIFHandler())
633 static PyObject
*_wrap_new_wxGIFHandler(PyObject
*self
, PyObject
*args
) {
634 PyObject
* _resultobj
;
635 wxGIFHandler
* _result
;
639 if(!PyArg_ParseTuple(args
,":new_wxGIFHandler"))
642 wxPy_BEGIN_ALLOW_THREADS
;
643 _result
= (wxGIFHandler
*)new_wxGIFHandler();
645 wxPy_END_ALLOW_THREADS
;
646 } SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxGIFHandler_p");
647 _resultobj
= Py_BuildValue("s",_ptemp
);
651 #define new_wxImage(_swigarg0,_swigarg1) (new wxImage(_swigarg0,_swigarg1))
652 static PyObject
*_wrap_new_wxImage(PyObject
*self
, PyObject
*args
) {
653 PyObject
* _resultobj
;
656 long _arg1
= (wxBITMAP_TYPE_PNG
);
657 PyObject
* _obj0
= 0;
661 if(!PyArg_ParseTuple(args
,"O|l:new_wxImage",&_obj0
,&_arg1
))
664 if (!PyString_Check(_obj0
)) {
665 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
668 _arg0
= new wxString(PyString_AsString(_obj0
), PyString_Size(_obj0
));
671 wxPy_BEGIN_ALLOW_THREADS
;
672 _result
= (wxImage
*)new_wxImage(*_arg0
,_arg1
);
674 wxPy_END_ALLOW_THREADS
;
675 } SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImage_p");
676 _resultobj
= Py_BuildValue("s",_ptemp
);
684 #define delete_wxImage(_swigobj) (delete _swigobj)
685 static PyObject
*_wrap_delete_wxImage(PyObject
*self
, PyObject
*args
) {
686 PyObject
* _resultobj
;
691 if(!PyArg_ParseTuple(args
,"s:delete_wxImage",&_argc0
))
694 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxImage_p")) {
695 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxImage. Expected _wxImage_p.");
700 wxPy_BEGIN_ALLOW_THREADS
;
701 delete_wxImage(_arg0
);
703 wxPy_END_ALLOW_THREADS
;
704 } Py_INCREF(Py_None
);
705 _resultobj
= Py_None
;
709 #define wxImage_ConvertToBitmap(_swigobj) (_swigobj->ConvertToBitmap())
710 static PyObject
*_wrap_wxImage_ConvertToBitmap(PyObject
*self
, PyObject
*args
) {
711 PyObject
* _resultobj
;
718 if(!PyArg_ParseTuple(args
,"s:wxImage_ConvertToBitmap",&_argc0
))
721 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxImage_p")) {
722 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_ConvertToBitmap. Expected _wxImage_p.");
727 wxPy_BEGIN_ALLOW_THREADS
;
728 _result
= new wxBitmap (wxImage_ConvertToBitmap(_arg0
));
730 wxPy_END_ALLOW_THREADS
;
731 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBitmap_p");
732 _resultobj
= Py_BuildValue("s",_ptemp
);
736 #define wxImage_Create(_swigobj,_swigarg0,_swigarg1) (_swigobj->Create(_swigarg0,_swigarg1))
737 static PyObject
*_wrap_wxImage_Create(PyObject
*self
, PyObject
*args
) {
738 PyObject
* _resultobj
;
745 if(!PyArg_ParseTuple(args
,"sii:wxImage_Create",&_argc0
,&_arg1
,&_arg2
))
748 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxImage_p")) {
749 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_Create. Expected _wxImage_p.");
754 wxPy_BEGIN_ALLOW_THREADS
;
755 wxImage_Create(_arg0
,_arg1
,_arg2
);
757 wxPy_END_ALLOW_THREADS
;
758 } Py_INCREF(Py_None
);
759 _resultobj
= Py_None
;
763 #define wxImage_Destroy(_swigobj) (_swigobj->Destroy())
764 static PyObject
*_wrap_wxImage_Destroy(PyObject
*self
, PyObject
*args
) {
765 PyObject
* _resultobj
;
770 if(!PyArg_ParseTuple(args
,"s:wxImage_Destroy",&_argc0
))
773 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxImage_p")) {
774 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_Destroy. Expected _wxImage_p.");
779 wxPy_BEGIN_ALLOW_THREADS
;
780 wxImage_Destroy(_arg0
);
782 wxPy_END_ALLOW_THREADS
;
783 } Py_INCREF(Py_None
);
784 _resultobj
= Py_None
;
788 #define wxImage_Scale(_swigobj,_swigarg0,_swigarg1) (_swigobj->Scale(_swigarg0,_swigarg1))
789 static PyObject
*_wrap_wxImage_Scale(PyObject
*self
, PyObject
*args
) {
790 PyObject
* _resultobj
;
799 if(!PyArg_ParseTuple(args
,"sii:wxImage_Scale",&_argc0
,&_arg1
,&_arg2
))
802 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxImage_p")) {
803 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_Scale. Expected _wxImage_p.");
808 wxPy_BEGIN_ALLOW_THREADS
;
809 _result
= new wxImage (wxImage_Scale(_arg0
,_arg1
,_arg2
));
811 wxPy_END_ALLOW_THREADS
;
812 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxImage_p");
813 _resultobj
= Py_BuildValue("s",_ptemp
);
817 #define wxImage_Rescale(_swigobj,_swigarg0,_swigarg1) (_swigobj->Rescale(_swigarg0,_swigarg1))
818 static PyObject
*_wrap_wxImage_Rescale(PyObject
*self
, PyObject
*args
) {
819 PyObject
* _resultobj
;
826 if(!PyArg_ParseTuple(args
,"sii:wxImage_Rescale",&_argc0
,&_arg1
,&_arg2
))
829 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxImage_p")) {
830 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_Rescale. Expected _wxImage_p.");
835 wxPy_BEGIN_ALLOW_THREADS
;
836 wxImage_Rescale(_arg0
,_arg1
,_arg2
);
838 wxPy_END_ALLOW_THREADS
;
839 } Py_INCREF(Py_None
);
840 _resultobj
= Py_None
;
844 #define wxImage_SetRGB(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetRGB(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
845 static PyObject
*_wrap_wxImage_SetRGB(PyObject
*self
, PyObject
*args
) {
846 PyObject
* _resultobj
;
856 if(!PyArg_ParseTuple(args
,"siibbb:wxImage_SetRGB",&_argc0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
))
859 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxImage_p")) {
860 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_SetRGB. Expected _wxImage_p.");
865 wxPy_BEGIN_ALLOW_THREADS
;
866 wxImage_SetRGB(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
868 wxPy_END_ALLOW_THREADS
;
869 } Py_INCREF(Py_None
);
870 _resultobj
= Py_None
;
874 #define wxImage_GetRed(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetRed(_swigarg0,_swigarg1))
875 static PyObject
*_wrap_wxImage_GetRed(PyObject
*self
, PyObject
*args
) {
876 PyObject
* _resultobj
;
877 unsigned char _result
;
884 if(!PyArg_ParseTuple(args
,"sii:wxImage_GetRed",&_argc0
,&_arg1
,&_arg2
))
887 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxImage_p")) {
888 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetRed. Expected _wxImage_p.");
893 wxPy_BEGIN_ALLOW_THREADS
;
894 _result
= (unsigned char )wxImage_GetRed(_arg0
,_arg1
,_arg2
);
896 wxPy_END_ALLOW_THREADS
;
897 } _resultobj
= Py_BuildValue("b",_result
);
901 #define wxImage_GetGreen(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetGreen(_swigarg0,_swigarg1))
902 static PyObject
*_wrap_wxImage_GetGreen(PyObject
*self
, PyObject
*args
) {
903 PyObject
* _resultobj
;
904 unsigned char _result
;
911 if(!PyArg_ParseTuple(args
,"sii:wxImage_GetGreen",&_argc0
,&_arg1
,&_arg2
))
914 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxImage_p")) {
915 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetGreen. Expected _wxImage_p.");
920 wxPy_BEGIN_ALLOW_THREADS
;
921 _result
= (unsigned char )wxImage_GetGreen(_arg0
,_arg1
,_arg2
);
923 wxPy_END_ALLOW_THREADS
;
924 } _resultobj
= Py_BuildValue("b",_result
);
928 #define wxImage_GetBlue(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetBlue(_swigarg0,_swigarg1))
929 static PyObject
*_wrap_wxImage_GetBlue(PyObject
*self
, PyObject
*args
) {
930 PyObject
* _resultobj
;
931 unsigned char _result
;
938 if(!PyArg_ParseTuple(args
,"sii:wxImage_GetBlue",&_argc0
,&_arg1
,&_arg2
))
941 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxImage_p")) {
942 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetBlue. Expected _wxImage_p.");
947 wxPy_BEGIN_ALLOW_THREADS
;
948 _result
= (unsigned char )wxImage_GetBlue(_arg0
,_arg1
,_arg2
);
950 wxPy_END_ALLOW_THREADS
;
951 } _resultobj
= Py_BuildValue("b",_result
);
955 #define wxImage_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1))
956 static PyObject
*_wrap_wxImage_LoadFile(PyObject
*self
, PyObject
*args
) {
957 PyObject
* _resultobj
;
961 long _arg2
= (wxBITMAP_TYPE_PNG
);
963 PyObject
* _obj1
= 0;
966 if(!PyArg_ParseTuple(args
,"sO|l:wxImage_LoadFile",&_argc0
,&_obj1
,&_arg2
))
969 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxImage_p")) {
970 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_LoadFile. Expected _wxImage_p.");
975 if (!PyString_Check(_obj1
)) {
976 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
979 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
982 wxPy_BEGIN_ALLOW_THREADS
;
983 _result
= (bool )wxImage_LoadFile(_arg0
,*_arg1
,_arg2
);
985 wxPy_END_ALLOW_THREADS
;
986 } _resultobj
= Py_BuildValue("i",_result
);
994 #define wxImage_LoadMimeFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1))
995 static PyObject
*_wrap_wxImage_LoadMimeFile(PyObject
*self
, PyObject
*args
) {
996 PyObject
* _resultobj
;
1002 PyObject
* _obj1
= 0;
1003 PyObject
* _obj2
= 0;
1006 if(!PyArg_ParseTuple(args
,"sOO:wxImage_LoadMimeFile",&_argc0
,&_obj1
,&_obj2
))
1009 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxImage_p")) {
1010 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_LoadMimeFile. Expected _wxImage_p.");
1015 if (!PyString_Check(_obj1
)) {
1016 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1019 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
1022 if (!PyString_Check(_obj2
)) {
1023 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1026 _arg2
= new wxString(PyString_AsString(_obj2
), PyString_Size(_obj2
));
1029 wxPy_BEGIN_ALLOW_THREADS
;
1030 _result
= (bool )wxImage_LoadMimeFile(_arg0
,*_arg1
,*_arg2
);
1032 wxPy_END_ALLOW_THREADS
;
1033 } _resultobj
= Py_BuildValue("i",_result
);
1045 #define wxImage_SaveFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->SaveFile(_swigarg0,_swigarg1))
1046 static PyObject
*_wrap_wxImage_SaveFile(PyObject
*self
, PyObject
*args
) {
1047 PyObject
* _resultobj
;
1053 PyObject
* _obj1
= 0;
1056 if(!PyArg_ParseTuple(args
,"sOi:wxImage_SaveFile",&_argc0
,&_obj1
,&_arg2
))
1059 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxImage_p")) {
1060 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_SaveFile. Expected _wxImage_p.");
1065 if (!PyString_Check(_obj1
)) {
1066 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1069 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
1072 wxPy_BEGIN_ALLOW_THREADS
;
1073 _result
= (bool )wxImage_SaveFile(_arg0
,*_arg1
,_arg2
);
1075 wxPy_END_ALLOW_THREADS
;
1076 } _resultobj
= Py_BuildValue("i",_result
);
1084 #define wxImage_SaveMimeFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->SaveFile(_swigarg0,_swigarg1))
1085 static PyObject
*_wrap_wxImage_SaveMimeFile(PyObject
*self
, PyObject
*args
) {
1086 PyObject
* _resultobj
;
1092 PyObject
* _obj1
= 0;
1093 PyObject
* _obj2
= 0;
1096 if(!PyArg_ParseTuple(args
,"sOO:wxImage_SaveMimeFile",&_argc0
,&_obj1
,&_obj2
))
1099 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxImage_p")) {
1100 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_SaveMimeFile. Expected _wxImage_p.");
1105 if (!PyString_Check(_obj1
)) {
1106 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1109 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
1112 if (!PyString_Check(_obj2
)) {
1113 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1116 _arg2
= new wxString(PyString_AsString(_obj2
), PyString_Size(_obj2
));
1119 wxPy_BEGIN_ALLOW_THREADS
;
1120 _result
= (bool )wxImage_SaveMimeFile(_arg0
,*_arg1
,*_arg2
);
1122 wxPy_END_ALLOW_THREADS
;
1123 } _resultobj
= Py_BuildValue("i",_result
);
1135 #define wxImage_Ok(_swigobj) (_swigobj->Ok())
1136 static PyObject
*_wrap_wxImage_Ok(PyObject
*self
, PyObject
*args
) {
1137 PyObject
* _resultobj
;
1143 if(!PyArg_ParseTuple(args
,"s:wxImage_Ok",&_argc0
))
1146 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxImage_p")) {
1147 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_Ok. Expected _wxImage_p.");
1152 wxPy_BEGIN_ALLOW_THREADS
;
1153 _result
= (bool )wxImage_Ok(_arg0
);
1155 wxPy_END_ALLOW_THREADS
;
1156 } _resultobj
= Py_BuildValue("i",_result
);
1160 #define wxImage_GetWidth(_swigobj) (_swigobj->GetWidth())
1161 static PyObject
*_wrap_wxImage_GetWidth(PyObject
*self
, PyObject
*args
) {
1162 PyObject
* _resultobj
;
1168 if(!PyArg_ParseTuple(args
,"s:wxImage_GetWidth",&_argc0
))
1171 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxImage_p")) {
1172 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetWidth. Expected _wxImage_p.");
1177 wxPy_BEGIN_ALLOW_THREADS
;
1178 _result
= (int )wxImage_GetWidth(_arg0
);
1180 wxPy_END_ALLOW_THREADS
;
1181 } _resultobj
= Py_BuildValue("i",_result
);
1185 #define wxImage_GetHeight(_swigobj) (_swigobj->GetHeight())
1186 static PyObject
*_wrap_wxImage_GetHeight(PyObject
*self
, PyObject
*args
) {
1187 PyObject
* _resultobj
;
1193 if(!PyArg_ParseTuple(args
,"s:wxImage_GetHeight",&_argc0
))
1196 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxImage_p")) {
1197 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetHeight. Expected _wxImage_p.");
1202 wxPy_BEGIN_ALLOW_THREADS
;
1203 _result
= (int )wxImage_GetHeight(_arg0
);
1205 wxPy_END_ALLOW_THREADS
;
1206 } _resultobj
= Py_BuildValue("i",_result
);
1210 static PyObject
* wxImage_GetData(wxImage
*self
) {
1211 unsigned char* data
= self
->GetData();
1212 int len
= self
->GetWidth() * self
->GetHeight() * 3;
1213 return PyString_FromStringAndSize((char*)data
, len
);
1215 static PyObject
*_wrap_wxImage_GetData(PyObject
*self
, PyObject
*args
) {
1216 PyObject
* _resultobj
;
1222 if(!PyArg_ParseTuple(args
,"s:wxImage_GetData",&_argc0
))
1225 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxImage_p")) {
1226 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetData. Expected _wxImage_p.");
1231 wxPy_BEGIN_ALLOW_THREADS
;
1232 _result
= (PyObject
*)wxImage_GetData(_arg0
);
1234 wxPy_END_ALLOW_THREADS
;
1236 _resultobj
= _result
;
1241 static void wxImage_SetData(wxImage
*self
,PyObject
* data
) {
1242 unsigned char* dataPtr
;
1244 if (! PyString_Check(data
)) {
1245 PyErr_SetString(PyExc_TypeError
, "Expected string object");
1248 dataPtr
= (unsigned char*)PyString_AsString(data
);
1249 self
->SetData(dataPtr
);
1251 static PyObject
*_wrap_wxImage_SetData(PyObject
*self
, PyObject
*args
) {
1252 PyObject
* _resultobj
;
1256 PyObject
* _obj1
= 0;
1259 if(!PyArg_ParseTuple(args
,"sO:wxImage_SetData",&_argc0
,&_obj1
))
1262 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxImage_p")) {
1263 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_SetData. Expected _wxImage_p.");
1271 wxPy_BEGIN_ALLOW_THREADS
;
1272 wxImage_SetData(_arg0
,_arg1
);
1274 wxPy_END_ALLOW_THREADS
;
1275 } Py_INCREF(Py_None
);
1276 _resultobj
= Py_None
;
1280 #define wxImage_SetMaskColour(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetMaskColour(_swigarg0,_swigarg1,_swigarg2))
1281 static PyObject
*_wrap_wxImage_SetMaskColour(PyObject
*self
, PyObject
*args
) {
1282 PyObject
* _resultobj
;
1284 unsigned char _arg1
;
1285 unsigned char _arg2
;
1286 unsigned char _arg3
;
1290 if(!PyArg_ParseTuple(args
,"sbbb:wxImage_SetMaskColour",&_argc0
,&_arg1
,&_arg2
,&_arg3
))
1293 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxImage_p")) {
1294 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_SetMaskColour. Expected _wxImage_p.");
1299 wxPy_BEGIN_ALLOW_THREADS
;
1300 wxImage_SetMaskColour(_arg0
,_arg1
,_arg2
,_arg3
);
1302 wxPy_END_ALLOW_THREADS
;
1303 } Py_INCREF(Py_None
);
1304 _resultobj
= Py_None
;
1308 #define wxImage_GetMaskRed(_swigobj) (_swigobj->GetMaskRed())
1309 static PyObject
*_wrap_wxImage_GetMaskRed(PyObject
*self
, PyObject
*args
) {
1310 PyObject
* _resultobj
;
1311 unsigned char _result
;
1316 if(!PyArg_ParseTuple(args
,"s:wxImage_GetMaskRed",&_argc0
))
1319 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxImage_p")) {
1320 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetMaskRed. Expected _wxImage_p.");
1325 wxPy_BEGIN_ALLOW_THREADS
;
1326 _result
= (unsigned char )wxImage_GetMaskRed(_arg0
);
1328 wxPy_END_ALLOW_THREADS
;
1329 } _resultobj
= Py_BuildValue("b",_result
);
1333 #define wxImage_GetMaskGreen(_swigobj) (_swigobj->GetMaskGreen())
1334 static PyObject
*_wrap_wxImage_GetMaskGreen(PyObject
*self
, PyObject
*args
) {
1335 PyObject
* _resultobj
;
1336 unsigned char _result
;
1341 if(!PyArg_ParseTuple(args
,"s:wxImage_GetMaskGreen",&_argc0
))
1344 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxImage_p")) {
1345 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetMaskGreen. Expected _wxImage_p.");
1350 wxPy_BEGIN_ALLOW_THREADS
;
1351 _result
= (unsigned char )wxImage_GetMaskGreen(_arg0
);
1353 wxPy_END_ALLOW_THREADS
;
1354 } _resultobj
= Py_BuildValue("b",_result
);
1358 #define wxImage_GetMaskBlue(_swigobj) (_swigobj->GetMaskBlue())
1359 static PyObject
*_wrap_wxImage_GetMaskBlue(PyObject
*self
, PyObject
*args
) {
1360 PyObject
* _resultobj
;
1361 unsigned char _result
;
1366 if(!PyArg_ParseTuple(args
,"s:wxImage_GetMaskBlue",&_argc0
))
1369 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxImage_p")) {
1370 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetMaskBlue. Expected _wxImage_p.");
1375 wxPy_BEGIN_ALLOW_THREADS
;
1376 _result
= (unsigned char )wxImage_GetMaskBlue(_arg0
);
1378 wxPy_END_ALLOW_THREADS
;
1379 } _resultobj
= Py_BuildValue("b",_result
);
1383 #define wxImage_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0))
1384 static PyObject
*_wrap_wxImage_SetMask(PyObject
*self
, PyObject
*args
) {
1385 PyObject
* _resultobj
;
1392 if(!PyArg_ParseTuple(args
,"s|i:wxImage_SetMask",&_argc0
,&tempbool1
))
1395 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxImage_p")) {
1396 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_SetMask. Expected _wxImage_p.");
1400 _arg1
= (bool ) tempbool1
;
1402 wxPy_BEGIN_ALLOW_THREADS
;
1403 wxImage_SetMask(_arg0
,_arg1
);
1405 wxPy_END_ALLOW_THREADS
;
1406 } Py_INCREF(Py_None
);
1407 _resultobj
= Py_None
;
1411 #define wxImage_HasMask(_swigobj) (_swigobj->HasMask())
1412 static PyObject
*_wrap_wxImage_HasMask(PyObject
*self
, PyObject
*args
) {
1413 PyObject
* _resultobj
;
1419 if(!PyArg_ParseTuple(args
,"s:wxImage_HasMask",&_argc0
))
1422 if (SWIG_GetPtr(_argc0
,(void **) &_arg0
,"_wxImage_p")) {
1423 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_HasMask. Expected _wxImage_p.");
1428 wxPy_BEGIN_ALLOW_THREADS
;
1429 _result
= (bool )wxImage_HasMask(_arg0
);
1431 wxPy_END_ALLOW_THREADS
;
1432 } _resultobj
= Py_BuildValue("i",_result
);
1436 static PyMethodDef imagecMethods
[] = {
1437 { "wxImage_HasMask", _wrap_wxImage_HasMask
, 1 },
1438 { "wxImage_SetMask", _wrap_wxImage_SetMask
, 1 },
1439 { "wxImage_GetMaskBlue", _wrap_wxImage_GetMaskBlue
, 1 },
1440 { "wxImage_GetMaskGreen", _wrap_wxImage_GetMaskGreen
, 1 },
1441 { "wxImage_GetMaskRed", _wrap_wxImage_GetMaskRed
, 1 },
1442 { "wxImage_SetMaskColour", _wrap_wxImage_SetMaskColour
, 1 },
1443 { "wxImage_SetData", _wrap_wxImage_SetData
, 1 },
1444 { "wxImage_GetData", _wrap_wxImage_GetData
, 1 },
1445 { "wxImage_GetHeight", _wrap_wxImage_GetHeight
, 1 },
1446 { "wxImage_GetWidth", _wrap_wxImage_GetWidth
, 1 },
1447 { "wxImage_Ok", _wrap_wxImage_Ok
, 1 },
1448 { "wxImage_SaveMimeFile", _wrap_wxImage_SaveMimeFile
, 1 },
1449 { "wxImage_SaveFile", _wrap_wxImage_SaveFile
, 1 },
1450 { "wxImage_LoadMimeFile", _wrap_wxImage_LoadMimeFile
, 1 },
1451 { "wxImage_LoadFile", _wrap_wxImage_LoadFile
, 1 },
1452 { "wxImage_GetBlue", _wrap_wxImage_GetBlue
, 1 },
1453 { "wxImage_GetGreen", _wrap_wxImage_GetGreen
, 1 },
1454 { "wxImage_GetRed", _wrap_wxImage_GetRed
, 1 },
1455 { "wxImage_SetRGB", _wrap_wxImage_SetRGB
, 1 },
1456 { "wxImage_Rescale", _wrap_wxImage_Rescale
, 1 },
1457 { "wxImage_Scale", _wrap_wxImage_Scale
, 1 },
1458 { "wxImage_Destroy", _wrap_wxImage_Destroy
, 1 },
1459 { "wxImage_Create", _wrap_wxImage_Create
, 1 },
1460 { "wxImage_ConvertToBitmap", _wrap_wxImage_ConvertToBitmap
, 1 },
1461 { "delete_wxImage", _wrap_delete_wxImage
, 1 },
1462 { "new_wxImage", _wrap_new_wxImage
, 1 },
1463 { "new_wxGIFHandler", _wrap_new_wxGIFHandler
, 1 },
1464 { "new_wxBMPHandler", _wrap_new_wxBMPHandler
, 1 },
1465 { "new_wxJPEGHandler", _wrap_new_wxJPEGHandler
, 1 },
1466 { "new_wxPNGHandler", _wrap_new_wxPNGHandler
, 1 },
1467 { "wxImageHandler_SetMimeType", _wrap_wxImageHandler_SetMimeType
, 1 },
1468 { "wxImageHandler_SetType", _wrap_wxImageHandler_SetType
, 1 },
1469 { "wxImageHandler_SetExtension", _wrap_wxImageHandler_SetExtension
, 1 },
1470 { "wxImageHandler_SetName", _wrap_wxImageHandler_SetName
, 1 },
1471 { "wxImageHandler_GetMimeType", _wrap_wxImageHandler_GetMimeType
, 1 },
1472 { "wxImageHandler_GetType", _wrap_wxImageHandler_GetType
, 1 },
1473 { "wxImageHandler_GetExtension", _wrap_wxImageHandler_GetExtension
, 1 },
1474 { "wxImageHandler_GetName", _wrap_wxImageHandler_GetName
, 1 },
1475 { "new_wxImageHandler", _wrap_new_wxImageHandler
, 1 },
1476 { "wxImage_AddHandler", _wrap_wxImage_AddHandler
, 1 },
1477 { "wxImageFromBitmap", _wrap_wxImageFromBitmap
, 1 },
1478 { "wxImageFromMime", _wrap_wxImageFromMime
, 1 },
1479 { "wxEmptyImage", _wrap_wxEmptyImage
, 1 },
1480 { "wxNullImage", _wrap_wxNullImage
, 1 },
1483 static PyObject
*SWIG_globals
;
1487 SWIGEXPORT(void,initimagec
)() {
1489 SWIG_globals
= SWIG_newvarlink();
1490 m
= Py_InitModule("imagec", imagecMethods
);
1491 d
= PyModule_GetDict(m
);
1493 * These are the pointer type-equivalency mappings.
1494 * (Used by the SWIG pointer type-checker).
1496 SWIG_RegisterMapping("_wxAcceleratorTable","_class_wxAcceleratorTable",0);
1497 SWIG_RegisterMapping("_signed_long","_long",0);
1498 SWIG_RegisterMapping("_class_wxJPEGHandler","_wxJPEGHandler",0);
1499 SWIG_RegisterMapping("_wxBMPHandler","_class_wxBMPHandler",0);
1500 SWIG_RegisterMapping("_wxImage","_class_wxImage",0);
1501 SWIG_RegisterMapping("_wxPrintQuality","_int",0);
1502 SWIG_RegisterMapping("_wxPrintQuality","_signed_int",0);
1503 SWIG_RegisterMapping("_wxPrintQuality","_unsigned_int",0);
1504 SWIG_RegisterMapping("_wxPrintQuality","_wxWindowID",0);
1505 SWIG_RegisterMapping("_wxPrintQuality","_uint",0);
1506 SWIG_RegisterMapping("_wxPrintQuality","_EBool",0);
1507 SWIG_RegisterMapping("_wxPrintQuality","_size_t",0);
1508 SWIG_RegisterMapping("_class_wxRegionIterator","_wxRegionIterator",0);
1509 SWIG_RegisterMapping("_wxGIFHandler","_class_wxGIFHandler",0);
1510 SWIG_RegisterMapping("_wxIndividualLayoutConstraint","_class_wxIndividualLayoutConstraint",0);
1511 SWIG_RegisterMapping("_wxCursor","_class_wxCursor",0);
1512 SWIG_RegisterMapping("_wxImageHandler","_class_wxGIFHandler",SwigwxGIFHandlerTowxImageHandler
);
1513 SWIG_RegisterMapping("_wxImageHandler","_wxGIFHandler",SwigwxGIFHandlerTowxImageHandler
);
1514 SWIG_RegisterMapping("_wxImageHandler","_class_wxBMPHandler",SwigwxBMPHandlerTowxImageHandler
);
1515 SWIG_RegisterMapping("_wxImageHandler","_wxBMPHandler",SwigwxBMPHandlerTowxImageHandler
);
1516 SWIG_RegisterMapping("_wxImageHandler","_class_wxJPEGHandler",SwigwxJPEGHandlerTowxImageHandler
);
1517 SWIG_RegisterMapping("_wxImageHandler","_wxJPEGHandler",SwigwxJPEGHandlerTowxImageHandler
);
1518 SWIG_RegisterMapping("_wxImageHandler","_class_wxPNGHandler",SwigwxPNGHandlerTowxImageHandler
);
1519 SWIG_RegisterMapping("_wxImageHandler","_wxPNGHandler",SwigwxPNGHandlerTowxImageHandler
);
1520 SWIG_RegisterMapping("_wxImageHandler","_class_wxImageHandler",0);
1521 SWIG_RegisterMapping("_wxMask","_class_wxMask",0);
1522 SWIG_RegisterMapping("_wxPNGHandler","_class_wxPNGHandler",0);
1523 SWIG_RegisterMapping("_wxPen","_class_wxPen",0);
1524 SWIG_RegisterMapping("_byte","_unsigned_char",0);
1525 SWIG_RegisterMapping("_long","_wxDash",0);
1526 SWIG_RegisterMapping("_long","_unsigned_long",0);
1527 SWIG_RegisterMapping("_long","_signed_long",0);
1528 SWIG_RegisterMapping("_wxImageList","_class_wxImageList",0);
1529 SWIG_RegisterMapping("_class_wxAcceleratorTable","_wxAcceleratorTable",0);
1530 SWIG_RegisterMapping("_wxDC","_class_wxDC",0);
1531 SWIG_RegisterMapping("_class_wxBMPHandler","_wxBMPHandler",0);
1532 SWIG_RegisterMapping("_size_t","_wxPrintQuality",0);
1533 SWIG_RegisterMapping("_size_t","_unsigned_int",0);
1534 SWIG_RegisterMapping("_size_t","_int",0);
1535 SWIG_RegisterMapping("_size_t","_wxWindowID",0);
1536 SWIG_RegisterMapping("_size_t","_uint",0);
1537 SWIG_RegisterMapping("_class_wxRealPoint","_wxRealPoint",0);
1538 SWIG_RegisterMapping("_wxPrinterDC","_class_wxPrinterDC",0);
1539 SWIG_RegisterMapping("_class_wxGIFHandler","_wxGIFHandler",0);
1540 SWIG_RegisterMapping("_class_wxMask","_wxMask",0);
1541 SWIG_RegisterMapping("_class_wxPNGHandler","_wxPNGHandler",0);
1542 SWIG_RegisterMapping("_wxColour","_class_wxColour",0);
1543 SWIG_RegisterMapping("_wxBrush","_class_wxBrush",0);
1544 SWIG_RegisterMapping("_uint","_wxPrintQuality",0);
1545 SWIG_RegisterMapping("_uint","_size_t",0);
1546 SWIG_RegisterMapping("_uint","_unsigned_int",0);
1547 SWIG_RegisterMapping("_uint","_int",0);
1548 SWIG_RegisterMapping("_uint","_wxWindowID",0);
1549 SWIG_RegisterMapping("_wxRect","_class_wxRect",0);
1550 SWIG_RegisterMapping("_class_wxImage","_wxImage",0);
1551 SWIG_RegisterMapping("_wxPoint","_class_wxPoint",0);
1552 SWIG_RegisterMapping("_wxBitmap","_class_wxBitmap",0);
1553 SWIG_RegisterMapping("_wxPyTimer","_class_wxPyTimer",0);
1554 SWIG_RegisterMapping("_wxWindowDC","_class_wxWindowDC",0);
1555 SWIG_RegisterMapping("_class_wxIndividualLayoutConstraint","_wxIndividualLayoutConstraint",0);
1556 SWIG_RegisterMapping("_EBool","_wxPrintQuality",0);
1557 SWIG_RegisterMapping("_EBool","_signed_int",0);
1558 SWIG_RegisterMapping("_EBool","_int",0);
1559 SWIG_RegisterMapping("_EBool","_wxWindowID",0);
1560 SWIG_RegisterMapping("_class_wxRegion","_wxRegion",0);
1561 SWIG_RegisterMapping("_wxFont","_class_wxFont",0);
1562 SWIG_RegisterMapping("_unsigned_long","_wxDash",0);
1563 SWIG_RegisterMapping("_unsigned_long","_long",0);
1564 SWIG_RegisterMapping("_class_wxRect","_wxRect",0);
1565 SWIG_RegisterMapping("_class_wxDC","_wxDC",0);
1566 SWIG_RegisterMapping("_class_wxPyTimer","_wxPyTimer",0);
1567 SWIG_RegisterMapping("_wxAcceleratorEntry","_class_wxAcceleratorEntry",0);
1568 SWIG_RegisterMapping("_signed_int","_wxPrintQuality",0);
1569 SWIG_RegisterMapping("_signed_int","_EBool",0);
1570 SWIG_RegisterMapping("_signed_int","_wxWindowID",0);
1571 SWIG_RegisterMapping("_signed_int","_int",0);
1572 SWIG_RegisterMapping("_wxLayoutConstraints","_class_wxLayoutConstraints",0);
1573 SWIG_RegisterMapping("_wxMetaFileDC","_class_wxMetaFileDC",0);
1574 SWIG_RegisterMapping("_wxScreenDC","_class_wxScreenDC",0);
1575 SWIG_RegisterMapping("_WXTYPE","_short",0);
1576 SWIG_RegisterMapping("_WXTYPE","_signed_short",0);
1577 SWIG_RegisterMapping("_WXTYPE","_unsigned_short",0);
1578 SWIG_RegisterMapping("_class_wxBrush","_wxBrush",0);
1579 SWIG_RegisterMapping("_unsigned_short","_WXTYPE",0);
1580 SWIG_RegisterMapping("_unsigned_short","_short",0);
1581 SWIG_RegisterMapping("_class_wxFont","_wxFont",0);
1582 SWIG_RegisterMapping("_wxClientDC","_class_wxClientDC",0);
1583 SWIG_RegisterMapping("_class_wxPoint","_wxPoint",0);
1584 SWIG_RegisterMapping("_wxRealPoint","_class_wxRealPoint",0);
1585 SWIG_RegisterMapping("_signed_short","_WXTYPE",0);
1586 SWIG_RegisterMapping("_signed_short","_short",0);
1587 SWIG_RegisterMapping("_wxMemoryDC","_class_wxMemoryDC",0);
1588 SWIG_RegisterMapping("_wxPaintDC","_class_wxPaintDC",0);
1589 SWIG_RegisterMapping("_class_wxWindowDC","_wxWindowDC",0);
1590 SWIG_RegisterMapping("_class_wxAcceleratorEntry","_wxAcceleratorEntry",0);
1591 SWIG_RegisterMapping("_class_wxCursor","_wxCursor",0);
1592 SWIG_RegisterMapping("_class_wxImageHandler","_class_wxGIFHandler",SwigwxGIFHandlerTowxImageHandler
);
1593 SWIG_RegisterMapping("_class_wxImageHandler","_wxGIFHandler",SwigwxGIFHandlerTowxImageHandler
);
1594 SWIG_RegisterMapping("_class_wxImageHandler","_class_wxBMPHandler",SwigwxBMPHandlerTowxImageHandler
);
1595 SWIG_RegisterMapping("_class_wxImageHandler","_wxBMPHandler",SwigwxBMPHandlerTowxImageHandler
);
1596 SWIG_RegisterMapping("_class_wxImageHandler","_class_wxJPEGHandler",SwigwxJPEGHandlerTowxImageHandler
);
1597 SWIG_RegisterMapping("_class_wxImageHandler","_wxJPEGHandler",SwigwxJPEGHandlerTowxImageHandler
);
1598 SWIG_RegisterMapping("_class_wxImageHandler","_class_wxPNGHandler",SwigwxPNGHandlerTowxImageHandler
);
1599 SWIG_RegisterMapping("_class_wxImageHandler","_wxPNGHandler",SwigwxPNGHandlerTowxImageHandler
);
1600 SWIG_RegisterMapping("_class_wxImageHandler","_wxImageHandler",0);
1601 SWIG_RegisterMapping("_unsigned_char","_byte",0);
1602 SWIG_RegisterMapping("_class_wxMetaFileDC","_wxMetaFileDC",0);
1603 SWIG_RegisterMapping("_unsigned_int","_wxPrintQuality",0);
1604 SWIG_RegisterMapping("_unsigned_int","_size_t",0);
1605 SWIG_RegisterMapping("_unsigned_int","_uint",0);
1606 SWIG_RegisterMapping("_unsigned_int","_wxWindowID",0);
1607 SWIG_RegisterMapping("_unsigned_int","_int",0);
1608 SWIG_RegisterMapping("_wxIcon","_class_wxIcon",0);
1609 SWIG_RegisterMapping("_class_wxPen","_wxPen",0);
1610 SWIG_RegisterMapping("_short","_WXTYPE",0);
1611 SWIG_RegisterMapping("_short","_unsigned_short",0);
1612 SWIG_RegisterMapping("_short","_signed_short",0);
1613 SWIG_RegisterMapping("_class_wxImageList","_wxImageList",0);
1614 SWIG_RegisterMapping("_wxJPEGHandler","_class_wxJPEGHandler",0);
1615 SWIG_RegisterMapping("_wxWindowID","_wxPrintQuality",0);
1616 SWIG_RegisterMapping("_wxWindowID","_size_t",0);
1617 SWIG_RegisterMapping("_wxWindowID","_EBool",0);
1618 SWIG_RegisterMapping("_wxWindowID","_uint",0);
1619 SWIG_RegisterMapping("_wxWindowID","_int",0);
1620 SWIG_RegisterMapping("_wxWindowID","_signed_int",0);
1621 SWIG_RegisterMapping("_wxWindowID","_unsigned_int",0);
1622 SWIG_RegisterMapping("_int","_wxPrintQuality",0);
1623 SWIG_RegisterMapping("_int","_size_t",0);
1624 SWIG_RegisterMapping("_int","_EBool",0);
1625 SWIG_RegisterMapping("_int","_uint",0);
1626 SWIG_RegisterMapping("_int","_wxWindowID",0);
1627 SWIG_RegisterMapping("_int","_unsigned_int",0);
1628 SWIG_RegisterMapping("_int","_signed_int",0);
1629 SWIG_RegisterMapping("_wxSize","_class_wxSize",0);
1630 SWIG_RegisterMapping("_wxRegionIterator","_class_wxRegionIterator",0);
1631 SWIG_RegisterMapping("_class_wxPrinterDC","_wxPrinterDC",0);
1632 SWIG_RegisterMapping("_class_wxPaintDC","_wxPaintDC",0);
1633 SWIG_RegisterMapping("_class_wxLayoutConstraints","_wxLayoutConstraints",0);
1634 SWIG_RegisterMapping("_class_wxIcon","_wxIcon",0);
1635 SWIG_RegisterMapping("_class_wxColour","_wxColour",0);
1636 SWIG_RegisterMapping("_class_wxScreenDC","_wxScreenDC",0);
1637 SWIG_RegisterMapping("_wxPalette","_class_wxPalette",0);
1638 SWIG_RegisterMapping("_wxRegion","_class_wxRegion",0);
1639 SWIG_RegisterMapping("_class_wxClientDC","_wxClientDC",0);
1640 SWIG_RegisterMapping("_class_wxSize","_wxSize",0);
1641 SWIG_RegisterMapping("_class_wxBitmap","_wxBitmap",0);
1642 SWIG_RegisterMapping("_class_wxMemoryDC","_wxMemoryDC",0);
1643 SWIG_RegisterMapping("_wxDash","_unsigned_long",0);
1644 SWIG_RegisterMapping("_wxDash","_long",0);
1645 SWIG_RegisterMapping("_class_wxPalette","_wxPalette",0);