2 * FILE : src/msw/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
45 extern void SWIG_MakePtr(char *, void *, char *);
46 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
47 extern char *SWIG_GetPtr(char *, void **, char *);
48 extern char *SWIG_GetPtrObj(PyObject
*, void **, char *);
49 extern void SWIG_addvarlink(PyObject
*, char *, PyObject
*(*)(void), int (*)(PyObject
*));
50 extern PyObject
*SWIG_newvarlink(void);
54 #define SWIG_init initimagec
56 #define SWIG_name "imagec"
61 static PyObject
* l_output_helper(PyObject
* target
, PyObject
* o
) {
65 } else if (target
== Py_None
) {
69 if (!PyList_Check(target
)) {
71 target
= PyList_New(0);
72 PyList_Append(target
, o2
);
75 PyList_Append(target
,o
);
81 static PyObject
* t_output_helper(PyObject
* target
, PyObject
* o
) {
87 } else if (target
== Py_None
) {
91 if (!PyTuple_Check(target
)) {
93 target
= PyTuple_New(1);
94 PyTuple_SetItem(target
, 0, o2
);
97 PyTuple_SetItem(o3
, 0, o
);
100 target
= PySequence_Concat(o2
, o3
);
107 static char* wxStringErrorMsg
= "string type is required for parameter";
109 wxImage
* wxNullImage() {
113 wxImage
* wxEmptyImage(int width
, int height
) {
114 return new wxImage(width
, height
);
117 wxImage
* wxImageFromMime(const wxString
& name
, const wxString
& mimetype
) {
118 return new wxImage(name
, mimetype
);
121 wxImage
* wxImageFromBitmap(const wxBitmap
&bitmap
) {
122 return new wxImage(bitmap
);
125 void wxImage_AddHandler(wxImageHandler
*handler
) {
126 wxImage::AddHandler(handler
);
131 static PyObject
*_wrap_wxNullImage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
132 PyObject
* _resultobj
;
134 char *_kwnames
[] = { NULL
};
138 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxNullImage",_kwnames
))
141 wxPy_BEGIN_ALLOW_THREADS
;
142 _result
= (wxImage
*)wxNullImage();
144 wxPy_END_ALLOW_THREADS
;
146 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImage_p");
147 _resultobj
= Py_BuildValue("s",_ptemp
);
150 _resultobj
= Py_None
;
155 static PyObject
*_wrap_wxEmptyImage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
156 PyObject
* _resultobj
;
160 char *_kwnames
[] = { "width","height", NULL
};
164 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"ii:wxEmptyImage",_kwnames
,&_arg0
,&_arg1
))
167 wxPy_BEGIN_ALLOW_THREADS
;
168 _result
= (wxImage
*)wxEmptyImage(_arg0
,_arg1
);
170 wxPy_END_ALLOW_THREADS
;
172 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImage_p");
173 _resultobj
= Py_BuildValue("s",_ptemp
);
176 _resultobj
= Py_None
;
181 static PyObject
*_wrap_wxImageFromMime(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
182 PyObject
* _resultobj
;
186 PyObject
* _obj0
= 0;
187 PyObject
* _obj1
= 0;
188 char *_kwnames
[] = { "name","mimetype", NULL
};
192 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImageFromMime",_kwnames
,&_obj0
,&_obj1
))
195 #if PYTHON_API_VERSION >= 1009
196 char* tmpPtr
; int tmpSize
;
197 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
198 PyErr_SetString(PyExc_TypeError
, "String or Unicode type required");
201 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
203 _arg0
= new wxString(tmpPtr
, tmpSize
);
205 if (!PyString_Check(_obj0
)) {
206 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
209 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
213 #if PYTHON_API_VERSION >= 1009
214 char* tmpPtr
; int tmpSize
;
215 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
216 PyErr_SetString(PyExc_TypeError
, "String or Unicode type required");
219 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
221 _arg1
= new wxString(tmpPtr
, tmpSize
);
223 if (!PyString_Check(_obj1
)) {
224 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
227 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
231 wxPy_BEGIN_ALLOW_THREADS
;
232 _result
= (wxImage
*)wxImageFromMime(*_arg0
,*_arg1
);
234 wxPy_END_ALLOW_THREADS
;
236 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImage_p");
237 _resultobj
= Py_BuildValue("s",_ptemp
);
240 _resultobj
= Py_None
;
253 static PyObject
*_wrap_wxImageFromBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
254 PyObject
* _resultobj
;
257 PyObject
* _argo0
= 0;
258 char *_kwnames
[] = { "bitmap", NULL
};
262 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageFromBitmap",_kwnames
,&_argo0
))
265 if (_argo0
== Py_None
) { _arg0
= NULL
; }
266 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
267 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageFromBitmap. Expected _wxBitmap_p.");
272 wxPy_BEGIN_ALLOW_THREADS
;
273 _result
= (wxImage
*)wxImageFromBitmap(*_arg0
);
275 wxPy_END_ALLOW_THREADS
;
277 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImage_p");
278 _resultobj
= Py_BuildValue("s",_ptemp
);
281 _resultobj
= Py_None
;
286 static PyObject
*_wrap_wxImage_AddHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
287 PyObject
* _resultobj
;
288 wxImageHandler
* _arg0
;
289 PyObject
* _argo0
= 0;
290 char *_kwnames
[] = { "handler", NULL
};
293 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_AddHandler",_kwnames
,&_argo0
))
296 if (_argo0
== Py_None
) { _arg0
= NULL
; }
297 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageHandler_p")) {
298 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_AddHandler. Expected _wxImageHandler_p.");
303 wxPy_BEGIN_ALLOW_THREADS
;
304 wxImage_AddHandler(_arg0
);
306 wxPy_END_ALLOW_THREADS
;
307 } Py_INCREF(Py_None
);
308 _resultobj
= Py_None
;
312 static PyObject
*_wrap_wxInitAllImageHandlers(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
313 PyObject
* _resultobj
;
314 char *_kwnames
[] = { NULL
};
317 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxInitAllImageHandlers",_kwnames
))
320 wxPy_BEGIN_ALLOW_THREADS
;
321 wxInitAllImageHandlers();
323 wxPy_END_ALLOW_THREADS
;
324 } Py_INCREF(Py_None
);
325 _resultobj
= Py_None
;
329 #define wxImageHandler_GetName(_swigobj) (_swigobj->GetName())
330 static PyObject
*_wrap_wxImageHandler_GetName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
331 PyObject
* _resultobj
;
333 wxImageHandler
* _arg0
;
334 PyObject
* _argo0
= 0;
335 char *_kwnames
[] = { "self", NULL
};
338 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageHandler_GetName",_kwnames
,&_argo0
))
341 if (_argo0
== Py_None
) { _arg0
= NULL
; }
342 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageHandler_p")) {
343 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageHandler_GetName. Expected _wxImageHandler_p.");
348 wxPy_BEGIN_ALLOW_THREADS
;
349 _result
= new wxString (wxImageHandler_GetName(_arg0
));
351 wxPy_END_ALLOW_THREADS
;
353 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
361 #define wxImageHandler_GetExtension(_swigobj) (_swigobj->GetExtension())
362 static PyObject
*_wrap_wxImageHandler_GetExtension(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
363 PyObject
* _resultobj
;
365 wxImageHandler
* _arg0
;
366 PyObject
* _argo0
= 0;
367 char *_kwnames
[] = { "self", NULL
};
370 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageHandler_GetExtension",_kwnames
,&_argo0
))
373 if (_argo0
== Py_None
) { _arg0
= NULL
; }
374 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageHandler_p")) {
375 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageHandler_GetExtension. Expected _wxImageHandler_p.");
380 wxPy_BEGIN_ALLOW_THREADS
;
381 _result
= new wxString (wxImageHandler_GetExtension(_arg0
));
383 wxPy_END_ALLOW_THREADS
;
385 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
393 #define wxImageHandler_GetType(_swigobj) (_swigobj->GetType())
394 static PyObject
*_wrap_wxImageHandler_GetType(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
395 PyObject
* _resultobj
;
397 wxImageHandler
* _arg0
;
398 PyObject
* _argo0
= 0;
399 char *_kwnames
[] = { "self", NULL
};
402 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageHandler_GetType",_kwnames
,&_argo0
))
405 if (_argo0
== Py_None
) { _arg0
= NULL
; }
406 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageHandler_p")) {
407 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageHandler_GetType. Expected _wxImageHandler_p.");
412 wxPy_BEGIN_ALLOW_THREADS
;
413 _result
= (long )wxImageHandler_GetType(_arg0
);
415 wxPy_END_ALLOW_THREADS
;
416 } _resultobj
= Py_BuildValue("l",_result
);
420 #define wxImageHandler_GetMimeType(_swigobj) (_swigobj->GetMimeType())
421 static PyObject
*_wrap_wxImageHandler_GetMimeType(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
422 PyObject
* _resultobj
;
424 wxImageHandler
* _arg0
;
425 PyObject
* _argo0
= 0;
426 char *_kwnames
[] = { "self", NULL
};
429 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageHandler_GetMimeType",_kwnames
,&_argo0
))
432 if (_argo0
== Py_None
) { _arg0
= NULL
; }
433 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageHandler_p")) {
434 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageHandler_GetMimeType. Expected _wxImageHandler_p.");
439 wxPy_BEGIN_ALLOW_THREADS
;
440 _result
= new wxString (wxImageHandler_GetMimeType(_arg0
));
442 wxPy_END_ALLOW_THREADS
;
444 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
452 #define wxImageHandler_SetName(_swigobj,_swigarg0) (_swigobj->SetName(_swigarg0))
453 static PyObject
*_wrap_wxImageHandler_SetName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
454 PyObject
* _resultobj
;
455 wxImageHandler
* _arg0
;
457 PyObject
* _argo0
= 0;
458 PyObject
* _obj1
= 0;
459 char *_kwnames
[] = { "self","name", NULL
};
462 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImageHandler_SetName",_kwnames
,&_argo0
,&_obj1
))
465 if (_argo0
== Py_None
) { _arg0
= NULL
; }
466 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageHandler_p")) {
467 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageHandler_SetName. Expected _wxImageHandler_p.");
472 #if PYTHON_API_VERSION >= 1009
473 char* tmpPtr
; int tmpSize
;
474 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
475 PyErr_SetString(PyExc_TypeError
, "String or Unicode type required");
478 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
480 _arg1
= new wxString(tmpPtr
, tmpSize
);
482 if (!PyString_Check(_obj1
)) {
483 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
486 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
490 wxPy_BEGIN_ALLOW_THREADS
;
491 wxImageHandler_SetName(_arg0
,*_arg1
);
493 wxPy_END_ALLOW_THREADS
;
494 } Py_INCREF(Py_None
);
495 _resultobj
= Py_None
;
503 #define wxImageHandler_SetExtension(_swigobj,_swigarg0) (_swigobj->SetExtension(_swigarg0))
504 static PyObject
*_wrap_wxImageHandler_SetExtension(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
505 PyObject
* _resultobj
;
506 wxImageHandler
* _arg0
;
508 PyObject
* _argo0
= 0;
509 PyObject
* _obj1
= 0;
510 char *_kwnames
[] = { "self","extension", NULL
};
513 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImageHandler_SetExtension",_kwnames
,&_argo0
,&_obj1
))
516 if (_argo0
== Py_None
) { _arg0
= NULL
; }
517 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageHandler_p")) {
518 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageHandler_SetExtension. Expected _wxImageHandler_p.");
523 #if PYTHON_API_VERSION >= 1009
524 char* tmpPtr
; int tmpSize
;
525 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
526 PyErr_SetString(PyExc_TypeError
, "String or Unicode type required");
529 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
531 _arg1
= new wxString(tmpPtr
, tmpSize
);
533 if (!PyString_Check(_obj1
)) {
534 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
537 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
541 wxPy_BEGIN_ALLOW_THREADS
;
542 wxImageHandler_SetExtension(_arg0
,*_arg1
);
544 wxPy_END_ALLOW_THREADS
;
545 } Py_INCREF(Py_None
);
546 _resultobj
= Py_None
;
554 #define wxImageHandler_SetType(_swigobj,_swigarg0) (_swigobj->SetType(_swigarg0))
555 static PyObject
*_wrap_wxImageHandler_SetType(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
556 PyObject
* _resultobj
;
557 wxImageHandler
* _arg0
;
559 PyObject
* _argo0
= 0;
560 char *_kwnames
[] = { "self","type", NULL
};
563 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxImageHandler_SetType",_kwnames
,&_argo0
,&_arg1
))
566 if (_argo0
== Py_None
) { _arg0
= NULL
; }
567 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageHandler_p")) {
568 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageHandler_SetType. Expected _wxImageHandler_p.");
573 wxPy_BEGIN_ALLOW_THREADS
;
574 wxImageHandler_SetType(_arg0
,_arg1
);
576 wxPy_END_ALLOW_THREADS
;
577 } Py_INCREF(Py_None
);
578 _resultobj
= Py_None
;
582 #define wxImageHandler_SetMimeType(_swigobj,_swigarg0) (_swigobj->SetMimeType(_swigarg0))
583 static PyObject
*_wrap_wxImageHandler_SetMimeType(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
584 PyObject
* _resultobj
;
585 wxImageHandler
* _arg0
;
587 PyObject
* _argo0
= 0;
588 PyObject
* _obj1
= 0;
589 char *_kwnames
[] = { "self","mimetype", NULL
};
592 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImageHandler_SetMimeType",_kwnames
,&_argo0
,&_obj1
))
595 if (_argo0
== Py_None
) { _arg0
= NULL
; }
596 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageHandler_p")) {
597 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageHandler_SetMimeType. Expected _wxImageHandler_p.");
602 #if PYTHON_API_VERSION >= 1009
603 char* tmpPtr
; int tmpSize
;
604 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
605 PyErr_SetString(PyExc_TypeError
, "String or Unicode type required");
608 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
610 _arg1
= new wxString(tmpPtr
, tmpSize
);
612 if (!PyString_Check(_obj1
)) {
613 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
616 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
620 wxPy_BEGIN_ALLOW_THREADS
;
621 wxImageHandler_SetMimeType(_arg0
,*_arg1
);
623 wxPy_END_ALLOW_THREADS
;
624 } Py_INCREF(Py_None
);
625 _resultobj
= Py_None
;
633 static void *SwigwxPNGHandlerTowxImageHandler(void *ptr
) {
635 wxImageHandler
*dest
;
636 src
= (wxPNGHandler
*) ptr
;
637 dest
= (wxImageHandler
*) src
;
638 return (void *) dest
;
641 #define new_wxPNGHandler() (new wxPNGHandler())
642 static PyObject
*_wrap_new_wxPNGHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
643 PyObject
* _resultobj
;
644 wxPNGHandler
* _result
;
645 char *_kwnames
[] = { NULL
};
649 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxPNGHandler",_kwnames
))
652 wxPy_BEGIN_ALLOW_THREADS
;
653 _result
= (wxPNGHandler
*)new_wxPNGHandler();
655 wxPy_END_ALLOW_THREADS
;
657 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPNGHandler_p");
658 _resultobj
= Py_BuildValue("s",_ptemp
);
661 _resultobj
= Py_None
;
666 static void *SwigwxJPEGHandlerTowxImageHandler(void *ptr
) {
668 wxImageHandler
*dest
;
669 src
= (wxJPEGHandler
*) ptr
;
670 dest
= (wxImageHandler
*) src
;
671 return (void *) dest
;
674 #define new_wxJPEGHandler() (new wxJPEGHandler())
675 static PyObject
*_wrap_new_wxJPEGHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
676 PyObject
* _resultobj
;
677 wxJPEGHandler
* _result
;
678 char *_kwnames
[] = { NULL
};
682 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxJPEGHandler",_kwnames
))
685 wxPy_BEGIN_ALLOW_THREADS
;
686 _result
= (wxJPEGHandler
*)new_wxJPEGHandler();
688 wxPy_END_ALLOW_THREADS
;
690 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxJPEGHandler_p");
691 _resultobj
= Py_BuildValue("s",_ptemp
);
694 _resultobj
= Py_None
;
699 static void *SwigwxBMPHandlerTowxImageHandler(void *ptr
) {
701 wxImageHandler
*dest
;
702 src
= (wxBMPHandler
*) ptr
;
703 dest
= (wxImageHandler
*) src
;
704 return (void *) dest
;
707 #define new_wxBMPHandler() (new wxBMPHandler())
708 static PyObject
*_wrap_new_wxBMPHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
709 PyObject
* _resultobj
;
710 wxBMPHandler
* _result
;
711 char *_kwnames
[] = { NULL
};
715 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxBMPHandler",_kwnames
))
718 wxPy_BEGIN_ALLOW_THREADS
;
719 _result
= (wxBMPHandler
*)new_wxBMPHandler();
721 wxPy_END_ALLOW_THREADS
;
723 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBMPHandler_p");
724 _resultobj
= Py_BuildValue("s",_ptemp
);
727 _resultobj
= Py_None
;
732 static void *SwigwxGIFHandlerTowxImageHandler(void *ptr
) {
734 wxImageHandler
*dest
;
735 src
= (wxGIFHandler
*) ptr
;
736 dest
= (wxImageHandler
*) src
;
737 return (void *) dest
;
740 #define new_wxGIFHandler() (new wxGIFHandler())
741 static PyObject
*_wrap_new_wxGIFHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
742 PyObject
* _resultobj
;
743 wxGIFHandler
* _result
;
744 char *_kwnames
[] = { NULL
};
748 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxGIFHandler",_kwnames
))
751 wxPy_BEGIN_ALLOW_THREADS
;
752 _result
= (wxGIFHandler
*)new_wxGIFHandler();
754 wxPy_END_ALLOW_THREADS
;
756 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxGIFHandler_p");
757 _resultobj
= Py_BuildValue("s",_ptemp
);
760 _resultobj
= Py_None
;
765 static void *SwigwxPNMHandlerTowxImageHandler(void *ptr
) {
767 wxImageHandler
*dest
;
768 src
= (wxPNMHandler
*) ptr
;
769 dest
= (wxImageHandler
*) src
;
770 return (void *) dest
;
773 #define new_wxPNMHandler() (new wxPNMHandler())
774 static PyObject
*_wrap_new_wxPNMHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
775 PyObject
* _resultobj
;
776 wxPNMHandler
* _result
;
777 char *_kwnames
[] = { NULL
};
781 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxPNMHandler",_kwnames
))
784 wxPy_BEGIN_ALLOW_THREADS
;
785 _result
= (wxPNMHandler
*)new_wxPNMHandler();
787 wxPy_END_ALLOW_THREADS
;
789 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPNMHandler_p");
790 _resultobj
= Py_BuildValue("s",_ptemp
);
793 _resultobj
= Py_None
;
798 static void *SwigwxPCXHandlerTowxImageHandler(void *ptr
) {
800 wxImageHandler
*dest
;
801 src
= (wxPCXHandler
*) ptr
;
802 dest
= (wxImageHandler
*) src
;
803 return (void *) dest
;
806 #define new_wxPCXHandler() (new wxPCXHandler())
807 static PyObject
*_wrap_new_wxPCXHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
808 PyObject
* _resultobj
;
809 wxPCXHandler
* _result
;
810 char *_kwnames
[] = { NULL
};
814 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxPCXHandler",_kwnames
))
817 wxPy_BEGIN_ALLOW_THREADS
;
818 _result
= (wxPCXHandler
*)new_wxPCXHandler();
820 wxPy_END_ALLOW_THREADS
;
822 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPCXHandler_p");
823 _resultobj
= Py_BuildValue("s",_ptemp
);
826 _resultobj
= Py_None
;
831 static void *SwigwxTIFFHandlerTowxImageHandler(void *ptr
) {
833 wxImageHandler
*dest
;
834 src
= (wxTIFFHandler
*) ptr
;
835 dest
= (wxImageHandler
*) src
;
836 return (void *) dest
;
839 #define new_wxTIFFHandler() (new wxTIFFHandler())
840 static PyObject
*_wrap_new_wxTIFFHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
841 PyObject
* _resultobj
;
842 wxTIFFHandler
* _result
;
843 char *_kwnames
[] = { NULL
};
847 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxTIFFHandler",_kwnames
))
850 wxPy_BEGIN_ALLOW_THREADS
;
851 _result
= (wxTIFFHandler
*)new_wxTIFFHandler();
853 wxPy_END_ALLOW_THREADS
;
855 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxTIFFHandler_p");
856 _resultobj
= Py_BuildValue("s",_ptemp
);
859 _resultobj
= Py_None
;
864 #define new_wxImage(_swigarg0,_swigarg1) (new wxImage(_swigarg0,_swigarg1))
865 static PyObject
*_wrap_new_wxImage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
866 PyObject
* _resultobj
;
869 long _arg1
= (long ) wxBITMAP_TYPE_ANY
;
870 PyObject
* _obj0
= 0;
871 char *_kwnames
[] = { "name","type", NULL
};
875 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|l:new_wxImage",_kwnames
,&_obj0
,&_arg1
))
878 #if PYTHON_API_VERSION >= 1009
879 char* tmpPtr
; int tmpSize
;
880 if (!PyString_Check(_obj0
) && !PyUnicode_Check(_obj0
)) {
881 PyErr_SetString(PyExc_TypeError
, "String or Unicode type required");
884 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
886 _arg0
= new wxString(tmpPtr
, tmpSize
);
888 if (!PyString_Check(_obj0
)) {
889 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
892 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
896 wxPy_BEGIN_ALLOW_THREADS
;
897 _result
= (wxImage
*)new_wxImage(*_arg0
,_arg1
);
899 wxPy_END_ALLOW_THREADS
;
901 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImage_p");
902 _resultobj
= Py_BuildValue("s",_ptemp
);
905 _resultobj
= Py_None
;
914 #define delete_wxImage(_swigobj) (delete _swigobj)
915 static PyObject
*_wrap_delete_wxImage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
916 PyObject
* _resultobj
;
918 PyObject
* _argo0
= 0;
919 char *_kwnames
[] = { "self", NULL
};
922 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxImage",_kwnames
,&_argo0
))
925 if (_argo0
== Py_None
) { _arg0
= NULL
; }
926 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
927 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxImage. Expected _wxImage_p.");
932 wxPy_BEGIN_ALLOW_THREADS
;
933 delete_wxImage(_arg0
);
935 wxPy_END_ALLOW_THREADS
;
936 } Py_INCREF(Py_None
);
937 _resultobj
= Py_None
;
941 #define wxImage_ConvertToBitmap(_swigobj) (_swigobj->ConvertToBitmap())
942 static PyObject
*_wrap_wxImage_ConvertToBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
943 PyObject
* _resultobj
;
946 PyObject
* _argo0
= 0;
947 char *_kwnames
[] = { "self", NULL
};
951 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_ConvertToBitmap",_kwnames
,&_argo0
))
954 if (_argo0
== Py_None
) { _arg0
= NULL
; }
955 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
956 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_ConvertToBitmap. Expected _wxImage_p.");
961 wxPy_BEGIN_ALLOW_THREADS
;
962 _result
= new wxBitmap (wxImage_ConvertToBitmap(_arg0
));
964 wxPy_END_ALLOW_THREADS
;
965 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBitmap_p");
966 _resultobj
= Py_BuildValue("s",_ptemp
);
970 #define wxImage_Create(_swigobj,_swigarg0,_swigarg1) (_swigobj->Create(_swigarg0,_swigarg1))
971 static PyObject
*_wrap_wxImage_Create(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
972 PyObject
* _resultobj
;
976 PyObject
* _argo0
= 0;
977 char *_kwnames
[] = { "self","width","height", NULL
};
980 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxImage_Create",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
983 if (_argo0
== Py_None
) { _arg0
= NULL
; }
984 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
985 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_Create. Expected _wxImage_p.");
990 wxPy_BEGIN_ALLOW_THREADS
;
991 wxImage_Create(_arg0
,_arg1
,_arg2
);
993 wxPy_END_ALLOW_THREADS
;
994 } Py_INCREF(Py_None
);
995 _resultobj
= Py_None
;
999 #define wxImage_Destroy(_swigobj) (_swigobj->Destroy())
1000 static PyObject
*_wrap_wxImage_Destroy(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1001 PyObject
* _resultobj
;
1003 PyObject
* _argo0
= 0;
1004 char *_kwnames
[] = { "self", NULL
};
1007 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_Destroy",_kwnames
,&_argo0
))
1010 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1011 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1012 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_Destroy. Expected _wxImage_p.");
1017 wxPy_BEGIN_ALLOW_THREADS
;
1018 wxImage_Destroy(_arg0
);
1020 wxPy_END_ALLOW_THREADS
;
1021 } Py_INCREF(Py_None
);
1022 _resultobj
= Py_None
;
1026 #define wxImage_Scale(_swigobj,_swigarg0,_swigarg1) (_swigobj->Scale(_swigarg0,_swigarg1))
1027 static PyObject
*_wrap_wxImage_Scale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1028 PyObject
* _resultobj
;
1033 PyObject
* _argo0
= 0;
1034 char *_kwnames
[] = { "self","width","height", NULL
};
1038 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxImage_Scale",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
1041 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1042 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1043 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_Scale. Expected _wxImage_p.");
1048 wxPy_BEGIN_ALLOW_THREADS
;
1049 _result
= new wxImage (wxImage_Scale(_arg0
,_arg1
,_arg2
));
1051 wxPy_END_ALLOW_THREADS
;
1052 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxImage_p");
1053 _resultobj
= Py_BuildValue("s",_ptemp
);
1057 #define wxImage_Rescale(_swigobj,_swigarg0,_swigarg1) (_swigobj->Rescale(_swigarg0,_swigarg1))
1058 static PyObject
*_wrap_wxImage_Rescale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1059 PyObject
* _resultobj
;
1064 PyObject
* _argo0
= 0;
1065 char *_kwnames
[] = { "self","width","height", NULL
};
1069 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxImage_Rescale",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
1072 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1073 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1074 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_Rescale. Expected _wxImage_p.");
1079 wxPy_BEGIN_ALLOW_THREADS
;
1080 wxImage
& _result_ref
= wxImage_Rescale(_arg0
,_arg1
,_arg2
);
1081 _result
= (wxImage
*) &_result_ref
;
1083 wxPy_END_ALLOW_THREADS
;
1085 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImage_p");
1086 _resultobj
= Py_BuildValue("s",_ptemp
);
1089 _resultobj
= Py_None
;
1094 #define wxImage_SetRGB(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetRGB(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
1095 static PyObject
*_wrap_wxImage_SetRGB(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1096 PyObject
* _resultobj
;
1100 unsigned char _arg3
;
1101 unsigned char _arg4
;
1102 unsigned char _arg5
;
1103 PyObject
* _argo0
= 0;
1104 char *_kwnames
[] = { "self","x","y","r","g","b", NULL
};
1107 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiibbb:wxImage_SetRGB",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
))
1110 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1111 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1112 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_SetRGB. Expected _wxImage_p.");
1117 wxPy_BEGIN_ALLOW_THREADS
;
1118 wxImage_SetRGB(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
1120 wxPy_END_ALLOW_THREADS
;
1121 } Py_INCREF(Py_None
);
1122 _resultobj
= Py_None
;
1126 #define wxImage_GetRed(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetRed(_swigarg0,_swigarg1))
1127 static PyObject
*_wrap_wxImage_GetRed(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1128 PyObject
* _resultobj
;
1129 unsigned char _result
;
1133 PyObject
* _argo0
= 0;
1134 char *_kwnames
[] = { "self","x","y", NULL
};
1137 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxImage_GetRed",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
1140 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1141 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1142 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetRed. Expected _wxImage_p.");
1147 wxPy_BEGIN_ALLOW_THREADS
;
1148 _result
= (unsigned char )wxImage_GetRed(_arg0
,_arg1
,_arg2
);
1150 wxPy_END_ALLOW_THREADS
;
1151 } _resultobj
= Py_BuildValue("b",_result
);
1155 #define wxImage_GetGreen(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetGreen(_swigarg0,_swigarg1))
1156 static PyObject
*_wrap_wxImage_GetGreen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1157 PyObject
* _resultobj
;
1158 unsigned char _result
;
1162 PyObject
* _argo0
= 0;
1163 char *_kwnames
[] = { "self","x","y", NULL
};
1166 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxImage_GetGreen",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
1169 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1170 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1171 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetGreen. Expected _wxImage_p.");
1176 wxPy_BEGIN_ALLOW_THREADS
;
1177 _result
= (unsigned char )wxImage_GetGreen(_arg0
,_arg1
,_arg2
);
1179 wxPy_END_ALLOW_THREADS
;
1180 } _resultobj
= Py_BuildValue("b",_result
);
1184 #define wxImage_GetBlue(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetBlue(_swigarg0,_swigarg1))
1185 static PyObject
*_wrap_wxImage_GetBlue(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1186 PyObject
* _resultobj
;
1187 unsigned char _result
;
1191 PyObject
* _argo0
= 0;
1192 char *_kwnames
[] = { "self","x","y", NULL
};
1195 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxImage_GetBlue",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
1198 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1199 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1200 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetBlue. Expected _wxImage_p.");
1205 wxPy_BEGIN_ALLOW_THREADS
;
1206 _result
= (unsigned char )wxImage_GetBlue(_arg0
,_arg1
,_arg2
);
1208 wxPy_END_ALLOW_THREADS
;
1209 } _resultobj
= Py_BuildValue("b",_result
);
1213 #define wxImage_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1))
1214 static PyObject
*_wrap_wxImage_LoadFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1215 PyObject
* _resultobj
;
1219 long _arg2
= (long ) wxBITMAP_TYPE_PNG
;
1220 PyObject
* _argo0
= 0;
1221 PyObject
* _obj1
= 0;
1222 char *_kwnames
[] = { "self","name","type", NULL
};
1225 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|l:wxImage_LoadFile",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
1228 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1229 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1230 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_LoadFile. Expected _wxImage_p.");
1235 #if PYTHON_API_VERSION >= 1009
1236 char* tmpPtr
; int tmpSize
;
1237 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1238 PyErr_SetString(PyExc_TypeError
, "String or Unicode type required");
1241 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1243 _arg1
= new wxString(tmpPtr
, tmpSize
);
1245 if (!PyString_Check(_obj1
)) {
1246 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1249 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1253 wxPy_BEGIN_ALLOW_THREADS
;
1254 _result
= (bool )wxImage_LoadFile(_arg0
,*_arg1
,_arg2
);
1256 wxPy_END_ALLOW_THREADS
;
1257 } _resultobj
= Py_BuildValue("i",_result
);
1265 #define wxImage_LoadMimeFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1))
1266 static PyObject
*_wrap_wxImage_LoadMimeFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1267 PyObject
* _resultobj
;
1272 PyObject
* _argo0
= 0;
1273 PyObject
* _obj1
= 0;
1274 PyObject
* _obj2
= 0;
1275 char *_kwnames
[] = { "self","name","mimetype", NULL
};
1278 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxImage_LoadMimeFile",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
1281 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1282 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1283 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_LoadMimeFile. Expected _wxImage_p.");
1288 #if PYTHON_API_VERSION >= 1009
1289 char* tmpPtr
; int tmpSize
;
1290 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1291 PyErr_SetString(PyExc_TypeError
, "String or Unicode type required");
1294 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1296 _arg1
= new wxString(tmpPtr
, tmpSize
);
1298 if (!PyString_Check(_obj1
)) {
1299 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1302 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1306 #if PYTHON_API_VERSION >= 1009
1307 char* tmpPtr
; int tmpSize
;
1308 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
1309 PyErr_SetString(PyExc_TypeError
, "String or Unicode type required");
1312 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
1314 _arg2
= new wxString(tmpPtr
, tmpSize
);
1316 if (!PyString_Check(_obj2
)) {
1317 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1320 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
1324 wxPy_BEGIN_ALLOW_THREADS
;
1325 _result
= (bool )wxImage_LoadMimeFile(_arg0
,*_arg1
,*_arg2
);
1327 wxPy_END_ALLOW_THREADS
;
1328 } _resultobj
= Py_BuildValue("i",_result
);
1340 #define wxImage_SaveFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->SaveFile(_swigarg0,_swigarg1))
1341 static PyObject
*_wrap_wxImage_SaveFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1342 PyObject
* _resultobj
;
1347 PyObject
* _argo0
= 0;
1348 PyObject
* _obj1
= 0;
1349 char *_kwnames
[] = { "self","name","type", NULL
};
1352 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi:wxImage_SaveFile",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
1355 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1356 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1357 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_SaveFile. Expected _wxImage_p.");
1362 #if PYTHON_API_VERSION >= 1009
1363 char* tmpPtr
; int tmpSize
;
1364 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1365 PyErr_SetString(PyExc_TypeError
, "String or Unicode type required");
1368 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1370 _arg1
= new wxString(tmpPtr
, tmpSize
);
1372 if (!PyString_Check(_obj1
)) {
1373 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1376 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1380 wxPy_BEGIN_ALLOW_THREADS
;
1381 _result
= (bool )wxImage_SaveFile(_arg0
,*_arg1
,_arg2
);
1383 wxPy_END_ALLOW_THREADS
;
1384 } _resultobj
= Py_BuildValue("i",_result
);
1392 #define wxImage_SaveMimeFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->SaveFile(_swigarg0,_swigarg1))
1393 static PyObject
*_wrap_wxImage_SaveMimeFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1394 PyObject
* _resultobj
;
1399 PyObject
* _argo0
= 0;
1400 PyObject
* _obj1
= 0;
1401 PyObject
* _obj2
= 0;
1402 char *_kwnames
[] = { "self","name","mimetype", NULL
};
1405 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxImage_SaveMimeFile",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
1408 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1409 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1410 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_SaveMimeFile. Expected _wxImage_p.");
1415 #if PYTHON_API_VERSION >= 1009
1416 char* tmpPtr
; int tmpSize
;
1417 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1418 PyErr_SetString(PyExc_TypeError
, "String or Unicode type required");
1421 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1423 _arg1
= new wxString(tmpPtr
, tmpSize
);
1425 if (!PyString_Check(_obj1
)) {
1426 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1429 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1433 #if PYTHON_API_VERSION >= 1009
1434 char* tmpPtr
; int tmpSize
;
1435 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
1436 PyErr_SetString(PyExc_TypeError
, "String or Unicode type required");
1439 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
1441 _arg2
= new wxString(tmpPtr
, tmpSize
);
1443 if (!PyString_Check(_obj2
)) {
1444 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1447 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
1451 wxPy_BEGIN_ALLOW_THREADS
;
1452 _result
= (bool )wxImage_SaveMimeFile(_arg0
,*_arg1
,*_arg2
);
1454 wxPy_END_ALLOW_THREADS
;
1455 } _resultobj
= Py_BuildValue("i",_result
);
1467 #define wxImage_Ok(_swigobj) (_swigobj->Ok())
1468 static PyObject
*_wrap_wxImage_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1469 PyObject
* _resultobj
;
1472 PyObject
* _argo0
= 0;
1473 char *_kwnames
[] = { "self", NULL
};
1476 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_Ok",_kwnames
,&_argo0
))
1479 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1480 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1481 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_Ok. Expected _wxImage_p.");
1486 wxPy_BEGIN_ALLOW_THREADS
;
1487 _result
= (bool )wxImage_Ok(_arg0
);
1489 wxPy_END_ALLOW_THREADS
;
1490 } _resultobj
= Py_BuildValue("i",_result
);
1494 #define wxImage_GetWidth(_swigobj) (_swigobj->GetWidth())
1495 static PyObject
*_wrap_wxImage_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1496 PyObject
* _resultobj
;
1499 PyObject
* _argo0
= 0;
1500 char *_kwnames
[] = { "self", NULL
};
1503 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_GetWidth",_kwnames
,&_argo0
))
1506 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1507 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1508 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetWidth. Expected _wxImage_p.");
1513 wxPy_BEGIN_ALLOW_THREADS
;
1514 _result
= (int )wxImage_GetWidth(_arg0
);
1516 wxPy_END_ALLOW_THREADS
;
1517 } _resultobj
= Py_BuildValue("i",_result
);
1521 #define wxImage_GetHeight(_swigobj) (_swigobj->GetHeight())
1522 static PyObject
*_wrap_wxImage_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1523 PyObject
* _resultobj
;
1526 PyObject
* _argo0
= 0;
1527 char *_kwnames
[] = { "self", NULL
};
1530 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_GetHeight",_kwnames
,&_argo0
))
1533 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1534 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1535 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetHeight. Expected _wxImage_p.");
1540 wxPy_BEGIN_ALLOW_THREADS
;
1541 _result
= (int )wxImage_GetHeight(_arg0
);
1543 wxPy_END_ALLOW_THREADS
;
1544 } _resultobj
= Py_BuildValue("i",_result
);
1548 #define wxImage_GetSubImage(_swigobj,_swigarg0) (_swigobj->GetSubImage(_swigarg0))
1549 static PyObject
*_wrap_wxImage_GetSubImage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1550 PyObject
* _resultobj
;
1554 PyObject
* _argo0
= 0;
1556 PyObject
* _obj1
= 0;
1557 char *_kwnames
[] = { "self","rect", NULL
};
1561 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImage_GetSubImage",_kwnames
,&_argo0
,&_obj1
))
1564 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1565 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1566 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetSubImage. Expected _wxImage_p.");
1572 if (! wxRect_helper(_obj1
, &_arg1
))
1576 wxPy_BEGIN_ALLOW_THREADS
;
1577 _result
= new wxImage (wxImage_GetSubImage(_arg0
,*_arg1
));
1579 wxPy_END_ALLOW_THREADS
;
1580 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxImage_p");
1581 _resultobj
= Py_BuildValue("s",_ptemp
);
1585 #define wxImage_Copy(_swigobj) (_swigobj->Copy())
1586 static PyObject
*_wrap_wxImage_Copy(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1587 PyObject
* _resultobj
;
1590 PyObject
* _argo0
= 0;
1591 char *_kwnames
[] = { "self", NULL
};
1595 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_Copy",_kwnames
,&_argo0
))
1598 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1599 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1600 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_Copy. Expected _wxImage_p.");
1605 wxPy_BEGIN_ALLOW_THREADS
;
1606 _result
= new wxImage (wxImage_Copy(_arg0
));
1608 wxPy_END_ALLOW_THREADS
;
1609 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxImage_p");
1610 _resultobj
= Py_BuildValue("s",_ptemp
);
1614 #define wxImage_Paste(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Paste(_swigarg0,_swigarg1,_swigarg2))
1615 static PyObject
*_wrap_wxImage_Paste(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1616 PyObject
* _resultobj
;
1621 PyObject
* _argo0
= 0;
1622 PyObject
* _argo1
= 0;
1623 char *_kwnames
[] = { "self","image","x","y", NULL
};
1626 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOii:wxImage_Paste",_kwnames
,&_argo0
,&_argo1
,&_arg2
,&_arg3
))
1629 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1630 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1631 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_Paste. Expected _wxImage_p.");
1636 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1637 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxImage_p")) {
1638 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxImage_Paste. Expected _wxImage_p.");
1643 wxPy_BEGIN_ALLOW_THREADS
;
1644 wxImage_Paste(_arg0
,*_arg1
,_arg2
,_arg3
);
1646 wxPy_END_ALLOW_THREADS
;
1647 } Py_INCREF(Py_None
);
1648 _resultobj
= Py_None
;
1652 static PyObject
* wxImage_GetData(wxImage
*self
) {
1653 unsigned char* data
= self
->GetData();
1654 int len
= self
->GetWidth() * self
->GetHeight() * 3;
1655 return PyString_FromStringAndSize((char*)data
, len
);
1657 static PyObject
*_wrap_wxImage_GetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1658 PyObject
* _resultobj
;
1661 PyObject
* _argo0
= 0;
1662 char *_kwnames
[] = { "self", NULL
};
1665 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_GetData",_kwnames
,&_argo0
))
1668 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1669 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1670 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetData. Expected _wxImage_p.");
1675 wxPy_BEGIN_ALLOW_THREADS
;
1676 _result
= (PyObject
*)wxImage_GetData(_arg0
);
1678 wxPy_END_ALLOW_THREADS
;
1680 _resultobj
= _result
;
1685 static void wxImage_SetData(wxImage
*self
,PyObject
* data
) {
1686 unsigned char* dataPtr
;
1688 if (! PyString_Check(data
)) {
1689 PyErr_SetString(PyExc_TypeError
, "Expected string object");
1693 size_t len
= self
->GetWidth() * self
->GetHeight() * 3;
1694 dataPtr
= (unsigned char*) malloc(len
);
1695 memcpy(dataPtr
, PyString_AsString(data
), len
);
1696 self
->SetData(dataPtr
);
1698 static PyObject
*_wrap_wxImage_SetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1699 PyObject
* _resultobj
;
1702 PyObject
* _argo0
= 0;
1703 PyObject
* _obj1
= 0;
1704 char *_kwnames
[] = { "self","data", NULL
};
1707 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImage_SetData",_kwnames
,&_argo0
,&_obj1
))
1710 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1711 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1712 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_SetData. Expected _wxImage_p.");
1720 wxPy_BEGIN_ALLOW_THREADS
;
1721 wxImage_SetData(_arg0
,_arg1
);
1723 wxPy_END_ALLOW_THREADS
;
1724 } Py_INCREF(Py_None
);
1725 _resultobj
= Py_None
;
1729 #define wxImage_SetMaskColour(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetMaskColour(_swigarg0,_swigarg1,_swigarg2))
1730 static PyObject
*_wrap_wxImage_SetMaskColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1731 PyObject
* _resultobj
;
1733 unsigned char _arg1
;
1734 unsigned char _arg2
;
1735 unsigned char _arg3
;
1736 PyObject
* _argo0
= 0;
1737 char *_kwnames
[] = { "self","r","g","b", NULL
};
1740 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Obbb:wxImage_SetMaskColour",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
1743 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1744 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1745 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_SetMaskColour. Expected _wxImage_p.");
1750 wxPy_BEGIN_ALLOW_THREADS
;
1751 wxImage_SetMaskColour(_arg0
,_arg1
,_arg2
,_arg3
);
1753 wxPy_END_ALLOW_THREADS
;
1754 } Py_INCREF(Py_None
);
1755 _resultobj
= Py_None
;
1759 #define wxImage_GetMaskRed(_swigobj) (_swigobj->GetMaskRed())
1760 static PyObject
*_wrap_wxImage_GetMaskRed(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1761 PyObject
* _resultobj
;
1762 unsigned char _result
;
1764 PyObject
* _argo0
= 0;
1765 char *_kwnames
[] = { "self", NULL
};
1768 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_GetMaskRed",_kwnames
,&_argo0
))
1771 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1772 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1773 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetMaskRed. Expected _wxImage_p.");
1778 wxPy_BEGIN_ALLOW_THREADS
;
1779 _result
= (unsigned char )wxImage_GetMaskRed(_arg0
);
1781 wxPy_END_ALLOW_THREADS
;
1782 } _resultobj
= Py_BuildValue("b",_result
);
1786 #define wxImage_GetMaskGreen(_swigobj) (_swigobj->GetMaskGreen())
1787 static PyObject
*_wrap_wxImage_GetMaskGreen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1788 PyObject
* _resultobj
;
1789 unsigned char _result
;
1791 PyObject
* _argo0
= 0;
1792 char *_kwnames
[] = { "self", NULL
};
1795 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_GetMaskGreen",_kwnames
,&_argo0
))
1798 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1799 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1800 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetMaskGreen. Expected _wxImage_p.");
1805 wxPy_BEGIN_ALLOW_THREADS
;
1806 _result
= (unsigned char )wxImage_GetMaskGreen(_arg0
);
1808 wxPy_END_ALLOW_THREADS
;
1809 } _resultobj
= Py_BuildValue("b",_result
);
1813 #define wxImage_GetMaskBlue(_swigobj) (_swigobj->GetMaskBlue())
1814 static PyObject
*_wrap_wxImage_GetMaskBlue(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1815 PyObject
* _resultobj
;
1816 unsigned char _result
;
1818 PyObject
* _argo0
= 0;
1819 char *_kwnames
[] = { "self", NULL
};
1822 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_GetMaskBlue",_kwnames
,&_argo0
))
1825 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1826 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1827 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetMaskBlue. Expected _wxImage_p.");
1832 wxPy_BEGIN_ALLOW_THREADS
;
1833 _result
= (unsigned char )wxImage_GetMaskBlue(_arg0
);
1835 wxPy_END_ALLOW_THREADS
;
1836 } _resultobj
= Py_BuildValue("b",_result
);
1840 #define wxImage_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0))
1841 static PyObject
*_wrap_wxImage_SetMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1842 PyObject
* _resultobj
;
1844 bool _arg1
= (bool ) TRUE
;
1845 PyObject
* _argo0
= 0;
1846 int tempbool1
= (int) TRUE
;
1847 char *_kwnames
[] = { "self","mask", NULL
};
1850 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxImage_SetMask",_kwnames
,&_argo0
,&tempbool1
))
1853 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1854 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1855 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_SetMask. Expected _wxImage_p.");
1859 _arg1
= (bool ) tempbool1
;
1861 wxPy_BEGIN_ALLOW_THREADS
;
1862 wxImage_SetMask(_arg0
,_arg1
);
1864 wxPy_END_ALLOW_THREADS
;
1865 } Py_INCREF(Py_None
);
1866 _resultobj
= Py_None
;
1870 #define wxImage_HasMask(_swigobj) (_swigobj->HasMask())
1871 static PyObject
*_wrap_wxImage_HasMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1872 PyObject
* _resultobj
;
1875 PyObject
* _argo0
= 0;
1876 char *_kwnames
[] = { "self", NULL
};
1879 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_HasMask",_kwnames
,&_argo0
))
1882 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1883 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1884 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_HasMask. Expected _wxImage_p.");
1889 wxPy_BEGIN_ALLOW_THREADS
;
1890 _result
= (bool )wxImage_HasMask(_arg0
);
1892 wxPy_END_ALLOW_THREADS
;
1893 } _resultobj
= Py_BuildValue("i",_result
);
1897 #define wxImage_Rotate(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Rotate(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
1898 static PyObject
*_wrap_wxImage_Rotate(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1899 PyObject
* _resultobj
;
1904 bool _arg3
= (bool ) TRUE
;
1905 wxPoint
* _arg4
= (wxPoint
*) NULL
;
1906 PyObject
* _argo0
= 0;
1908 PyObject
* _obj2
= 0;
1909 int tempbool3
= (int) TRUE
;
1911 PyObject
* _obj4
= 0;
1912 char *_kwnames
[] = { "self","angle","centre_of_rotation","interpolating","offset_after_rotation", NULL
};
1916 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OdO|iO:wxImage_Rotate",_kwnames
,&_argo0
,&_arg1
,&_obj2
,&tempbool3
,&_obj4
))
1919 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1920 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1921 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_Rotate. Expected _wxImage_p.");
1927 if (! wxPoint_helper(_obj2
, &_arg2
))
1930 _arg3
= (bool ) tempbool3
;
1934 if (! wxPoint_helper(_obj4
, &_arg4
))
1938 wxPy_BEGIN_ALLOW_THREADS
;
1939 _result
= new wxImage (wxImage_Rotate(_arg0
,_arg1
,*_arg2
,_arg3
,_arg4
));
1941 wxPy_END_ALLOW_THREADS
;
1942 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxImage_p");
1943 _resultobj
= Py_BuildValue("s",_ptemp
);
1947 #define wxImage_Rotate90(_swigobj,_swigarg0) (_swigobj->Rotate90(_swigarg0))
1948 static PyObject
*_wrap_wxImage_Rotate90(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1949 PyObject
* _resultobj
;
1952 bool _arg1
= (bool ) TRUE
;
1953 PyObject
* _argo0
= 0;
1954 int tempbool1
= (int) TRUE
;
1955 char *_kwnames
[] = { "self","clockwise", NULL
};
1959 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxImage_Rotate90",_kwnames
,&_argo0
,&tempbool1
))
1962 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1963 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1964 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_Rotate90. Expected _wxImage_p.");
1968 _arg1
= (bool ) tempbool1
;
1970 wxPy_BEGIN_ALLOW_THREADS
;
1971 _result
= new wxImage (wxImage_Rotate90(_arg0
,_arg1
));
1973 wxPy_END_ALLOW_THREADS
;
1974 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxImage_p");
1975 _resultobj
= Py_BuildValue("s",_ptemp
);
1979 #define wxImage_Mirror(_swigobj,_swigarg0) (_swigobj->Mirror(_swigarg0))
1980 static PyObject
*_wrap_wxImage_Mirror(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1981 PyObject
* _resultobj
;
1984 bool _arg1
= (bool ) TRUE
;
1985 PyObject
* _argo0
= 0;
1986 int tempbool1
= (int) TRUE
;
1987 char *_kwnames
[] = { "self","horizontally", NULL
};
1991 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxImage_Mirror",_kwnames
,&_argo0
,&tempbool1
))
1994 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1995 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1996 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_Mirror. Expected _wxImage_p.");
2000 _arg1
= (bool ) tempbool1
;
2002 wxPy_BEGIN_ALLOW_THREADS
;
2003 _result
= new wxImage (wxImage_Mirror(_arg0
,_arg1
));
2005 wxPy_END_ALLOW_THREADS
;
2006 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxImage_p");
2007 _resultobj
= Py_BuildValue("s",_ptemp
);
2011 #define wxImage_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
2012 static PyObject
*_wrap_wxImage_Replace(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2013 PyObject
* _resultobj
;
2015 unsigned char _arg1
;
2016 unsigned char _arg2
;
2017 unsigned char _arg3
;
2018 unsigned char _arg4
;
2019 unsigned char _arg5
;
2020 unsigned char _arg6
;
2021 PyObject
* _argo0
= 0;
2022 char *_kwnames
[] = { "self","r1","g1","b1","r2","g2","b2", NULL
};
2025 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Obbbbbb:wxImage_Replace",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
,&_arg6
))
2028 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2029 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
2030 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_Replace. Expected _wxImage_p.");
2035 wxPy_BEGIN_ALLOW_THREADS
;
2036 wxImage_Replace(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
,_arg6
);
2038 wxPy_END_ALLOW_THREADS
;
2039 } Py_INCREF(Py_None
);
2040 _resultobj
= Py_None
;
2044 #define wxImage_CountColours(_swigobj,_swigarg0) (_swigobj->CountColours(_swigarg0))
2045 static PyObject
*_wrap_wxImage_CountColours(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2046 PyObject
* _resultobj
;
2047 unsigned long _result
;
2049 unsigned long _arg1
= (unsigned long ) (unsigned long)-1;
2050 PyObject
* _argo0
= 0;
2051 char *_kwnames
[] = { "self","stopafter", NULL
};
2054 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|l:wxImage_CountColours",_kwnames
,&_argo0
,&_arg1
))
2057 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2058 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
2059 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_CountColours. Expected _wxImage_p.");
2064 wxPy_BEGIN_ALLOW_THREADS
;
2065 _result
= (unsigned long )wxImage_CountColours(_arg0
,_arg1
);
2067 wxPy_END_ALLOW_THREADS
;
2068 } _resultobj
= Py_BuildValue("l",_result
);
2072 static PyMethodDef imagecMethods
[] = {
2073 { "wxImage_CountColours", (PyCFunction
) _wrap_wxImage_CountColours
, METH_VARARGS
| METH_KEYWORDS
},
2074 { "wxImage_Replace", (PyCFunction
) _wrap_wxImage_Replace
, METH_VARARGS
| METH_KEYWORDS
},
2075 { "wxImage_Mirror", (PyCFunction
) _wrap_wxImage_Mirror
, METH_VARARGS
| METH_KEYWORDS
},
2076 { "wxImage_Rotate90", (PyCFunction
) _wrap_wxImage_Rotate90
, METH_VARARGS
| METH_KEYWORDS
},
2077 { "wxImage_Rotate", (PyCFunction
) _wrap_wxImage_Rotate
, METH_VARARGS
| METH_KEYWORDS
},
2078 { "wxImage_HasMask", (PyCFunction
) _wrap_wxImage_HasMask
, METH_VARARGS
| METH_KEYWORDS
},
2079 { "wxImage_SetMask", (PyCFunction
) _wrap_wxImage_SetMask
, METH_VARARGS
| METH_KEYWORDS
},
2080 { "wxImage_GetMaskBlue", (PyCFunction
) _wrap_wxImage_GetMaskBlue
, METH_VARARGS
| METH_KEYWORDS
},
2081 { "wxImage_GetMaskGreen", (PyCFunction
) _wrap_wxImage_GetMaskGreen
, METH_VARARGS
| METH_KEYWORDS
},
2082 { "wxImage_GetMaskRed", (PyCFunction
) _wrap_wxImage_GetMaskRed
, METH_VARARGS
| METH_KEYWORDS
},
2083 { "wxImage_SetMaskColour", (PyCFunction
) _wrap_wxImage_SetMaskColour
, METH_VARARGS
| METH_KEYWORDS
},
2084 { "wxImage_SetData", (PyCFunction
) _wrap_wxImage_SetData
, METH_VARARGS
| METH_KEYWORDS
},
2085 { "wxImage_GetData", (PyCFunction
) _wrap_wxImage_GetData
, METH_VARARGS
| METH_KEYWORDS
},
2086 { "wxImage_Paste", (PyCFunction
) _wrap_wxImage_Paste
, METH_VARARGS
| METH_KEYWORDS
},
2087 { "wxImage_Copy", (PyCFunction
) _wrap_wxImage_Copy
, METH_VARARGS
| METH_KEYWORDS
},
2088 { "wxImage_GetSubImage", (PyCFunction
) _wrap_wxImage_GetSubImage
, METH_VARARGS
| METH_KEYWORDS
},
2089 { "wxImage_GetHeight", (PyCFunction
) _wrap_wxImage_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
2090 { "wxImage_GetWidth", (PyCFunction
) _wrap_wxImage_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
2091 { "wxImage_Ok", (PyCFunction
) _wrap_wxImage_Ok
, METH_VARARGS
| METH_KEYWORDS
},
2092 { "wxImage_SaveMimeFile", (PyCFunction
) _wrap_wxImage_SaveMimeFile
, METH_VARARGS
| METH_KEYWORDS
},
2093 { "wxImage_SaveFile", (PyCFunction
) _wrap_wxImage_SaveFile
, METH_VARARGS
| METH_KEYWORDS
},
2094 { "wxImage_LoadMimeFile", (PyCFunction
) _wrap_wxImage_LoadMimeFile
, METH_VARARGS
| METH_KEYWORDS
},
2095 { "wxImage_LoadFile", (PyCFunction
) _wrap_wxImage_LoadFile
, METH_VARARGS
| METH_KEYWORDS
},
2096 { "wxImage_GetBlue", (PyCFunction
) _wrap_wxImage_GetBlue
, METH_VARARGS
| METH_KEYWORDS
},
2097 { "wxImage_GetGreen", (PyCFunction
) _wrap_wxImage_GetGreen
, METH_VARARGS
| METH_KEYWORDS
},
2098 { "wxImage_GetRed", (PyCFunction
) _wrap_wxImage_GetRed
, METH_VARARGS
| METH_KEYWORDS
},
2099 { "wxImage_SetRGB", (PyCFunction
) _wrap_wxImage_SetRGB
, METH_VARARGS
| METH_KEYWORDS
},
2100 { "wxImage_Rescale", (PyCFunction
) _wrap_wxImage_Rescale
, METH_VARARGS
| METH_KEYWORDS
},
2101 { "wxImage_Scale", (PyCFunction
) _wrap_wxImage_Scale
, METH_VARARGS
| METH_KEYWORDS
},
2102 { "wxImage_Destroy", (PyCFunction
) _wrap_wxImage_Destroy
, METH_VARARGS
| METH_KEYWORDS
},
2103 { "wxImage_Create", (PyCFunction
) _wrap_wxImage_Create
, METH_VARARGS
| METH_KEYWORDS
},
2104 { "wxImage_ConvertToBitmap", (PyCFunction
) _wrap_wxImage_ConvertToBitmap
, METH_VARARGS
| METH_KEYWORDS
},
2105 { "delete_wxImage", (PyCFunction
) _wrap_delete_wxImage
, METH_VARARGS
| METH_KEYWORDS
},
2106 { "new_wxImage", (PyCFunction
) _wrap_new_wxImage
, METH_VARARGS
| METH_KEYWORDS
},
2107 { "new_wxTIFFHandler", (PyCFunction
) _wrap_new_wxTIFFHandler
, METH_VARARGS
| METH_KEYWORDS
},
2108 { "new_wxPCXHandler", (PyCFunction
) _wrap_new_wxPCXHandler
, METH_VARARGS
| METH_KEYWORDS
},
2109 { "new_wxPNMHandler", (PyCFunction
) _wrap_new_wxPNMHandler
, METH_VARARGS
| METH_KEYWORDS
},
2110 { "new_wxGIFHandler", (PyCFunction
) _wrap_new_wxGIFHandler
, METH_VARARGS
| METH_KEYWORDS
},
2111 { "new_wxBMPHandler", (PyCFunction
) _wrap_new_wxBMPHandler
, METH_VARARGS
| METH_KEYWORDS
},
2112 { "new_wxJPEGHandler", (PyCFunction
) _wrap_new_wxJPEGHandler
, METH_VARARGS
| METH_KEYWORDS
},
2113 { "new_wxPNGHandler", (PyCFunction
) _wrap_new_wxPNGHandler
, METH_VARARGS
| METH_KEYWORDS
},
2114 { "wxImageHandler_SetMimeType", (PyCFunction
) _wrap_wxImageHandler_SetMimeType
, METH_VARARGS
| METH_KEYWORDS
},
2115 { "wxImageHandler_SetType", (PyCFunction
) _wrap_wxImageHandler_SetType
, METH_VARARGS
| METH_KEYWORDS
},
2116 { "wxImageHandler_SetExtension", (PyCFunction
) _wrap_wxImageHandler_SetExtension
, METH_VARARGS
| METH_KEYWORDS
},
2117 { "wxImageHandler_SetName", (PyCFunction
) _wrap_wxImageHandler_SetName
, METH_VARARGS
| METH_KEYWORDS
},
2118 { "wxImageHandler_GetMimeType", (PyCFunction
) _wrap_wxImageHandler_GetMimeType
, METH_VARARGS
| METH_KEYWORDS
},
2119 { "wxImageHandler_GetType", (PyCFunction
) _wrap_wxImageHandler_GetType
, METH_VARARGS
| METH_KEYWORDS
},
2120 { "wxImageHandler_GetExtension", (PyCFunction
) _wrap_wxImageHandler_GetExtension
, METH_VARARGS
| METH_KEYWORDS
},
2121 { "wxImageHandler_GetName", (PyCFunction
) _wrap_wxImageHandler_GetName
, METH_VARARGS
| METH_KEYWORDS
},
2122 { "wxInitAllImageHandlers", (PyCFunction
) _wrap_wxInitAllImageHandlers
, METH_VARARGS
| METH_KEYWORDS
},
2123 { "wxImage_AddHandler", (PyCFunction
) _wrap_wxImage_AddHandler
, METH_VARARGS
| METH_KEYWORDS
},
2124 { "wxImageFromBitmap", (PyCFunction
) _wrap_wxImageFromBitmap
, METH_VARARGS
| METH_KEYWORDS
},
2125 { "wxImageFromMime", (PyCFunction
) _wrap_wxImageFromMime
, METH_VARARGS
| METH_KEYWORDS
},
2126 { "wxEmptyImage", (PyCFunction
) _wrap_wxEmptyImage
, METH_VARARGS
| METH_KEYWORDS
},
2127 { "wxNullImage", (PyCFunction
) _wrap_wxNullImage
, METH_VARARGS
| METH_KEYWORDS
},
2134 * This table is used by the pointer type-checker
2136 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
2137 { "_wxAcceleratorTable","_class_wxAcceleratorTable",0},
2138 { "_signed_long","_long",0},
2139 { "_class_wxJPEGHandler","_wxJPEGHandler",0},
2140 { "_wxBMPHandler","_class_wxBMPHandler",0},
2141 { "_wxImage","_class_wxImage",0},
2142 { "_wxPrintQuality","_wxCoord",0},
2143 { "_wxPrintQuality","_int",0},
2144 { "_wxPrintQuality","_signed_int",0},
2145 { "_wxPrintQuality","_unsigned_int",0},
2146 { "_wxPrintQuality","_wxWindowID",0},
2147 { "_wxPrintQuality","_uint",0},
2148 { "_wxPrintQuality","_EBool",0},
2149 { "_wxPrintQuality","_size_t",0},
2150 { "_wxPrintQuality","_time_t",0},
2151 { "_class_wxRegionIterator","_wxRegionIterator",0},
2152 { "_wxGIFHandler","_class_wxGIFHandler",0},
2153 { "_wxIndividualLayoutConstraint","_class_wxIndividualLayoutConstraint",0},
2154 { "_wxCursor","_class_wxCursor",0},
2155 { "_wxImageHandler","_class_wxTIFFHandler",SwigwxTIFFHandlerTowxImageHandler
},
2156 { "_wxImageHandler","_wxTIFFHandler",SwigwxTIFFHandlerTowxImageHandler
},
2157 { "_wxImageHandler","_class_wxPCXHandler",SwigwxPCXHandlerTowxImageHandler
},
2158 { "_wxImageHandler","_wxPCXHandler",SwigwxPCXHandlerTowxImageHandler
},
2159 { "_wxImageHandler","_class_wxPNMHandler",SwigwxPNMHandlerTowxImageHandler
},
2160 { "_wxImageHandler","_wxPNMHandler",SwigwxPNMHandlerTowxImageHandler
},
2161 { "_wxImageHandler","_class_wxGIFHandler",SwigwxGIFHandlerTowxImageHandler
},
2162 { "_wxImageHandler","_wxGIFHandler",SwigwxGIFHandlerTowxImageHandler
},
2163 { "_wxImageHandler","_class_wxBMPHandler",SwigwxBMPHandlerTowxImageHandler
},
2164 { "_wxImageHandler","_wxBMPHandler",SwigwxBMPHandlerTowxImageHandler
},
2165 { "_wxImageHandler","_class_wxJPEGHandler",SwigwxJPEGHandlerTowxImageHandler
},
2166 { "_wxImageHandler","_wxJPEGHandler",SwigwxJPEGHandlerTowxImageHandler
},
2167 { "_wxImageHandler","_class_wxPNGHandler",SwigwxPNGHandlerTowxImageHandler
},
2168 { "_wxImageHandler","_wxPNGHandler",SwigwxPNGHandlerTowxImageHandler
},
2169 { "_wxImageHandler","_class_wxImageHandler",0},
2170 { "_wxMask","_class_wxMask",0},
2171 { "_wxPNGHandler","_class_wxPNGHandler",0},
2172 { "_wxPen","_class_wxPen",0},
2173 { "_byte","_unsigned_char",0},
2174 { "_long","_unsigned_long",0},
2175 { "_long","_signed_long",0},
2176 { "_wxImageList","_class_wxImageList",0},
2177 { "_class_wxTIFFHandler","_wxTIFFHandler",0},
2178 { "_class_wxAcceleratorTable","_wxAcceleratorTable",0},
2179 { "_wxDC","_class_wxDC",0},
2180 { "_class_wxBMPHandler","_wxBMPHandler",0},
2181 { "_size_t","_wxCoord",0},
2182 { "_size_t","_wxPrintQuality",0},
2183 { "_size_t","_time_t",0},
2184 { "_size_t","_unsigned_int",0},
2185 { "_size_t","_int",0},
2186 { "_size_t","_wxWindowID",0},
2187 { "_size_t","_uint",0},
2188 { "_class_wxRealPoint","_wxRealPoint",0},
2189 { "_wxPNMHandler","_class_wxPNMHandler",0},
2190 { "_class_wxGIFHandler","_wxGIFHandler",0},
2191 { "_class_wxMask","_wxMask",0},
2192 { "_class_wxPNGHandler","_wxPNGHandler",0},
2193 { "_wxColour","_class_wxColour",0},
2194 { "_wxBrush","_class_wxBrush",0},
2195 { "_uint","_wxCoord",0},
2196 { "_uint","_wxPrintQuality",0},
2197 { "_uint","_time_t",0},
2198 { "_uint","_size_t",0},
2199 { "_uint","_unsigned_int",0},
2200 { "_uint","_int",0},
2201 { "_uint","_wxWindowID",0},
2202 { "_wxChar","_char",0},
2203 { "_wxRect","_class_wxRect",0},
2204 { "_class_wxImage","_wxImage",0},
2205 { "_wxPoint","_class_wxPoint",0},
2206 { "_class_wxPNMHandler","_wxPNMHandler",0},
2207 { "_char","_wxChar",0},
2208 { "_wxBitmap","_class_wxBitmap",0},
2209 { "_wxWindowDC","_class_wxWindowDC",0},
2210 { "_class_wxIndividualLayoutConstraint","_wxIndividualLayoutConstraint",0},
2211 { "_EBool","_wxCoord",0},
2212 { "_EBool","_wxPrintQuality",0},
2213 { "_EBool","_signed_int",0},
2214 { "_EBool","_int",0},
2215 { "_EBool","_wxWindowID",0},
2216 { "_class_wxRegion","_wxRegion",0},
2217 { "_wxFont","_class_wxFont",0},
2218 { "_unsigned_long","_long",0},
2219 { "_class_wxRect","_wxRect",0},
2220 { "_class_wxDC","_wxDC",0},
2221 { "_wxAcceleratorEntry","_class_wxAcceleratorEntry",0},
2222 { "_signed_int","_wxCoord",0},
2223 { "_signed_int","_wxPrintQuality",0},
2224 { "_signed_int","_EBool",0},
2225 { "_signed_int","_wxWindowID",0},
2226 { "_signed_int","_int",0},
2227 { "_wxLayoutConstraints","_class_wxLayoutConstraints",0},
2228 { "_wxMetaFileDC","_class_wxMetaFileDC",0},
2229 { "_wxScreenDC","_class_wxScreenDC",0},
2230 { "_WXTYPE","_short",0},
2231 { "_WXTYPE","_signed_short",0},
2232 { "_WXTYPE","_unsigned_short",0},
2233 { "_class_wxBrush","_wxBrush",0},
2234 { "_unsigned_short","_WXTYPE",0},
2235 { "_unsigned_short","_short",0},
2236 { "_class_wxFont","_wxFont",0},
2237 { "_wxBusyInfo","_class_wxBusyInfo",0},
2238 { "_wxFontList","_class_wxFontList",0},
2239 { "_wxClientDC","_class_wxClientDC",0},
2240 { "_class_wxPoint","_wxPoint",0},
2241 { "_wxRealPoint","_class_wxRealPoint",0},
2242 { "_signed_short","_WXTYPE",0},
2243 { "_signed_short","_short",0},
2244 { "_wxMemoryDC","_class_wxMemoryDC",0},
2245 { "_wxPaintDC","_class_wxPaintDC",0},
2246 { "_class_wxWindowDC","_wxWindowDC",0},
2247 { "_class_wxAcceleratorEntry","_wxAcceleratorEntry",0},
2248 { "_class_wxCursor","_wxCursor",0},
2249 { "_class_wxImageHandler","_class_wxTIFFHandler",SwigwxTIFFHandlerTowxImageHandler
},
2250 { "_class_wxImageHandler","_wxTIFFHandler",SwigwxTIFFHandlerTowxImageHandler
},
2251 { "_class_wxImageHandler","_class_wxPCXHandler",SwigwxPCXHandlerTowxImageHandler
},
2252 { "_class_wxImageHandler","_wxPCXHandler",SwigwxPCXHandlerTowxImageHandler
},
2253 { "_class_wxImageHandler","_class_wxPNMHandler",SwigwxPNMHandlerTowxImageHandler
},
2254 { "_class_wxImageHandler","_wxPNMHandler",SwigwxPNMHandlerTowxImageHandler
},
2255 { "_class_wxImageHandler","_class_wxGIFHandler",SwigwxGIFHandlerTowxImageHandler
},
2256 { "_class_wxImageHandler","_wxGIFHandler",SwigwxGIFHandlerTowxImageHandler
},
2257 { "_class_wxImageHandler","_class_wxBMPHandler",SwigwxBMPHandlerTowxImageHandler
},
2258 { "_class_wxImageHandler","_wxBMPHandler",SwigwxBMPHandlerTowxImageHandler
},
2259 { "_class_wxImageHandler","_class_wxJPEGHandler",SwigwxJPEGHandlerTowxImageHandler
},
2260 { "_class_wxImageHandler","_wxJPEGHandler",SwigwxJPEGHandlerTowxImageHandler
},
2261 { "_class_wxImageHandler","_class_wxPNGHandler",SwigwxPNGHandlerTowxImageHandler
},
2262 { "_class_wxImageHandler","_wxPNGHandler",SwigwxPNGHandlerTowxImageHandler
},
2263 { "_class_wxImageHandler","_wxImageHandler",0},
2264 { "_unsigned_char","_byte",0},
2265 { "_class_wxMetaFileDC","_wxMetaFileDC",0},
2266 { "_unsigned_int","_wxCoord",0},
2267 { "_unsigned_int","_wxPrintQuality",0},
2268 { "_unsigned_int","_time_t",0},
2269 { "_unsigned_int","_size_t",0},
2270 { "_unsigned_int","_uint",0},
2271 { "_unsigned_int","_wxWindowID",0},
2272 { "_unsigned_int","_int",0},
2273 { "_wxIcon","_class_wxIcon",0},
2274 { "_class_wxPen","_wxPen",0},
2275 { "_short","_WXTYPE",0},
2276 { "_short","_unsigned_short",0},
2277 { "_short","_signed_short",0},
2278 { "_class_wxImageList","_wxImageList",0},
2279 { "_wxPCXHandler","_class_wxPCXHandler",0},
2280 { "_wxJPEGHandler","_class_wxJPEGHandler",0},
2281 { "_wxWindowID","_wxCoord",0},
2282 { "_wxWindowID","_wxPrintQuality",0},
2283 { "_wxWindowID","_time_t",0},
2284 { "_wxWindowID","_size_t",0},
2285 { "_wxWindowID","_EBool",0},
2286 { "_wxWindowID","_uint",0},
2287 { "_wxWindowID","_int",0},
2288 { "_wxWindowID","_signed_int",0},
2289 { "_wxWindowID","_unsigned_int",0},
2290 { "_int","_wxCoord",0},
2291 { "_int","_wxPrintQuality",0},
2292 { "_int","_time_t",0},
2293 { "_int","_size_t",0},
2294 { "_int","_EBool",0},
2295 { "_int","_uint",0},
2296 { "_int","_wxWindowID",0},
2297 { "_int","_unsigned_int",0},
2298 { "_int","_signed_int",0},
2299 { "_time_t","_wxCoord",0},
2300 { "_time_t","_wxPrintQuality",0},
2301 { "_time_t","_unsigned_int",0},
2302 { "_time_t","_int",0},
2303 { "_time_t","_wxWindowID",0},
2304 { "_time_t","_uint",0},
2305 { "_time_t","_size_t",0},
2306 { "_wxSize","_class_wxSize",0},
2307 { "_wxRegionIterator","_class_wxRegionIterator",0},
2308 { "_class_wxPaintDC","_wxPaintDC",0},
2309 { "_class_wxLayoutConstraints","_wxLayoutConstraints",0},
2310 { "_class_wxIcon","_wxIcon",0},
2311 { "_class_wxColour","_wxColour",0},
2312 { "_class_wxScreenDC","_wxScreenDC",0},
2313 { "_wxPalette","_class_wxPalette",0},
2314 { "_wxCoord","_int",0},
2315 { "_wxCoord","_signed_int",0},
2316 { "_wxCoord","_unsigned_int",0},
2317 { "_wxCoord","_wxWindowID",0},
2318 { "_wxCoord","_uint",0},
2319 { "_wxCoord","_EBool",0},
2320 { "_wxCoord","_size_t",0},
2321 { "_wxCoord","_time_t",0},
2322 { "_wxCoord","_wxPrintQuality",0},
2323 { "_wxRegion","_class_wxRegion",0},
2324 { "_class_wxPCXHandler","_wxPCXHandler",0},
2325 { "_wxTIFFHandler","_class_wxTIFFHandler",0},
2326 { "_class_wxBusyInfo","_wxBusyInfo",0},
2327 { "_class_wxFontList","_wxFontList",0},
2328 { "_class_wxClientDC","_wxClientDC",0},
2329 { "_class_wxSize","_wxSize",0},
2330 { "_class_wxBitmap","_wxBitmap",0},
2331 { "_class_wxMemoryDC","_wxMemoryDC",0},
2332 { "_class_wxPalette","_wxPalette",0},
2335 static PyObject
*SWIG_globals
;
2339 SWIGEXPORT(void) initimagec() {
2341 SWIG_globals
= SWIG_newvarlink();
2342 m
= Py_InitModule("imagec", imagecMethods
);
2343 d
= PyModule_GetDict(m
);
2346 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
2347 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);