4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Patch 6)
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
) {
64 } else if (target
== Py_None
) {
68 if (!PyList_Check(target
)) {
70 target
= PyList_New(0);
71 PyList_Append(target
, o2
);
74 PyList_Append(target
,o
);
80 static PyObject
* t_output_helper(PyObject
* target
, PyObject
* o
) {
86 } else if (target
== Py_None
) {
90 if (!PyTuple_Check(target
)) {
92 target
= PyTuple_New(1);
93 PyTuple_SetItem(target
, 0, o2
);
96 PyTuple_SetItem(o3
, 0, o
);
99 target
= PySequence_Concat(o2
, o3
);
107 extern byte
* byte_LIST_helper(PyObject
* source
);
108 extern int* int_LIST_helper(PyObject
* source
);
109 extern long* long_LIST_helper(PyObject
* source
);
110 extern char** string_LIST_helper(PyObject
* source
);
111 extern wxPoint
* wxPoint_LIST_helper(PyObject
* source
);
112 extern wxBitmap
** wxBitmap_LIST_helper(PyObject
* source
);
113 extern wxString
* wxString_LIST_helper(PyObject
* source
);
114 extern wxAcceleratorEntry
* wxAcceleratorEntry_LIST_helper(PyObject
* source
);
117 static char* wxStringErrorMsg
= "string type is required for parameter";
119 wxImage
* wxNullImage() {
123 wxImage
* wxEmptyImage(int width
, int height
) {
124 return new wxImage(width
, height
);
127 wxImage
* wxImageFromMime(const wxString
& name
, const wxString
& mimetype
) {
128 return new wxImage(name
, mimetype
);
131 wxImage
* wxImageFromBitmap(const wxBitmap
&bitmap
) {
132 return new wxImage(bitmap
);
135 void wxImage_AddHandler(wxImageHandler
*handler
) {
136 wxImage::AddHandler(handler
);
141 static PyObject
*_wrap_wxNullImage(PyObject
*self
, PyObject
*args
) {
142 PyObject
* _resultobj
;
147 if(!PyArg_ParseTuple(args
,":wxNullImage"))
150 wxPy_BEGIN_ALLOW_THREADS
;
151 _result
= (wxImage
*)wxNullImage();
153 wxPy_END_ALLOW_THREADS
;
155 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImage_p");
156 _resultobj
= Py_BuildValue("s",_ptemp
);
159 _resultobj
= Py_None
;
164 static PyObject
*_wrap_wxEmptyImage(PyObject
*self
, PyObject
*args
) {
165 PyObject
* _resultobj
;
172 if(!PyArg_ParseTuple(args
,"ii:wxEmptyImage",&_arg0
,&_arg1
))
175 wxPy_BEGIN_ALLOW_THREADS
;
176 _result
= (wxImage
*)wxEmptyImage(_arg0
,_arg1
);
178 wxPy_END_ALLOW_THREADS
;
180 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImage_p");
181 _resultobj
= Py_BuildValue("s",_ptemp
);
184 _resultobj
= Py_None
;
189 static PyObject
*_wrap_wxImageFromMime(PyObject
*self
, PyObject
*args
) {
190 PyObject
* _resultobj
;
194 PyObject
* _obj0
= 0;
195 PyObject
* _obj1
= 0;
199 if(!PyArg_ParseTuple(args
,"OO:wxImageFromMime",&_obj0
,&_obj1
))
202 if (!PyString_Check(_obj0
)) {
203 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
206 _arg0
= new wxString(PyString_AsString(_obj0
), PyString_Size(_obj0
));
209 if (!PyString_Check(_obj1
)) {
210 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
213 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
216 wxPy_BEGIN_ALLOW_THREADS
;
217 _result
= (wxImage
*)wxImageFromMime(*_arg0
,*_arg1
);
219 wxPy_END_ALLOW_THREADS
;
221 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImage_p");
222 _resultobj
= Py_BuildValue("s",_ptemp
);
225 _resultobj
= Py_None
;
238 static PyObject
*_wrap_wxImageFromBitmap(PyObject
*self
, PyObject
*args
) {
239 PyObject
* _resultobj
;
242 PyObject
* _argo0
= 0;
246 if(!PyArg_ParseTuple(args
,"O:wxImageFromBitmap",&_argo0
))
249 if (_argo0
== Py_None
) { _arg0
= NULL
; }
250 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
251 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageFromBitmap. Expected _wxBitmap_p.");
256 wxPy_BEGIN_ALLOW_THREADS
;
257 _result
= (wxImage
*)wxImageFromBitmap(*_arg0
);
259 wxPy_END_ALLOW_THREADS
;
261 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImage_p");
262 _resultobj
= Py_BuildValue("s",_ptemp
);
265 _resultobj
= Py_None
;
270 static PyObject
*_wrap_wxImage_AddHandler(PyObject
*self
, PyObject
*args
) {
271 PyObject
* _resultobj
;
272 wxImageHandler
* _arg0
;
273 PyObject
* _argo0
= 0;
276 if(!PyArg_ParseTuple(args
,"O:wxImage_AddHandler",&_argo0
))
279 if (_argo0
== Py_None
) { _arg0
= NULL
; }
280 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageHandler_p")) {
281 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_AddHandler. Expected _wxImageHandler_p.");
286 wxPy_BEGIN_ALLOW_THREADS
;
287 wxImage_AddHandler(_arg0
);
289 wxPy_END_ALLOW_THREADS
;
290 } Py_INCREF(Py_None
);
291 _resultobj
= Py_None
;
295 #define new_wxImageHandler() (new wxImageHandler())
296 static PyObject
*_wrap_new_wxImageHandler(PyObject
*self
, PyObject
*args
) {
297 PyObject
* _resultobj
;
298 wxImageHandler
* _result
;
302 if(!PyArg_ParseTuple(args
,":new_wxImageHandler"))
305 wxPy_BEGIN_ALLOW_THREADS
;
306 _result
= (wxImageHandler
*)new_wxImageHandler();
308 wxPy_END_ALLOW_THREADS
;
310 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImageHandler_p");
311 _resultobj
= Py_BuildValue("s",_ptemp
);
314 _resultobj
= Py_None
;
319 #define wxImageHandler_GetName(_swigobj) (_swigobj->GetName())
320 static PyObject
*_wrap_wxImageHandler_GetName(PyObject
*self
, PyObject
*args
) {
321 PyObject
* _resultobj
;
323 wxImageHandler
* _arg0
;
324 PyObject
* _argo0
= 0;
327 if(!PyArg_ParseTuple(args
,"O:wxImageHandler_GetName",&_argo0
))
330 if (_argo0
== Py_None
) { _arg0
= NULL
; }
331 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageHandler_p")) {
332 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageHandler_GetName. Expected _wxImageHandler_p.");
337 wxPy_BEGIN_ALLOW_THREADS
;
338 _result
= new wxString (wxImageHandler_GetName(_arg0
));
340 wxPy_END_ALLOW_THREADS
;
342 _resultobj
= PyString_FromString(WXSTRINGCAST
*(_result
));
350 #define wxImageHandler_GetExtension(_swigobj) (_swigobj->GetExtension())
351 static PyObject
*_wrap_wxImageHandler_GetExtension(PyObject
*self
, PyObject
*args
) {
352 PyObject
* _resultobj
;
354 wxImageHandler
* _arg0
;
355 PyObject
* _argo0
= 0;
358 if(!PyArg_ParseTuple(args
,"O:wxImageHandler_GetExtension",&_argo0
))
361 if (_argo0
== Py_None
) { _arg0
= NULL
; }
362 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageHandler_p")) {
363 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageHandler_GetExtension. Expected _wxImageHandler_p.");
368 wxPy_BEGIN_ALLOW_THREADS
;
369 _result
= new wxString (wxImageHandler_GetExtension(_arg0
));
371 wxPy_END_ALLOW_THREADS
;
373 _resultobj
= PyString_FromString(WXSTRINGCAST
*(_result
));
381 #define wxImageHandler_GetType(_swigobj) (_swigobj->GetType())
382 static PyObject
*_wrap_wxImageHandler_GetType(PyObject
*self
, PyObject
*args
) {
383 PyObject
* _resultobj
;
385 wxImageHandler
* _arg0
;
386 PyObject
* _argo0
= 0;
389 if(!PyArg_ParseTuple(args
,"O:wxImageHandler_GetType",&_argo0
))
392 if (_argo0
== Py_None
) { _arg0
= NULL
; }
393 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageHandler_p")) {
394 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageHandler_GetType. Expected _wxImageHandler_p.");
399 wxPy_BEGIN_ALLOW_THREADS
;
400 _result
= (long )wxImageHandler_GetType(_arg0
);
402 wxPy_END_ALLOW_THREADS
;
403 } _resultobj
= Py_BuildValue("l",_result
);
407 #define wxImageHandler_GetMimeType(_swigobj) (_swigobj->GetMimeType())
408 static PyObject
*_wrap_wxImageHandler_GetMimeType(PyObject
*self
, PyObject
*args
) {
409 PyObject
* _resultobj
;
411 wxImageHandler
* _arg0
;
412 PyObject
* _argo0
= 0;
415 if(!PyArg_ParseTuple(args
,"O:wxImageHandler_GetMimeType",&_argo0
))
418 if (_argo0
== Py_None
) { _arg0
= NULL
; }
419 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageHandler_p")) {
420 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageHandler_GetMimeType. Expected _wxImageHandler_p.");
425 wxPy_BEGIN_ALLOW_THREADS
;
426 _result
= new wxString (wxImageHandler_GetMimeType(_arg0
));
428 wxPy_END_ALLOW_THREADS
;
430 _resultobj
= PyString_FromString(WXSTRINGCAST
*(_result
));
438 #define wxImageHandler_SetName(_swigobj,_swigarg0) (_swigobj->SetName(_swigarg0))
439 static PyObject
*_wrap_wxImageHandler_SetName(PyObject
*self
, PyObject
*args
) {
440 PyObject
* _resultobj
;
441 wxImageHandler
* _arg0
;
443 PyObject
* _argo0
= 0;
444 PyObject
* _obj1
= 0;
447 if(!PyArg_ParseTuple(args
,"OO:wxImageHandler_SetName",&_argo0
,&_obj1
))
450 if (_argo0
== Py_None
) { _arg0
= NULL
; }
451 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageHandler_p")) {
452 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageHandler_SetName. Expected _wxImageHandler_p.");
457 if (!PyString_Check(_obj1
)) {
458 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
461 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
464 wxPy_BEGIN_ALLOW_THREADS
;
465 wxImageHandler_SetName(_arg0
,*_arg1
);
467 wxPy_END_ALLOW_THREADS
;
468 } Py_INCREF(Py_None
);
469 _resultobj
= Py_None
;
477 #define wxImageHandler_SetExtension(_swigobj,_swigarg0) (_swigobj->SetExtension(_swigarg0))
478 static PyObject
*_wrap_wxImageHandler_SetExtension(PyObject
*self
, PyObject
*args
) {
479 PyObject
* _resultobj
;
480 wxImageHandler
* _arg0
;
482 PyObject
* _argo0
= 0;
483 PyObject
* _obj1
= 0;
486 if(!PyArg_ParseTuple(args
,"OO:wxImageHandler_SetExtension",&_argo0
,&_obj1
))
489 if (_argo0
== Py_None
) { _arg0
= NULL
; }
490 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageHandler_p")) {
491 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageHandler_SetExtension. Expected _wxImageHandler_p.");
496 if (!PyString_Check(_obj1
)) {
497 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
500 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
503 wxPy_BEGIN_ALLOW_THREADS
;
504 wxImageHandler_SetExtension(_arg0
,*_arg1
);
506 wxPy_END_ALLOW_THREADS
;
507 } Py_INCREF(Py_None
);
508 _resultobj
= Py_None
;
516 #define wxImageHandler_SetType(_swigobj,_swigarg0) (_swigobj->SetType(_swigarg0))
517 static PyObject
*_wrap_wxImageHandler_SetType(PyObject
*self
, PyObject
*args
) {
518 PyObject
* _resultobj
;
519 wxImageHandler
* _arg0
;
521 PyObject
* _argo0
= 0;
524 if(!PyArg_ParseTuple(args
,"Ol:wxImageHandler_SetType",&_argo0
,&_arg1
))
527 if (_argo0
== Py_None
) { _arg0
= NULL
; }
528 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageHandler_p")) {
529 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageHandler_SetType. Expected _wxImageHandler_p.");
534 wxPy_BEGIN_ALLOW_THREADS
;
535 wxImageHandler_SetType(_arg0
,_arg1
);
537 wxPy_END_ALLOW_THREADS
;
538 } Py_INCREF(Py_None
);
539 _resultobj
= Py_None
;
543 #define wxImageHandler_SetMimeType(_swigobj,_swigarg0) (_swigobj->SetMimeType(_swigarg0))
544 static PyObject
*_wrap_wxImageHandler_SetMimeType(PyObject
*self
, PyObject
*args
) {
545 PyObject
* _resultobj
;
546 wxImageHandler
* _arg0
;
548 PyObject
* _argo0
= 0;
549 PyObject
* _obj1
= 0;
552 if(!PyArg_ParseTuple(args
,"OO:wxImageHandler_SetMimeType",&_argo0
,&_obj1
))
555 if (_argo0
== Py_None
) { _arg0
= NULL
; }
556 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageHandler_p")) {
557 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageHandler_SetMimeType. Expected _wxImageHandler_p.");
562 if (!PyString_Check(_obj1
)) {
563 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
566 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
569 wxPy_BEGIN_ALLOW_THREADS
;
570 wxImageHandler_SetMimeType(_arg0
,*_arg1
);
572 wxPy_END_ALLOW_THREADS
;
573 } Py_INCREF(Py_None
);
574 _resultobj
= Py_None
;
582 static void *SwigwxPNGHandlerTowxImageHandler(void *ptr
) {
584 wxImageHandler
*dest
;
585 src
= (wxPNGHandler
*) ptr
;
586 dest
= (wxImageHandler
*) src
;
587 return (void *) dest
;
590 #define new_wxPNGHandler() (new wxPNGHandler())
591 static PyObject
*_wrap_new_wxPNGHandler(PyObject
*self
, PyObject
*args
) {
592 PyObject
* _resultobj
;
593 wxPNGHandler
* _result
;
597 if(!PyArg_ParseTuple(args
,":new_wxPNGHandler"))
600 wxPy_BEGIN_ALLOW_THREADS
;
601 _result
= (wxPNGHandler
*)new_wxPNGHandler();
603 wxPy_END_ALLOW_THREADS
;
605 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPNGHandler_p");
606 _resultobj
= Py_BuildValue("s",_ptemp
);
609 _resultobj
= Py_None
;
614 static void *SwigwxJPEGHandlerTowxImageHandler(void *ptr
) {
616 wxImageHandler
*dest
;
617 src
= (wxJPEGHandler
*) ptr
;
618 dest
= (wxImageHandler
*) src
;
619 return (void *) dest
;
622 #define new_wxJPEGHandler() (new wxJPEGHandler())
623 static PyObject
*_wrap_new_wxJPEGHandler(PyObject
*self
, PyObject
*args
) {
624 PyObject
* _resultobj
;
625 wxJPEGHandler
* _result
;
629 if(!PyArg_ParseTuple(args
,":new_wxJPEGHandler"))
632 wxPy_BEGIN_ALLOW_THREADS
;
633 _result
= (wxJPEGHandler
*)new_wxJPEGHandler();
635 wxPy_END_ALLOW_THREADS
;
637 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxJPEGHandler_p");
638 _resultobj
= Py_BuildValue("s",_ptemp
);
641 _resultobj
= Py_None
;
646 static void *SwigwxBMPHandlerTowxImageHandler(void *ptr
) {
648 wxImageHandler
*dest
;
649 src
= (wxBMPHandler
*) ptr
;
650 dest
= (wxImageHandler
*) src
;
651 return (void *) dest
;
654 #define new_wxBMPHandler() (new wxBMPHandler())
655 static PyObject
*_wrap_new_wxBMPHandler(PyObject
*self
, PyObject
*args
) {
656 PyObject
* _resultobj
;
657 wxBMPHandler
* _result
;
661 if(!PyArg_ParseTuple(args
,":new_wxBMPHandler"))
664 wxPy_BEGIN_ALLOW_THREADS
;
665 _result
= (wxBMPHandler
*)new_wxBMPHandler();
667 wxPy_END_ALLOW_THREADS
;
669 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBMPHandler_p");
670 _resultobj
= Py_BuildValue("s",_ptemp
);
673 _resultobj
= Py_None
;
678 static void *SwigwxGIFHandlerTowxImageHandler(void *ptr
) {
680 wxImageHandler
*dest
;
681 src
= (wxGIFHandler
*) ptr
;
682 dest
= (wxImageHandler
*) src
;
683 return (void *) dest
;
686 #define new_wxGIFHandler() (new wxGIFHandler())
687 static PyObject
*_wrap_new_wxGIFHandler(PyObject
*self
, PyObject
*args
) {
688 PyObject
* _resultobj
;
689 wxGIFHandler
* _result
;
693 if(!PyArg_ParseTuple(args
,":new_wxGIFHandler"))
696 wxPy_BEGIN_ALLOW_THREADS
;
697 _result
= (wxGIFHandler
*)new_wxGIFHandler();
699 wxPy_END_ALLOW_THREADS
;
701 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxGIFHandler_p");
702 _resultobj
= Py_BuildValue("s",_ptemp
);
705 _resultobj
= Py_None
;
710 #define new_wxImage(_swigarg0,_swigarg1) (new wxImage(_swigarg0,_swigarg1))
711 static PyObject
*_wrap_new_wxImage(PyObject
*self
, PyObject
*args
) {
712 PyObject
* _resultobj
;
715 long _arg1
= (long ) wxBITMAP_TYPE_PNG
;
716 PyObject
* _obj0
= 0;
720 if(!PyArg_ParseTuple(args
,"O|l:new_wxImage",&_obj0
,&_arg1
))
723 if (!PyString_Check(_obj0
)) {
724 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
727 _arg0
= new wxString(PyString_AsString(_obj0
), PyString_Size(_obj0
));
730 wxPy_BEGIN_ALLOW_THREADS
;
731 _result
= (wxImage
*)new_wxImage(*_arg0
,_arg1
);
733 wxPy_END_ALLOW_THREADS
;
735 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImage_p");
736 _resultobj
= Py_BuildValue("s",_ptemp
);
739 _resultobj
= Py_None
;
748 #define delete_wxImage(_swigobj) (delete _swigobj)
749 static PyObject
*_wrap_delete_wxImage(PyObject
*self
, PyObject
*args
) {
750 PyObject
* _resultobj
;
752 PyObject
* _argo0
= 0;
755 if(!PyArg_ParseTuple(args
,"O:delete_wxImage",&_argo0
))
758 if (_argo0
== Py_None
) { _arg0
= NULL
; }
759 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
760 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxImage. Expected _wxImage_p.");
765 wxPy_BEGIN_ALLOW_THREADS
;
766 delete_wxImage(_arg0
);
768 wxPy_END_ALLOW_THREADS
;
769 } Py_INCREF(Py_None
);
770 _resultobj
= Py_None
;
774 #define wxImage_ConvertToBitmap(_swigobj) (_swigobj->ConvertToBitmap())
775 static PyObject
*_wrap_wxImage_ConvertToBitmap(PyObject
*self
, PyObject
*args
) {
776 PyObject
* _resultobj
;
779 PyObject
* _argo0
= 0;
783 if(!PyArg_ParseTuple(args
,"O:wxImage_ConvertToBitmap",&_argo0
))
786 if (_argo0
== Py_None
) { _arg0
= NULL
; }
787 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
788 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_ConvertToBitmap. Expected _wxImage_p.");
793 wxPy_BEGIN_ALLOW_THREADS
;
794 _result
= new wxBitmap (wxImage_ConvertToBitmap(_arg0
));
796 wxPy_END_ALLOW_THREADS
;
797 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBitmap_p");
798 _resultobj
= Py_BuildValue("s",_ptemp
);
802 #define wxImage_Create(_swigobj,_swigarg0,_swigarg1) (_swigobj->Create(_swigarg0,_swigarg1))
803 static PyObject
*_wrap_wxImage_Create(PyObject
*self
, PyObject
*args
) {
804 PyObject
* _resultobj
;
808 PyObject
* _argo0
= 0;
811 if(!PyArg_ParseTuple(args
,"Oii:wxImage_Create",&_argo0
,&_arg1
,&_arg2
))
814 if (_argo0
== Py_None
) { _arg0
= NULL
; }
815 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
816 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_Create. Expected _wxImage_p.");
821 wxPy_BEGIN_ALLOW_THREADS
;
822 wxImage_Create(_arg0
,_arg1
,_arg2
);
824 wxPy_END_ALLOW_THREADS
;
825 } Py_INCREF(Py_None
);
826 _resultobj
= Py_None
;
830 #define wxImage_Destroy(_swigobj) (_swigobj->Destroy())
831 static PyObject
*_wrap_wxImage_Destroy(PyObject
*self
, PyObject
*args
) {
832 PyObject
* _resultobj
;
834 PyObject
* _argo0
= 0;
837 if(!PyArg_ParseTuple(args
,"O:wxImage_Destroy",&_argo0
))
840 if (_argo0
== Py_None
) { _arg0
= NULL
; }
841 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
842 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_Destroy. Expected _wxImage_p.");
847 wxPy_BEGIN_ALLOW_THREADS
;
848 wxImage_Destroy(_arg0
);
850 wxPy_END_ALLOW_THREADS
;
851 } Py_INCREF(Py_None
);
852 _resultobj
= Py_None
;
856 #define wxImage_Scale(_swigobj,_swigarg0,_swigarg1) (_swigobj->Scale(_swigarg0,_swigarg1))
857 static PyObject
*_wrap_wxImage_Scale(PyObject
*self
, PyObject
*args
) {
858 PyObject
* _resultobj
;
863 PyObject
* _argo0
= 0;
867 if(!PyArg_ParseTuple(args
,"Oii:wxImage_Scale",&_argo0
,&_arg1
,&_arg2
))
870 if (_argo0
== Py_None
) { _arg0
= NULL
; }
871 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
872 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_Scale. Expected _wxImage_p.");
877 wxPy_BEGIN_ALLOW_THREADS
;
878 _result
= new wxImage (wxImage_Scale(_arg0
,_arg1
,_arg2
));
880 wxPy_END_ALLOW_THREADS
;
881 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxImage_p");
882 _resultobj
= Py_BuildValue("s",_ptemp
);
886 #define wxImage_Rescale(_swigobj,_swigarg0,_swigarg1) (_swigobj->Rescale(_swigarg0,_swigarg1))
887 static PyObject
*_wrap_wxImage_Rescale(PyObject
*self
, PyObject
*args
) {
888 PyObject
* _resultobj
;
892 PyObject
* _argo0
= 0;
895 if(!PyArg_ParseTuple(args
,"Oii:wxImage_Rescale",&_argo0
,&_arg1
,&_arg2
))
898 if (_argo0
== Py_None
) { _arg0
= NULL
; }
899 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
900 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_Rescale. Expected _wxImage_p.");
905 wxPy_BEGIN_ALLOW_THREADS
;
906 wxImage_Rescale(_arg0
,_arg1
,_arg2
);
908 wxPy_END_ALLOW_THREADS
;
909 } Py_INCREF(Py_None
);
910 _resultobj
= Py_None
;
914 #define wxImage_SetRGB(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetRGB(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
915 static PyObject
*_wrap_wxImage_SetRGB(PyObject
*self
, PyObject
*args
) {
916 PyObject
* _resultobj
;
923 PyObject
* _argo0
= 0;
926 if(!PyArg_ParseTuple(args
,"Oiibbb:wxImage_SetRGB",&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
))
929 if (_argo0
== Py_None
) { _arg0
= NULL
; }
930 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
931 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_SetRGB. Expected _wxImage_p.");
936 wxPy_BEGIN_ALLOW_THREADS
;
937 wxImage_SetRGB(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
939 wxPy_END_ALLOW_THREADS
;
940 } Py_INCREF(Py_None
);
941 _resultobj
= Py_None
;
945 #define wxImage_GetRed(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetRed(_swigarg0,_swigarg1))
946 static PyObject
*_wrap_wxImage_GetRed(PyObject
*self
, PyObject
*args
) {
947 PyObject
* _resultobj
;
948 unsigned char _result
;
952 PyObject
* _argo0
= 0;
955 if(!PyArg_ParseTuple(args
,"Oii:wxImage_GetRed",&_argo0
,&_arg1
,&_arg2
))
958 if (_argo0
== Py_None
) { _arg0
= NULL
; }
959 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
960 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetRed. Expected _wxImage_p.");
965 wxPy_BEGIN_ALLOW_THREADS
;
966 _result
= (unsigned char )wxImage_GetRed(_arg0
,_arg1
,_arg2
);
968 wxPy_END_ALLOW_THREADS
;
969 } _resultobj
= Py_BuildValue("b",_result
);
973 #define wxImage_GetGreen(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetGreen(_swigarg0,_swigarg1))
974 static PyObject
*_wrap_wxImage_GetGreen(PyObject
*self
, PyObject
*args
) {
975 PyObject
* _resultobj
;
976 unsigned char _result
;
980 PyObject
* _argo0
= 0;
983 if(!PyArg_ParseTuple(args
,"Oii:wxImage_GetGreen",&_argo0
,&_arg1
,&_arg2
))
986 if (_argo0
== Py_None
) { _arg0
= NULL
; }
987 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
988 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetGreen. Expected _wxImage_p.");
993 wxPy_BEGIN_ALLOW_THREADS
;
994 _result
= (unsigned char )wxImage_GetGreen(_arg0
,_arg1
,_arg2
);
996 wxPy_END_ALLOW_THREADS
;
997 } _resultobj
= Py_BuildValue("b",_result
);
1001 #define wxImage_GetBlue(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetBlue(_swigarg0,_swigarg1))
1002 static PyObject
*_wrap_wxImage_GetBlue(PyObject
*self
, PyObject
*args
) {
1003 PyObject
* _resultobj
;
1004 unsigned char _result
;
1008 PyObject
* _argo0
= 0;
1011 if(!PyArg_ParseTuple(args
,"Oii:wxImage_GetBlue",&_argo0
,&_arg1
,&_arg2
))
1014 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1015 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1016 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetBlue. Expected _wxImage_p.");
1021 wxPy_BEGIN_ALLOW_THREADS
;
1022 _result
= (unsigned char )wxImage_GetBlue(_arg0
,_arg1
,_arg2
);
1024 wxPy_END_ALLOW_THREADS
;
1025 } _resultobj
= Py_BuildValue("b",_result
);
1029 #define wxImage_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1))
1030 static PyObject
*_wrap_wxImage_LoadFile(PyObject
*self
, PyObject
*args
) {
1031 PyObject
* _resultobj
;
1035 long _arg2
= (long ) wxBITMAP_TYPE_PNG
;
1036 PyObject
* _argo0
= 0;
1037 PyObject
* _obj1
= 0;
1040 if(!PyArg_ParseTuple(args
,"OO|l:wxImage_LoadFile",&_argo0
,&_obj1
,&_arg2
))
1043 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1044 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1045 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_LoadFile. Expected _wxImage_p.");
1050 if (!PyString_Check(_obj1
)) {
1051 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1054 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
1057 wxPy_BEGIN_ALLOW_THREADS
;
1058 _result
= (bool )wxImage_LoadFile(_arg0
,*_arg1
,_arg2
);
1060 wxPy_END_ALLOW_THREADS
;
1061 } _resultobj
= Py_BuildValue("i",_result
);
1069 #define wxImage_LoadMimeFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1))
1070 static PyObject
*_wrap_wxImage_LoadMimeFile(PyObject
*self
, PyObject
*args
) {
1071 PyObject
* _resultobj
;
1076 PyObject
* _argo0
= 0;
1077 PyObject
* _obj1
= 0;
1078 PyObject
* _obj2
= 0;
1081 if(!PyArg_ParseTuple(args
,"OOO:wxImage_LoadMimeFile",&_argo0
,&_obj1
,&_obj2
))
1084 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1085 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1086 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_LoadMimeFile. Expected _wxImage_p.");
1091 if (!PyString_Check(_obj1
)) {
1092 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1095 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
1098 if (!PyString_Check(_obj2
)) {
1099 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1102 _arg2
= new wxString(PyString_AsString(_obj2
), PyString_Size(_obj2
));
1105 wxPy_BEGIN_ALLOW_THREADS
;
1106 _result
= (bool )wxImage_LoadMimeFile(_arg0
,*_arg1
,*_arg2
);
1108 wxPy_END_ALLOW_THREADS
;
1109 } _resultobj
= Py_BuildValue("i",_result
);
1121 #define wxImage_SaveFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->SaveFile(_swigarg0,_swigarg1))
1122 static PyObject
*_wrap_wxImage_SaveFile(PyObject
*self
, PyObject
*args
) {
1123 PyObject
* _resultobj
;
1128 PyObject
* _argo0
= 0;
1129 PyObject
* _obj1
= 0;
1132 if(!PyArg_ParseTuple(args
,"OOi:wxImage_SaveFile",&_argo0
,&_obj1
,&_arg2
))
1135 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1136 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1137 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_SaveFile. Expected _wxImage_p.");
1142 if (!PyString_Check(_obj1
)) {
1143 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1146 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
1149 wxPy_BEGIN_ALLOW_THREADS
;
1150 _result
= (bool )wxImage_SaveFile(_arg0
,*_arg1
,_arg2
);
1152 wxPy_END_ALLOW_THREADS
;
1153 } _resultobj
= Py_BuildValue("i",_result
);
1161 #define wxImage_SaveMimeFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->SaveFile(_swigarg0,_swigarg1))
1162 static PyObject
*_wrap_wxImage_SaveMimeFile(PyObject
*self
, PyObject
*args
) {
1163 PyObject
* _resultobj
;
1168 PyObject
* _argo0
= 0;
1169 PyObject
* _obj1
= 0;
1170 PyObject
* _obj2
= 0;
1173 if(!PyArg_ParseTuple(args
,"OOO:wxImage_SaveMimeFile",&_argo0
,&_obj1
,&_obj2
))
1176 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1177 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1178 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_SaveMimeFile. Expected _wxImage_p.");
1183 if (!PyString_Check(_obj1
)) {
1184 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1187 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
1190 if (!PyString_Check(_obj2
)) {
1191 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1194 _arg2
= new wxString(PyString_AsString(_obj2
), PyString_Size(_obj2
));
1197 wxPy_BEGIN_ALLOW_THREADS
;
1198 _result
= (bool )wxImage_SaveMimeFile(_arg0
,*_arg1
,*_arg2
);
1200 wxPy_END_ALLOW_THREADS
;
1201 } _resultobj
= Py_BuildValue("i",_result
);
1213 #define wxImage_Ok(_swigobj) (_swigobj->Ok())
1214 static PyObject
*_wrap_wxImage_Ok(PyObject
*self
, PyObject
*args
) {
1215 PyObject
* _resultobj
;
1218 PyObject
* _argo0
= 0;
1221 if(!PyArg_ParseTuple(args
,"O:wxImage_Ok",&_argo0
))
1224 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1225 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1226 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_Ok. Expected _wxImage_p.");
1231 wxPy_BEGIN_ALLOW_THREADS
;
1232 _result
= (bool )wxImage_Ok(_arg0
);
1234 wxPy_END_ALLOW_THREADS
;
1235 } _resultobj
= Py_BuildValue("i",_result
);
1239 #define wxImage_GetWidth(_swigobj) (_swigobj->GetWidth())
1240 static PyObject
*_wrap_wxImage_GetWidth(PyObject
*self
, PyObject
*args
) {
1241 PyObject
* _resultobj
;
1244 PyObject
* _argo0
= 0;
1247 if(!PyArg_ParseTuple(args
,"O:wxImage_GetWidth",&_argo0
))
1250 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1251 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1252 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetWidth. Expected _wxImage_p.");
1257 wxPy_BEGIN_ALLOW_THREADS
;
1258 _result
= (int )wxImage_GetWidth(_arg0
);
1260 wxPy_END_ALLOW_THREADS
;
1261 } _resultobj
= Py_BuildValue("i",_result
);
1265 #define wxImage_GetHeight(_swigobj) (_swigobj->GetHeight())
1266 static PyObject
*_wrap_wxImage_GetHeight(PyObject
*self
, PyObject
*args
) {
1267 PyObject
* _resultobj
;
1270 PyObject
* _argo0
= 0;
1273 if(!PyArg_ParseTuple(args
,"O:wxImage_GetHeight",&_argo0
))
1276 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1277 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1278 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetHeight. Expected _wxImage_p.");
1283 wxPy_BEGIN_ALLOW_THREADS
;
1284 _result
= (int )wxImage_GetHeight(_arg0
);
1286 wxPy_END_ALLOW_THREADS
;
1287 } _resultobj
= Py_BuildValue("i",_result
);
1291 static PyObject
* wxImage_GetData(wxImage
*self
) {
1292 unsigned char* data
= self
->GetData();
1293 int len
= self
->GetWidth() * self
->GetHeight() * 3;
1294 return PyString_FromStringAndSize((char*)data
, len
);
1296 static PyObject
*_wrap_wxImage_GetData(PyObject
*self
, PyObject
*args
) {
1297 PyObject
* _resultobj
;
1300 PyObject
* _argo0
= 0;
1303 if(!PyArg_ParseTuple(args
,"O:wxImage_GetData",&_argo0
))
1306 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1307 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1308 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetData. Expected _wxImage_p.");
1313 wxPy_BEGIN_ALLOW_THREADS
;
1314 _result
= (PyObject
*)wxImage_GetData(_arg0
);
1316 wxPy_END_ALLOW_THREADS
;
1318 _resultobj
= _result
;
1323 static void wxImage_SetData(wxImage
*self
,PyObject
* data
) {
1324 unsigned char* dataPtr
;
1326 if (! PyString_Check(data
)) {
1327 PyErr_SetString(PyExc_TypeError
, "Expected string object");
1330 dataPtr
= (unsigned char*)PyString_AsString(data
);
1331 self
->SetData(dataPtr
);
1333 static PyObject
*_wrap_wxImage_SetData(PyObject
*self
, PyObject
*args
) {
1334 PyObject
* _resultobj
;
1337 PyObject
* _argo0
= 0;
1338 PyObject
* _obj1
= 0;
1341 if(!PyArg_ParseTuple(args
,"OO:wxImage_SetData",&_argo0
,&_obj1
))
1344 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1345 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1346 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_SetData. Expected _wxImage_p.");
1354 wxPy_BEGIN_ALLOW_THREADS
;
1355 wxImage_SetData(_arg0
,_arg1
);
1357 wxPy_END_ALLOW_THREADS
;
1358 } Py_INCREF(Py_None
);
1359 _resultobj
= Py_None
;
1363 #define wxImage_SetMaskColour(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetMaskColour(_swigarg0,_swigarg1,_swigarg2))
1364 static PyObject
*_wrap_wxImage_SetMaskColour(PyObject
*self
, PyObject
*args
) {
1365 PyObject
* _resultobj
;
1367 unsigned char _arg1
;
1368 unsigned char _arg2
;
1369 unsigned char _arg3
;
1370 PyObject
* _argo0
= 0;
1373 if(!PyArg_ParseTuple(args
,"Obbb:wxImage_SetMaskColour",&_argo0
,&_arg1
,&_arg2
,&_arg3
))
1376 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1377 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1378 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_SetMaskColour. Expected _wxImage_p.");
1383 wxPy_BEGIN_ALLOW_THREADS
;
1384 wxImage_SetMaskColour(_arg0
,_arg1
,_arg2
,_arg3
);
1386 wxPy_END_ALLOW_THREADS
;
1387 } Py_INCREF(Py_None
);
1388 _resultobj
= Py_None
;
1392 #define wxImage_GetMaskRed(_swigobj) (_swigobj->GetMaskRed())
1393 static PyObject
*_wrap_wxImage_GetMaskRed(PyObject
*self
, PyObject
*args
) {
1394 PyObject
* _resultobj
;
1395 unsigned char _result
;
1397 PyObject
* _argo0
= 0;
1400 if(!PyArg_ParseTuple(args
,"O:wxImage_GetMaskRed",&_argo0
))
1403 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1404 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1405 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetMaskRed. Expected _wxImage_p.");
1410 wxPy_BEGIN_ALLOW_THREADS
;
1411 _result
= (unsigned char )wxImage_GetMaskRed(_arg0
);
1413 wxPy_END_ALLOW_THREADS
;
1414 } _resultobj
= Py_BuildValue("b",_result
);
1418 #define wxImage_GetMaskGreen(_swigobj) (_swigobj->GetMaskGreen())
1419 static PyObject
*_wrap_wxImage_GetMaskGreen(PyObject
*self
, PyObject
*args
) {
1420 PyObject
* _resultobj
;
1421 unsigned char _result
;
1423 PyObject
* _argo0
= 0;
1426 if(!PyArg_ParseTuple(args
,"O:wxImage_GetMaskGreen",&_argo0
))
1429 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1430 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1431 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetMaskGreen. Expected _wxImage_p.");
1436 wxPy_BEGIN_ALLOW_THREADS
;
1437 _result
= (unsigned char )wxImage_GetMaskGreen(_arg0
);
1439 wxPy_END_ALLOW_THREADS
;
1440 } _resultobj
= Py_BuildValue("b",_result
);
1444 #define wxImage_GetMaskBlue(_swigobj) (_swigobj->GetMaskBlue())
1445 static PyObject
*_wrap_wxImage_GetMaskBlue(PyObject
*self
, PyObject
*args
) {
1446 PyObject
* _resultobj
;
1447 unsigned char _result
;
1449 PyObject
* _argo0
= 0;
1452 if(!PyArg_ParseTuple(args
,"O:wxImage_GetMaskBlue",&_argo0
))
1455 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1456 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1457 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetMaskBlue. Expected _wxImage_p.");
1462 wxPy_BEGIN_ALLOW_THREADS
;
1463 _result
= (unsigned char )wxImage_GetMaskBlue(_arg0
);
1465 wxPy_END_ALLOW_THREADS
;
1466 } _resultobj
= Py_BuildValue("b",_result
);
1470 #define wxImage_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0))
1471 static PyObject
*_wrap_wxImage_SetMask(PyObject
*self
, PyObject
*args
) {
1472 PyObject
* _resultobj
;
1474 bool _arg1
= (bool ) TRUE
;
1475 PyObject
* _argo0
= 0;
1476 int tempbool1
= (int) TRUE
;
1479 if(!PyArg_ParseTuple(args
,"O|i:wxImage_SetMask",&_argo0
,&tempbool1
))
1482 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1483 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1484 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_SetMask. Expected _wxImage_p.");
1488 _arg1
= (bool ) tempbool1
;
1490 wxPy_BEGIN_ALLOW_THREADS
;
1491 wxImage_SetMask(_arg0
,_arg1
);
1493 wxPy_END_ALLOW_THREADS
;
1494 } Py_INCREF(Py_None
);
1495 _resultobj
= Py_None
;
1499 #define wxImage_HasMask(_swigobj) (_swigobj->HasMask())
1500 static PyObject
*_wrap_wxImage_HasMask(PyObject
*self
, PyObject
*args
) {
1501 PyObject
* _resultobj
;
1504 PyObject
* _argo0
= 0;
1507 if(!PyArg_ParseTuple(args
,"O:wxImage_HasMask",&_argo0
))
1510 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1511 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1512 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_HasMask. Expected _wxImage_p.");
1517 wxPy_BEGIN_ALLOW_THREADS
;
1518 _result
= (bool )wxImage_HasMask(_arg0
);
1520 wxPy_END_ALLOW_THREADS
;
1521 } _resultobj
= Py_BuildValue("i",_result
);
1525 static PyMethodDef imagecMethods
[] = {
1526 { "wxImage_HasMask", _wrap_wxImage_HasMask
, METH_VARARGS
},
1527 { "wxImage_SetMask", _wrap_wxImage_SetMask
, METH_VARARGS
},
1528 { "wxImage_GetMaskBlue", _wrap_wxImage_GetMaskBlue
, METH_VARARGS
},
1529 { "wxImage_GetMaskGreen", _wrap_wxImage_GetMaskGreen
, METH_VARARGS
},
1530 { "wxImage_GetMaskRed", _wrap_wxImage_GetMaskRed
, METH_VARARGS
},
1531 { "wxImage_SetMaskColour", _wrap_wxImage_SetMaskColour
, METH_VARARGS
},
1532 { "wxImage_SetData", _wrap_wxImage_SetData
, METH_VARARGS
},
1533 { "wxImage_GetData", _wrap_wxImage_GetData
, METH_VARARGS
},
1534 { "wxImage_GetHeight", _wrap_wxImage_GetHeight
, METH_VARARGS
},
1535 { "wxImage_GetWidth", _wrap_wxImage_GetWidth
, METH_VARARGS
},
1536 { "wxImage_Ok", _wrap_wxImage_Ok
, METH_VARARGS
},
1537 { "wxImage_SaveMimeFile", _wrap_wxImage_SaveMimeFile
, METH_VARARGS
},
1538 { "wxImage_SaveFile", _wrap_wxImage_SaveFile
, METH_VARARGS
},
1539 { "wxImage_LoadMimeFile", _wrap_wxImage_LoadMimeFile
, METH_VARARGS
},
1540 { "wxImage_LoadFile", _wrap_wxImage_LoadFile
, METH_VARARGS
},
1541 { "wxImage_GetBlue", _wrap_wxImage_GetBlue
, METH_VARARGS
},
1542 { "wxImage_GetGreen", _wrap_wxImage_GetGreen
, METH_VARARGS
},
1543 { "wxImage_GetRed", _wrap_wxImage_GetRed
, METH_VARARGS
},
1544 { "wxImage_SetRGB", _wrap_wxImage_SetRGB
, METH_VARARGS
},
1545 { "wxImage_Rescale", _wrap_wxImage_Rescale
, METH_VARARGS
},
1546 { "wxImage_Scale", _wrap_wxImage_Scale
, METH_VARARGS
},
1547 { "wxImage_Destroy", _wrap_wxImage_Destroy
, METH_VARARGS
},
1548 { "wxImage_Create", _wrap_wxImage_Create
, METH_VARARGS
},
1549 { "wxImage_ConvertToBitmap", _wrap_wxImage_ConvertToBitmap
, METH_VARARGS
},
1550 { "delete_wxImage", _wrap_delete_wxImage
, METH_VARARGS
},
1551 { "new_wxImage", _wrap_new_wxImage
, METH_VARARGS
},
1552 { "new_wxGIFHandler", _wrap_new_wxGIFHandler
, METH_VARARGS
},
1553 { "new_wxBMPHandler", _wrap_new_wxBMPHandler
, METH_VARARGS
},
1554 { "new_wxJPEGHandler", _wrap_new_wxJPEGHandler
, METH_VARARGS
},
1555 { "new_wxPNGHandler", _wrap_new_wxPNGHandler
, METH_VARARGS
},
1556 { "wxImageHandler_SetMimeType", _wrap_wxImageHandler_SetMimeType
, METH_VARARGS
},
1557 { "wxImageHandler_SetType", _wrap_wxImageHandler_SetType
, METH_VARARGS
},
1558 { "wxImageHandler_SetExtension", _wrap_wxImageHandler_SetExtension
, METH_VARARGS
},
1559 { "wxImageHandler_SetName", _wrap_wxImageHandler_SetName
, METH_VARARGS
},
1560 { "wxImageHandler_GetMimeType", _wrap_wxImageHandler_GetMimeType
, METH_VARARGS
},
1561 { "wxImageHandler_GetType", _wrap_wxImageHandler_GetType
, METH_VARARGS
},
1562 { "wxImageHandler_GetExtension", _wrap_wxImageHandler_GetExtension
, METH_VARARGS
},
1563 { "wxImageHandler_GetName", _wrap_wxImageHandler_GetName
, METH_VARARGS
},
1564 { "new_wxImageHandler", _wrap_new_wxImageHandler
, METH_VARARGS
},
1565 { "wxImage_AddHandler", _wrap_wxImage_AddHandler
, METH_VARARGS
},
1566 { "wxImageFromBitmap", _wrap_wxImageFromBitmap
, METH_VARARGS
},
1567 { "wxImageFromMime", _wrap_wxImageFromMime
, METH_VARARGS
},
1568 { "wxEmptyImage", _wrap_wxEmptyImage
, METH_VARARGS
},
1569 { "wxNullImage", _wrap_wxNullImage
, METH_VARARGS
},
1576 * This table is used by the pointer type-checker
1578 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
1579 { "_wxAcceleratorTable","_class_wxAcceleratorTable",0},
1580 { "_signed_long","_long",0},
1581 { "_class_wxJPEGHandler","_wxJPEGHandler",0},
1582 { "_wxBMPHandler","_class_wxBMPHandler",0},
1583 { "_wxImage","_class_wxImage",0},
1584 { "_wxPrintQuality","_int",0},
1585 { "_wxPrintQuality","_signed_int",0},
1586 { "_wxPrintQuality","_unsigned_int",0},
1587 { "_wxPrintQuality","_wxWindowID",0},
1588 { "_wxPrintQuality","_uint",0},
1589 { "_wxPrintQuality","_EBool",0},
1590 { "_wxPrintQuality","_size_t",0},
1591 { "_class_wxRegionIterator","_wxRegionIterator",0},
1592 { "_wxGIFHandler","_class_wxGIFHandler",0},
1593 { "_wxIndividualLayoutConstraint","_class_wxIndividualLayoutConstraint",0},
1594 { "_wxCursor","_class_wxCursor",0},
1595 { "_wxImageHandler","_class_wxGIFHandler",SwigwxGIFHandlerTowxImageHandler
},
1596 { "_wxImageHandler","_wxGIFHandler",SwigwxGIFHandlerTowxImageHandler
},
1597 { "_wxImageHandler","_class_wxBMPHandler",SwigwxBMPHandlerTowxImageHandler
},
1598 { "_wxImageHandler","_wxBMPHandler",SwigwxBMPHandlerTowxImageHandler
},
1599 { "_wxImageHandler","_class_wxJPEGHandler",SwigwxJPEGHandlerTowxImageHandler
},
1600 { "_wxImageHandler","_wxJPEGHandler",SwigwxJPEGHandlerTowxImageHandler
},
1601 { "_wxImageHandler","_class_wxPNGHandler",SwigwxPNGHandlerTowxImageHandler
},
1602 { "_wxImageHandler","_wxPNGHandler",SwigwxPNGHandlerTowxImageHandler
},
1603 { "_wxImageHandler","_class_wxImageHandler",0},
1604 { "_wxMask","_class_wxMask",0},
1605 { "_wxPNGHandler","_class_wxPNGHandler",0},
1606 { "_wxPen","_class_wxPen",0},
1607 { "_byte","_unsigned_char",0},
1608 { "_long","_wxDash",0},
1609 { "_long","_unsigned_long",0},
1610 { "_long","_signed_long",0},
1611 { "_wxImageList","_class_wxImageList",0},
1612 { "_class_wxAcceleratorTable","_wxAcceleratorTable",0},
1613 { "_wxDC","_class_wxDC",0},
1614 { "_class_wxBMPHandler","_wxBMPHandler",0},
1615 { "_size_t","_wxPrintQuality",0},
1616 { "_size_t","_unsigned_int",0},
1617 { "_size_t","_int",0},
1618 { "_size_t","_wxWindowID",0},
1619 { "_size_t","_uint",0},
1620 { "_class_wxRealPoint","_wxRealPoint",0},
1621 { "_wxPrinterDC","_class_wxPrinterDC",0},
1622 { "_class_wxGIFHandler","_wxGIFHandler",0},
1623 { "_class_wxMask","_wxMask",0},
1624 { "_class_wxPNGHandler","_wxPNGHandler",0},
1625 { "_wxColour","_class_wxColour",0},
1626 { "_wxBrush","_class_wxBrush",0},
1627 { "_uint","_wxPrintQuality",0},
1628 { "_uint","_size_t",0},
1629 { "_uint","_unsigned_int",0},
1630 { "_uint","_int",0},
1631 { "_uint","_wxWindowID",0},
1632 { "_wxRect","_class_wxRect",0},
1633 { "_class_wxImage","_wxImage",0},
1634 { "_wxPoint","_class_wxPoint",0},
1635 { "_wxBitmap","_class_wxBitmap",0},
1636 { "_wxPyTimer","_class_wxPyTimer",0},
1637 { "_wxWindowDC","_class_wxWindowDC",0},
1638 { "_class_wxIndividualLayoutConstraint","_wxIndividualLayoutConstraint",0},
1639 { "_EBool","_wxPrintQuality",0},
1640 { "_EBool","_signed_int",0},
1641 { "_EBool","_int",0},
1642 { "_EBool","_wxWindowID",0},
1643 { "_class_wxRegion","_wxRegion",0},
1644 { "_wxFont","_class_wxFont",0},
1645 { "_unsigned_long","_wxDash",0},
1646 { "_unsigned_long","_long",0},
1647 { "_class_wxRect","_wxRect",0},
1648 { "_class_wxDC","_wxDC",0},
1649 { "_class_wxPyTimer","_wxPyTimer",0},
1650 { "_wxAcceleratorEntry","_class_wxAcceleratorEntry",0},
1651 { "_signed_int","_wxPrintQuality",0},
1652 { "_signed_int","_EBool",0},
1653 { "_signed_int","_wxWindowID",0},
1654 { "_signed_int","_int",0},
1655 { "_wxLayoutConstraints","_class_wxLayoutConstraints",0},
1656 { "_wxMetaFileDC","_class_wxMetaFileDC",0},
1657 { "_wxScreenDC","_class_wxScreenDC",0},
1658 { "_WXTYPE","_short",0},
1659 { "_WXTYPE","_signed_short",0},
1660 { "_WXTYPE","_unsigned_short",0},
1661 { "_class_wxBrush","_wxBrush",0},
1662 { "_unsigned_short","_WXTYPE",0},
1663 { "_unsigned_short","_short",0},
1664 { "_class_wxFont","_wxFont",0},
1665 { "_wxClientDC","_class_wxClientDC",0},
1666 { "_class_wxPoint","_wxPoint",0},
1667 { "_wxRealPoint","_class_wxRealPoint",0},
1668 { "_signed_short","_WXTYPE",0},
1669 { "_signed_short","_short",0},
1670 { "_wxMemoryDC","_class_wxMemoryDC",0},
1671 { "_wxPaintDC","_class_wxPaintDC",0},
1672 { "_class_wxWindowDC","_wxWindowDC",0},
1673 { "_class_wxAcceleratorEntry","_wxAcceleratorEntry",0},
1674 { "_class_wxCursor","_wxCursor",0},
1675 { "_class_wxImageHandler","_class_wxGIFHandler",SwigwxGIFHandlerTowxImageHandler
},
1676 { "_class_wxImageHandler","_wxGIFHandler",SwigwxGIFHandlerTowxImageHandler
},
1677 { "_class_wxImageHandler","_class_wxBMPHandler",SwigwxBMPHandlerTowxImageHandler
},
1678 { "_class_wxImageHandler","_wxBMPHandler",SwigwxBMPHandlerTowxImageHandler
},
1679 { "_class_wxImageHandler","_class_wxJPEGHandler",SwigwxJPEGHandlerTowxImageHandler
},
1680 { "_class_wxImageHandler","_wxJPEGHandler",SwigwxJPEGHandlerTowxImageHandler
},
1681 { "_class_wxImageHandler","_class_wxPNGHandler",SwigwxPNGHandlerTowxImageHandler
},
1682 { "_class_wxImageHandler","_wxPNGHandler",SwigwxPNGHandlerTowxImageHandler
},
1683 { "_class_wxImageHandler","_wxImageHandler",0},
1684 { "_unsigned_char","_byte",0},
1685 { "_class_wxMetaFileDC","_wxMetaFileDC",0},
1686 { "_unsigned_int","_wxPrintQuality",0},
1687 { "_unsigned_int","_size_t",0},
1688 { "_unsigned_int","_uint",0},
1689 { "_unsigned_int","_wxWindowID",0},
1690 { "_unsigned_int","_int",0},
1691 { "_wxIcon","_class_wxIcon",0},
1692 { "_class_wxPen","_wxPen",0},
1693 { "_short","_WXTYPE",0},
1694 { "_short","_unsigned_short",0},
1695 { "_short","_signed_short",0},
1696 { "_class_wxImageList","_wxImageList",0},
1697 { "_wxJPEGHandler","_class_wxJPEGHandler",0},
1698 { "_wxWindowID","_wxPrintQuality",0},
1699 { "_wxWindowID","_size_t",0},
1700 { "_wxWindowID","_EBool",0},
1701 { "_wxWindowID","_uint",0},
1702 { "_wxWindowID","_int",0},
1703 { "_wxWindowID","_signed_int",0},
1704 { "_wxWindowID","_unsigned_int",0},
1705 { "_int","_wxPrintQuality",0},
1706 { "_int","_size_t",0},
1707 { "_int","_EBool",0},
1708 { "_int","_uint",0},
1709 { "_int","_wxWindowID",0},
1710 { "_int","_unsigned_int",0},
1711 { "_int","_signed_int",0},
1712 { "_wxSize","_class_wxSize",0},
1713 { "_wxRegionIterator","_class_wxRegionIterator",0},
1714 { "_class_wxPrinterDC","_wxPrinterDC",0},
1715 { "_class_wxPaintDC","_wxPaintDC",0},
1716 { "_class_wxLayoutConstraints","_wxLayoutConstraints",0},
1717 { "_class_wxIcon","_wxIcon",0},
1718 { "_class_wxColour","_wxColour",0},
1719 { "_class_wxScreenDC","_wxScreenDC",0},
1720 { "_wxPalette","_class_wxPalette",0},
1721 { "_wxRegion","_class_wxRegion",0},
1722 { "_class_wxClientDC","_wxClientDC",0},
1723 { "_class_wxSize","_wxSize",0},
1724 { "_class_wxBitmap","_wxBitmap",0},
1725 { "_class_wxMemoryDC","_wxMemoryDC",0},
1726 { "_wxDash","_unsigned_long",0},
1727 { "_wxDash","_long",0},
1728 { "_class_wxPalette","_wxPalette",0},
1731 static PyObject
*SWIG_globals
;
1735 SWIGEXPORT(void) initimagec() {
1737 SWIG_globals
= SWIG_newvarlink();
1738 m
= Py_InitModule("imagec", imagecMethods
);
1739 d
= PyModule_GetDict(m
);
1742 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
1743 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);