]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/mac/image.py
SWIGged code updates for wxMAC
[wxWidgets.git] / wxPython / src / mac / image.py
1 # This file was created automatically by SWIG.
2 import imagec
3
4 from misc import *
5
6 from gdi import *
7 class wxImageHandlerPtr(wxObjectPtr):
8 def __init__(self,this):
9 self.this = this
10 self.thisown = 0
11 def GetName(self, *_args, **_kwargs):
12 val = apply(imagec.wxImageHandler_GetName,(self,) + _args, _kwargs)
13 return val
14 def GetExtension(self, *_args, **_kwargs):
15 val = apply(imagec.wxImageHandler_GetExtension,(self,) + _args, _kwargs)
16 return val
17 def GetType(self, *_args, **_kwargs):
18 val = apply(imagec.wxImageHandler_GetType,(self,) + _args, _kwargs)
19 return val
20 def GetMimeType(self, *_args, **_kwargs):
21 val = apply(imagec.wxImageHandler_GetMimeType,(self,) + _args, _kwargs)
22 return val
23 def CanRead(self, *_args, **_kwargs):
24 val = apply(imagec.wxImageHandler_CanRead,(self,) + _args, _kwargs)
25 return val
26 def SetName(self, *_args, **_kwargs):
27 val = apply(imagec.wxImageHandler_SetName,(self,) + _args, _kwargs)
28 return val
29 def SetExtension(self, *_args, **_kwargs):
30 val = apply(imagec.wxImageHandler_SetExtension,(self,) + _args, _kwargs)
31 return val
32 def SetType(self, *_args, **_kwargs):
33 val = apply(imagec.wxImageHandler_SetType,(self,) + _args, _kwargs)
34 return val
35 def SetMimeType(self, *_args, **_kwargs):
36 val = apply(imagec.wxImageHandler_SetMimeType,(self,) + _args, _kwargs)
37 return val
38 def __repr__(self):
39 return "<C wxImageHandler instance at %s>" % (self.this,)
40 class wxImageHandler(wxImageHandlerPtr):
41 def __init__(self,this):
42 self.this = this
43
44
45
46
47 class wxPNGHandlerPtr(wxImageHandlerPtr):
48 def __init__(self,this):
49 self.this = this
50 self.thisown = 0
51 def __repr__(self):
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)
56 self.thisown = 1
57
58
59
60
61 class wxJPEGHandlerPtr(wxImageHandlerPtr):
62 def __init__(self,this):
63 self.this = this
64 self.thisown = 0
65 def __repr__(self):
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)
70 self.thisown = 1
71
72
73
74
75 class wxBMPHandlerPtr(wxImageHandlerPtr):
76 def __init__(self,this):
77 self.this = this
78 self.thisown = 0
79 def __repr__(self):
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)
84 self.thisown = 1
85
86
87
88
89 class wxICOHandlerPtr(wxBMPHandlerPtr):
90 def __init__(self,this):
91 self.this = this
92 self.thisown = 0
93 def __repr__(self):
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)
98 self.thisown = 1
99
100
101
102
103 class wxGIFHandlerPtr(wxImageHandlerPtr):
104 def __init__(self,this):
105 self.this = this
106 self.thisown = 0
107 def __repr__(self):
108 return "<C wxGIFHandler instance at %s>" % (self.this,)
109 class wxGIFHandler(wxGIFHandlerPtr):
110 def __init__(self,*_args,**_kwargs):
111 self.this = apply(imagec.new_wxGIFHandler,_args,_kwargs)
112 self.thisown = 1
113
114
115
116
117 class wxPNMHandlerPtr(wxImageHandlerPtr):
118 def __init__(self,this):
119 self.this = this
120 self.thisown = 0
121 def __repr__(self):
122 return "<C wxPNMHandler instance at %s>" % (self.this,)
123 class wxPNMHandler(wxPNMHandlerPtr):
124 def __init__(self,*_args,**_kwargs):
125 self.this = apply(imagec.new_wxPNMHandler,_args,_kwargs)
126 self.thisown = 1
127
128
129
130
131 class wxPCXHandlerPtr(wxImageHandlerPtr):
132 def __init__(self,this):
133 self.this = this
134 self.thisown = 0
135 def __repr__(self):
136 return "<C wxPCXHandler instance at %s>" % (self.this,)
137 class wxPCXHandler(wxPCXHandlerPtr):
138 def __init__(self,*_args,**_kwargs):
139 self.this = apply(imagec.new_wxPCXHandler,_args,_kwargs)
140 self.thisown = 1
141
142
143
144
145 class wxTIFFHandlerPtr(wxImageHandlerPtr):
146 def __init__(self,this):
147 self.this = this
148 self.thisown = 0
149 def __repr__(self):
150 return "<C wxTIFFHandler instance at %s>" % (self.this,)
151 class wxTIFFHandler(wxTIFFHandlerPtr):
152 def __init__(self,*_args,**_kwargs):
153 self.this = apply(imagec.new_wxTIFFHandler,_args,_kwargs)
154 self.thisown = 1
155
156
157
158
159 class wxImagePtr(wxObjectPtr):
160 def __init__(self,this):
161 self.this = this
162 self.thisown = 0
163 def __del__(self,imagec=imagec):
164 if self.thisown == 1 :
165 imagec.delete_wxImage(self)
166 def ConvertToBitmap(self, *_args, **_kwargs):
167 val = apply(imagec.wxImage_ConvertToBitmap,(self,) + _args, _kwargs)
168 if val: val = wxBitmapPtr(val) ; val.thisown = 1
169 return val
170 def Create(self, *_args, **_kwargs):
171 val = apply(imagec.wxImage_Create,(self,) + _args, _kwargs)
172 return val
173 def Destroy(self, *_args, **_kwargs):
174 val = apply(imagec.wxImage_Destroy,(self,) + _args, _kwargs)
175 return val
176 def Scale(self, *_args, **_kwargs):
177 val = apply(imagec.wxImage_Scale,(self,) + _args, _kwargs)
178 if val: val = wxImagePtr(val) ; val.thisown = 1
179 return val
180 def Rescale(self, *_args, **_kwargs):
181 val = apply(imagec.wxImage_Rescale,(self,) + _args, _kwargs)
182 if val: val = wxImagePtr(val)
183 return val
184 def SetRGB(self, *_args, **_kwargs):
185 val = apply(imagec.wxImage_SetRGB,(self,) + _args, _kwargs)
186 return val
187 def GetRed(self, *_args, **_kwargs):
188 val = apply(imagec.wxImage_GetRed,(self,) + _args, _kwargs)
189 return val
190 def GetGreen(self, *_args, **_kwargs):
191 val = apply(imagec.wxImage_GetGreen,(self,) + _args, _kwargs)
192 return val
193 def GetBlue(self, *_args, **_kwargs):
194 val = apply(imagec.wxImage_GetBlue,(self,) + _args, _kwargs)
195 return val
196 def LoadFile(self, *_args, **_kwargs):
197 val = apply(imagec.wxImage_LoadFile,(self,) + _args, _kwargs)
198 return val
199 def LoadMimeFile(self, *_args, **_kwargs):
200 val = apply(imagec.wxImage_LoadMimeFile,(self,) + _args, _kwargs)
201 return val
202 def SaveFile(self, *_args, **_kwargs):
203 val = apply(imagec.wxImage_SaveFile,(self,) + _args, _kwargs)
204 return val
205 def SaveMimeFile(self, *_args, **_kwargs):
206 val = apply(imagec.wxImage_SaveMimeFile,(self,) + _args, _kwargs)
207 return val
208 def Ok(self, *_args, **_kwargs):
209 val = apply(imagec.wxImage_Ok,(self,) + _args, _kwargs)
210 return val
211 def GetWidth(self, *_args, **_kwargs):
212 val = apply(imagec.wxImage_GetWidth,(self,) + _args, _kwargs)
213 return val
214 def GetHeight(self, *_args, **_kwargs):
215 val = apply(imagec.wxImage_GetHeight,(self,) + _args, _kwargs)
216 return val
217 def GetSubImage(self, *_args, **_kwargs):
218 val = apply(imagec.wxImage_GetSubImage,(self,) + _args, _kwargs)
219 if val: val = wxImagePtr(val) ; val.thisown = 1
220 return val
221 def Copy(self, *_args, **_kwargs):
222 val = apply(imagec.wxImage_Copy,(self,) + _args, _kwargs)
223 if val: val = wxImagePtr(val) ; val.thisown = 1
224 return val
225 def Paste(self, *_args, **_kwargs):
226 val = apply(imagec.wxImage_Paste,(self,) + _args, _kwargs)
227 return val
228 def GetData(self, *_args, **_kwargs):
229 val = apply(imagec.wxImage_GetData,(self,) + _args, _kwargs)
230 return val
231 def SetData(self, *_args, **_kwargs):
232 val = apply(imagec.wxImage_SetData,(self,) + _args, _kwargs)
233 return val
234 def SetMaskColour(self, *_args, **_kwargs):
235 val = apply(imagec.wxImage_SetMaskColour,(self,) + _args, _kwargs)
236 return val
237 def GetMaskRed(self, *_args, **_kwargs):
238 val = apply(imagec.wxImage_GetMaskRed,(self,) + _args, _kwargs)
239 return val
240 def GetMaskGreen(self, *_args, **_kwargs):
241 val = apply(imagec.wxImage_GetMaskGreen,(self,) + _args, _kwargs)
242 return val
243 def GetMaskBlue(self, *_args, **_kwargs):
244 val = apply(imagec.wxImage_GetMaskBlue,(self,) + _args, _kwargs)
245 return val
246 def SetMask(self, *_args, **_kwargs):
247 val = apply(imagec.wxImage_SetMask,(self,) + _args, _kwargs)
248 return val
249 def HasMask(self, *_args, **_kwargs):
250 val = apply(imagec.wxImage_HasMask,(self,) + _args, _kwargs)
251 return val
252 def Rotate(self, *_args, **_kwargs):
253 val = apply(imagec.wxImage_Rotate,(self,) + _args, _kwargs)
254 if val: val = wxImagePtr(val) ; val.thisown = 1
255 return val
256 def Rotate90(self, *_args, **_kwargs):
257 val = apply(imagec.wxImage_Rotate90,(self,) + _args, _kwargs)
258 if val: val = wxImagePtr(val) ; val.thisown = 1
259 return val
260 def Mirror(self, *_args, **_kwargs):
261 val = apply(imagec.wxImage_Mirror,(self,) + _args, _kwargs)
262 if val: val = wxImagePtr(val) ; val.thisown = 1
263 return val
264 def Replace(self, *_args, **_kwargs):
265 val = apply(imagec.wxImage_Replace,(self,) + _args, _kwargs)
266 return val
267 def ConvertToMono(self, *_args, **_kwargs):
268 val = apply(imagec.wxImage_ConvertToMono,(self,) + _args, _kwargs)
269 if val: val = wxImagePtr(val) ; val.thisown = 1
270 return val
271 def SetOption(self, *_args, **_kwargs):
272 val = apply(imagec.wxImage_SetOption,(self,) + _args, _kwargs)
273 return val
274 def SetOptionInt(self, *_args, **_kwargs):
275 val = apply(imagec.wxImage_SetOptionInt,(self,) + _args, _kwargs)
276 return val
277 def GetOption(self, *_args, **_kwargs):
278 val = apply(imagec.wxImage_GetOption,(self,) + _args, _kwargs)
279 return val
280 def GetOptionInt(self, *_args, **_kwargs):
281 val = apply(imagec.wxImage_GetOptionInt,(self,) + _args, _kwargs)
282 return val
283 def HasOption(self, *_args, **_kwargs):
284 val = apply(imagec.wxImage_HasOption,(self,) + _args, _kwargs)
285 return val
286 def CountColours(self, *_args, **_kwargs):
287 val = apply(imagec.wxImage_CountColours,(self,) + _args, _kwargs)
288 return val
289 def __repr__(self):
290 return "<C wxImage instance at %s>" % (self.this,)
291 class wxImage(wxImagePtr):
292 def __init__(self,*_args,**_kwargs):
293 self.this = apply(imagec.new_wxImage,_args,_kwargs)
294 self.thisown = 1
295
296
297
298
299
300
301 #-------------- FUNCTION WRAPPERS ------------------
302
303 def wxEmptyImage(*_args, **_kwargs):
304 val = apply(imagec.wxEmptyImage,_args,_kwargs)
305 if val: val = wxImagePtr(val); val.thisown = 1
306 return val
307
308 def wxImageFromMime(*_args, **_kwargs):
309 val = apply(imagec.wxImageFromMime,_args,_kwargs)
310 if val: val = wxImagePtr(val); val.thisown = 1
311 return val
312
313 def wxImageFromBitmap(*_args, **_kwargs):
314 val = apply(imagec.wxImageFromBitmap,_args,_kwargs)
315 if val: val = wxImagePtr(val); val.thisown = 1
316 return val
317
318 def wxImageFromData(*_args, **_kwargs):
319 val = apply(imagec.wxImageFromData,_args,_kwargs)
320 if val: val = wxImagePtr(val); val.thisown = 1
321 return val
322
323 wxInitAllImageHandlers = imagec.wxInitAllImageHandlers
324
325 def wxBitmapFromImage(*_args, **_kwargs):
326 val = apply(imagec.wxBitmapFromImage,_args,_kwargs)
327 if val: val = wxBitmapPtr(val); val.thisown = 1
328 return val
329
330 wxImage_CanRead = imagec.wxImage_CanRead
331
332 wxImage_GetImageCount = imagec.wxImage_GetImageCount
333
334 wxImage_AddHandler = imagec.wxImage_AddHandler
335
336 wxImage_InsertHandler = imagec.wxImage_InsertHandler
337
338 wxImage_RemoveHandler = imagec.wxImage_RemoveHandler
339
340
341
342 #-------------- VARIABLE WRAPPERS ------------------
343
344 cvar = imagec.cvar
345 wxNullImage = wxImagePtr(imagec.cvar.wxNullImage)