1 # This file was created automatically by SWIG.
7 class wxImageHandlerPtr
:
8 def __init__(self
,this
):
11 def GetName(self
, *_args
, **_kwargs
):
12 val
= apply(imagec
.wxImageHandler_GetName
,(self
,) + _args
, _kwargs
)
14 def GetExtension(self
, *_args
, **_kwargs
):
15 val
= apply(imagec
.wxImageHandler_GetExtension
,(self
,) + _args
, _kwargs
)
17 def GetType(self
, *_args
, **_kwargs
):
18 val
= apply(imagec
.wxImageHandler_GetType
,(self
,) + _args
, _kwargs
)
20 def GetMimeType(self
, *_args
, **_kwargs
):
21 val
= apply(imagec
.wxImageHandler_GetMimeType
,(self
,) + _args
, _kwargs
)
23 def SetName(self
, *_args
, **_kwargs
):
24 val
= apply(imagec
.wxImageHandler_SetName
,(self
,) + _args
, _kwargs
)
26 def SetExtension(self
, *_args
, **_kwargs
):
27 val
= apply(imagec
.wxImageHandler_SetExtension
,(self
,) + _args
, _kwargs
)
29 def SetType(self
, *_args
, **_kwargs
):
30 val
= apply(imagec
.wxImageHandler_SetType
,(self
,) + _args
, _kwargs
)
32 def SetMimeType(self
, *_args
, **_kwargs
):
33 val
= apply(imagec
.wxImageHandler_SetMimeType
,(self
,) + _args
, _kwargs
)
36 return "<C wxImageHandler instance at %s>" % (self
.this
,)
37 class wxImageHandler(wxImageHandlerPtr
):
38 def __init__(self
,this
):
44 class wxPNGHandlerPtr(wxImageHandlerPtr
):
45 def __init__(self
,this
):
49 return "<C wxPNGHandler instance at %s>" % (self
.this
,)
50 class wxPNGHandler(wxPNGHandlerPtr
):
51 def __init__(self
,*_args
,**_kwargs
):
52 self
.this
= apply(imagec
.new_wxPNGHandler
,_args
,_kwargs
)
58 class wxJPEGHandlerPtr(wxImageHandlerPtr
):
59 def __init__(self
,this
):
63 return "<C wxJPEGHandler instance at %s>" % (self
.this
,)
64 class wxJPEGHandler(wxJPEGHandlerPtr
):
65 def __init__(self
,*_args
,**_kwargs
):
66 self
.this
= apply(imagec
.new_wxJPEGHandler
,_args
,_kwargs
)
72 class wxBMPHandlerPtr(wxImageHandlerPtr
):
73 def __init__(self
,this
):
77 return "<C wxBMPHandler instance at %s>" % (self
.this
,)
78 class wxBMPHandler(wxBMPHandlerPtr
):
79 def __init__(self
,*_args
,**_kwargs
):
80 self
.this
= apply(imagec
.new_wxBMPHandler
,_args
,_kwargs
)
86 class wxGIFHandlerPtr(wxImageHandlerPtr
):
87 def __init__(self
,this
):
91 return "<C wxGIFHandler instance at %s>" % (self
.this
,)
92 class wxGIFHandler(wxGIFHandlerPtr
):
93 def __init__(self
,*_args
,**_kwargs
):
94 self
.this
= apply(imagec
.new_wxGIFHandler
,_args
,_kwargs
)
100 class wxPNMHandlerPtr(wxImageHandlerPtr
):
101 def __init__(self
,this
):
105 return "<C wxPNMHandler instance at %s>" % (self
.this
,)
106 class wxPNMHandler(wxPNMHandlerPtr
):
107 def __init__(self
,*_args
,**_kwargs
):
108 self
.this
= apply(imagec
.new_wxPNMHandler
,_args
,_kwargs
)
114 class wxPCXHandlerPtr(wxImageHandlerPtr
):
115 def __init__(self
,this
):
119 return "<C wxPCXHandler instance at %s>" % (self
.this
,)
120 class wxPCXHandler(wxPCXHandlerPtr
):
121 def __init__(self
,*_args
,**_kwargs
):
122 self
.this
= apply(imagec
.new_wxPCXHandler
,_args
,_kwargs
)
128 class wxTIFFHandlerPtr(wxImageHandlerPtr
):
129 def __init__(self
,this
):
133 return "<C wxTIFFHandler instance at %s>" % (self
.this
,)
134 class wxTIFFHandler(wxTIFFHandlerPtr
):
135 def __init__(self
,*_args
,**_kwargs
):
136 self
.this
= apply(imagec
.new_wxTIFFHandler
,_args
,_kwargs
)
143 def __init__(self
,this
):
146 def __del__(self
,imagec
=imagec
):
147 if self
.thisown
== 1 :
148 imagec
.delete_wxImage(self
)
149 def ConvertToBitmap(self
, *_args
, **_kwargs
):
150 val
= apply(imagec
.wxImage_ConvertToBitmap
,(self
,) + _args
, _kwargs
)
151 if val
: val
= wxBitmapPtr(val
) ; val
.thisown
= 1
153 def Create(self
, *_args
, **_kwargs
):
154 val
= apply(imagec
.wxImage_Create
,(self
,) + _args
, _kwargs
)
156 def Destroy(self
, *_args
, **_kwargs
):
157 val
= apply(imagec
.wxImage_Destroy
,(self
,) + _args
, _kwargs
)
159 def Scale(self
, *_args
, **_kwargs
):
160 val
= apply(imagec
.wxImage_Scale
,(self
,) + _args
, _kwargs
)
161 if val
: val
= wxImagePtr(val
) ; val
.thisown
= 1
163 def Rescale(self
, *_args
, **_kwargs
):
164 val
= apply(imagec
.wxImage_Rescale
,(self
,) + _args
, _kwargs
)
165 if val
: val
= wxImagePtr(val
)
167 def SetRGB(self
, *_args
, **_kwargs
):
168 val
= apply(imagec
.wxImage_SetRGB
,(self
,) + _args
, _kwargs
)
170 def GetRed(self
, *_args
, **_kwargs
):
171 val
= apply(imagec
.wxImage_GetRed
,(self
,) + _args
, _kwargs
)
173 def GetGreen(self
, *_args
, **_kwargs
):
174 val
= apply(imagec
.wxImage_GetGreen
,(self
,) + _args
, _kwargs
)
176 def GetBlue(self
, *_args
, **_kwargs
):
177 val
= apply(imagec
.wxImage_GetBlue
,(self
,) + _args
, _kwargs
)
179 def LoadFile(self
, *_args
, **_kwargs
):
180 val
= apply(imagec
.wxImage_LoadFile
,(self
,) + _args
, _kwargs
)
182 def LoadMimeFile(self
, *_args
, **_kwargs
):
183 val
= apply(imagec
.wxImage_LoadMimeFile
,(self
,) + _args
, _kwargs
)
185 def SaveFile(self
, *_args
, **_kwargs
):
186 val
= apply(imagec
.wxImage_SaveFile
,(self
,) + _args
, _kwargs
)
188 def SaveMimeFile(self
, *_args
, **_kwargs
):
189 val
= apply(imagec
.wxImage_SaveMimeFile
,(self
,) + _args
, _kwargs
)
191 def Ok(self
, *_args
, **_kwargs
):
192 val
= apply(imagec
.wxImage_Ok
,(self
,) + _args
, _kwargs
)
194 def GetWidth(self
, *_args
, **_kwargs
):
195 val
= apply(imagec
.wxImage_GetWidth
,(self
,) + _args
, _kwargs
)
197 def GetHeight(self
, *_args
, **_kwargs
):
198 val
= apply(imagec
.wxImage_GetHeight
,(self
,) + _args
, _kwargs
)
200 def GetSubImage(self
, *_args
, **_kwargs
):
201 val
= apply(imagec
.wxImage_GetSubImage
,(self
,) + _args
, _kwargs
)
202 if val
: val
= wxImagePtr(val
) ; val
.thisown
= 1
204 def Copy(self
, *_args
, **_kwargs
):
205 val
= apply(imagec
.wxImage_Copy
,(self
,) + _args
, _kwargs
)
206 if val
: val
= wxImagePtr(val
) ; val
.thisown
= 1
208 def Paste(self
, *_args
, **_kwargs
):
209 val
= apply(imagec
.wxImage_Paste
,(self
,) + _args
, _kwargs
)
211 def GetData(self
, *_args
, **_kwargs
):
212 val
= apply(imagec
.wxImage_GetData
,(self
,) + _args
, _kwargs
)
214 def SetData(self
, *_args
, **_kwargs
):
215 val
= apply(imagec
.wxImage_SetData
,(self
,) + _args
, _kwargs
)
217 def SetMaskColour(self
, *_args
, **_kwargs
):
218 val
= apply(imagec
.wxImage_SetMaskColour
,(self
,) + _args
, _kwargs
)
220 def GetMaskRed(self
, *_args
, **_kwargs
):
221 val
= apply(imagec
.wxImage_GetMaskRed
,(self
,) + _args
, _kwargs
)
223 def GetMaskGreen(self
, *_args
, **_kwargs
):
224 val
= apply(imagec
.wxImage_GetMaskGreen
,(self
,) + _args
, _kwargs
)
226 def GetMaskBlue(self
, *_args
, **_kwargs
):
227 val
= apply(imagec
.wxImage_GetMaskBlue
,(self
,) + _args
, _kwargs
)
229 def SetMask(self
, *_args
, **_kwargs
):
230 val
= apply(imagec
.wxImage_SetMask
,(self
,) + _args
, _kwargs
)
232 def HasMask(self
, *_args
, **_kwargs
):
233 val
= apply(imagec
.wxImage_HasMask
,(self
,) + _args
, _kwargs
)
235 def Rotate(self
, *_args
, **_kwargs
):
236 val
= apply(imagec
.wxImage_Rotate
,(self
,) + _args
, _kwargs
)
237 if val
: val
= wxImagePtr(val
) ; val
.thisown
= 1
239 def Rotate90(self
, *_args
, **_kwargs
):
240 val
= apply(imagec
.wxImage_Rotate90
,(self
,) + _args
, _kwargs
)
241 if val
: val
= wxImagePtr(val
) ; val
.thisown
= 1
243 def Mirror(self
, *_args
, **_kwargs
):
244 val
= apply(imagec
.wxImage_Mirror
,(self
,) + _args
, _kwargs
)
245 if val
: val
= wxImagePtr(val
) ; val
.thisown
= 1
247 def Replace(self
, *_args
, **_kwargs
):
248 val
= apply(imagec
.wxImage_Replace
,(self
,) + _args
, _kwargs
)
250 def CountColours(self
, *_args
, **_kwargs
):
251 val
= apply(imagec
.wxImage_CountColours
,(self
,) + _args
, _kwargs
)
254 return "<C wxImage instance at %s>" % (self
.this
,)
255 class wxImage(wxImagePtr
):
256 def __init__(self
,*_args
,**_kwargs
):
257 self
.this
= apply(imagec
.new_wxImage
,_args
,_kwargs
)
265 #-------------- FUNCTION WRAPPERS ------------------
267 def wxEmptyImage(*_args
, **_kwargs
):
268 val
= apply(imagec
.wxEmptyImage
,_args
,_kwargs
)
269 if val
: val
= wxImagePtr(val
); val
.thisown
= 1
272 def wxImageFromMime(*_args
, **_kwargs
):
273 val
= apply(imagec
.wxImageFromMime
,_args
,_kwargs
)
274 if val
: val
= wxImagePtr(val
); val
.thisown
= 1
277 def wxImageFromBitmap(*_args
, **_kwargs
):
278 val
= apply(imagec
.wxImageFromBitmap
,_args
,_kwargs
)
279 if val
: val
= wxImagePtr(val
); val
.thisown
= 1
282 wxInitAllImageHandlers
= imagec
.wxInitAllImageHandlers
284 wxImage_CanRead
= imagec
.wxImage_CanRead
286 wxImage_AddHandler
= imagec
.wxImage_AddHandler
288 wxImage_InsertHandler
= imagec
.wxImage_InsertHandler
290 wxImage_RemoveHandler
= imagec
.wxImage_RemoveHandler
294 #-------------- VARIABLE WRAPPERS ------------------
297 wxNullImage
= wxImagePtr(imagec
.cvar
.wxNullImage
)