1 # This file was created automatically by SWIG.
7 class wxImageHandlerPtr(wxObjectPtr
):
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 CanRead(self
, *_args
, **_kwargs
):
24 val
= apply(imagec
.wxImageHandler_CanRead
,(self
,) + _args
, _kwargs
)
26 def SetName(self
, *_args
, **_kwargs
):
27 val
= apply(imagec
.wxImageHandler_SetName
,(self
,) + _args
, _kwargs
)
29 def SetExtension(self
, *_args
, **_kwargs
):
30 val
= apply(imagec
.wxImageHandler_SetExtension
,(self
,) + _args
, _kwargs
)
32 def SetType(self
, *_args
, **_kwargs
):
33 val
= apply(imagec
.wxImageHandler_SetType
,(self
,) + _args
, _kwargs
)
35 def SetMimeType(self
, *_args
, **_kwargs
):
36 val
= apply(imagec
.wxImageHandler_SetMimeType
,(self
,) + _args
, _kwargs
)
39 return "<C wxImageHandler instance at %s>" % (self
.this
,)
40 class wxImageHandler(wxImageHandlerPtr
):
41 def __init__(self
,this
):
47 class wxPNGHandlerPtr(wxImageHandlerPtr
):
48 def __init__(self
,this
):
52 return "<C wxPNGHandler instance at %s>" % (self
.this
,)
53 class wxPNGHandler(wxPNGHandlerPtr
):
54 def __init__(self
,*_args
,**_kwargs
):
55 self
.this
= apply(imagec
.new_wxPNGHandler
,_args
,_kwargs
)
61 class wxJPEGHandlerPtr(wxImageHandlerPtr
):
62 def __init__(self
,this
):
66 return "<C wxJPEGHandler instance at %s>" % (self
.this
,)
67 class wxJPEGHandler(wxJPEGHandlerPtr
):
68 def __init__(self
,*_args
,**_kwargs
):
69 self
.this
= apply(imagec
.new_wxJPEGHandler
,_args
,_kwargs
)
75 class wxBMPHandlerPtr(wxImageHandlerPtr
):
76 def __init__(self
,this
):
80 return "<C wxBMPHandler instance at %s>" % (self
.this
,)
81 class wxBMPHandler(wxBMPHandlerPtr
):
82 def __init__(self
,*_args
,**_kwargs
):
83 self
.this
= apply(imagec
.new_wxBMPHandler
,_args
,_kwargs
)
89 class wxICOHandlerPtr(wxBMPHandlerPtr
):
90 def __init__(self
,this
):
94 return "<C wxICOHandler instance at %s>" % (self
.this
,)
95 class wxICOHandler(wxICOHandlerPtr
):
96 def __init__(self
,*_args
,**_kwargs
):
97 self
.this
= apply(imagec
.new_wxICOHandler
,_args
,_kwargs
)
103 class wxCURHandlerPtr(wxICOHandlerPtr
):
104 def __init__(self
,this
):
108 return "<C wxCURHandler instance at %s>" % (self
.this
,)
109 class wxCURHandler(wxCURHandlerPtr
):
110 def __init__(self
,*_args
,**_kwargs
):
111 self
.this
= apply(imagec
.new_wxCURHandler
,_args
,_kwargs
)
117 class wxANIHandlerPtr(wxCURHandlerPtr
):
118 def __init__(self
,this
):
122 return "<C wxANIHandler instance at %s>" % (self
.this
,)
123 class wxANIHandler(wxANIHandlerPtr
):
124 def __init__(self
,*_args
,**_kwargs
):
125 self
.this
= apply(imagec
.new_wxANIHandler
,_args
,_kwargs
)
131 class wxGIFHandlerPtr(wxImageHandlerPtr
):
132 def __init__(self
,this
):
136 return "<C wxGIFHandler instance at %s>" % (self
.this
,)
137 class wxGIFHandler(wxGIFHandlerPtr
):
138 def __init__(self
,*_args
,**_kwargs
):
139 self
.this
= apply(imagec
.new_wxGIFHandler
,_args
,_kwargs
)
145 class wxPNMHandlerPtr(wxImageHandlerPtr
):
146 def __init__(self
,this
):
150 return "<C wxPNMHandler instance at %s>" % (self
.this
,)
151 class wxPNMHandler(wxPNMHandlerPtr
):
152 def __init__(self
,*_args
,**_kwargs
):
153 self
.this
= apply(imagec
.new_wxPNMHandler
,_args
,_kwargs
)
159 class wxPCXHandlerPtr(wxImageHandlerPtr
):
160 def __init__(self
,this
):
164 return "<C wxPCXHandler instance at %s>" % (self
.this
,)
165 class wxPCXHandler(wxPCXHandlerPtr
):
166 def __init__(self
,*_args
,**_kwargs
):
167 self
.this
= apply(imagec
.new_wxPCXHandler
,_args
,_kwargs
)
173 class wxTIFFHandlerPtr(wxImageHandlerPtr
):
174 def __init__(self
,this
):
178 return "<C wxTIFFHandler instance at %s>" % (self
.this
,)
179 class wxTIFFHandler(wxTIFFHandlerPtr
):
180 def __init__(self
,*_args
,**_kwargs
):
181 self
.this
= apply(imagec
.new_wxTIFFHandler
,_args
,_kwargs
)
187 class wxImagePtr(wxObjectPtr
):
188 def __init__(self
,this
):
191 def __del__(self
,imagec
=imagec
):
192 if self
.thisown
== 1 :
193 imagec
.delete_wxImage(self
)
194 def ConvertToBitmap(self
, *_args
, **_kwargs
):
195 val
= apply(imagec
.wxImage_ConvertToBitmap
,(self
,) + _args
, _kwargs
)
196 if val
: val
= wxBitmapPtr(val
) ; val
.thisown
= 1
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 LoadFile(self
, *_args
, **_kwargs
):
225 val
= apply(imagec
.wxImage_LoadFile
,(self
,) + _args
, _kwargs
)
227 def LoadMimeFile(self
, *_args
, **_kwargs
):
228 val
= apply(imagec
.wxImage_LoadMimeFile
,(self
,) + _args
, _kwargs
)
230 def SaveFile(self
, *_args
, **_kwargs
):
231 val
= apply(imagec
.wxImage_SaveFile
,(self
,) + _args
, _kwargs
)
233 def SaveMimeFile(self
, *_args
, **_kwargs
):
234 val
= apply(imagec
.wxImage_SaveMimeFile
,(self
,) + _args
, _kwargs
)
236 def Ok(self
, *_args
, **_kwargs
):
237 val
= apply(imagec
.wxImage_Ok
,(self
,) + _args
, _kwargs
)
239 def GetWidth(self
, *_args
, **_kwargs
):
240 val
= apply(imagec
.wxImage_GetWidth
,(self
,) + _args
, _kwargs
)
242 def GetHeight(self
, *_args
, **_kwargs
):
243 val
= apply(imagec
.wxImage_GetHeight
,(self
,) + _args
, _kwargs
)
245 def GetSubImage(self
, *_args
, **_kwargs
):
246 val
= apply(imagec
.wxImage_GetSubImage
,(self
,) + _args
, _kwargs
)
247 if val
: val
= wxImagePtr(val
) ; val
.thisown
= 1
249 def Copy(self
, *_args
, **_kwargs
):
250 val
= apply(imagec
.wxImage_Copy
,(self
,) + _args
, _kwargs
)
251 if val
: val
= wxImagePtr(val
) ; val
.thisown
= 1
253 def Paste(self
, *_args
, **_kwargs
):
254 val
= apply(imagec
.wxImage_Paste
,(self
,) + _args
, _kwargs
)
256 def GetData(self
, *_args
, **_kwargs
):
257 val
= apply(imagec
.wxImage_GetData
,(self
,) + _args
, _kwargs
)
259 def SetData(self
, *_args
, **_kwargs
):
260 val
= apply(imagec
.wxImage_SetData
,(self
,) + _args
, _kwargs
)
262 def SetMaskColour(self
, *_args
, **_kwargs
):
263 val
= apply(imagec
.wxImage_SetMaskColour
,(self
,) + _args
, _kwargs
)
265 def GetMaskRed(self
, *_args
, **_kwargs
):
266 val
= apply(imagec
.wxImage_GetMaskRed
,(self
,) + _args
, _kwargs
)
268 def GetMaskGreen(self
, *_args
, **_kwargs
):
269 val
= apply(imagec
.wxImage_GetMaskGreen
,(self
,) + _args
, _kwargs
)
271 def GetMaskBlue(self
, *_args
, **_kwargs
):
272 val
= apply(imagec
.wxImage_GetMaskBlue
,(self
,) + _args
, _kwargs
)
274 def SetMask(self
, *_args
, **_kwargs
):
275 val
= apply(imagec
.wxImage_SetMask
,(self
,) + _args
, _kwargs
)
277 def HasMask(self
, *_args
, **_kwargs
):
278 val
= apply(imagec
.wxImage_HasMask
,(self
,) + _args
, _kwargs
)
280 def Rotate(self
, *_args
, **_kwargs
):
281 val
= apply(imagec
.wxImage_Rotate
,(self
,) + _args
, _kwargs
)
282 if val
: val
= wxImagePtr(val
) ; val
.thisown
= 1
284 def Rotate90(self
, *_args
, **_kwargs
):
285 val
= apply(imagec
.wxImage_Rotate90
,(self
,) + _args
, _kwargs
)
286 if val
: val
= wxImagePtr(val
) ; val
.thisown
= 1
288 def Mirror(self
, *_args
, **_kwargs
):
289 val
= apply(imagec
.wxImage_Mirror
,(self
,) + _args
, _kwargs
)
290 if val
: val
= wxImagePtr(val
) ; val
.thisown
= 1
292 def Replace(self
, *_args
, **_kwargs
):
293 val
= apply(imagec
.wxImage_Replace
,(self
,) + _args
, _kwargs
)
295 def ConvertToMono(self
, *_args
, **_kwargs
):
296 val
= apply(imagec
.wxImage_ConvertToMono
,(self
,) + _args
, _kwargs
)
297 if val
: val
= wxImagePtr(val
) ; val
.thisown
= 1
299 def SetOption(self
, *_args
, **_kwargs
):
300 val
= apply(imagec
.wxImage_SetOption
,(self
,) + _args
, _kwargs
)
302 def SetOptionInt(self
, *_args
, **_kwargs
):
303 val
= apply(imagec
.wxImage_SetOptionInt
,(self
,) + _args
, _kwargs
)
305 def GetOption(self
, *_args
, **_kwargs
):
306 val
= apply(imagec
.wxImage_GetOption
,(self
,) + _args
, _kwargs
)
308 def GetOptionInt(self
, *_args
, **_kwargs
):
309 val
= apply(imagec
.wxImage_GetOptionInt
,(self
,) + _args
, _kwargs
)
311 def HasOption(self
, *_args
, **_kwargs
):
312 val
= apply(imagec
.wxImage_HasOption
,(self
,) + _args
, _kwargs
)
314 def CountColours(self
, *_args
, **_kwargs
):
315 val
= apply(imagec
.wxImage_CountColours
,(self
,) + _args
, _kwargs
)
318 return "<C wxImage instance at %s>" % (self
.this
,)
319 class wxImage(wxImagePtr
):
320 def __init__(self
,*_args
,**_kwargs
):
321 self
.this
= apply(imagec
.new_wxImage
,_args
,_kwargs
)
329 #-------------- FUNCTION WRAPPERS ------------------
331 def wxEmptyImage(*_args
, **_kwargs
):
332 val
= apply(imagec
.wxEmptyImage
,_args
,_kwargs
)
333 if val
: val
= wxImagePtr(val
); val
.thisown
= 1
336 def wxImageFromMime(*_args
, **_kwargs
):
337 val
= apply(imagec
.wxImageFromMime
,_args
,_kwargs
)
338 if val
: val
= wxImagePtr(val
); val
.thisown
= 1
341 def wxImageFromBitmap(*_args
, **_kwargs
):
342 val
= apply(imagec
.wxImageFromBitmap
,_args
,_kwargs
)
343 if val
: val
= wxImagePtr(val
); val
.thisown
= 1
346 def wxImageFromData(*_args
, **_kwargs
):
347 val
= apply(imagec
.wxImageFromData
,_args
,_kwargs
)
348 if val
: val
= wxImagePtr(val
); val
.thisown
= 1
351 wxInitAllImageHandlers
= imagec
.wxInitAllImageHandlers
353 def wxBitmapFromImage(*_args
, **_kwargs
):
354 val
= apply(imagec
.wxBitmapFromImage
,_args
,_kwargs
)
355 if val
: val
= wxBitmapPtr(val
); val
.thisown
= 1
358 wxImage_CanRead
= imagec
.wxImage_CanRead
360 wxImage_GetImageCount
= imagec
.wxImage_GetImageCount
362 wxImage_AddHandler
= imagec
.wxImage_AddHandler
364 wxImage_InsertHandler
= imagec
.wxImage_InsertHandler
366 wxImage_RemoveHandler
= imagec
.wxImage_RemoveHandler
370 #-------------- VARIABLE WRAPPERS ------------------
373 wxNullImage
= wxImagePtr(imagec
.cvar
.wxNullImage
)