4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 810)
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
);
106 static char* wxStringErrorMsg
= "string type is required for parameter";
108 wxImage
* wxNullImage() {
112 wxImage
* wxEmptyImage(int width
, int height
) {
113 return new wxImage(width
, height
);
116 wxImage
* wxImageFromMime(const wxString
& name
, const wxString
& mimetype
) {
117 return new wxImage(name
, mimetype
);
120 wxImage
* wxImageFromBitmap(const wxBitmap
&bitmap
) {
121 return new wxImage(bitmap
);
124 void wxImage_AddHandler(wxImageHandler
*handler
) {
125 wxImage::AddHandler(handler
);
130 static PyObject
*_wrap_wxNullImage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
131 PyObject
* _resultobj
;
133 char *_kwnames
[] = { NULL
};
137 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxNullImage",_kwnames
))
140 wxPy_BEGIN_ALLOW_THREADS
;
141 _result
= (wxImage
*)wxNullImage();
143 wxPy_END_ALLOW_THREADS
;
145 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImage_p");
146 _resultobj
= Py_BuildValue("s",_ptemp
);
149 _resultobj
= Py_None
;
154 static PyObject
*_wrap_wxEmptyImage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
155 PyObject
* _resultobj
;
159 char *_kwnames
[] = { "width","height", NULL
};
163 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"ii:wxEmptyImage",_kwnames
,&_arg0
,&_arg1
))
166 wxPy_BEGIN_ALLOW_THREADS
;
167 _result
= (wxImage
*)wxEmptyImage(_arg0
,_arg1
);
169 wxPy_END_ALLOW_THREADS
;
171 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImage_p");
172 _resultobj
= Py_BuildValue("s",_ptemp
);
175 _resultobj
= Py_None
;
180 static PyObject
*_wrap_wxImageFromMime(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
181 PyObject
* _resultobj
;
185 PyObject
* _obj0
= 0;
186 PyObject
* _obj1
= 0;
187 char *_kwnames
[] = { "name","mimetype", NULL
};
191 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImageFromMime",_kwnames
,&_obj0
,&_obj1
))
194 if (!PyString_Check(_obj0
)) {
195 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
198 _arg0
= new wxString(PyString_AsString(_obj0
), PyString_Size(_obj0
));
201 if (!PyString_Check(_obj1
)) {
202 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
205 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
208 wxPy_BEGIN_ALLOW_THREADS
;
209 _result
= (wxImage
*)wxImageFromMime(*_arg0
,*_arg1
);
211 wxPy_END_ALLOW_THREADS
;
213 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImage_p");
214 _resultobj
= Py_BuildValue("s",_ptemp
);
217 _resultobj
= Py_None
;
230 static PyObject
*_wrap_wxImageFromBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
231 PyObject
* _resultobj
;
234 PyObject
* _argo0
= 0;
235 char *_kwnames
[] = { "bitmap", NULL
};
239 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageFromBitmap",_kwnames
,&_argo0
))
242 if (_argo0
== Py_None
) { _arg0
= NULL
; }
243 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
244 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageFromBitmap. Expected _wxBitmap_p.");
249 wxPy_BEGIN_ALLOW_THREADS
;
250 _result
= (wxImage
*)wxImageFromBitmap(*_arg0
);
252 wxPy_END_ALLOW_THREADS
;
254 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImage_p");
255 _resultobj
= Py_BuildValue("s",_ptemp
);
258 _resultobj
= Py_None
;
263 static PyObject
*_wrap_wxImage_AddHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
264 PyObject
* _resultobj
;
265 wxImageHandler
* _arg0
;
266 PyObject
* _argo0
= 0;
267 char *_kwnames
[] = { "handler", NULL
};
270 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_AddHandler",_kwnames
,&_argo0
))
273 if (_argo0
== Py_None
) { _arg0
= NULL
; }
274 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageHandler_p")) {
275 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_AddHandler. Expected _wxImageHandler_p.");
280 wxPy_BEGIN_ALLOW_THREADS
;
281 wxImage_AddHandler(_arg0
);
283 wxPy_END_ALLOW_THREADS
;
284 } Py_INCREF(Py_None
);
285 _resultobj
= Py_None
;
289 static PyObject
*_wrap_wxInitAllImageHandlers(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
290 PyObject
* _resultobj
;
291 char *_kwnames
[] = { NULL
};
294 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxInitAllImageHandlers",_kwnames
))
297 wxPy_BEGIN_ALLOW_THREADS
;
298 wxInitAllImageHandlers();
300 wxPy_END_ALLOW_THREADS
;
301 } Py_INCREF(Py_None
);
302 _resultobj
= Py_None
;
306 #define wxImageHandler_GetName(_swigobj) (_swigobj->GetName())
307 static PyObject
*_wrap_wxImageHandler_GetName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
308 PyObject
* _resultobj
;
310 wxImageHandler
* _arg0
;
311 PyObject
* _argo0
= 0;
312 char *_kwnames
[] = { "self", NULL
};
315 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageHandler_GetName",_kwnames
,&_argo0
))
318 if (_argo0
== Py_None
) { _arg0
= NULL
; }
319 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageHandler_p")) {
320 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageHandler_GetName. Expected _wxImageHandler_p.");
325 wxPy_BEGIN_ALLOW_THREADS
;
326 _result
= new wxString (wxImageHandler_GetName(_arg0
));
328 wxPy_END_ALLOW_THREADS
;
330 _resultobj
= PyString_FromString(WXSTRINGCAST
*(_result
));
338 #define wxImageHandler_GetExtension(_swigobj) (_swigobj->GetExtension())
339 static PyObject
*_wrap_wxImageHandler_GetExtension(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
340 PyObject
* _resultobj
;
342 wxImageHandler
* _arg0
;
343 PyObject
* _argo0
= 0;
344 char *_kwnames
[] = { "self", NULL
};
347 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageHandler_GetExtension",_kwnames
,&_argo0
))
350 if (_argo0
== Py_None
) { _arg0
= NULL
; }
351 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageHandler_p")) {
352 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageHandler_GetExtension. Expected _wxImageHandler_p.");
357 wxPy_BEGIN_ALLOW_THREADS
;
358 _result
= new wxString (wxImageHandler_GetExtension(_arg0
));
360 wxPy_END_ALLOW_THREADS
;
362 _resultobj
= PyString_FromString(WXSTRINGCAST
*(_result
));
370 #define wxImageHandler_GetType(_swigobj) (_swigobj->GetType())
371 static PyObject
*_wrap_wxImageHandler_GetType(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
372 PyObject
* _resultobj
;
374 wxImageHandler
* _arg0
;
375 PyObject
* _argo0
= 0;
376 char *_kwnames
[] = { "self", NULL
};
379 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageHandler_GetType",_kwnames
,&_argo0
))
382 if (_argo0
== Py_None
) { _arg0
= NULL
; }
383 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageHandler_p")) {
384 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageHandler_GetType. Expected _wxImageHandler_p.");
389 wxPy_BEGIN_ALLOW_THREADS
;
390 _result
= (long )wxImageHandler_GetType(_arg0
);
392 wxPy_END_ALLOW_THREADS
;
393 } _resultobj
= Py_BuildValue("l",_result
);
397 #define wxImageHandler_GetMimeType(_swigobj) (_swigobj->GetMimeType())
398 static PyObject
*_wrap_wxImageHandler_GetMimeType(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
399 PyObject
* _resultobj
;
401 wxImageHandler
* _arg0
;
402 PyObject
* _argo0
= 0;
403 char *_kwnames
[] = { "self", NULL
};
406 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageHandler_GetMimeType",_kwnames
,&_argo0
))
409 if (_argo0
== Py_None
) { _arg0
= NULL
; }
410 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageHandler_p")) {
411 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageHandler_GetMimeType. Expected _wxImageHandler_p.");
416 wxPy_BEGIN_ALLOW_THREADS
;
417 _result
= new wxString (wxImageHandler_GetMimeType(_arg0
));
419 wxPy_END_ALLOW_THREADS
;
421 _resultobj
= PyString_FromString(WXSTRINGCAST
*(_result
));
429 #define wxImageHandler_SetName(_swigobj,_swigarg0) (_swigobj->SetName(_swigarg0))
430 static PyObject
*_wrap_wxImageHandler_SetName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
431 PyObject
* _resultobj
;
432 wxImageHandler
* _arg0
;
434 PyObject
* _argo0
= 0;
435 PyObject
* _obj1
= 0;
436 char *_kwnames
[] = { "self","name", NULL
};
439 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImageHandler_SetName",_kwnames
,&_argo0
,&_obj1
))
442 if (_argo0
== Py_None
) { _arg0
= NULL
; }
443 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageHandler_p")) {
444 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageHandler_SetName. Expected _wxImageHandler_p.");
449 if (!PyString_Check(_obj1
)) {
450 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
453 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
456 wxPy_BEGIN_ALLOW_THREADS
;
457 wxImageHandler_SetName(_arg0
,*_arg1
);
459 wxPy_END_ALLOW_THREADS
;
460 } Py_INCREF(Py_None
);
461 _resultobj
= Py_None
;
469 #define wxImageHandler_SetExtension(_swigobj,_swigarg0) (_swigobj->SetExtension(_swigarg0))
470 static PyObject
*_wrap_wxImageHandler_SetExtension(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
471 PyObject
* _resultobj
;
472 wxImageHandler
* _arg0
;
474 PyObject
* _argo0
= 0;
475 PyObject
* _obj1
= 0;
476 char *_kwnames
[] = { "self","extension", NULL
};
479 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImageHandler_SetExtension",_kwnames
,&_argo0
,&_obj1
))
482 if (_argo0
== Py_None
) { _arg0
= NULL
; }
483 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageHandler_p")) {
484 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageHandler_SetExtension. Expected _wxImageHandler_p.");
489 if (!PyString_Check(_obj1
)) {
490 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
493 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
496 wxPy_BEGIN_ALLOW_THREADS
;
497 wxImageHandler_SetExtension(_arg0
,*_arg1
);
499 wxPy_END_ALLOW_THREADS
;
500 } Py_INCREF(Py_None
);
501 _resultobj
= Py_None
;
509 #define wxImageHandler_SetType(_swigobj,_swigarg0) (_swigobj->SetType(_swigarg0))
510 static PyObject
*_wrap_wxImageHandler_SetType(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
511 PyObject
* _resultobj
;
512 wxImageHandler
* _arg0
;
514 PyObject
* _argo0
= 0;
515 char *_kwnames
[] = { "self","type", NULL
};
518 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxImageHandler_SetType",_kwnames
,&_argo0
,&_arg1
))
521 if (_argo0
== Py_None
) { _arg0
= NULL
; }
522 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageHandler_p")) {
523 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageHandler_SetType. Expected _wxImageHandler_p.");
528 wxPy_BEGIN_ALLOW_THREADS
;
529 wxImageHandler_SetType(_arg0
,_arg1
);
531 wxPy_END_ALLOW_THREADS
;
532 } Py_INCREF(Py_None
);
533 _resultobj
= Py_None
;
537 #define wxImageHandler_SetMimeType(_swigobj,_swigarg0) (_swigobj->SetMimeType(_swigarg0))
538 static PyObject
*_wrap_wxImageHandler_SetMimeType(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
539 PyObject
* _resultobj
;
540 wxImageHandler
* _arg0
;
542 PyObject
* _argo0
= 0;
543 PyObject
* _obj1
= 0;
544 char *_kwnames
[] = { "self","mimetype", NULL
};
547 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImageHandler_SetMimeType",_kwnames
,&_argo0
,&_obj1
))
550 if (_argo0
== Py_None
) { _arg0
= NULL
; }
551 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageHandler_p")) {
552 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageHandler_SetMimeType. Expected _wxImageHandler_p.");
557 if (!PyString_Check(_obj1
)) {
558 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
561 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
564 wxPy_BEGIN_ALLOW_THREADS
;
565 wxImageHandler_SetMimeType(_arg0
,*_arg1
);
567 wxPy_END_ALLOW_THREADS
;
568 } Py_INCREF(Py_None
);
569 _resultobj
= Py_None
;
577 static void *SwigwxPNGHandlerTowxImageHandler(void *ptr
) {
579 wxImageHandler
*dest
;
580 src
= (wxPNGHandler
*) ptr
;
581 dest
= (wxImageHandler
*) src
;
582 return (void *) dest
;
585 #define new_wxPNGHandler() (new wxPNGHandler())
586 static PyObject
*_wrap_new_wxPNGHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
587 PyObject
* _resultobj
;
588 wxPNGHandler
* _result
;
589 char *_kwnames
[] = { NULL
};
593 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxPNGHandler",_kwnames
))
596 wxPy_BEGIN_ALLOW_THREADS
;
597 _result
= (wxPNGHandler
*)new_wxPNGHandler();
599 wxPy_END_ALLOW_THREADS
;
601 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPNGHandler_p");
602 _resultobj
= Py_BuildValue("s",_ptemp
);
605 _resultobj
= Py_None
;
610 static void *SwigwxJPEGHandlerTowxImageHandler(void *ptr
) {
612 wxImageHandler
*dest
;
613 src
= (wxJPEGHandler
*) ptr
;
614 dest
= (wxImageHandler
*) src
;
615 return (void *) dest
;
618 #define new_wxJPEGHandler() (new wxJPEGHandler())
619 static PyObject
*_wrap_new_wxJPEGHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
620 PyObject
* _resultobj
;
621 wxJPEGHandler
* _result
;
622 char *_kwnames
[] = { NULL
};
626 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxJPEGHandler",_kwnames
))
629 wxPy_BEGIN_ALLOW_THREADS
;
630 _result
= (wxJPEGHandler
*)new_wxJPEGHandler();
632 wxPy_END_ALLOW_THREADS
;
634 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxJPEGHandler_p");
635 _resultobj
= Py_BuildValue("s",_ptemp
);
638 _resultobj
= Py_None
;
643 static void *SwigwxBMPHandlerTowxImageHandler(void *ptr
) {
645 wxImageHandler
*dest
;
646 src
= (wxBMPHandler
*) ptr
;
647 dest
= (wxImageHandler
*) src
;
648 return (void *) dest
;
651 #define new_wxBMPHandler() (new wxBMPHandler())
652 static PyObject
*_wrap_new_wxBMPHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
653 PyObject
* _resultobj
;
654 wxBMPHandler
* _result
;
655 char *_kwnames
[] = { NULL
};
659 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxBMPHandler",_kwnames
))
662 wxPy_BEGIN_ALLOW_THREADS
;
663 _result
= (wxBMPHandler
*)new_wxBMPHandler();
665 wxPy_END_ALLOW_THREADS
;
667 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBMPHandler_p");
668 _resultobj
= Py_BuildValue("s",_ptemp
);
671 _resultobj
= Py_None
;
676 static void *SwigwxGIFHandlerTowxImageHandler(void *ptr
) {
678 wxImageHandler
*dest
;
679 src
= (wxGIFHandler
*) ptr
;
680 dest
= (wxImageHandler
*) src
;
681 return (void *) dest
;
684 #define new_wxGIFHandler() (new wxGIFHandler())
685 static PyObject
*_wrap_new_wxGIFHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
686 PyObject
* _resultobj
;
687 wxGIFHandler
* _result
;
688 char *_kwnames
[] = { NULL
};
692 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxGIFHandler",_kwnames
))
695 wxPy_BEGIN_ALLOW_THREADS
;
696 _result
= (wxGIFHandler
*)new_wxGIFHandler();
698 wxPy_END_ALLOW_THREADS
;
700 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxGIFHandler_p");
701 _resultobj
= Py_BuildValue("s",_ptemp
);
704 _resultobj
= Py_None
;
709 static void *SwigwxPNMHandlerTowxImageHandler(void *ptr
) {
711 wxImageHandler
*dest
;
712 src
= (wxPNMHandler
*) ptr
;
713 dest
= (wxImageHandler
*) src
;
714 return (void *) dest
;
717 #define new_wxPNMHandler() (new wxPNMHandler())
718 static PyObject
*_wrap_new_wxPNMHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
719 PyObject
* _resultobj
;
720 wxPNMHandler
* _result
;
721 char *_kwnames
[] = { NULL
};
725 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxPNMHandler",_kwnames
))
728 wxPy_BEGIN_ALLOW_THREADS
;
729 _result
= (wxPNMHandler
*)new_wxPNMHandler();
731 wxPy_END_ALLOW_THREADS
;
733 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPNMHandler_p");
734 _resultobj
= Py_BuildValue("s",_ptemp
);
737 _resultobj
= Py_None
;
742 static void *SwigwxPCXHandlerTowxImageHandler(void *ptr
) {
744 wxImageHandler
*dest
;
745 src
= (wxPCXHandler
*) ptr
;
746 dest
= (wxImageHandler
*) src
;
747 return (void *) dest
;
750 #define new_wxPCXHandler() (new wxPCXHandler())
751 static PyObject
*_wrap_new_wxPCXHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
752 PyObject
* _resultobj
;
753 wxPCXHandler
* _result
;
754 char *_kwnames
[] = { NULL
};
758 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxPCXHandler",_kwnames
))
761 wxPy_BEGIN_ALLOW_THREADS
;
762 _result
= (wxPCXHandler
*)new_wxPCXHandler();
764 wxPy_END_ALLOW_THREADS
;
766 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPCXHandler_p");
767 _resultobj
= Py_BuildValue("s",_ptemp
);
770 _resultobj
= Py_None
;
775 #define new_wxImage(_swigarg0,_swigarg1) (new wxImage(_swigarg0,_swigarg1))
776 static PyObject
*_wrap_new_wxImage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
777 PyObject
* _resultobj
;
780 long _arg1
= (long ) wxBITMAP_TYPE_PNG
;
781 PyObject
* _obj0
= 0;
782 char *_kwnames
[] = { "name","type", NULL
};
786 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|l:new_wxImage",_kwnames
,&_obj0
,&_arg1
))
789 if (!PyString_Check(_obj0
)) {
790 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
793 _arg0
= new wxString(PyString_AsString(_obj0
), PyString_Size(_obj0
));
796 wxPy_BEGIN_ALLOW_THREADS
;
797 _result
= (wxImage
*)new_wxImage(*_arg0
,_arg1
);
799 wxPy_END_ALLOW_THREADS
;
801 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImage_p");
802 _resultobj
= Py_BuildValue("s",_ptemp
);
805 _resultobj
= Py_None
;
814 #define delete_wxImage(_swigobj) (delete _swigobj)
815 static PyObject
*_wrap_delete_wxImage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
816 PyObject
* _resultobj
;
818 PyObject
* _argo0
= 0;
819 char *_kwnames
[] = { "self", NULL
};
822 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxImage",_kwnames
,&_argo0
))
825 if (_argo0
== Py_None
) { _arg0
= NULL
; }
826 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
827 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxImage. Expected _wxImage_p.");
832 wxPy_BEGIN_ALLOW_THREADS
;
833 delete_wxImage(_arg0
);
835 wxPy_END_ALLOW_THREADS
;
836 } Py_INCREF(Py_None
);
837 _resultobj
= Py_None
;
841 #define wxImage_ConvertToBitmap(_swigobj) (_swigobj->ConvertToBitmap())
842 static PyObject
*_wrap_wxImage_ConvertToBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
843 PyObject
* _resultobj
;
846 PyObject
* _argo0
= 0;
847 char *_kwnames
[] = { "self", NULL
};
851 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_ConvertToBitmap",_kwnames
,&_argo0
))
854 if (_argo0
== Py_None
) { _arg0
= NULL
; }
855 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
856 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_ConvertToBitmap. Expected _wxImage_p.");
861 wxPy_BEGIN_ALLOW_THREADS
;
862 _result
= new wxBitmap (wxImage_ConvertToBitmap(_arg0
));
864 wxPy_END_ALLOW_THREADS
;
865 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBitmap_p");
866 _resultobj
= Py_BuildValue("s",_ptemp
);
870 #define wxImage_Create(_swigobj,_swigarg0,_swigarg1) (_swigobj->Create(_swigarg0,_swigarg1))
871 static PyObject
*_wrap_wxImage_Create(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
872 PyObject
* _resultobj
;
876 PyObject
* _argo0
= 0;
877 char *_kwnames
[] = { "self","width","height", NULL
};
880 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxImage_Create",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
883 if (_argo0
== Py_None
) { _arg0
= NULL
; }
884 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
885 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_Create. Expected _wxImage_p.");
890 wxPy_BEGIN_ALLOW_THREADS
;
891 wxImage_Create(_arg0
,_arg1
,_arg2
);
893 wxPy_END_ALLOW_THREADS
;
894 } Py_INCREF(Py_None
);
895 _resultobj
= Py_None
;
899 #define wxImage_Destroy(_swigobj) (_swigobj->Destroy())
900 static PyObject
*_wrap_wxImage_Destroy(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
901 PyObject
* _resultobj
;
903 PyObject
* _argo0
= 0;
904 char *_kwnames
[] = { "self", NULL
};
907 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_Destroy",_kwnames
,&_argo0
))
910 if (_argo0
== Py_None
) { _arg0
= NULL
; }
911 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
912 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_Destroy. Expected _wxImage_p.");
917 wxPy_BEGIN_ALLOW_THREADS
;
918 wxImage_Destroy(_arg0
);
920 wxPy_END_ALLOW_THREADS
;
921 } Py_INCREF(Py_None
);
922 _resultobj
= Py_None
;
926 #define wxImage_Scale(_swigobj,_swigarg0,_swigarg1) (_swigobj->Scale(_swigarg0,_swigarg1))
927 static PyObject
*_wrap_wxImage_Scale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
928 PyObject
* _resultobj
;
933 PyObject
* _argo0
= 0;
934 char *_kwnames
[] = { "self","width","height", NULL
};
938 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxImage_Scale",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
941 if (_argo0
== Py_None
) { _arg0
= NULL
; }
942 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
943 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_Scale. Expected _wxImage_p.");
948 wxPy_BEGIN_ALLOW_THREADS
;
949 _result
= new wxImage (wxImage_Scale(_arg0
,_arg1
,_arg2
));
951 wxPy_END_ALLOW_THREADS
;
952 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxImage_p");
953 _resultobj
= Py_BuildValue("s",_ptemp
);
957 #define wxImage_Rescale(_swigobj,_swigarg0,_swigarg1) (_swigobj->Rescale(_swigarg0,_swigarg1))
958 static PyObject
*_wrap_wxImage_Rescale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
959 PyObject
* _resultobj
;
963 PyObject
* _argo0
= 0;
964 char *_kwnames
[] = { "self","width","height", NULL
};
967 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxImage_Rescale",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
970 if (_argo0
== Py_None
) { _arg0
= NULL
; }
971 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
972 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_Rescale. Expected _wxImage_p.");
977 wxPy_BEGIN_ALLOW_THREADS
;
978 wxImage_Rescale(_arg0
,_arg1
,_arg2
);
980 wxPy_END_ALLOW_THREADS
;
981 } Py_INCREF(Py_None
);
982 _resultobj
= Py_None
;
986 #define wxImage_SetRGB(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetRGB(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
987 static PyObject
*_wrap_wxImage_SetRGB(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
988 PyObject
* _resultobj
;
995 PyObject
* _argo0
= 0;
996 char *_kwnames
[] = { "self","x","y","r","g","b", NULL
};
999 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiibbb:wxImage_SetRGB",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
))
1002 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1003 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1004 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_SetRGB. Expected _wxImage_p.");
1009 wxPy_BEGIN_ALLOW_THREADS
;
1010 wxImage_SetRGB(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
1012 wxPy_END_ALLOW_THREADS
;
1013 } Py_INCREF(Py_None
);
1014 _resultobj
= Py_None
;
1018 #define wxImage_GetRed(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetRed(_swigarg0,_swigarg1))
1019 static PyObject
*_wrap_wxImage_GetRed(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1020 PyObject
* _resultobj
;
1021 unsigned char _result
;
1025 PyObject
* _argo0
= 0;
1026 char *_kwnames
[] = { "self","x","y", NULL
};
1029 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxImage_GetRed",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
1032 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1033 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1034 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetRed. Expected _wxImage_p.");
1039 wxPy_BEGIN_ALLOW_THREADS
;
1040 _result
= (unsigned char )wxImage_GetRed(_arg0
,_arg1
,_arg2
);
1042 wxPy_END_ALLOW_THREADS
;
1043 } _resultobj
= Py_BuildValue("b",_result
);
1047 #define wxImage_GetGreen(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetGreen(_swigarg0,_swigarg1))
1048 static PyObject
*_wrap_wxImage_GetGreen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1049 PyObject
* _resultobj
;
1050 unsigned char _result
;
1054 PyObject
* _argo0
= 0;
1055 char *_kwnames
[] = { "self","x","y", NULL
};
1058 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxImage_GetGreen",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
1061 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1062 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1063 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetGreen. Expected _wxImage_p.");
1068 wxPy_BEGIN_ALLOW_THREADS
;
1069 _result
= (unsigned char )wxImage_GetGreen(_arg0
,_arg1
,_arg2
);
1071 wxPy_END_ALLOW_THREADS
;
1072 } _resultobj
= Py_BuildValue("b",_result
);
1076 #define wxImage_GetBlue(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetBlue(_swigarg0,_swigarg1))
1077 static PyObject
*_wrap_wxImage_GetBlue(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1078 PyObject
* _resultobj
;
1079 unsigned char _result
;
1083 PyObject
* _argo0
= 0;
1084 char *_kwnames
[] = { "self","x","y", NULL
};
1087 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxImage_GetBlue",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
1090 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1091 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1092 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetBlue. Expected _wxImage_p.");
1097 wxPy_BEGIN_ALLOW_THREADS
;
1098 _result
= (unsigned char )wxImage_GetBlue(_arg0
,_arg1
,_arg2
);
1100 wxPy_END_ALLOW_THREADS
;
1101 } _resultobj
= Py_BuildValue("b",_result
);
1105 #define wxImage_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1))
1106 static PyObject
*_wrap_wxImage_LoadFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1107 PyObject
* _resultobj
;
1111 long _arg2
= (long ) wxBITMAP_TYPE_PNG
;
1112 PyObject
* _argo0
= 0;
1113 PyObject
* _obj1
= 0;
1114 char *_kwnames
[] = { "self","name","type", NULL
};
1117 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|l:wxImage_LoadFile",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
1120 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1121 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1122 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_LoadFile. Expected _wxImage_p.");
1127 if (!PyString_Check(_obj1
)) {
1128 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1131 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
1134 wxPy_BEGIN_ALLOW_THREADS
;
1135 _result
= (bool )wxImage_LoadFile(_arg0
,*_arg1
,_arg2
);
1137 wxPy_END_ALLOW_THREADS
;
1138 } _resultobj
= Py_BuildValue("i",_result
);
1146 #define wxImage_LoadMimeFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1))
1147 static PyObject
*_wrap_wxImage_LoadMimeFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1148 PyObject
* _resultobj
;
1153 PyObject
* _argo0
= 0;
1154 PyObject
* _obj1
= 0;
1155 PyObject
* _obj2
= 0;
1156 char *_kwnames
[] = { "self","name","mimetype", NULL
};
1159 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxImage_LoadMimeFile",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
1162 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1163 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1164 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_LoadMimeFile. Expected _wxImage_p.");
1169 if (!PyString_Check(_obj1
)) {
1170 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1173 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
1176 if (!PyString_Check(_obj2
)) {
1177 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1180 _arg2
= new wxString(PyString_AsString(_obj2
), PyString_Size(_obj2
));
1183 wxPy_BEGIN_ALLOW_THREADS
;
1184 _result
= (bool )wxImage_LoadMimeFile(_arg0
,*_arg1
,*_arg2
);
1186 wxPy_END_ALLOW_THREADS
;
1187 } _resultobj
= Py_BuildValue("i",_result
);
1199 #define wxImage_SaveFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->SaveFile(_swigarg0,_swigarg1))
1200 static PyObject
*_wrap_wxImage_SaveFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1201 PyObject
* _resultobj
;
1206 PyObject
* _argo0
= 0;
1207 PyObject
* _obj1
= 0;
1208 char *_kwnames
[] = { "self","name","type", NULL
};
1211 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi:wxImage_SaveFile",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
1214 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1215 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1216 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_SaveFile. Expected _wxImage_p.");
1221 if (!PyString_Check(_obj1
)) {
1222 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1225 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
1228 wxPy_BEGIN_ALLOW_THREADS
;
1229 _result
= (bool )wxImage_SaveFile(_arg0
,*_arg1
,_arg2
);
1231 wxPy_END_ALLOW_THREADS
;
1232 } _resultobj
= Py_BuildValue("i",_result
);
1240 #define wxImage_SaveMimeFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->SaveFile(_swigarg0,_swigarg1))
1241 static PyObject
*_wrap_wxImage_SaveMimeFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1242 PyObject
* _resultobj
;
1247 PyObject
* _argo0
= 0;
1248 PyObject
* _obj1
= 0;
1249 PyObject
* _obj2
= 0;
1250 char *_kwnames
[] = { "self","name","mimetype", NULL
};
1253 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxImage_SaveMimeFile",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
1256 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1257 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1258 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_SaveMimeFile. Expected _wxImage_p.");
1263 if (!PyString_Check(_obj1
)) {
1264 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1267 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
1270 if (!PyString_Check(_obj2
)) {
1271 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1274 _arg2
= new wxString(PyString_AsString(_obj2
), PyString_Size(_obj2
));
1277 wxPy_BEGIN_ALLOW_THREADS
;
1278 _result
= (bool )wxImage_SaveMimeFile(_arg0
,*_arg1
,*_arg2
);
1280 wxPy_END_ALLOW_THREADS
;
1281 } _resultobj
= Py_BuildValue("i",_result
);
1293 #define wxImage_Ok(_swigobj) (_swigobj->Ok())
1294 static PyObject
*_wrap_wxImage_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1295 PyObject
* _resultobj
;
1298 PyObject
* _argo0
= 0;
1299 char *_kwnames
[] = { "self", NULL
};
1302 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_Ok",_kwnames
,&_argo0
))
1305 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1306 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1307 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_Ok. Expected _wxImage_p.");
1312 wxPy_BEGIN_ALLOW_THREADS
;
1313 _result
= (bool )wxImage_Ok(_arg0
);
1315 wxPy_END_ALLOW_THREADS
;
1316 } _resultobj
= Py_BuildValue("i",_result
);
1320 #define wxImage_GetWidth(_swigobj) (_swigobj->GetWidth())
1321 static PyObject
*_wrap_wxImage_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1322 PyObject
* _resultobj
;
1325 PyObject
* _argo0
= 0;
1326 char *_kwnames
[] = { "self", NULL
};
1329 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_GetWidth",_kwnames
,&_argo0
))
1332 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1333 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1334 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetWidth. Expected _wxImage_p.");
1339 wxPy_BEGIN_ALLOW_THREADS
;
1340 _result
= (int )wxImage_GetWidth(_arg0
);
1342 wxPy_END_ALLOW_THREADS
;
1343 } _resultobj
= Py_BuildValue("i",_result
);
1347 #define wxImage_GetHeight(_swigobj) (_swigobj->GetHeight())
1348 static PyObject
*_wrap_wxImage_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1349 PyObject
* _resultobj
;
1352 PyObject
* _argo0
= 0;
1353 char *_kwnames
[] = { "self", NULL
};
1356 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_GetHeight",_kwnames
,&_argo0
))
1359 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1360 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1361 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetHeight. Expected _wxImage_p.");
1366 wxPy_BEGIN_ALLOW_THREADS
;
1367 _result
= (int )wxImage_GetHeight(_arg0
);
1369 wxPy_END_ALLOW_THREADS
;
1370 } _resultobj
= Py_BuildValue("i",_result
);
1374 static PyObject
* wxImage_GetData(wxImage
*self
) {
1375 unsigned char* data
= self
->GetData();
1376 int len
= self
->GetWidth() * self
->GetHeight() * 3;
1377 return PyString_FromStringAndSize((char*)data
, len
);
1379 static PyObject
*_wrap_wxImage_GetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1380 PyObject
* _resultobj
;
1383 PyObject
* _argo0
= 0;
1384 char *_kwnames
[] = { "self", NULL
};
1387 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_GetData",_kwnames
,&_argo0
))
1390 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1391 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1392 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetData. Expected _wxImage_p.");
1397 wxPy_BEGIN_ALLOW_THREADS
;
1398 _result
= (PyObject
*)wxImage_GetData(_arg0
);
1400 wxPy_END_ALLOW_THREADS
;
1402 _resultobj
= _result
;
1407 static void wxImage_SetData(wxImage
*self
,PyObject
* data
) {
1408 unsigned char* dataPtr
;
1410 if (! PyString_Check(data
)) {
1411 PyErr_SetString(PyExc_TypeError
, "Expected string object");
1414 dataPtr
= (unsigned char*)PyString_AsString(data
);
1415 self
->SetData(dataPtr
);
1417 static PyObject
*_wrap_wxImage_SetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1418 PyObject
* _resultobj
;
1421 PyObject
* _argo0
= 0;
1422 PyObject
* _obj1
= 0;
1423 char *_kwnames
[] = { "self","data", NULL
};
1426 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImage_SetData",_kwnames
,&_argo0
,&_obj1
))
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_SetData. Expected _wxImage_p.");
1439 wxPy_BEGIN_ALLOW_THREADS
;
1440 wxImage_SetData(_arg0
,_arg1
);
1442 wxPy_END_ALLOW_THREADS
;
1443 } Py_INCREF(Py_None
);
1444 _resultobj
= Py_None
;
1448 #define wxImage_SetMaskColour(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetMaskColour(_swigarg0,_swigarg1,_swigarg2))
1449 static PyObject
*_wrap_wxImage_SetMaskColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1450 PyObject
* _resultobj
;
1452 unsigned char _arg1
;
1453 unsigned char _arg2
;
1454 unsigned char _arg3
;
1455 PyObject
* _argo0
= 0;
1456 char *_kwnames
[] = { "self","r","g","b", NULL
};
1459 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Obbb:wxImage_SetMaskColour",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
1462 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1463 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1464 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_SetMaskColour. Expected _wxImage_p.");
1469 wxPy_BEGIN_ALLOW_THREADS
;
1470 wxImage_SetMaskColour(_arg0
,_arg1
,_arg2
,_arg3
);
1472 wxPy_END_ALLOW_THREADS
;
1473 } Py_INCREF(Py_None
);
1474 _resultobj
= Py_None
;
1478 #define wxImage_GetMaskRed(_swigobj) (_swigobj->GetMaskRed())
1479 static PyObject
*_wrap_wxImage_GetMaskRed(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1480 PyObject
* _resultobj
;
1481 unsigned char _result
;
1483 PyObject
* _argo0
= 0;
1484 char *_kwnames
[] = { "self", NULL
};
1487 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_GetMaskRed",_kwnames
,&_argo0
))
1490 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1491 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1492 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetMaskRed. Expected _wxImage_p.");
1497 wxPy_BEGIN_ALLOW_THREADS
;
1498 _result
= (unsigned char )wxImage_GetMaskRed(_arg0
);
1500 wxPy_END_ALLOW_THREADS
;
1501 } _resultobj
= Py_BuildValue("b",_result
);
1505 #define wxImage_GetMaskGreen(_swigobj) (_swigobj->GetMaskGreen())
1506 static PyObject
*_wrap_wxImage_GetMaskGreen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1507 PyObject
* _resultobj
;
1508 unsigned char _result
;
1510 PyObject
* _argo0
= 0;
1511 char *_kwnames
[] = { "self", NULL
};
1514 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_GetMaskGreen",_kwnames
,&_argo0
))
1517 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1518 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1519 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetMaskGreen. Expected _wxImage_p.");
1524 wxPy_BEGIN_ALLOW_THREADS
;
1525 _result
= (unsigned char )wxImage_GetMaskGreen(_arg0
);
1527 wxPy_END_ALLOW_THREADS
;
1528 } _resultobj
= Py_BuildValue("b",_result
);
1532 #define wxImage_GetMaskBlue(_swigobj) (_swigobj->GetMaskBlue())
1533 static PyObject
*_wrap_wxImage_GetMaskBlue(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1534 PyObject
* _resultobj
;
1535 unsigned char _result
;
1537 PyObject
* _argo0
= 0;
1538 char *_kwnames
[] = { "self", NULL
};
1541 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_GetMaskBlue",_kwnames
,&_argo0
))
1544 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1545 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1546 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetMaskBlue. Expected _wxImage_p.");
1551 wxPy_BEGIN_ALLOW_THREADS
;
1552 _result
= (unsigned char )wxImage_GetMaskBlue(_arg0
);
1554 wxPy_END_ALLOW_THREADS
;
1555 } _resultobj
= Py_BuildValue("b",_result
);
1559 #define wxImage_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0))
1560 static PyObject
*_wrap_wxImage_SetMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1561 PyObject
* _resultobj
;
1563 bool _arg1
= (bool ) TRUE
;
1564 PyObject
* _argo0
= 0;
1565 int tempbool1
= (int) TRUE
;
1566 char *_kwnames
[] = { "self","mask", NULL
};
1569 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxImage_SetMask",_kwnames
,&_argo0
,&tempbool1
))
1572 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1573 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1574 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_SetMask. Expected _wxImage_p.");
1578 _arg1
= (bool ) tempbool1
;
1580 wxPy_BEGIN_ALLOW_THREADS
;
1581 wxImage_SetMask(_arg0
,_arg1
);
1583 wxPy_END_ALLOW_THREADS
;
1584 } Py_INCREF(Py_None
);
1585 _resultobj
= Py_None
;
1589 #define wxImage_HasMask(_swigobj) (_swigobj->HasMask())
1590 static PyObject
*_wrap_wxImage_HasMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1591 PyObject
* _resultobj
;
1594 PyObject
* _argo0
= 0;
1595 char *_kwnames
[] = { "self", NULL
};
1598 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_HasMask",_kwnames
,&_argo0
))
1601 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1602 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1603 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_HasMask. Expected _wxImage_p.");
1608 wxPy_BEGIN_ALLOW_THREADS
;
1609 _result
= (bool )wxImage_HasMask(_arg0
);
1611 wxPy_END_ALLOW_THREADS
;
1612 } _resultobj
= Py_BuildValue("i",_result
);
1616 static PyMethodDef imagecMethods
[] = {
1617 { "wxImage_HasMask", (PyCFunction
) _wrap_wxImage_HasMask
, METH_VARARGS
| METH_KEYWORDS
},
1618 { "wxImage_SetMask", (PyCFunction
) _wrap_wxImage_SetMask
, METH_VARARGS
| METH_KEYWORDS
},
1619 { "wxImage_GetMaskBlue", (PyCFunction
) _wrap_wxImage_GetMaskBlue
, METH_VARARGS
| METH_KEYWORDS
},
1620 { "wxImage_GetMaskGreen", (PyCFunction
) _wrap_wxImage_GetMaskGreen
, METH_VARARGS
| METH_KEYWORDS
},
1621 { "wxImage_GetMaskRed", (PyCFunction
) _wrap_wxImage_GetMaskRed
, METH_VARARGS
| METH_KEYWORDS
},
1622 { "wxImage_SetMaskColour", (PyCFunction
) _wrap_wxImage_SetMaskColour
, METH_VARARGS
| METH_KEYWORDS
},
1623 { "wxImage_SetData", (PyCFunction
) _wrap_wxImage_SetData
, METH_VARARGS
| METH_KEYWORDS
},
1624 { "wxImage_GetData", (PyCFunction
) _wrap_wxImage_GetData
, METH_VARARGS
| METH_KEYWORDS
},
1625 { "wxImage_GetHeight", (PyCFunction
) _wrap_wxImage_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
1626 { "wxImage_GetWidth", (PyCFunction
) _wrap_wxImage_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
1627 { "wxImage_Ok", (PyCFunction
) _wrap_wxImage_Ok
, METH_VARARGS
| METH_KEYWORDS
},
1628 { "wxImage_SaveMimeFile", (PyCFunction
) _wrap_wxImage_SaveMimeFile
, METH_VARARGS
| METH_KEYWORDS
},
1629 { "wxImage_SaveFile", (PyCFunction
) _wrap_wxImage_SaveFile
, METH_VARARGS
| METH_KEYWORDS
},
1630 { "wxImage_LoadMimeFile", (PyCFunction
) _wrap_wxImage_LoadMimeFile
, METH_VARARGS
| METH_KEYWORDS
},
1631 { "wxImage_LoadFile", (PyCFunction
) _wrap_wxImage_LoadFile
, METH_VARARGS
| METH_KEYWORDS
},
1632 { "wxImage_GetBlue", (PyCFunction
) _wrap_wxImage_GetBlue
, METH_VARARGS
| METH_KEYWORDS
},
1633 { "wxImage_GetGreen", (PyCFunction
) _wrap_wxImage_GetGreen
, METH_VARARGS
| METH_KEYWORDS
},
1634 { "wxImage_GetRed", (PyCFunction
) _wrap_wxImage_GetRed
, METH_VARARGS
| METH_KEYWORDS
},
1635 { "wxImage_SetRGB", (PyCFunction
) _wrap_wxImage_SetRGB
, METH_VARARGS
| METH_KEYWORDS
},
1636 { "wxImage_Rescale", (PyCFunction
) _wrap_wxImage_Rescale
, METH_VARARGS
| METH_KEYWORDS
},
1637 { "wxImage_Scale", (PyCFunction
) _wrap_wxImage_Scale
, METH_VARARGS
| METH_KEYWORDS
},
1638 { "wxImage_Destroy", (PyCFunction
) _wrap_wxImage_Destroy
, METH_VARARGS
| METH_KEYWORDS
},
1639 { "wxImage_Create", (PyCFunction
) _wrap_wxImage_Create
, METH_VARARGS
| METH_KEYWORDS
},
1640 { "wxImage_ConvertToBitmap", (PyCFunction
) _wrap_wxImage_ConvertToBitmap
, METH_VARARGS
| METH_KEYWORDS
},
1641 { "delete_wxImage", (PyCFunction
) _wrap_delete_wxImage
, METH_VARARGS
| METH_KEYWORDS
},
1642 { "new_wxImage", (PyCFunction
) _wrap_new_wxImage
, METH_VARARGS
| METH_KEYWORDS
},
1643 { "new_wxPCXHandler", (PyCFunction
) _wrap_new_wxPCXHandler
, METH_VARARGS
| METH_KEYWORDS
},
1644 { "new_wxPNMHandler", (PyCFunction
) _wrap_new_wxPNMHandler
, METH_VARARGS
| METH_KEYWORDS
},
1645 { "new_wxGIFHandler", (PyCFunction
) _wrap_new_wxGIFHandler
, METH_VARARGS
| METH_KEYWORDS
},
1646 { "new_wxBMPHandler", (PyCFunction
) _wrap_new_wxBMPHandler
, METH_VARARGS
| METH_KEYWORDS
},
1647 { "new_wxJPEGHandler", (PyCFunction
) _wrap_new_wxJPEGHandler
, METH_VARARGS
| METH_KEYWORDS
},
1648 { "new_wxPNGHandler", (PyCFunction
) _wrap_new_wxPNGHandler
, METH_VARARGS
| METH_KEYWORDS
},
1649 { "wxImageHandler_SetMimeType", (PyCFunction
) _wrap_wxImageHandler_SetMimeType
, METH_VARARGS
| METH_KEYWORDS
},
1650 { "wxImageHandler_SetType", (PyCFunction
) _wrap_wxImageHandler_SetType
, METH_VARARGS
| METH_KEYWORDS
},
1651 { "wxImageHandler_SetExtension", (PyCFunction
) _wrap_wxImageHandler_SetExtension
, METH_VARARGS
| METH_KEYWORDS
},
1652 { "wxImageHandler_SetName", (PyCFunction
) _wrap_wxImageHandler_SetName
, METH_VARARGS
| METH_KEYWORDS
},
1653 { "wxImageHandler_GetMimeType", (PyCFunction
) _wrap_wxImageHandler_GetMimeType
, METH_VARARGS
| METH_KEYWORDS
},
1654 { "wxImageHandler_GetType", (PyCFunction
) _wrap_wxImageHandler_GetType
, METH_VARARGS
| METH_KEYWORDS
},
1655 { "wxImageHandler_GetExtension", (PyCFunction
) _wrap_wxImageHandler_GetExtension
, METH_VARARGS
| METH_KEYWORDS
},
1656 { "wxImageHandler_GetName", (PyCFunction
) _wrap_wxImageHandler_GetName
, METH_VARARGS
| METH_KEYWORDS
},
1657 { "wxInitAllImageHandlers", (PyCFunction
) _wrap_wxInitAllImageHandlers
, METH_VARARGS
| METH_KEYWORDS
},
1658 { "wxImage_AddHandler", (PyCFunction
) _wrap_wxImage_AddHandler
, METH_VARARGS
| METH_KEYWORDS
},
1659 { "wxImageFromBitmap", (PyCFunction
) _wrap_wxImageFromBitmap
, METH_VARARGS
| METH_KEYWORDS
},
1660 { "wxImageFromMime", (PyCFunction
) _wrap_wxImageFromMime
, METH_VARARGS
| METH_KEYWORDS
},
1661 { "wxEmptyImage", (PyCFunction
) _wrap_wxEmptyImage
, METH_VARARGS
| METH_KEYWORDS
},
1662 { "wxNullImage", (PyCFunction
) _wrap_wxNullImage
, METH_VARARGS
| METH_KEYWORDS
},
1669 * This table is used by the pointer type-checker
1671 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
1672 { "_wxAcceleratorTable","_class_wxAcceleratorTable",0},
1673 { "_signed_long","_long",0},
1674 { "_class_wxJPEGHandler","_wxJPEGHandler",0},
1675 { "_wxBMPHandler","_class_wxBMPHandler",0},
1676 { "_wxImage","_class_wxImage",0},
1677 { "_wxPrintQuality","_int",0},
1678 { "_wxPrintQuality","_signed_int",0},
1679 { "_wxPrintQuality","_unsigned_int",0},
1680 { "_wxPrintQuality","_wxWindowID",0},
1681 { "_wxPrintQuality","_uint",0},
1682 { "_wxPrintQuality","_EBool",0},
1683 { "_wxPrintQuality","_size_t",0},
1684 { "_class_wxRegionIterator","_wxRegionIterator",0},
1685 { "_wxGIFHandler","_class_wxGIFHandler",0},
1686 { "_wxIndividualLayoutConstraint","_class_wxIndividualLayoutConstraint",0},
1687 { "_wxCursor","_class_wxCursor",0},
1688 { "_wxImageHandler","_class_wxPCXHandler",SwigwxPCXHandlerTowxImageHandler
},
1689 { "_wxImageHandler","_wxPCXHandler",SwigwxPCXHandlerTowxImageHandler
},
1690 { "_wxImageHandler","_class_wxPNMHandler",SwigwxPNMHandlerTowxImageHandler
},
1691 { "_wxImageHandler","_wxPNMHandler",SwigwxPNMHandlerTowxImageHandler
},
1692 { "_wxImageHandler","_class_wxGIFHandler",SwigwxGIFHandlerTowxImageHandler
},
1693 { "_wxImageHandler","_wxGIFHandler",SwigwxGIFHandlerTowxImageHandler
},
1694 { "_wxImageHandler","_class_wxBMPHandler",SwigwxBMPHandlerTowxImageHandler
},
1695 { "_wxImageHandler","_wxBMPHandler",SwigwxBMPHandlerTowxImageHandler
},
1696 { "_wxImageHandler","_class_wxJPEGHandler",SwigwxJPEGHandlerTowxImageHandler
},
1697 { "_wxImageHandler","_wxJPEGHandler",SwigwxJPEGHandlerTowxImageHandler
},
1698 { "_wxImageHandler","_class_wxPNGHandler",SwigwxPNGHandlerTowxImageHandler
},
1699 { "_wxImageHandler","_wxPNGHandler",SwigwxPNGHandlerTowxImageHandler
},
1700 { "_wxImageHandler","_class_wxImageHandler",0},
1701 { "_wxMask","_class_wxMask",0},
1702 { "_wxPNGHandler","_class_wxPNGHandler",0},
1703 { "_wxPen","_class_wxPen",0},
1704 { "_byte","_unsigned_char",0},
1705 { "_long","_wxDash",0},
1706 { "_long","_unsigned_long",0},
1707 { "_long","_signed_long",0},
1708 { "_wxImageList","_class_wxImageList",0},
1709 { "_class_wxAcceleratorTable","_wxAcceleratorTable",0},
1710 { "_wxDC","_class_wxDC",0},
1711 { "_class_wxBMPHandler","_wxBMPHandler",0},
1712 { "_size_t","_wxPrintQuality",0},
1713 { "_size_t","_unsigned_int",0},
1714 { "_size_t","_int",0},
1715 { "_size_t","_wxWindowID",0},
1716 { "_size_t","_uint",0},
1717 { "_class_wxRealPoint","_wxRealPoint",0},
1718 { "_wxPNMHandler","_class_wxPNMHandler",0},
1719 { "_class_wxGIFHandler","_wxGIFHandler",0},
1720 { "_class_wxPostScriptDC","_wxPostScriptDC",0},
1721 { "_class_wxMask","_wxMask",0},
1722 { "_class_wxPNGHandler","_wxPNGHandler",0},
1723 { "_wxColour","_class_wxColour",0},
1724 { "_wxBrush","_class_wxBrush",0},
1725 { "_uint","_wxPrintQuality",0},
1726 { "_uint","_size_t",0},
1727 { "_uint","_unsigned_int",0},
1728 { "_uint","_int",0},
1729 { "_uint","_wxWindowID",0},
1730 { "_wxRect","_class_wxRect",0},
1731 { "_class_wxImage","_wxImage",0},
1732 { "_wxPoint","_class_wxPoint",0},
1733 { "_class_wxPNMHandler","_wxPNMHandler",0},
1734 { "_wxBitmap","_class_wxBitmap",0},
1735 { "_wxPyTimer","_class_wxPyTimer",0},
1736 { "_wxWindowDC","_class_wxWindowDC",0},
1737 { "_class_wxIndividualLayoutConstraint","_wxIndividualLayoutConstraint",0},
1738 { "_EBool","_wxPrintQuality",0},
1739 { "_EBool","_signed_int",0},
1740 { "_EBool","_int",0},
1741 { "_EBool","_wxWindowID",0},
1742 { "_class_wxRegion","_wxRegion",0},
1743 { "_wxFont","_class_wxFont",0},
1744 { "_unsigned_long","_wxDash",0},
1745 { "_unsigned_long","_long",0},
1746 { "_class_wxRect","_wxRect",0},
1747 { "_class_wxDC","_wxDC",0},
1748 { "_class_wxPyTimer","_wxPyTimer",0},
1749 { "_wxAcceleratorEntry","_class_wxAcceleratorEntry",0},
1750 { "_signed_int","_wxPrintQuality",0},
1751 { "_signed_int","_EBool",0},
1752 { "_signed_int","_wxWindowID",0},
1753 { "_signed_int","_int",0},
1754 { "_wxLayoutConstraints","_class_wxLayoutConstraints",0},
1755 { "_wxScreenDC","_class_wxScreenDC",0},
1756 { "_WXTYPE","_short",0},
1757 { "_WXTYPE","_signed_short",0},
1758 { "_WXTYPE","_unsigned_short",0},
1759 { "_class_wxBrush","_wxBrush",0},
1760 { "_unsigned_short","_WXTYPE",0},
1761 { "_unsigned_short","_short",0},
1762 { "_class_wxFont","_wxFont",0},
1763 { "_wxClientDC","_class_wxClientDC",0},
1764 { "_class_wxPoint","_wxPoint",0},
1765 { "_wxRealPoint","_class_wxRealPoint",0},
1766 { "_signed_short","_WXTYPE",0},
1767 { "_signed_short","_short",0},
1768 { "_wxMemoryDC","_class_wxMemoryDC",0},
1769 { "_wxPaintDC","_class_wxPaintDC",0},
1770 { "_class_wxWindowDC","_wxWindowDC",0},
1771 { "_class_wxAcceleratorEntry","_wxAcceleratorEntry",0},
1772 { "_class_wxCursor","_wxCursor",0},
1773 { "_wxPostScriptDC","_class_wxPostScriptDC",0},
1774 { "_class_wxImageHandler","_class_wxPCXHandler",SwigwxPCXHandlerTowxImageHandler
},
1775 { "_class_wxImageHandler","_wxPCXHandler",SwigwxPCXHandlerTowxImageHandler
},
1776 { "_class_wxImageHandler","_class_wxPNMHandler",SwigwxPNMHandlerTowxImageHandler
},
1777 { "_class_wxImageHandler","_wxPNMHandler",SwigwxPNMHandlerTowxImageHandler
},
1778 { "_class_wxImageHandler","_class_wxGIFHandler",SwigwxGIFHandlerTowxImageHandler
},
1779 { "_class_wxImageHandler","_wxGIFHandler",SwigwxGIFHandlerTowxImageHandler
},
1780 { "_class_wxImageHandler","_class_wxBMPHandler",SwigwxBMPHandlerTowxImageHandler
},
1781 { "_class_wxImageHandler","_wxBMPHandler",SwigwxBMPHandlerTowxImageHandler
},
1782 { "_class_wxImageHandler","_class_wxJPEGHandler",SwigwxJPEGHandlerTowxImageHandler
},
1783 { "_class_wxImageHandler","_wxJPEGHandler",SwigwxJPEGHandlerTowxImageHandler
},
1784 { "_class_wxImageHandler","_class_wxPNGHandler",SwigwxPNGHandlerTowxImageHandler
},
1785 { "_class_wxImageHandler","_wxPNGHandler",SwigwxPNGHandlerTowxImageHandler
},
1786 { "_class_wxImageHandler","_wxImageHandler",0},
1787 { "_unsigned_char","_byte",0},
1788 { "_unsigned_int","_wxPrintQuality",0},
1789 { "_unsigned_int","_size_t",0},
1790 { "_unsigned_int","_uint",0},
1791 { "_unsigned_int","_wxWindowID",0},
1792 { "_unsigned_int","_int",0},
1793 { "_wxIcon","_class_wxIcon",0},
1794 { "_class_wxPen","_wxPen",0},
1795 { "_short","_WXTYPE",0},
1796 { "_short","_unsigned_short",0},
1797 { "_short","_signed_short",0},
1798 { "_class_wxImageList","_wxImageList",0},
1799 { "_wxPCXHandler","_class_wxPCXHandler",0},
1800 { "_wxJPEGHandler","_class_wxJPEGHandler",0},
1801 { "_wxWindowID","_wxPrintQuality",0},
1802 { "_wxWindowID","_size_t",0},
1803 { "_wxWindowID","_EBool",0},
1804 { "_wxWindowID","_uint",0},
1805 { "_wxWindowID","_int",0},
1806 { "_wxWindowID","_signed_int",0},
1807 { "_wxWindowID","_unsigned_int",0},
1808 { "_int","_wxPrintQuality",0},
1809 { "_int","_size_t",0},
1810 { "_int","_EBool",0},
1811 { "_int","_uint",0},
1812 { "_int","_wxWindowID",0},
1813 { "_int","_unsigned_int",0},
1814 { "_int","_signed_int",0},
1815 { "_wxSize","_class_wxSize",0},
1816 { "_wxRegionIterator","_class_wxRegionIterator",0},
1817 { "_class_wxPaintDC","_wxPaintDC",0},
1818 { "_class_wxLayoutConstraints","_wxLayoutConstraints",0},
1819 { "_class_wxIcon","_wxIcon",0},
1820 { "_class_wxColour","_wxColour",0},
1821 { "_class_wxScreenDC","_wxScreenDC",0},
1822 { "_wxPalette","_class_wxPalette",0},
1823 { "_wxRegion","_class_wxRegion",0},
1824 { "_class_wxPCXHandler","_wxPCXHandler",0},
1825 { "_class_wxClientDC","_wxClientDC",0},
1826 { "_class_wxSize","_wxSize",0},
1827 { "_class_wxBitmap","_wxBitmap",0},
1828 { "_class_wxMemoryDC","_wxMemoryDC",0},
1829 { "_wxDash","_unsigned_long",0},
1830 { "_wxDash","_long",0},
1831 { "_class_wxPalette","_wxPalette",0},
1834 static PyObject
*SWIG_globals
;
1838 SWIGEXPORT(void) initimagec() {
1840 SWIG_globals
= SWIG_newvarlink();
1841 m
= Py_InitModule("imagec", imagecMethods
);
1842 d
= PyModule_GetDict(m
);
1845 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
1846 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);