1 # This file was created automatically by SWIG.
11 class wxImageHandlerPtr(wxObjectPtr
):
12 def __init__(self
,this
):
15 def GetName(self
, *_args
, **_kwargs
):
16 val
= apply(imagec
.wxImageHandler_GetName
,(self
,) + _args
, _kwargs
)
18 def GetExtension(self
, *_args
, **_kwargs
):
19 val
= apply(imagec
.wxImageHandler_GetExtension
,(self
,) + _args
, _kwargs
)
21 def GetType(self
, *_args
, **_kwargs
):
22 val
= apply(imagec
.wxImageHandler_GetType
,(self
,) + _args
, _kwargs
)
24 def GetMimeType(self
, *_args
, **_kwargs
):
25 val
= apply(imagec
.wxImageHandler_GetMimeType
,(self
,) + _args
, _kwargs
)
27 def CanRead(self
, *_args
, **_kwargs
):
28 val
= apply(imagec
.wxImageHandler_CanRead
,(self
,) + _args
, _kwargs
)
30 def SetName(self
, *_args
, **_kwargs
):
31 val
= apply(imagec
.wxImageHandler_SetName
,(self
,) + _args
, _kwargs
)
33 def SetExtension(self
, *_args
, **_kwargs
):
34 val
= apply(imagec
.wxImageHandler_SetExtension
,(self
,) + _args
, _kwargs
)
36 def SetType(self
, *_args
, **_kwargs
):
37 val
= apply(imagec
.wxImageHandler_SetType
,(self
,) + _args
, _kwargs
)
39 def SetMimeType(self
, *_args
, **_kwargs
):
40 val
= apply(imagec
.wxImageHandler_SetMimeType
,(self
,) + _args
, _kwargs
)
43 return "<C wxImageHandler instance at %s>" % (self
.this
,)
44 class wxImageHandler(wxImageHandlerPtr
):
45 def __init__(self
,this
):
51 class wxPNGHandlerPtr(wxImageHandlerPtr
):
52 def __init__(self
,this
):
56 return "<C wxPNGHandler instance at %s>" % (self
.this
,)
57 class wxPNGHandler(wxPNGHandlerPtr
):
58 def __init__(self
,*_args
,**_kwargs
):
59 self
.this
= apply(imagec
.new_wxPNGHandler
,_args
,_kwargs
)
65 class wxJPEGHandlerPtr(wxImageHandlerPtr
):
66 def __init__(self
,this
):
70 return "<C wxJPEGHandler instance at %s>" % (self
.this
,)
71 class wxJPEGHandler(wxJPEGHandlerPtr
):
72 def __init__(self
,*_args
,**_kwargs
):
73 self
.this
= apply(imagec
.new_wxJPEGHandler
,_args
,_kwargs
)
79 class wxBMPHandlerPtr(wxImageHandlerPtr
):
80 def __init__(self
,this
):
84 return "<C wxBMPHandler instance at %s>" % (self
.this
,)
85 class wxBMPHandler(wxBMPHandlerPtr
):
86 def __init__(self
,*_args
,**_kwargs
):
87 self
.this
= apply(imagec
.new_wxBMPHandler
,_args
,_kwargs
)
93 class wxICOHandlerPtr(wxBMPHandlerPtr
):
94 def __init__(self
,this
):
98 return "<C wxICOHandler instance at %s>" % (self
.this
,)
99 class wxICOHandler(wxICOHandlerPtr
):
100 def __init__(self
,*_args
,**_kwargs
):
101 self
.this
= apply(imagec
.new_wxICOHandler
,_args
,_kwargs
)
107 class wxCURHandlerPtr(wxICOHandlerPtr
):
108 def __init__(self
,this
):
112 return "<C wxCURHandler instance at %s>" % (self
.this
,)
113 class wxCURHandler(wxCURHandlerPtr
):
114 def __init__(self
,*_args
,**_kwargs
):
115 self
.this
= apply(imagec
.new_wxCURHandler
,_args
,_kwargs
)
121 class wxANIHandlerPtr(wxCURHandlerPtr
):
122 def __init__(self
,this
):
126 return "<C wxANIHandler instance at %s>" % (self
.this
,)
127 class wxANIHandler(wxANIHandlerPtr
):
128 def __init__(self
,*_args
,**_kwargs
):
129 self
.this
= apply(imagec
.new_wxANIHandler
,_args
,_kwargs
)
135 class wxGIFHandlerPtr(wxImageHandlerPtr
):
136 def __init__(self
,this
):
140 return "<C wxGIFHandler instance at %s>" % (self
.this
,)
141 class wxGIFHandler(wxGIFHandlerPtr
):
142 def __init__(self
,*_args
,**_kwargs
):
143 self
.this
= apply(imagec
.new_wxGIFHandler
,_args
,_kwargs
)
149 class wxPNMHandlerPtr(wxImageHandlerPtr
):
150 def __init__(self
,this
):
154 return "<C wxPNMHandler instance at %s>" % (self
.this
,)
155 class wxPNMHandler(wxPNMHandlerPtr
):
156 def __init__(self
,*_args
,**_kwargs
):
157 self
.this
= apply(imagec
.new_wxPNMHandler
,_args
,_kwargs
)
163 class wxPCXHandlerPtr(wxImageHandlerPtr
):
164 def __init__(self
,this
):
168 return "<C wxPCXHandler instance at %s>" % (self
.this
,)
169 class wxPCXHandler(wxPCXHandlerPtr
):
170 def __init__(self
,*_args
,**_kwargs
):
171 self
.this
= apply(imagec
.new_wxPCXHandler
,_args
,_kwargs
)
177 class wxTIFFHandlerPtr(wxImageHandlerPtr
):
178 def __init__(self
,this
):
182 return "<C wxTIFFHandler instance at %s>" % (self
.this
,)
183 class wxTIFFHandler(wxTIFFHandlerPtr
):
184 def __init__(self
,*_args
,**_kwargs
):
185 self
.this
= apply(imagec
.new_wxTIFFHandler
,_args
,_kwargs
)
191 class wxImagePtr(wxObjectPtr
):
192 def __init__(self
,this
):
195 def __del__(self
,imagec
=imagec
):
196 if self
.thisown
== 1 :
197 imagec
.delete_wxImage(self
)
198 def Create(self
, *_args
, **_kwargs
):
199 val
= apply(imagec
.wxImage_Create
,(self
,) + _args
, _kwargs
)
201 def Destroy(self
, *_args
, **_kwargs
):
202 val
= apply(imagec
.wxImage_Destroy
,(self
,) + _args
, _kwargs
)
204 def Scale(self
, *_args
, **_kwargs
):
205 val
= apply(imagec
.wxImage_Scale
,(self
,) + _args
, _kwargs
)
206 if val
: val
= wxImagePtr(val
) ; val
.thisown
= 1
208 def Rescale(self
, *_args
, **_kwargs
):
209 val
= apply(imagec
.wxImage_Rescale
,(self
,) + _args
, _kwargs
)
210 if val
: val
= wxImagePtr(val
)
212 def SetRGB(self
, *_args
, **_kwargs
):
213 val
= apply(imagec
.wxImage_SetRGB
,(self
,) + _args
, _kwargs
)
215 def GetRed(self
, *_args
, **_kwargs
):
216 val
= apply(imagec
.wxImage_GetRed
,(self
,) + _args
, _kwargs
)
218 def GetGreen(self
, *_args
, **_kwargs
):
219 val
= apply(imagec
.wxImage_GetGreen
,(self
,) + _args
, _kwargs
)
221 def GetBlue(self
, *_args
, **_kwargs
):
222 val
= apply(imagec
.wxImage_GetBlue
,(self
,) + _args
, _kwargs
)
224 def FindFirstUnusedColour(self
, *_args
, **_kwargs
):
225 val
= apply(imagec
.wxImage_FindFirstUnusedColour
,(self
,) + _args
, _kwargs
)
227 def SetMaskFromImage(self
, *_args
, **_kwargs
):
228 val
= apply(imagec
.wxImage_SetMaskFromImage
,(self
,) + _args
, _kwargs
)
230 def LoadFile(self
, *_args
, **_kwargs
):
231 val
= apply(imagec
.wxImage_LoadFile
,(self
,) + _args
, _kwargs
)
233 def LoadMimeFile(self
, *_args
, **_kwargs
):
234 val
= apply(imagec
.wxImage_LoadMimeFile
,(self
,) + _args
, _kwargs
)
236 def SaveFile(self
, *_args
, **_kwargs
):
237 val
= apply(imagec
.wxImage_SaveFile
,(self
,) + _args
, _kwargs
)
239 def SaveMimeFile(self
, *_args
, **_kwargs
):
240 val
= apply(imagec
.wxImage_SaveMimeFile
,(self
,) + _args
, _kwargs
)
242 def LoadStream(self
, *_args
, **_kwargs
):
243 val
= apply(imagec
.wxImage_LoadStream
,(self
,) + _args
, _kwargs
)
245 def LoadMimeStream(self
, *_args
, **_kwargs
):
246 val
= apply(imagec
.wxImage_LoadMimeStream
,(self
,) + _args
, _kwargs
)
248 def Ok(self
, *_args
, **_kwargs
):
249 val
= apply(imagec
.wxImage_Ok
,(self
,) + _args
, _kwargs
)
251 def GetWidth(self
, *_args
, **_kwargs
):
252 val
= apply(imagec
.wxImage_GetWidth
,(self
,) + _args
, _kwargs
)
254 def GetHeight(self
, *_args
, **_kwargs
):
255 val
= apply(imagec
.wxImage_GetHeight
,(self
,) + _args
, _kwargs
)
257 def GetSubImage(self
, *_args
, **_kwargs
):
258 val
= apply(imagec
.wxImage_GetSubImage
,(self
,) + _args
, _kwargs
)
259 if val
: val
= wxImagePtr(val
) ; val
.thisown
= 1
261 def Copy(self
, *_args
, **_kwargs
):
262 val
= apply(imagec
.wxImage_Copy
,(self
,) + _args
, _kwargs
)
263 if val
: val
= wxImagePtr(val
) ; val
.thisown
= 1
265 def Paste(self
, *_args
, **_kwargs
):
266 val
= apply(imagec
.wxImage_Paste
,(self
,) + _args
, _kwargs
)
268 def GetDataBuffer(self
, *_args
, **_kwargs
):
269 val
= apply(imagec
.wxImage_GetDataBuffer
,(self
,) + _args
, _kwargs
)
271 def GetData(self
, *_args
, **_kwargs
):
272 val
= apply(imagec
.wxImage_GetData
,(self
,) + _args
, _kwargs
)
274 def SetData(self
, *_args
, **_kwargs
):
275 val
= apply(imagec
.wxImage_SetData
,(self
,) + _args
, _kwargs
)
277 def SetMaskColour(self
, *_args
, **_kwargs
):
278 val
= apply(imagec
.wxImage_SetMaskColour
,(self
,) + _args
, _kwargs
)
280 def GetMaskRed(self
, *_args
, **_kwargs
):
281 val
= apply(imagec
.wxImage_GetMaskRed
,(self
,) + _args
, _kwargs
)
283 def GetMaskGreen(self
, *_args
, **_kwargs
):
284 val
= apply(imagec
.wxImage_GetMaskGreen
,(self
,) + _args
, _kwargs
)
286 def GetMaskBlue(self
, *_args
, **_kwargs
):
287 val
= apply(imagec
.wxImage_GetMaskBlue
,(self
,) + _args
, _kwargs
)
289 def SetMask(self
, *_args
, **_kwargs
):
290 val
= apply(imagec
.wxImage_SetMask
,(self
,) + _args
, _kwargs
)
292 def HasMask(self
, *_args
, **_kwargs
):
293 val
= apply(imagec
.wxImage_HasMask
,(self
,) + _args
, _kwargs
)
295 def Rotate(self
, *_args
, **_kwargs
):
296 val
= apply(imagec
.wxImage_Rotate
,(self
,) + _args
, _kwargs
)
297 if val
: val
= wxImagePtr(val
) ; val
.thisown
= 1
299 def Rotate90(self
, *_args
, **_kwargs
):
300 val
= apply(imagec
.wxImage_Rotate90
,(self
,) + _args
, _kwargs
)
301 if val
: val
= wxImagePtr(val
) ; val
.thisown
= 1
303 def Mirror(self
, *_args
, **_kwargs
):
304 val
= apply(imagec
.wxImage_Mirror
,(self
,) + _args
, _kwargs
)
305 if val
: val
= wxImagePtr(val
) ; val
.thisown
= 1
307 def Replace(self
, *_args
, **_kwargs
):
308 val
= apply(imagec
.wxImage_Replace
,(self
,) + _args
, _kwargs
)
310 def ConvertToMono(self
, *_args
, **_kwargs
):
311 val
= apply(imagec
.wxImage_ConvertToMono
,(self
,) + _args
, _kwargs
)
312 if val
: val
= wxImagePtr(val
) ; val
.thisown
= 1
314 def SetOption(self
, *_args
, **_kwargs
):
315 val
= apply(imagec
.wxImage_SetOption
,(self
,) + _args
, _kwargs
)
317 def SetOptionInt(self
, *_args
, **_kwargs
):
318 val
= apply(imagec
.wxImage_SetOptionInt
,(self
,) + _args
, _kwargs
)
320 def GetOption(self
, *_args
, **_kwargs
):
321 val
= apply(imagec
.wxImage_GetOption
,(self
,) + _args
, _kwargs
)
323 def GetOptionInt(self
, *_args
, **_kwargs
):
324 val
= apply(imagec
.wxImage_GetOptionInt
,(self
,) + _args
, _kwargs
)
326 def HasOption(self
, *_args
, **_kwargs
):
327 val
= apply(imagec
.wxImage_HasOption
,(self
,) + _args
, _kwargs
)
329 def CountColours(self
, *_args
, **_kwargs
):
330 val
= apply(imagec
.wxImage_CountColours
,(self
,) + _args
, _kwargs
)
332 def ConvertToBitmap(self
, *_args
, **_kwargs
):
333 val
= apply(imagec
.wxImage_ConvertToBitmap
,(self
,) + _args
, _kwargs
)
334 if val
: val
= wxBitmapPtr(val
) ; val
.thisown
= 1
336 def ConvertToMonoBitmap(self
, *_args
, **_kwargs
):
337 val
= apply(imagec
.wxImage_ConvertToMonoBitmap
,(self
,) + _args
, _kwargs
)
338 if val
: val
= wxBitmapPtr(val
) ; val
.thisown
= 1
341 return "<C wxImage instance at %s>" % (self
.this
,)
342 class wxImage(wxImagePtr
):
343 def __init__(self
,*_args
,**_kwargs
):
344 self
.this
= apply(imagec
.new_wxImage
,_args
,_kwargs
)
352 #-------------- FUNCTION WRAPPERS ------------------
354 def wxEmptyImage(*_args
, **_kwargs
):
355 val
= apply(imagec
.wxEmptyImage
,_args
,_kwargs
)
356 if val
: val
= wxImagePtr(val
); val
.thisown
= 1
359 def wxImageFromMime(*_args
, **_kwargs
):
360 val
= apply(imagec
.wxImageFromMime
,_args
,_kwargs
)
361 if val
: val
= wxImagePtr(val
); val
.thisown
= 1
364 def wxImageFromBitmap(*_args
, **_kwargs
):
365 val
= apply(imagec
.wxImageFromBitmap
,_args
,_kwargs
)
366 if val
: val
= wxImagePtr(val
); val
.thisown
= 1
369 def wxImageFromData(*_args
, **_kwargs
):
370 val
= apply(imagec
.wxImageFromData
,_args
,_kwargs
)
371 if val
: val
= wxImagePtr(val
); val
.thisown
= 1
374 def wxImageFromStream(*_args
, **_kwargs
):
375 val
= apply(imagec
.wxImageFromStream
,_args
,_kwargs
)
376 if val
: val
= wxImagePtr(val
); val
.thisown
= 1
379 def wxImageFromStreamMime(*_args
, **_kwargs
):
380 val
= apply(imagec
.wxImageFromStreamMime
,_args
,_kwargs
)
381 if val
: val
= wxImagePtr(val
); val
.thisown
= 1
384 wxInitAllImageHandlers
= imagec
.wxInitAllImageHandlers
386 def wxBitmapFromImage(*_args
, **_kwargs
):
387 val
= apply(imagec
.wxBitmapFromImage
,_args
,_kwargs
)
388 if val
: val
= wxBitmapPtr(val
); val
.thisown
= 1
391 wxImage_CanRead
= imagec
.wxImage_CanRead
393 wxImage_GetImageCount
= imagec
.wxImage_GetImageCount
395 wxImage_CanReadStream
= imagec
.wxImage_CanReadStream
397 wxImage_AddHandler
= imagec
.wxImage_AddHandler
399 wxImage_InsertHandler
= imagec
.wxImage_InsertHandler
401 wxImage_RemoveHandler
= imagec
.wxImage_RemoveHandler
405 #-------------- VARIABLE WRAPPERS ------------------
408 wxNullImage
= wxImagePtr(imagec
.cvar
.wxNullImage
)