1 # This file was created automatically by SWIG.
9 class wxImageHandlerPtr(wxObjectPtr
):
10 def __init__(self
,this
):
13 def GetName(self
, *_args
, **_kwargs
):
14 val
= apply(imagec
.wxImageHandler_GetName
,(self
,) + _args
, _kwargs
)
16 def GetExtension(self
, *_args
, **_kwargs
):
17 val
= apply(imagec
.wxImageHandler_GetExtension
,(self
,) + _args
, _kwargs
)
19 def GetType(self
, *_args
, **_kwargs
):
20 val
= apply(imagec
.wxImageHandler_GetType
,(self
,) + _args
, _kwargs
)
22 def GetMimeType(self
, *_args
, **_kwargs
):
23 val
= apply(imagec
.wxImageHandler_GetMimeType
,(self
,) + _args
, _kwargs
)
25 def CanRead(self
, *_args
, **_kwargs
):
26 val
= apply(imagec
.wxImageHandler_CanRead
,(self
,) + _args
, _kwargs
)
28 def SetName(self
, *_args
, **_kwargs
):
29 val
= apply(imagec
.wxImageHandler_SetName
,(self
,) + _args
, _kwargs
)
31 def SetExtension(self
, *_args
, **_kwargs
):
32 val
= apply(imagec
.wxImageHandler_SetExtension
,(self
,) + _args
, _kwargs
)
34 def SetType(self
, *_args
, **_kwargs
):
35 val
= apply(imagec
.wxImageHandler_SetType
,(self
,) + _args
, _kwargs
)
37 def SetMimeType(self
, *_args
, **_kwargs
):
38 val
= apply(imagec
.wxImageHandler_SetMimeType
,(self
,) + _args
, _kwargs
)
41 return "<C wxImageHandler instance at %s>" % (self
.this
,)
42 class wxImageHandler(wxImageHandlerPtr
):
43 def __init__(self
,this
):
49 class wxPNGHandlerPtr(wxImageHandlerPtr
):
50 def __init__(self
,this
):
54 return "<C wxPNGHandler instance at %s>" % (self
.this
,)
55 class wxPNGHandler(wxPNGHandlerPtr
):
56 def __init__(self
,*_args
,**_kwargs
):
57 self
.this
= apply(imagec
.new_wxPNGHandler
,_args
,_kwargs
)
63 class wxJPEGHandlerPtr(wxImageHandlerPtr
):
64 def __init__(self
,this
):
68 return "<C wxJPEGHandler instance at %s>" % (self
.this
,)
69 class wxJPEGHandler(wxJPEGHandlerPtr
):
70 def __init__(self
,*_args
,**_kwargs
):
71 self
.this
= apply(imagec
.new_wxJPEGHandler
,_args
,_kwargs
)
77 class wxBMPHandlerPtr(wxImageHandlerPtr
):
78 def __init__(self
,this
):
82 return "<C wxBMPHandler instance at %s>" % (self
.this
,)
83 class wxBMPHandler(wxBMPHandlerPtr
):
84 def __init__(self
,*_args
,**_kwargs
):
85 self
.this
= apply(imagec
.new_wxBMPHandler
,_args
,_kwargs
)
91 class wxICOHandlerPtr(wxBMPHandlerPtr
):
92 def __init__(self
,this
):
96 return "<C wxICOHandler instance at %s>" % (self
.this
,)
97 class wxICOHandler(wxICOHandlerPtr
):
98 def __init__(self
,*_args
,**_kwargs
):
99 self
.this
= apply(imagec
.new_wxICOHandler
,_args
,_kwargs
)
105 class wxCURHandlerPtr(wxICOHandlerPtr
):
106 def __init__(self
,this
):
110 return "<C wxCURHandler instance at %s>" % (self
.this
,)
111 class wxCURHandler(wxCURHandlerPtr
):
112 def __init__(self
,*_args
,**_kwargs
):
113 self
.this
= apply(imagec
.new_wxCURHandler
,_args
,_kwargs
)
119 class wxANIHandlerPtr(wxCURHandlerPtr
):
120 def __init__(self
,this
):
124 return "<C wxANIHandler instance at %s>" % (self
.this
,)
125 class wxANIHandler(wxANIHandlerPtr
):
126 def __init__(self
,*_args
,**_kwargs
):
127 self
.this
= apply(imagec
.new_wxANIHandler
,_args
,_kwargs
)
133 class wxGIFHandlerPtr(wxImageHandlerPtr
):
134 def __init__(self
,this
):
138 return "<C wxGIFHandler instance at %s>" % (self
.this
,)
139 class wxGIFHandler(wxGIFHandlerPtr
):
140 def __init__(self
,*_args
,**_kwargs
):
141 self
.this
= apply(imagec
.new_wxGIFHandler
,_args
,_kwargs
)
147 class wxPNMHandlerPtr(wxImageHandlerPtr
):
148 def __init__(self
,this
):
152 return "<C wxPNMHandler instance at %s>" % (self
.this
,)
153 class wxPNMHandler(wxPNMHandlerPtr
):
154 def __init__(self
,*_args
,**_kwargs
):
155 self
.this
= apply(imagec
.new_wxPNMHandler
,_args
,_kwargs
)
161 class wxPCXHandlerPtr(wxImageHandlerPtr
):
162 def __init__(self
,this
):
166 return "<C wxPCXHandler instance at %s>" % (self
.this
,)
167 class wxPCXHandler(wxPCXHandlerPtr
):
168 def __init__(self
,*_args
,**_kwargs
):
169 self
.this
= apply(imagec
.new_wxPCXHandler
,_args
,_kwargs
)
175 class wxTIFFHandlerPtr(wxImageHandlerPtr
):
176 def __init__(self
,this
):
180 return "<C wxTIFFHandler instance at %s>" % (self
.this
,)
181 class wxTIFFHandler(wxTIFFHandlerPtr
):
182 def __init__(self
,*_args
,**_kwargs
):
183 self
.this
= apply(imagec
.new_wxTIFFHandler
,_args
,_kwargs
)
189 class wxImagePtr(wxObjectPtr
):
190 def __init__(self
,this
):
193 def __del__(self
,imagec
=imagec
):
194 if self
.thisown
== 1 :
195 imagec
.delete_wxImage(self
)
196 def ConvertToBitmap(self
, *_args
, **_kwargs
):
197 val
= apply(imagec
.wxImage_ConvertToBitmap
,(self
,) + _args
, _kwargs
)
198 if val
: val
= wxBitmapPtr(val
) ; val
.thisown
= 1
200 def Create(self
, *_args
, **_kwargs
):
201 val
= apply(imagec
.wxImage_Create
,(self
,) + _args
, _kwargs
)
203 def Destroy(self
, *_args
, **_kwargs
):
204 val
= apply(imagec
.wxImage_Destroy
,(self
,) + _args
, _kwargs
)
206 def Scale(self
, *_args
, **_kwargs
):
207 val
= apply(imagec
.wxImage_Scale
,(self
,) + _args
, _kwargs
)
208 if val
: val
= wxImagePtr(val
) ; val
.thisown
= 1
210 def Rescale(self
, *_args
, **_kwargs
):
211 val
= apply(imagec
.wxImage_Rescale
,(self
,) + _args
, _kwargs
)
212 if val
: val
= wxImagePtr(val
)
214 def SetRGB(self
, *_args
, **_kwargs
):
215 val
= apply(imagec
.wxImage_SetRGB
,(self
,) + _args
, _kwargs
)
217 def GetRed(self
, *_args
, **_kwargs
):
218 val
= apply(imagec
.wxImage_GetRed
,(self
,) + _args
, _kwargs
)
220 def GetGreen(self
, *_args
, **_kwargs
):
221 val
= apply(imagec
.wxImage_GetGreen
,(self
,) + _args
, _kwargs
)
223 def GetBlue(self
, *_args
, **_kwargs
):
224 val
= apply(imagec
.wxImage_GetBlue
,(self
,) + _args
, _kwargs
)
226 def LoadFile(self
, *_args
, **_kwargs
):
227 val
= apply(imagec
.wxImage_LoadFile
,(self
,) + _args
, _kwargs
)
229 def LoadMimeFile(self
, *_args
, **_kwargs
):
230 val
= apply(imagec
.wxImage_LoadMimeFile
,(self
,) + _args
, _kwargs
)
232 def SaveFile(self
, *_args
, **_kwargs
):
233 val
= apply(imagec
.wxImage_SaveFile
,(self
,) + _args
, _kwargs
)
235 def SaveMimeFile(self
, *_args
, **_kwargs
):
236 val
= apply(imagec
.wxImage_SaveMimeFile
,(self
,) + _args
, _kwargs
)
238 def LoadStream(self
, *_args
, **_kwargs
):
239 val
= apply(imagec
.wxImage_LoadStream
,(self
,) + _args
, _kwargs
)
241 def LoadMimeStream(self
, *_args
, **_kwargs
):
242 val
= apply(imagec
.wxImage_LoadMimeStream
,(self
,) + _args
, _kwargs
)
244 def Ok(self
, *_args
, **_kwargs
):
245 val
= apply(imagec
.wxImage_Ok
,(self
,) + _args
, _kwargs
)
247 def GetWidth(self
, *_args
, **_kwargs
):
248 val
= apply(imagec
.wxImage_GetWidth
,(self
,) + _args
, _kwargs
)
250 def GetHeight(self
, *_args
, **_kwargs
):
251 val
= apply(imagec
.wxImage_GetHeight
,(self
,) + _args
, _kwargs
)
253 def GetSubImage(self
, *_args
, **_kwargs
):
254 val
= apply(imagec
.wxImage_GetSubImage
,(self
,) + _args
, _kwargs
)
255 if val
: val
= wxImagePtr(val
) ; val
.thisown
= 1
257 def Copy(self
, *_args
, **_kwargs
):
258 val
= apply(imagec
.wxImage_Copy
,(self
,) + _args
, _kwargs
)
259 if val
: val
= wxImagePtr(val
) ; val
.thisown
= 1
261 def Paste(self
, *_args
, **_kwargs
):
262 val
= apply(imagec
.wxImage_Paste
,(self
,) + _args
, _kwargs
)
264 def GetData(self
, *_args
, **_kwargs
):
265 val
= apply(imagec
.wxImage_GetData
,(self
,) + _args
, _kwargs
)
267 def SetData(self
, *_args
, **_kwargs
):
268 val
= apply(imagec
.wxImage_SetData
,(self
,) + _args
, _kwargs
)
270 def SetMaskColour(self
, *_args
, **_kwargs
):
271 val
= apply(imagec
.wxImage_SetMaskColour
,(self
,) + _args
, _kwargs
)
273 def GetMaskRed(self
, *_args
, **_kwargs
):
274 val
= apply(imagec
.wxImage_GetMaskRed
,(self
,) + _args
, _kwargs
)
276 def GetMaskGreen(self
, *_args
, **_kwargs
):
277 val
= apply(imagec
.wxImage_GetMaskGreen
,(self
,) + _args
, _kwargs
)
279 def GetMaskBlue(self
, *_args
, **_kwargs
):
280 val
= apply(imagec
.wxImage_GetMaskBlue
,(self
,) + _args
, _kwargs
)
282 def SetMask(self
, *_args
, **_kwargs
):
283 val
= apply(imagec
.wxImage_SetMask
,(self
,) + _args
, _kwargs
)
285 def HasMask(self
, *_args
, **_kwargs
):
286 val
= apply(imagec
.wxImage_HasMask
,(self
,) + _args
, _kwargs
)
288 def Rotate(self
, *_args
, **_kwargs
):
289 val
= apply(imagec
.wxImage_Rotate
,(self
,) + _args
, _kwargs
)
290 if val
: val
= wxImagePtr(val
) ; val
.thisown
= 1
292 def Rotate90(self
, *_args
, **_kwargs
):
293 val
= apply(imagec
.wxImage_Rotate90
,(self
,) + _args
, _kwargs
)
294 if val
: val
= wxImagePtr(val
) ; val
.thisown
= 1
296 def Mirror(self
, *_args
, **_kwargs
):
297 val
= apply(imagec
.wxImage_Mirror
,(self
,) + _args
, _kwargs
)
298 if val
: val
= wxImagePtr(val
) ; val
.thisown
= 1
300 def Replace(self
, *_args
, **_kwargs
):
301 val
= apply(imagec
.wxImage_Replace
,(self
,) + _args
, _kwargs
)
303 def ConvertToMono(self
, *_args
, **_kwargs
):
304 val
= apply(imagec
.wxImage_ConvertToMono
,(self
,) + _args
, _kwargs
)
305 if val
: val
= wxImagePtr(val
) ; val
.thisown
= 1
307 def SetOption(self
, *_args
, **_kwargs
):
308 val
= apply(imagec
.wxImage_SetOption
,(self
,) + _args
, _kwargs
)
310 def SetOptionInt(self
, *_args
, **_kwargs
):
311 val
= apply(imagec
.wxImage_SetOptionInt
,(self
,) + _args
, _kwargs
)
313 def GetOption(self
, *_args
, **_kwargs
):
314 val
= apply(imagec
.wxImage_GetOption
,(self
,) + _args
, _kwargs
)
316 def GetOptionInt(self
, *_args
, **_kwargs
):
317 val
= apply(imagec
.wxImage_GetOptionInt
,(self
,) + _args
, _kwargs
)
319 def HasOption(self
, *_args
, **_kwargs
):
320 val
= apply(imagec
.wxImage_HasOption
,(self
,) + _args
, _kwargs
)
322 def CountColours(self
, *_args
, **_kwargs
):
323 val
= apply(imagec
.wxImage_CountColours
,(self
,) + _args
, _kwargs
)
326 return "<C wxImage instance at %s>" % (self
.this
,)
327 class wxImage(wxImagePtr
):
328 def __init__(self
,*_args
,**_kwargs
):
329 self
.this
= apply(imagec
.new_wxImage
,_args
,_kwargs
)
337 #-------------- FUNCTION WRAPPERS ------------------
339 def wxEmptyImage(*_args
, **_kwargs
):
340 val
= apply(imagec
.wxEmptyImage
,_args
,_kwargs
)
341 if val
: val
= wxImagePtr(val
); val
.thisown
= 1
344 def wxImageFromMime(*_args
, **_kwargs
):
345 val
= apply(imagec
.wxImageFromMime
,_args
,_kwargs
)
346 if val
: val
= wxImagePtr(val
); val
.thisown
= 1
349 def wxImageFromBitmap(*_args
, **_kwargs
):
350 val
= apply(imagec
.wxImageFromBitmap
,_args
,_kwargs
)
351 if val
: val
= wxImagePtr(val
); val
.thisown
= 1
354 def wxImageFromData(*_args
, **_kwargs
):
355 val
= apply(imagec
.wxImageFromData
,_args
,_kwargs
)
356 if val
: val
= wxImagePtr(val
); val
.thisown
= 1
359 def wxImageFromStream(*_args
, **_kwargs
):
360 val
= apply(imagec
.wxImageFromStream
,_args
,_kwargs
)
361 if val
: val
= wxImagePtr(val
); val
.thisown
= 1
364 def wxImageFromStreamMime(*_args
, **_kwargs
):
365 val
= apply(imagec
.wxImageFromStreamMime
,_args
,_kwargs
)
366 if val
: val
= wxImagePtr(val
); val
.thisown
= 1
369 wxInitAllImageHandlers
= imagec
.wxInitAllImageHandlers
371 def wxBitmapFromImage(*_args
, **_kwargs
):
372 val
= apply(imagec
.wxBitmapFromImage
,_args
,_kwargs
)
373 if val
: val
= wxBitmapPtr(val
); val
.thisown
= 1
376 wxImage_CanRead
= imagec
.wxImage_CanRead
378 wxImage_GetImageCount
= imagec
.wxImage_GetImageCount
380 wxImage_CanReadStream
= imagec
.wxImage_CanReadStream
382 wxImage_AddHandler
= imagec
.wxImage_AddHandler
384 wxImage_InsertHandler
= imagec
.wxImage_InsertHandler
386 wxImage_RemoveHandler
= imagec
.wxImage_RemoveHandler
390 #-------------- VARIABLE WRAPPERS ------------------
393 wxNullImage
= wxImagePtr(imagec
.cvar
.wxNullImage
)