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
);
107 HELPEREXPORT byte
* byte_LIST_helper(PyObject
* source
);
108 HELPEREXPORT
int* int_LIST_helper(PyObject
* source
);
109 HELPEREXPORT
long* long_LIST_helper(PyObject
* source
);
110 HELPEREXPORT
char** string_LIST_helper(PyObject
* source
);
111 HELPEREXPORT wxPoint
* wxPoint_LIST_helper(PyObject
* source
);
112 HELPEREXPORT wxBitmap
** wxBitmap_LIST_helper(PyObject
* source
);
113 HELPEREXPORT wxString
* wxString_LIST_helper(PyObject
* source
);
114 HELPEREXPORT wxAcceleratorEntry
* wxAcceleratorEntry_LIST_helper(PyObject
* source
);
117 static char* wxStringErrorMsg
= "string type is required for parameter";
119 wxImage
* wxNullImage() {
123 wxImage
* wxEmptyImage(int width
, int height
) {
124 return new wxImage(width
, height
);
127 wxImage
* wxImageFromMime(const wxString
& name
, const wxString
& mimetype
) {
128 return new wxImage(name
, mimetype
);
131 wxImage
* wxImageFromBitmap(const wxBitmap
&bitmap
) {
132 return new wxImage(bitmap
);
135 void wxImage_AddHandler(wxImageHandler
*handler
) {
136 wxImage::AddHandler(handler
);
141 static PyObject
*_wrap_wxNullImage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
142 PyObject
* _resultobj
;
144 char *_kwnames
[] = { NULL
};
148 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxNullImage",_kwnames
))
151 wxPy_BEGIN_ALLOW_THREADS
;
152 _result
= (wxImage
*)wxNullImage();
154 wxPy_END_ALLOW_THREADS
;
156 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImage_p");
157 _resultobj
= Py_BuildValue("s",_ptemp
);
160 _resultobj
= Py_None
;
165 static PyObject
*_wrap_wxEmptyImage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
166 PyObject
* _resultobj
;
170 char *_kwnames
[] = { "width","height", NULL
};
174 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"ii:wxEmptyImage",_kwnames
,&_arg0
,&_arg1
))
177 wxPy_BEGIN_ALLOW_THREADS
;
178 _result
= (wxImage
*)wxEmptyImage(_arg0
,_arg1
);
180 wxPy_END_ALLOW_THREADS
;
182 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImage_p");
183 _resultobj
= Py_BuildValue("s",_ptemp
);
186 _resultobj
= Py_None
;
191 static PyObject
*_wrap_wxImageFromMime(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
192 PyObject
* _resultobj
;
196 PyObject
* _obj0
= 0;
197 PyObject
* _obj1
= 0;
198 char *_kwnames
[] = { "name","mimetype", NULL
};
202 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImageFromMime",_kwnames
,&_obj0
,&_obj1
))
205 if (!PyString_Check(_obj0
)) {
206 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
209 _arg0
= new wxString(PyString_AsString(_obj0
), PyString_Size(_obj0
));
212 if (!PyString_Check(_obj1
)) {
213 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
216 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
219 wxPy_BEGIN_ALLOW_THREADS
;
220 _result
= (wxImage
*)wxImageFromMime(*_arg0
,*_arg1
);
222 wxPy_END_ALLOW_THREADS
;
224 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImage_p");
225 _resultobj
= Py_BuildValue("s",_ptemp
);
228 _resultobj
= Py_None
;
241 static PyObject
*_wrap_wxImageFromBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
242 PyObject
* _resultobj
;
245 PyObject
* _argo0
= 0;
246 char *_kwnames
[] = { "bitmap", NULL
};
250 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageFromBitmap",_kwnames
,&_argo0
))
253 if (_argo0
== Py_None
) { _arg0
= NULL
; }
254 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxBitmap_p")) {
255 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageFromBitmap. Expected _wxBitmap_p.");
260 wxPy_BEGIN_ALLOW_THREADS
;
261 _result
= (wxImage
*)wxImageFromBitmap(*_arg0
);
263 wxPy_END_ALLOW_THREADS
;
265 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImage_p");
266 _resultobj
= Py_BuildValue("s",_ptemp
);
269 _resultobj
= Py_None
;
274 static PyObject
*_wrap_wxImage_AddHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
275 PyObject
* _resultobj
;
276 wxImageHandler
* _arg0
;
277 PyObject
* _argo0
= 0;
278 char *_kwnames
[] = { "handler", NULL
};
281 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_AddHandler",_kwnames
,&_argo0
))
284 if (_argo0
== Py_None
) { _arg0
= NULL
; }
285 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageHandler_p")) {
286 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_AddHandler. Expected _wxImageHandler_p.");
291 wxPy_BEGIN_ALLOW_THREADS
;
292 wxImage_AddHandler(_arg0
);
294 wxPy_END_ALLOW_THREADS
;
295 } Py_INCREF(Py_None
);
296 _resultobj
= Py_None
;
300 #define new_wxImageHandler() (new wxImageHandler())
301 static PyObject
*_wrap_new_wxImageHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
302 PyObject
* _resultobj
;
303 wxImageHandler
* _result
;
304 char *_kwnames
[] = { NULL
};
308 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxImageHandler",_kwnames
))
311 wxPy_BEGIN_ALLOW_THREADS
;
312 _result
= (wxImageHandler
*)new_wxImageHandler();
314 wxPy_END_ALLOW_THREADS
;
316 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImageHandler_p");
317 _resultobj
= Py_BuildValue("s",_ptemp
);
320 _resultobj
= Py_None
;
325 #define wxImageHandler_GetName(_swigobj) (_swigobj->GetName())
326 static PyObject
*_wrap_wxImageHandler_GetName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
327 PyObject
* _resultobj
;
329 wxImageHandler
* _arg0
;
330 PyObject
* _argo0
= 0;
331 char *_kwnames
[] = { "self", NULL
};
334 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageHandler_GetName",_kwnames
,&_argo0
))
337 if (_argo0
== Py_None
) { _arg0
= NULL
; }
338 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageHandler_p")) {
339 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageHandler_GetName. Expected _wxImageHandler_p.");
344 wxPy_BEGIN_ALLOW_THREADS
;
345 _result
= new wxString (wxImageHandler_GetName(_arg0
));
347 wxPy_END_ALLOW_THREADS
;
349 _resultobj
= PyString_FromString(WXSTRINGCAST
*(_result
));
357 #define wxImageHandler_GetExtension(_swigobj) (_swigobj->GetExtension())
358 static PyObject
*_wrap_wxImageHandler_GetExtension(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
359 PyObject
* _resultobj
;
361 wxImageHandler
* _arg0
;
362 PyObject
* _argo0
= 0;
363 char *_kwnames
[] = { "self", NULL
};
366 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageHandler_GetExtension",_kwnames
,&_argo0
))
369 if (_argo0
== Py_None
) { _arg0
= NULL
; }
370 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageHandler_p")) {
371 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageHandler_GetExtension. Expected _wxImageHandler_p.");
376 wxPy_BEGIN_ALLOW_THREADS
;
377 _result
= new wxString (wxImageHandler_GetExtension(_arg0
));
379 wxPy_END_ALLOW_THREADS
;
381 _resultobj
= PyString_FromString(WXSTRINGCAST
*(_result
));
389 #define wxImageHandler_GetType(_swigobj) (_swigobj->GetType())
390 static PyObject
*_wrap_wxImageHandler_GetType(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
391 PyObject
* _resultobj
;
393 wxImageHandler
* _arg0
;
394 PyObject
* _argo0
= 0;
395 char *_kwnames
[] = { "self", NULL
};
398 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageHandler_GetType",_kwnames
,&_argo0
))
401 if (_argo0
== Py_None
) { _arg0
= NULL
; }
402 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageHandler_p")) {
403 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageHandler_GetType. Expected _wxImageHandler_p.");
408 wxPy_BEGIN_ALLOW_THREADS
;
409 _result
= (long )wxImageHandler_GetType(_arg0
);
411 wxPy_END_ALLOW_THREADS
;
412 } _resultobj
= Py_BuildValue("l",_result
);
416 #define wxImageHandler_GetMimeType(_swigobj) (_swigobj->GetMimeType())
417 static PyObject
*_wrap_wxImageHandler_GetMimeType(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
418 PyObject
* _resultobj
;
420 wxImageHandler
* _arg0
;
421 PyObject
* _argo0
= 0;
422 char *_kwnames
[] = { "self", NULL
};
425 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImageHandler_GetMimeType",_kwnames
,&_argo0
))
428 if (_argo0
== Py_None
) { _arg0
= NULL
; }
429 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageHandler_p")) {
430 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageHandler_GetMimeType. Expected _wxImageHandler_p.");
435 wxPy_BEGIN_ALLOW_THREADS
;
436 _result
= new wxString (wxImageHandler_GetMimeType(_arg0
));
438 wxPy_END_ALLOW_THREADS
;
440 _resultobj
= PyString_FromString(WXSTRINGCAST
*(_result
));
448 #define wxImageHandler_SetName(_swigobj,_swigarg0) (_swigobj->SetName(_swigarg0))
449 static PyObject
*_wrap_wxImageHandler_SetName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
450 PyObject
* _resultobj
;
451 wxImageHandler
* _arg0
;
453 PyObject
* _argo0
= 0;
454 PyObject
* _obj1
= 0;
455 char *_kwnames
[] = { "self","name", NULL
};
458 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImageHandler_SetName",_kwnames
,&_argo0
,&_obj1
))
461 if (_argo0
== Py_None
) { _arg0
= NULL
; }
462 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageHandler_p")) {
463 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageHandler_SetName. Expected _wxImageHandler_p.");
468 if (!PyString_Check(_obj1
)) {
469 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
472 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
475 wxPy_BEGIN_ALLOW_THREADS
;
476 wxImageHandler_SetName(_arg0
,*_arg1
);
478 wxPy_END_ALLOW_THREADS
;
479 } Py_INCREF(Py_None
);
480 _resultobj
= Py_None
;
488 #define wxImageHandler_SetExtension(_swigobj,_swigarg0) (_swigobj->SetExtension(_swigarg0))
489 static PyObject
*_wrap_wxImageHandler_SetExtension(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
490 PyObject
* _resultobj
;
491 wxImageHandler
* _arg0
;
493 PyObject
* _argo0
= 0;
494 PyObject
* _obj1
= 0;
495 char *_kwnames
[] = { "self","extension", NULL
};
498 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImageHandler_SetExtension",_kwnames
,&_argo0
,&_obj1
))
501 if (_argo0
== Py_None
) { _arg0
= NULL
; }
502 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageHandler_p")) {
503 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageHandler_SetExtension. Expected _wxImageHandler_p.");
508 if (!PyString_Check(_obj1
)) {
509 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
512 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
515 wxPy_BEGIN_ALLOW_THREADS
;
516 wxImageHandler_SetExtension(_arg0
,*_arg1
);
518 wxPy_END_ALLOW_THREADS
;
519 } Py_INCREF(Py_None
);
520 _resultobj
= Py_None
;
528 #define wxImageHandler_SetType(_swigobj,_swigarg0) (_swigobj->SetType(_swigarg0))
529 static PyObject
*_wrap_wxImageHandler_SetType(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
530 PyObject
* _resultobj
;
531 wxImageHandler
* _arg0
;
533 PyObject
* _argo0
= 0;
534 char *_kwnames
[] = { "self","type", NULL
};
537 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxImageHandler_SetType",_kwnames
,&_argo0
,&_arg1
))
540 if (_argo0
== Py_None
) { _arg0
= NULL
; }
541 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageHandler_p")) {
542 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageHandler_SetType. Expected _wxImageHandler_p.");
547 wxPy_BEGIN_ALLOW_THREADS
;
548 wxImageHandler_SetType(_arg0
,_arg1
);
550 wxPy_END_ALLOW_THREADS
;
551 } Py_INCREF(Py_None
);
552 _resultobj
= Py_None
;
556 #define wxImageHandler_SetMimeType(_swigobj,_swigarg0) (_swigobj->SetMimeType(_swigarg0))
557 static PyObject
*_wrap_wxImageHandler_SetMimeType(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
558 PyObject
* _resultobj
;
559 wxImageHandler
* _arg0
;
561 PyObject
* _argo0
= 0;
562 PyObject
* _obj1
= 0;
563 char *_kwnames
[] = { "self","mimetype", NULL
};
566 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImageHandler_SetMimeType",_kwnames
,&_argo0
,&_obj1
))
569 if (_argo0
== Py_None
) { _arg0
= NULL
; }
570 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImageHandler_p")) {
571 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImageHandler_SetMimeType. Expected _wxImageHandler_p.");
576 if (!PyString_Check(_obj1
)) {
577 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
580 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
583 wxPy_BEGIN_ALLOW_THREADS
;
584 wxImageHandler_SetMimeType(_arg0
,*_arg1
);
586 wxPy_END_ALLOW_THREADS
;
587 } Py_INCREF(Py_None
);
588 _resultobj
= Py_None
;
596 static void *SwigwxPNGHandlerTowxImageHandler(void *ptr
) {
598 wxImageHandler
*dest
;
599 src
= (wxPNGHandler
*) ptr
;
600 dest
= (wxImageHandler
*) src
;
601 return (void *) dest
;
604 #define new_wxPNGHandler() (new wxPNGHandler())
605 static PyObject
*_wrap_new_wxPNGHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
606 PyObject
* _resultobj
;
607 wxPNGHandler
* _result
;
608 char *_kwnames
[] = { NULL
};
612 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxPNGHandler",_kwnames
))
615 wxPy_BEGIN_ALLOW_THREADS
;
616 _result
= (wxPNGHandler
*)new_wxPNGHandler();
618 wxPy_END_ALLOW_THREADS
;
620 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPNGHandler_p");
621 _resultobj
= Py_BuildValue("s",_ptemp
);
624 _resultobj
= Py_None
;
629 static void *SwigwxJPEGHandlerTowxImageHandler(void *ptr
) {
631 wxImageHandler
*dest
;
632 src
= (wxJPEGHandler
*) ptr
;
633 dest
= (wxImageHandler
*) src
;
634 return (void *) dest
;
637 #define new_wxJPEGHandler() (new wxJPEGHandler())
638 static PyObject
*_wrap_new_wxJPEGHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
639 PyObject
* _resultobj
;
640 wxJPEGHandler
* _result
;
641 char *_kwnames
[] = { NULL
};
645 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxJPEGHandler",_kwnames
))
648 wxPy_BEGIN_ALLOW_THREADS
;
649 _result
= (wxJPEGHandler
*)new_wxJPEGHandler();
651 wxPy_END_ALLOW_THREADS
;
653 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxJPEGHandler_p");
654 _resultobj
= Py_BuildValue("s",_ptemp
);
657 _resultobj
= Py_None
;
662 static void *SwigwxBMPHandlerTowxImageHandler(void *ptr
) {
664 wxImageHandler
*dest
;
665 src
= (wxBMPHandler
*) ptr
;
666 dest
= (wxImageHandler
*) src
;
667 return (void *) dest
;
670 #define new_wxBMPHandler() (new wxBMPHandler())
671 static PyObject
*_wrap_new_wxBMPHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
672 PyObject
* _resultobj
;
673 wxBMPHandler
* _result
;
674 char *_kwnames
[] = { NULL
};
678 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxBMPHandler",_kwnames
))
681 wxPy_BEGIN_ALLOW_THREADS
;
682 _result
= (wxBMPHandler
*)new_wxBMPHandler();
684 wxPy_END_ALLOW_THREADS
;
686 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxBMPHandler_p");
687 _resultobj
= Py_BuildValue("s",_ptemp
);
690 _resultobj
= Py_None
;
695 static void *SwigwxGIFHandlerTowxImageHandler(void *ptr
) {
697 wxImageHandler
*dest
;
698 src
= (wxGIFHandler
*) ptr
;
699 dest
= (wxImageHandler
*) src
;
700 return (void *) dest
;
703 #define new_wxGIFHandler() (new wxGIFHandler())
704 static PyObject
*_wrap_new_wxGIFHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
705 PyObject
* _resultobj
;
706 wxGIFHandler
* _result
;
707 char *_kwnames
[] = { NULL
};
711 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxGIFHandler",_kwnames
))
714 wxPy_BEGIN_ALLOW_THREADS
;
715 _result
= (wxGIFHandler
*)new_wxGIFHandler();
717 wxPy_END_ALLOW_THREADS
;
719 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxGIFHandler_p");
720 _resultobj
= Py_BuildValue("s",_ptemp
);
723 _resultobj
= Py_None
;
728 #define new_wxImage(_swigarg0,_swigarg1) (new wxImage(_swigarg0,_swigarg1))
729 static PyObject
*_wrap_new_wxImage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
730 PyObject
* _resultobj
;
733 long _arg1
= (long ) wxBITMAP_TYPE_PNG
;
734 PyObject
* _obj0
= 0;
735 char *_kwnames
[] = { "name","type", NULL
};
739 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|l:new_wxImage",_kwnames
,&_obj0
,&_arg1
))
742 if (!PyString_Check(_obj0
)) {
743 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
746 _arg0
= new wxString(PyString_AsString(_obj0
), PyString_Size(_obj0
));
749 wxPy_BEGIN_ALLOW_THREADS
;
750 _result
= (wxImage
*)new_wxImage(*_arg0
,_arg1
);
752 wxPy_END_ALLOW_THREADS
;
754 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxImage_p");
755 _resultobj
= Py_BuildValue("s",_ptemp
);
758 _resultobj
= Py_None
;
767 #define delete_wxImage(_swigobj) (delete _swigobj)
768 static PyObject
*_wrap_delete_wxImage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
769 PyObject
* _resultobj
;
771 PyObject
* _argo0
= 0;
772 char *_kwnames
[] = { "self", NULL
};
775 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxImage",_kwnames
,&_argo0
))
778 if (_argo0
== Py_None
) { _arg0
= NULL
; }
779 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
780 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxImage. Expected _wxImage_p.");
785 wxPy_BEGIN_ALLOW_THREADS
;
786 delete_wxImage(_arg0
);
788 wxPy_END_ALLOW_THREADS
;
789 } Py_INCREF(Py_None
);
790 _resultobj
= Py_None
;
794 #define wxImage_ConvertToBitmap(_swigobj) (_swigobj->ConvertToBitmap())
795 static PyObject
*_wrap_wxImage_ConvertToBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
796 PyObject
* _resultobj
;
799 PyObject
* _argo0
= 0;
800 char *_kwnames
[] = { "self", NULL
};
804 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_ConvertToBitmap",_kwnames
,&_argo0
))
807 if (_argo0
== Py_None
) { _arg0
= NULL
; }
808 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
809 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_ConvertToBitmap. Expected _wxImage_p.");
814 wxPy_BEGIN_ALLOW_THREADS
;
815 _result
= new wxBitmap (wxImage_ConvertToBitmap(_arg0
));
817 wxPy_END_ALLOW_THREADS
;
818 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBitmap_p");
819 _resultobj
= Py_BuildValue("s",_ptemp
);
823 #define wxImage_Create(_swigobj,_swigarg0,_swigarg1) (_swigobj->Create(_swigarg0,_swigarg1))
824 static PyObject
*_wrap_wxImage_Create(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
825 PyObject
* _resultobj
;
829 PyObject
* _argo0
= 0;
830 char *_kwnames
[] = { "self","width","height", NULL
};
833 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxImage_Create",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
836 if (_argo0
== Py_None
) { _arg0
= NULL
; }
837 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
838 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_Create. Expected _wxImage_p.");
843 wxPy_BEGIN_ALLOW_THREADS
;
844 wxImage_Create(_arg0
,_arg1
,_arg2
);
846 wxPy_END_ALLOW_THREADS
;
847 } Py_INCREF(Py_None
);
848 _resultobj
= Py_None
;
852 #define wxImage_Destroy(_swigobj) (_swigobj->Destroy())
853 static PyObject
*_wrap_wxImage_Destroy(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
854 PyObject
* _resultobj
;
856 PyObject
* _argo0
= 0;
857 char *_kwnames
[] = { "self", NULL
};
860 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_Destroy",_kwnames
,&_argo0
))
863 if (_argo0
== Py_None
) { _arg0
= NULL
; }
864 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
865 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_Destroy. Expected _wxImage_p.");
870 wxPy_BEGIN_ALLOW_THREADS
;
871 wxImage_Destroy(_arg0
);
873 wxPy_END_ALLOW_THREADS
;
874 } Py_INCREF(Py_None
);
875 _resultobj
= Py_None
;
879 #define wxImage_Scale(_swigobj,_swigarg0,_swigarg1) (_swigobj->Scale(_swigarg0,_swigarg1))
880 static PyObject
*_wrap_wxImage_Scale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
881 PyObject
* _resultobj
;
886 PyObject
* _argo0
= 0;
887 char *_kwnames
[] = { "self","width","height", NULL
};
891 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxImage_Scale",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
894 if (_argo0
== Py_None
) { _arg0
= NULL
; }
895 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
896 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_Scale. Expected _wxImage_p.");
901 wxPy_BEGIN_ALLOW_THREADS
;
902 _result
= new wxImage (wxImage_Scale(_arg0
,_arg1
,_arg2
));
904 wxPy_END_ALLOW_THREADS
;
905 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxImage_p");
906 _resultobj
= Py_BuildValue("s",_ptemp
);
910 #define wxImage_Rescale(_swigobj,_swigarg0,_swigarg1) (_swigobj->Rescale(_swigarg0,_swigarg1))
911 static PyObject
*_wrap_wxImage_Rescale(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
912 PyObject
* _resultobj
;
916 PyObject
* _argo0
= 0;
917 char *_kwnames
[] = { "self","width","height", NULL
};
920 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxImage_Rescale",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
923 if (_argo0
== Py_None
) { _arg0
= NULL
; }
924 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
925 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_Rescale. Expected _wxImage_p.");
930 wxPy_BEGIN_ALLOW_THREADS
;
931 wxImage_Rescale(_arg0
,_arg1
,_arg2
);
933 wxPy_END_ALLOW_THREADS
;
934 } Py_INCREF(Py_None
);
935 _resultobj
= Py_None
;
939 #define wxImage_SetRGB(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetRGB(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
940 static PyObject
*_wrap_wxImage_SetRGB(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
941 PyObject
* _resultobj
;
948 PyObject
* _argo0
= 0;
949 char *_kwnames
[] = { "self","x","y","r","g","b", NULL
};
952 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiibbb:wxImage_SetRGB",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
,&_arg5
))
955 if (_argo0
== Py_None
) { _arg0
= NULL
; }
956 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
957 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_SetRGB. Expected _wxImage_p.");
962 wxPy_BEGIN_ALLOW_THREADS
;
963 wxImage_SetRGB(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
,_arg5
);
965 wxPy_END_ALLOW_THREADS
;
966 } Py_INCREF(Py_None
);
967 _resultobj
= Py_None
;
971 #define wxImage_GetRed(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetRed(_swigarg0,_swigarg1))
972 static PyObject
*_wrap_wxImage_GetRed(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
973 PyObject
* _resultobj
;
974 unsigned char _result
;
978 PyObject
* _argo0
= 0;
979 char *_kwnames
[] = { "self","x","y", NULL
};
982 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxImage_GetRed",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
985 if (_argo0
== Py_None
) { _arg0
= NULL
; }
986 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
987 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetRed. Expected _wxImage_p.");
992 wxPy_BEGIN_ALLOW_THREADS
;
993 _result
= (unsigned char )wxImage_GetRed(_arg0
,_arg1
,_arg2
);
995 wxPy_END_ALLOW_THREADS
;
996 } _resultobj
= Py_BuildValue("b",_result
);
1000 #define wxImage_GetGreen(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetGreen(_swigarg0,_swigarg1))
1001 static PyObject
*_wrap_wxImage_GetGreen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1002 PyObject
* _resultobj
;
1003 unsigned char _result
;
1007 PyObject
* _argo0
= 0;
1008 char *_kwnames
[] = { "self","x","y", NULL
};
1011 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxImage_GetGreen",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
1014 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1015 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1016 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetGreen. Expected _wxImage_p.");
1021 wxPy_BEGIN_ALLOW_THREADS
;
1022 _result
= (unsigned char )wxImage_GetGreen(_arg0
,_arg1
,_arg2
);
1024 wxPy_END_ALLOW_THREADS
;
1025 } _resultobj
= Py_BuildValue("b",_result
);
1029 #define wxImage_GetBlue(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetBlue(_swigarg0,_swigarg1))
1030 static PyObject
*_wrap_wxImage_GetBlue(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1031 PyObject
* _resultobj
;
1032 unsigned char _result
;
1036 PyObject
* _argo0
= 0;
1037 char *_kwnames
[] = { "self","x","y", NULL
};
1040 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxImage_GetBlue",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
1043 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1044 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1045 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetBlue. Expected _wxImage_p.");
1050 wxPy_BEGIN_ALLOW_THREADS
;
1051 _result
= (unsigned char )wxImage_GetBlue(_arg0
,_arg1
,_arg2
);
1053 wxPy_END_ALLOW_THREADS
;
1054 } _resultobj
= Py_BuildValue("b",_result
);
1058 #define wxImage_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1))
1059 static PyObject
*_wrap_wxImage_LoadFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1060 PyObject
* _resultobj
;
1064 long _arg2
= (long ) wxBITMAP_TYPE_PNG
;
1065 PyObject
* _argo0
= 0;
1066 PyObject
* _obj1
= 0;
1067 char *_kwnames
[] = { "self","name","type", NULL
};
1070 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|l:wxImage_LoadFile",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
1073 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1074 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1075 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_LoadFile. Expected _wxImage_p.");
1080 if (!PyString_Check(_obj1
)) {
1081 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1084 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
1087 wxPy_BEGIN_ALLOW_THREADS
;
1088 _result
= (bool )wxImage_LoadFile(_arg0
,*_arg1
,_arg2
);
1090 wxPy_END_ALLOW_THREADS
;
1091 } _resultobj
= Py_BuildValue("i",_result
);
1099 #define wxImage_LoadMimeFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1))
1100 static PyObject
*_wrap_wxImage_LoadMimeFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1101 PyObject
* _resultobj
;
1106 PyObject
* _argo0
= 0;
1107 PyObject
* _obj1
= 0;
1108 PyObject
* _obj2
= 0;
1109 char *_kwnames
[] = { "self","name","mimetype", NULL
};
1112 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxImage_LoadMimeFile",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
1115 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1116 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1117 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_LoadMimeFile. Expected _wxImage_p.");
1122 if (!PyString_Check(_obj1
)) {
1123 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1126 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
1129 if (!PyString_Check(_obj2
)) {
1130 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1133 _arg2
= new wxString(PyString_AsString(_obj2
), PyString_Size(_obj2
));
1136 wxPy_BEGIN_ALLOW_THREADS
;
1137 _result
= (bool )wxImage_LoadMimeFile(_arg0
,*_arg1
,*_arg2
);
1139 wxPy_END_ALLOW_THREADS
;
1140 } _resultobj
= Py_BuildValue("i",_result
);
1152 #define wxImage_SaveFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->SaveFile(_swigarg0,_swigarg1))
1153 static PyObject
*_wrap_wxImage_SaveFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1154 PyObject
* _resultobj
;
1159 PyObject
* _argo0
= 0;
1160 PyObject
* _obj1
= 0;
1161 char *_kwnames
[] = { "self","name","type", NULL
};
1164 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOi:wxImage_SaveFile",_kwnames
,&_argo0
,&_obj1
,&_arg2
))
1167 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1168 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1169 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_SaveFile. Expected _wxImage_p.");
1174 if (!PyString_Check(_obj1
)) {
1175 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1178 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
1181 wxPy_BEGIN_ALLOW_THREADS
;
1182 _result
= (bool )wxImage_SaveFile(_arg0
,*_arg1
,_arg2
);
1184 wxPy_END_ALLOW_THREADS
;
1185 } _resultobj
= Py_BuildValue("i",_result
);
1193 #define wxImage_SaveMimeFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->SaveFile(_swigarg0,_swigarg1))
1194 static PyObject
*_wrap_wxImage_SaveMimeFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1195 PyObject
* _resultobj
;
1200 PyObject
* _argo0
= 0;
1201 PyObject
* _obj1
= 0;
1202 PyObject
* _obj2
= 0;
1203 char *_kwnames
[] = { "self","name","mimetype", NULL
};
1206 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxImage_SaveMimeFile",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
1209 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1210 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1211 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_SaveMimeFile. Expected _wxImage_p.");
1216 if (!PyString_Check(_obj1
)) {
1217 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1220 _arg1
= new wxString(PyString_AsString(_obj1
), PyString_Size(_obj1
));
1223 if (!PyString_Check(_obj2
)) {
1224 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1227 _arg2
= new wxString(PyString_AsString(_obj2
), PyString_Size(_obj2
));
1230 wxPy_BEGIN_ALLOW_THREADS
;
1231 _result
= (bool )wxImage_SaveMimeFile(_arg0
,*_arg1
,*_arg2
);
1233 wxPy_END_ALLOW_THREADS
;
1234 } _resultobj
= Py_BuildValue("i",_result
);
1246 #define wxImage_Ok(_swigobj) (_swigobj->Ok())
1247 static PyObject
*_wrap_wxImage_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1248 PyObject
* _resultobj
;
1251 PyObject
* _argo0
= 0;
1252 char *_kwnames
[] = { "self", NULL
};
1255 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_Ok",_kwnames
,&_argo0
))
1258 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1259 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1260 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_Ok. Expected _wxImage_p.");
1265 wxPy_BEGIN_ALLOW_THREADS
;
1266 _result
= (bool )wxImage_Ok(_arg0
);
1268 wxPy_END_ALLOW_THREADS
;
1269 } _resultobj
= Py_BuildValue("i",_result
);
1273 #define wxImage_GetWidth(_swigobj) (_swigobj->GetWidth())
1274 static PyObject
*_wrap_wxImage_GetWidth(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1275 PyObject
* _resultobj
;
1278 PyObject
* _argo0
= 0;
1279 char *_kwnames
[] = { "self", NULL
};
1282 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_GetWidth",_kwnames
,&_argo0
))
1285 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1286 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1287 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetWidth. Expected _wxImage_p.");
1292 wxPy_BEGIN_ALLOW_THREADS
;
1293 _result
= (int )wxImage_GetWidth(_arg0
);
1295 wxPy_END_ALLOW_THREADS
;
1296 } _resultobj
= Py_BuildValue("i",_result
);
1300 #define wxImage_GetHeight(_swigobj) (_swigobj->GetHeight())
1301 static PyObject
*_wrap_wxImage_GetHeight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1302 PyObject
* _resultobj
;
1305 PyObject
* _argo0
= 0;
1306 char *_kwnames
[] = { "self", NULL
};
1309 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_GetHeight",_kwnames
,&_argo0
))
1312 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1313 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1314 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetHeight. Expected _wxImage_p.");
1319 wxPy_BEGIN_ALLOW_THREADS
;
1320 _result
= (int )wxImage_GetHeight(_arg0
);
1322 wxPy_END_ALLOW_THREADS
;
1323 } _resultobj
= Py_BuildValue("i",_result
);
1327 static PyObject
* wxImage_GetData(wxImage
*self
) {
1328 unsigned char* data
= self
->GetData();
1329 int len
= self
->GetWidth() * self
->GetHeight() * 3;
1330 return PyString_FromStringAndSize((char*)data
, len
);
1332 static PyObject
*_wrap_wxImage_GetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1333 PyObject
* _resultobj
;
1336 PyObject
* _argo0
= 0;
1337 char *_kwnames
[] = { "self", NULL
};
1340 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_GetData",_kwnames
,&_argo0
))
1343 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1344 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1345 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetData. Expected _wxImage_p.");
1350 wxPy_BEGIN_ALLOW_THREADS
;
1351 _result
= (PyObject
*)wxImage_GetData(_arg0
);
1353 wxPy_END_ALLOW_THREADS
;
1355 _resultobj
= _result
;
1360 static void wxImage_SetData(wxImage
*self
,PyObject
* data
) {
1361 unsigned char* dataPtr
;
1363 if (! PyString_Check(data
)) {
1364 PyErr_SetString(PyExc_TypeError
, "Expected string object");
1367 dataPtr
= (unsigned char*)PyString_AsString(data
);
1368 self
->SetData(dataPtr
);
1370 static PyObject
*_wrap_wxImage_SetData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1371 PyObject
* _resultobj
;
1374 PyObject
* _argo0
= 0;
1375 PyObject
* _obj1
= 0;
1376 char *_kwnames
[] = { "self","data", NULL
};
1379 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxImage_SetData",_kwnames
,&_argo0
,&_obj1
))
1382 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1383 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1384 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_SetData. Expected _wxImage_p.");
1392 wxPy_BEGIN_ALLOW_THREADS
;
1393 wxImage_SetData(_arg0
,_arg1
);
1395 wxPy_END_ALLOW_THREADS
;
1396 } Py_INCREF(Py_None
);
1397 _resultobj
= Py_None
;
1401 #define wxImage_SetMaskColour(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetMaskColour(_swigarg0,_swigarg1,_swigarg2))
1402 static PyObject
*_wrap_wxImage_SetMaskColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1403 PyObject
* _resultobj
;
1405 unsigned char _arg1
;
1406 unsigned char _arg2
;
1407 unsigned char _arg3
;
1408 PyObject
* _argo0
= 0;
1409 char *_kwnames
[] = { "self","r","g","b", NULL
};
1412 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Obbb:wxImage_SetMaskColour",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
))
1415 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1416 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1417 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_SetMaskColour. Expected _wxImage_p.");
1422 wxPy_BEGIN_ALLOW_THREADS
;
1423 wxImage_SetMaskColour(_arg0
,_arg1
,_arg2
,_arg3
);
1425 wxPy_END_ALLOW_THREADS
;
1426 } Py_INCREF(Py_None
);
1427 _resultobj
= Py_None
;
1431 #define wxImage_GetMaskRed(_swigobj) (_swigobj->GetMaskRed())
1432 static PyObject
*_wrap_wxImage_GetMaskRed(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1433 PyObject
* _resultobj
;
1434 unsigned char _result
;
1436 PyObject
* _argo0
= 0;
1437 char *_kwnames
[] = { "self", NULL
};
1440 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_GetMaskRed",_kwnames
,&_argo0
))
1443 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1444 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1445 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetMaskRed. Expected _wxImage_p.");
1450 wxPy_BEGIN_ALLOW_THREADS
;
1451 _result
= (unsigned char )wxImage_GetMaskRed(_arg0
);
1453 wxPy_END_ALLOW_THREADS
;
1454 } _resultobj
= Py_BuildValue("b",_result
);
1458 #define wxImage_GetMaskGreen(_swigobj) (_swigobj->GetMaskGreen())
1459 static PyObject
*_wrap_wxImage_GetMaskGreen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1460 PyObject
* _resultobj
;
1461 unsigned char _result
;
1463 PyObject
* _argo0
= 0;
1464 char *_kwnames
[] = { "self", NULL
};
1467 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_GetMaskGreen",_kwnames
,&_argo0
))
1470 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1471 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1472 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetMaskGreen. Expected _wxImage_p.");
1477 wxPy_BEGIN_ALLOW_THREADS
;
1478 _result
= (unsigned char )wxImage_GetMaskGreen(_arg0
);
1480 wxPy_END_ALLOW_THREADS
;
1481 } _resultobj
= Py_BuildValue("b",_result
);
1485 #define wxImage_GetMaskBlue(_swigobj) (_swigobj->GetMaskBlue())
1486 static PyObject
*_wrap_wxImage_GetMaskBlue(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1487 PyObject
* _resultobj
;
1488 unsigned char _result
;
1490 PyObject
* _argo0
= 0;
1491 char *_kwnames
[] = { "self", NULL
};
1494 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_GetMaskBlue",_kwnames
,&_argo0
))
1497 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1498 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1499 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_GetMaskBlue. Expected _wxImage_p.");
1504 wxPy_BEGIN_ALLOW_THREADS
;
1505 _result
= (unsigned char )wxImage_GetMaskBlue(_arg0
);
1507 wxPy_END_ALLOW_THREADS
;
1508 } _resultobj
= Py_BuildValue("b",_result
);
1512 #define wxImage_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0))
1513 static PyObject
*_wrap_wxImage_SetMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1514 PyObject
* _resultobj
;
1516 bool _arg1
= (bool ) TRUE
;
1517 PyObject
* _argo0
= 0;
1518 int tempbool1
= (int) TRUE
;
1519 char *_kwnames
[] = { "self","mask", NULL
};
1522 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:wxImage_SetMask",_kwnames
,&_argo0
,&tempbool1
))
1525 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1526 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1527 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_SetMask. Expected _wxImage_p.");
1531 _arg1
= (bool ) tempbool1
;
1533 wxPy_BEGIN_ALLOW_THREADS
;
1534 wxImage_SetMask(_arg0
,_arg1
);
1536 wxPy_END_ALLOW_THREADS
;
1537 } Py_INCREF(Py_None
);
1538 _resultobj
= Py_None
;
1542 #define wxImage_HasMask(_swigobj) (_swigobj->HasMask())
1543 static PyObject
*_wrap_wxImage_HasMask(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1544 PyObject
* _resultobj
;
1547 PyObject
* _argo0
= 0;
1548 char *_kwnames
[] = { "self", NULL
};
1551 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxImage_HasMask",_kwnames
,&_argo0
))
1554 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1555 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxImage_p")) {
1556 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxImage_HasMask. Expected _wxImage_p.");
1561 wxPy_BEGIN_ALLOW_THREADS
;
1562 _result
= (bool )wxImage_HasMask(_arg0
);
1564 wxPy_END_ALLOW_THREADS
;
1565 } _resultobj
= Py_BuildValue("i",_result
);
1569 static PyMethodDef imagecMethods
[] = {
1570 { "wxImage_HasMask", (PyCFunction
) _wrap_wxImage_HasMask
, METH_VARARGS
| METH_KEYWORDS
},
1571 { "wxImage_SetMask", (PyCFunction
) _wrap_wxImage_SetMask
, METH_VARARGS
| METH_KEYWORDS
},
1572 { "wxImage_GetMaskBlue", (PyCFunction
) _wrap_wxImage_GetMaskBlue
, METH_VARARGS
| METH_KEYWORDS
},
1573 { "wxImage_GetMaskGreen", (PyCFunction
) _wrap_wxImage_GetMaskGreen
, METH_VARARGS
| METH_KEYWORDS
},
1574 { "wxImage_GetMaskRed", (PyCFunction
) _wrap_wxImage_GetMaskRed
, METH_VARARGS
| METH_KEYWORDS
},
1575 { "wxImage_SetMaskColour", (PyCFunction
) _wrap_wxImage_SetMaskColour
, METH_VARARGS
| METH_KEYWORDS
},
1576 { "wxImage_SetData", (PyCFunction
) _wrap_wxImage_SetData
, METH_VARARGS
| METH_KEYWORDS
},
1577 { "wxImage_GetData", (PyCFunction
) _wrap_wxImage_GetData
, METH_VARARGS
| METH_KEYWORDS
},
1578 { "wxImage_GetHeight", (PyCFunction
) _wrap_wxImage_GetHeight
, METH_VARARGS
| METH_KEYWORDS
},
1579 { "wxImage_GetWidth", (PyCFunction
) _wrap_wxImage_GetWidth
, METH_VARARGS
| METH_KEYWORDS
},
1580 { "wxImage_Ok", (PyCFunction
) _wrap_wxImage_Ok
, METH_VARARGS
| METH_KEYWORDS
},
1581 { "wxImage_SaveMimeFile", (PyCFunction
) _wrap_wxImage_SaveMimeFile
, METH_VARARGS
| METH_KEYWORDS
},
1582 { "wxImage_SaveFile", (PyCFunction
) _wrap_wxImage_SaveFile
, METH_VARARGS
| METH_KEYWORDS
},
1583 { "wxImage_LoadMimeFile", (PyCFunction
) _wrap_wxImage_LoadMimeFile
, METH_VARARGS
| METH_KEYWORDS
},
1584 { "wxImage_LoadFile", (PyCFunction
) _wrap_wxImage_LoadFile
, METH_VARARGS
| METH_KEYWORDS
},
1585 { "wxImage_GetBlue", (PyCFunction
) _wrap_wxImage_GetBlue
, METH_VARARGS
| METH_KEYWORDS
},
1586 { "wxImage_GetGreen", (PyCFunction
) _wrap_wxImage_GetGreen
, METH_VARARGS
| METH_KEYWORDS
},
1587 { "wxImage_GetRed", (PyCFunction
) _wrap_wxImage_GetRed
, METH_VARARGS
| METH_KEYWORDS
},
1588 { "wxImage_SetRGB", (PyCFunction
) _wrap_wxImage_SetRGB
, METH_VARARGS
| METH_KEYWORDS
},
1589 { "wxImage_Rescale", (PyCFunction
) _wrap_wxImage_Rescale
, METH_VARARGS
| METH_KEYWORDS
},
1590 { "wxImage_Scale", (PyCFunction
) _wrap_wxImage_Scale
, METH_VARARGS
| METH_KEYWORDS
},
1591 { "wxImage_Destroy", (PyCFunction
) _wrap_wxImage_Destroy
, METH_VARARGS
| METH_KEYWORDS
},
1592 { "wxImage_Create", (PyCFunction
) _wrap_wxImage_Create
, METH_VARARGS
| METH_KEYWORDS
},
1593 { "wxImage_ConvertToBitmap", (PyCFunction
) _wrap_wxImage_ConvertToBitmap
, METH_VARARGS
| METH_KEYWORDS
},
1594 { "delete_wxImage", (PyCFunction
) _wrap_delete_wxImage
, METH_VARARGS
| METH_KEYWORDS
},
1595 { "new_wxImage", (PyCFunction
) _wrap_new_wxImage
, METH_VARARGS
| METH_KEYWORDS
},
1596 { "new_wxGIFHandler", (PyCFunction
) _wrap_new_wxGIFHandler
, METH_VARARGS
| METH_KEYWORDS
},
1597 { "new_wxBMPHandler", (PyCFunction
) _wrap_new_wxBMPHandler
, METH_VARARGS
| METH_KEYWORDS
},
1598 { "new_wxJPEGHandler", (PyCFunction
) _wrap_new_wxJPEGHandler
, METH_VARARGS
| METH_KEYWORDS
},
1599 { "new_wxPNGHandler", (PyCFunction
) _wrap_new_wxPNGHandler
, METH_VARARGS
| METH_KEYWORDS
},
1600 { "wxImageHandler_SetMimeType", (PyCFunction
) _wrap_wxImageHandler_SetMimeType
, METH_VARARGS
| METH_KEYWORDS
},
1601 { "wxImageHandler_SetType", (PyCFunction
) _wrap_wxImageHandler_SetType
, METH_VARARGS
| METH_KEYWORDS
},
1602 { "wxImageHandler_SetExtension", (PyCFunction
) _wrap_wxImageHandler_SetExtension
, METH_VARARGS
| METH_KEYWORDS
},
1603 { "wxImageHandler_SetName", (PyCFunction
) _wrap_wxImageHandler_SetName
, METH_VARARGS
| METH_KEYWORDS
},
1604 { "wxImageHandler_GetMimeType", (PyCFunction
) _wrap_wxImageHandler_GetMimeType
, METH_VARARGS
| METH_KEYWORDS
},
1605 { "wxImageHandler_GetType", (PyCFunction
) _wrap_wxImageHandler_GetType
, METH_VARARGS
| METH_KEYWORDS
},
1606 { "wxImageHandler_GetExtension", (PyCFunction
) _wrap_wxImageHandler_GetExtension
, METH_VARARGS
| METH_KEYWORDS
},
1607 { "wxImageHandler_GetName", (PyCFunction
) _wrap_wxImageHandler_GetName
, METH_VARARGS
| METH_KEYWORDS
},
1608 { "new_wxImageHandler", (PyCFunction
) _wrap_new_wxImageHandler
, METH_VARARGS
| METH_KEYWORDS
},
1609 { "wxImage_AddHandler", (PyCFunction
) _wrap_wxImage_AddHandler
, METH_VARARGS
| METH_KEYWORDS
},
1610 { "wxImageFromBitmap", (PyCFunction
) _wrap_wxImageFromBitmap
, METH_VARARGS
| METH_KEYWORDS
},
1611 { "wxImageFromMime", (PyCFunction
) _wrap_wxImageFromMime
, METH_VARARGS
| METH_KEYWORDS
},
1612 { "wxEmptyImage", (PyCFunction
) _wrap_wxEmptyImage
, METH_VARARGS
| METH_KEYWORDS
},
1613 { "wxNullImage", (PyCFunction
) _wrap_wxNullImage
, METH_VARARGS
| METH_KEYWORDS
},
1620 * This table is used by the pointer type-checker
1622 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
1623 { "_wxAcceleratorTable","_class_wxAcceleratorTable",0},
1624 { "_signed_long","_long",0},
1625 { "_class_wxJPEGHandler","_wxJPEGHandler",0},
1626 { "_wxBMPHandler","_class_wxBMPHandler",0},
1627 { "_wxImage","_class_wxImage",0},
1628 { "_wxPrintQuality","_int",0},
1629 { "_wxPrintQuality","_signed_int",0},
1630 { "_wxPrintQuality","_unsigned_int",0},
1631 { "_wxPrintQuality","_wxWindowID",0},
1632 { "_wxPrintQuality","_uint",0},
1633 { "_wxPrintQuality","_EBool",0},
1634 { "_wxPrintQuality","_size_t",0},
1635 { "_class_wxRegionIterator","_wxRegionIterator",0},
1636 { "_wxGIFHandler","_class_wxGIFHandler",0},
1637 { "_wxIndividualLayoutConstraint","_class_wxIndividualLayoutConstraint",0},
1638 { "_wxCursor","_class_wxCursor",0},
1639 { "_wxImageHandler","_class_wxGIFHandler",SwigwxGIFHandlerTowxImageHandler
},
1640 { "_wxImageHandler","_wxGIFHandler",SwigwxGIFHandlerTowxImageHandler
},
1641 { "_wxImageHandler","_class_wxBMPHandler",SwigwxBMPHandlerTowxImageHandler
},
1642 { "_wxImageHandler","_wxBMPHandler",SwigwxBMPHandlerTowxImageHandler
},
1643 { "_wxImageHandler","_class_wxJPEGHandler",SwigwxJPEGHandlerTowxImageHandler
},
1644 { "_wxImageHandler","_wxJPEGHandler",SwigwxJPEGHandlerTowxImageHandler
},
1645 { "_wxImageHandler","_class_wxPNGHandler",SwigwxPNGHandlerTowxImageHandler
},
1646 { "_wxImageHandler","_wxPNGHandler",SwigwxPNGHandlerTowxImageHandler
},
1647 { "_wxImageHandler","_class_wxImageHandler",0},
1648 { "_wxMask","_class_wxMask",0},
1649 { "_wxPNGHandler","_class_wxPNGHandler",0},
1650 { "_wxPen","_class_wxPen",0},
1651 { "_byte","_unsigned_char",0},
1652 { "_long","_wxDash",0},
1653 { "_long","_unsigned_long",0},
1654 { "_long","_signed_long",0},
1655 { "_wxImageList","_class_wxImageList",0},
1656 { "_class_wxAcceleratorTable","_wxAcceleratorTable",0},
1657 { "_wxDC","_class_wxDC",0},
1658 { "_class_wxBMPHandler","_wxBMPHandler",0},
1659 { "_size_t","_wxPrintQuality",0},
1660 { "_size_t","_unsigned_int",0},
1661 { "_size_t","_int",0},
1662 { "_size_t","_wxWindowID",0},
1663 { "_size_t","_uint",0},
1664 { "_class_wxRealPoint","_wxRealPoint",0},
1665 { "_wxPrinterDC","_class_wxPrinterDC",0},
1666 { "_class_wxGIFHandler","_wxGIFHandler",0},
1667 { "_class_wxMask","_wxMask",0},
1668 { "_class_wxPNGHandler","_wxPNGHandler",0},
1669 { "_wxColour","_class_wxColour",0},
1670 { "_wxBrush","_class_wxBrush",0},
1671 { "_uint","_wxPrintQuality",0},
1672 { "_uint","_size_t",0},
1673 { "_uint","_unsigned_int",0},
1674 { "_uint","_int",0},
1675 { "_uint","_wxWindowID",0},
1676 { "_wxRect","_class_wxRect",0},
1677 { "_class_wxImage","_wxImage",0},
1678 { "_wxPoint","_class_wxPoint",0},
1679 { "_wxBitmap","_class_wxBitmap",0},
1680 { "_wxPyTimer","_class_wxPyTimer",0},
1681 { "_wxWindowDC","_class_wxWindowDC",0},
1682 { "_class_wxIndividualLayoutConstraint","_wxIndividualLayoutConstraint",0},
1683 { "_EBool","_wxPrintQuality",0},
1684 { "_EBool","_signed_int",0},
1685 { "_EBool","_int",0},
1686 { "_EBool","_wxWindowID",0},
1687 { "_class_wxRegion","_wxRegion",0},
1688 { "_wxFont","_class_wxFont",0},
1689 { "_unsigned_long","_wxDash",0},
1690 { "_unsigned_long","_long",0},
1691 { "_class_wxRect","_wxRect",0},
1692 { "_class_wxDC","_wxDC",0},
1693 { "_class_wxPyTimer","_wxPyTimer",0},
1694 { "_wxAcceleratorEntry","_class_wxAcceleratorEntry",0},
1695 { "_signed_int","_wxPrintQuality",0},
1696 { "_signed_int","_EBool",0},
1697 { "_signed_int","_wxWindowID",0},
1698 { "_signed_int","_int",0},
1699 { "_wxLayoutConstraints","_class_wxLayoutConstraints",0},
1700 { "_wxMetaFileDC","_class_wxMetaFileDC",0},
1701 { "_wxScreenDC","_class_wxScreenDC",0},
1702 { "_WXTYPE","_short",0},
1703 { "_WXTYPE","_signed_short",0},
1704 { "_WXTYPE","_unsigned_short",0},
1705 { "_class_wxBrush","_wxBrush",0},
1706 { "_unsigned_short","_WXTYPE",0},
1707 { "_unsigned_short","_short",0},
1708 { "_class_wxFont","_wxFont",0},
1709 { "_wxClientDC","_class_wxClientDC",0},
1710 { "_class_wxPoint","_wxPoint",0},
1711 { "_wxRealPoint","_class_wxRealPoint",0},
1712 { "_signed_short","_WXTYPE",0},
1713 { "_signed_short","_short",0},
1714 { "_wxMemoryDC","_class_wxMemoryDC",0},
1715 { "_wxPaintDC","_class_wxPaintDC",0},
1716 { "_class_wxWindowDC","_wxWindowDC",0},
1717 { "_class_wxAcceleratorEntry","_wxAcceleratorEntry",0},
1718 { "_class_wxCursor","_wxCursor",0},
1719 { "_class_wxImageHandler","_class_wxGIFHandler",SwigwxGIFHandlerTowxImageHandler
},
1720 { "_class_wxImageHandler","_wxGIFHandler",SwigwxGIFHandlerTowxImageHandler
},
1721 { "_class_wxImageHandler","_class_wxBMPHandler",SwigwxBMPHandlerTowxImageHandler
},
1722 { "_class_wxImageHandler","_wxBMPHandler",SwigwxBMPHandlerTowxImageHandler
},
1723 { "_class_wxImageHandler","_class_wxJPEGHandler",SwigwxJPEGHandlerTowxImageHandler
},
1724 { "_class_wxImageHandler","_wxJPEGHandler",SwigwxJPEGHandlerTowxImageHandler
},
1725 { "_class_wxImageHandler","_class_wxPNGHandler",SwigwxPNGHandlerTowxImageHandler
},
1726 { "_class_wxImageHandler","_wxPNGHandler",SwigwxPNGHandlerTowxImageHandler
},
1727 { "_class_wxImageHandler","_wxImageHandler",0},
1728 { "_unsigned_char","_byte",0},
1729 { "_class_wxMetaFileDC","_wxMetaFileDC",0},
1730 { "_unsigned_int","_wxPrintQuality",0},
1731 { "_unsigned_int","_size_t",0},
1732 { "_unsigned_int","_uint",0},
1733 { "_unsigned_int","_wxWindowID",0},
1734 { "_unsigned_int","_int",0},
1735 { "_wxIcon","_class_wxIcon",0},
1736 { "_class_wxPen","_wxPen",0},
1737 { "_short","_WXTYPE",0},
1738 { "_short","_unsigned_short",0},
1739 { "_short","_signed_short",0},
1740 { "_class_wxImageList","_wxImageList",0},
1741 { "_wxJPEGHandler","_class_wxJPEGHandler",0},
1742 { "_wxWindowID","_wxPrintQuality",0},
1743 { "_wxWindowID","_size_t",0},
1744 { "_wxWindowID","_EBool",0},
1745 { "_wxWindowID","_uint",0},
1746 { "_wxWindowID","_int",0},
1747 { "_wxWindowID","_signed_int",0},
1748 { "_wxWindowID","_unsigned_int",0},
1749 { "_int","_wxPrintQuality",0},
1750 { "_int","_size_t",0},
1751 { "_int","_EBool",0},
1752 { "_int","_uint",0},
1753 { "_int","_wxWindowID",0},
1754 { "_int","_unsigned_int",0},
1755 { "_int","_signed_int",0},
1756 { "_wxSize","_class_wxSize",0},
1757 { "_wxRegionIterator","_class_wxRegionIterator",0},
1758 { "_class_wxPrinterDC","_wxPrinterDC",0},
1759 { "_class_wxPaintDC","_wxPaintDC",0},
1760 { "_class_wxLayoutConstraints","_wxLayoutConstraints",0},
1761 { "_class_wxIcon","_wxIcon",0},
1762 { "_class_wxColour","_wxColour",0},
1763 { "_class_wxScreenDC","_wxScreenDC",0},
1764 { "_wxPalette","_class_wxPalette",0},
1765 { "_wxRegion","_class_wxRegion",0},
1766 { "_class_wxClientDC","_wxClientDC",0},
1767 { "_class_wxSize","_wxSize",0},
1768 { "_class_wxBitmap","_wxBitmap",0},
1769 { "_class_wxMemoryDC","_wxMemoryDC",0},
1770 { "_wxDash","_unsigned_long",0},
1771 { "_wxDash","_long",0},
1772 { "_class_wxPalette","_wxPalette",0},
1775 static PyObject
*SWIG_globals
;
1779 SWIGEXPORT(void) initimagec() {
1781 SWIG_globals
= SWIG_newvarlink();
1782 m
= Py_InitModule("imagec", imagecMethods
);
1783 d
= PyModule_GetDict(m
);
1786 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
1787 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);