]>
Commit | Line | Data |
---|---|---|
cf694132 RD |
1 | # This file was created automatically by SWIG. |
2 | import imagec | |
3 | ||
4 | from misc import * | |
5 | ||
6 | from gdi import * | |
9df61a29 | 7 | class wxImageHandlerPtr(wxObjectPtr): |
cf694132 RD |
8 | def __init__(self,this): |
9 | self.this = this | |
10 | self.thisown = 0 | |
1d99702e RD |
11 | def GetName(self, *_args, **_kwargs): |
12 | val = apply(imagec.wxImageHandler_GetName,(self,) + _args, _kwargs) | |
cf694132 | 13 | return val |
1d99702e RD |
14 | def GetExtension(self, *_args, **_kwargs): |
15 | val = apply(imagec.wxImageHandler_GetExtension,(self,) + _args, _kwargs) | |
cf694132 | 16 | return val |
1d99702e RD |
17 | def GetType(self, *_args, **_kwargs): |
18 | val = apply(imagec.wxImageHandler_GetType,(self,) + _args, _kwargs) | |
cf694132 | 19 | return val |
1d99702e RD |
20 | def GetMimeType(self, *_args, **_kwargs): |
21 | val = apply(imagec.wxImageHandler_GetMimeType,(self,) + _args, _kwargs) | |
cf694132 | 22 | return val |
1893b029 RD |
23 | def CanRead(self, *_args, **_kwargs): |
24 | val = apply(imagec.wxImageHandler_CanRead,(self,) + _args, _kwargs) | |
25 | return val | |
1d99702e RD |
26 | def SetName(self, *_args, **_kwargs): |
27 | val = apply(imagec.wxImageHandler_SetName,(self,) + _args, _kwargs) | |
cf694132 | 28 | return val |
1d99702e RD |
29 | def SetExtension(self, *_args, **_kwargs): |
30 | val = apply(imagec.wxImageHandler_SetExtension,(self,) + _args, _kwargs) | |
cf694132 | 31 | return val |
1d99702e RD |
32 | def SetType(self, *_args, **_kwargs): |
33 | val = apply(imagec.wxImageHandler_SetType,(self,) + _args, _kwargs) | |
cf694132 | 34 | return val |
1d99702e RD |
35 | def SetMimeType(self, *_args, **_kwargs): |
36 | val = apply(imagec.wxImageHandler_SetMimeType,(self,) + _args, _kwargs) | |
cf694132 RD |
37 | return val |
38 | def __repr__(self): | |
1d99702e | 39 | return "<C wxImageHandler instance at %s>" % (self.this,) |
cf694132 | 40 | class wxImageHandler(wxImageHandlerPtr): |
9d8bd15f RD |
41 | def __init__(self,this): |
42 | self.this = this | |
cf694132 RD |
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): | |
1d99702e | 52 | return "<C wxPNGHandler instance at %s>" % (self.this,) |
cf694132 | 53 | class wxPNGHandler(wxPNGHandlerPtr): |
1d99702e RD |
54 | def __init__(self,*_args,**_kwargs): |
55 | self.this = apply(imagec.new_wxPNGHandler,_args,_kwargs) | |
cf694132 RD |
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): | |
1d99702e | 66 | return "<C wxJPEGHandler instance at %s>" % (self.this,) |
cf694132 | 67 | class wxJPEGHandler(wxJPEGHandlerPtr): |
1d99702e RD |
68 | def __init__(self,*_args,**_kwargs): |
69 | self.this = apply(imagec.new_wxJPEGHandler,_args,_kwargs) | |
cf694132 RD |
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): | |
1d99702e | 80 | return "<C wxBMPHandler instance at %s>" % (self.this,) |
cf694132 | 81 | class wxBMPHandler(wxBMPHandlerPtr): |
1d99702e RD |
82 | def __init__(self,*_args,**_kwargs): |
83 | self.this = apply(imagec.new_wxBMPHandler,_args,_kwargs) | |
cf694132 RD |
84 | self.thisown = 1 |
85 | ||
86 | ||
87 | ||
88 | ||
1893b029 RD |
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 | ||
cf694132 RD |
103 | class wxGIFHandlerPtr(wxImageHandlerPtr): |
104 | def __init__(self,this): | |
105 | self.this = this | |
106 | self.thisown = 0 | |
107 | def __repr__(self): | |
1d99702e | 108 | return "<C wxGIFHandler instance at %s>" % (self.this,) |
cf694132 | 109 | class wxGIFHandler(wxGIFHandlerPtr): |
1d99702e RD |
110 | def __init__(self,*_args,**_kwargs): |
111 | self.this = apply(imagec.new_wxGIFHandler,_args,_kwargs) | |
cf694132 RD |
112 | self.thisown = 1 |
113 | ||
114 | ||
115 | ||
116 | ||
06c0fba4 RD |
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 | ||
9b3d3bc4 RD |
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 | ||
9df61a29 | 159 | class wxImagePtr(wxObjectPtr): |
cf694132 RD |
160 | def __init__(self,this): |
161 | self.this = this | |
162 | self.thisown = 0 | |
1d99702e | 163 | def __del__(self,imagec=imagec): |
cf694132 | 164 | if self.thisown == 1 : |
1d99702e RD |
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 | |
cf694132 | 169 | return val |
9e689c06 RD |
170 | def ConvertToMonoBitmap(self, *_args, **_kwargs): |
171 | val = apply(imagec.wxImage_ConvertToMonoBitmap,(self,) + _args, _kwargs) | |
172 | if val: val = wxBitmapPtr(val) ; val.thisown = 1 | |
173 | return val | |
1d99702e RD |
174 | def Create(self, *_args, **_kwargs): |
175 | val = apply(imagec.wxImage_Create,(self,) + _args, _kwargs) | |
cf694132 | 176 | return val |
1d99702e RD |
177 | def Destroy(self, *_args, **_kwargs): |
178 | val = apply(imagec.wxImage_Destroy,(self,) + _args, _kwargs) | |
cf694132 | 179 | return val |
1d99702e RD |
180 | def Scale(self, *_args, **_kwargs): |
181 | val = apply(imagec.wxImage_Scale,(self,) + _args, _kwargs) | |
182 | if val: val = wxImagePtr(val) ; val.thisown = 1 | |
cf694132 | 183 | return val |
1d99702e RD |
184 | def Rescale(self, *_args, **_kwargs): |
185 | val = apply(imagec.wxImage_Rescale,(self,) + _args, _kwargs) | |
f6bcfd97 | 186 | if val: val = wxImagePtr(val) |
8bf5d46e | 187 | return val |
1d99702e RD |
188 | def SetRGB(self, *_args, **_kwargs): |
189 | val = apply(imagec.wxImage_SetRGB,(self,) + _args, _kwargs) | |
cf694132 | 190 | return val |
1d99702e RD |
191 | def GetRed(self, *_args, **_kwargs): |
192 | val = apply(imagec.wxImage_GetRed,(self,) + _args, _kwargs) | |
cf694132 | 193 | return val |
1d99702e RD |
194 | def GetGreen(self, *_args, **_kwargs): |
195 | val = apply(imagec.wxImage_GetGreen,(self,) + _args, _kwargs) | |
cf694132 | 196 | return val |
1d99702e RD |
197 | def GetBlue(self, *_args, **_kwargs): |
198 | val = apply(imagec.wxImage_GetBlue,(self,) + _args, _kwargs) | |
cf694132 | 199 | return val |
1d99702e RD |
200 | def LoadFile(self, *_args, **_kwargs): |
201 | val = apply(imagec.wxImage_LoadFile,(self,) + _args, _kwargs) | |
cf694132 | 202 | return val |
1d99702e RD |
203 | def LoadMimeFile(self, *_args, **_kwargs): |
204 | val = apply(imagec.wxImage_LoadMimeFile,(self,) + _args, _kwargs) | |
cf694132 | 205 | return val |
1d99702e RD |
206 | def SaveFile(self, *_args, **_kwargs): |
207 | val = apply(imagec.wxImage_SaveFile,(self,) + _args, _kwargs) | |
cf694132 | 208 | return val |
1d99702e RD |
209 | def SaveMimeFile(self, *_args, **_kwargs): |
210 | val = apply(imagec.wxImage_SaveMimeFile,(self,) + _args, _kwargs) | |
cf694132 | 211 | return val |
1d99702e RD |
212 | def Ok(self, *_args, **_kwargs): |
213 | val = apply(imagec.wxImage_Ok,(self,) + _args, _kwargs) | |
cf694132 | 214 | return val |
1d99702e RD |
215 | def GetWidth(self, *_args, **_kwargs): |
216 | val = apply(imagec.wxImage_GetWidth,(self,) + _args, _kwargs) | |
cf694132 | 217 | return val |
1d99702e RD |
218 | def GetHeight(self, *_args, **_kwargs): |
219 | val = apply(imagec.wxImage_GetHeight,(self,) + _args, _kwargs) | |
cf694132 | 220 | return val |
9d8bd15f RD |
221 | def GetSubImage(self, *_args, **_kwargs): |
222 | val = apply(imagec.wxImage_GetSubImage,(self,) + _args, _kwargs) | |
223 | if val: val = wxImagePtr(val) ; val.thisown = 1 | |
224 | return val | |
f6bcfd97 BP |
225 | def Copy(self, *_args, **_kwargs): |
226 | val = apply(imagec.wxImage_Copy,(self,) + _args, _kwargs) | |
227 | if val: val = wxImagePtr(val) ; val.thisown = 1 | |
228 | return val | |
229 | def Paste(self, *_args, **_kwargs): | |
230 | val = apply(imagec.wxImage_Paste,(self,) + _args, _kwargs) | |
231 | return val | |
1d99702e RD |
232 | def GetData(self, *_args, **_kwargs): |
233 | val = apply(imagec.wxImage_GetData,(self,) + _args, _kwargs) | |
cf694132 | 234 | return val |
1d99702e RD |
235 | def SetData(self, *_args, **_kwargs): |
236 | val = apply(imagec.wxImage_SetData,(self,) + _args, _kwargs) | |
cf694132 | 237 | return val |
1d99702e RD |
238 | def SetMaskColour(self, *_args, **_kwargs): |
239 | val = apply(imagec.wxImage_SetMaskColour,(self,) + _args, _kwargs) | |
cf694132 | 240 | return val |
1d99702e RD |
241 | def GetMaskRed(self, *_args, **_kwargs): |
242 | val = apply(imagec.wxImage_GetMaskRed,(self,) + _args, _kwargs) | |
cf694132 | 243 | return val |
1d99702e RD |
244 | def GetMaskGreen(self, *_args, **_kwargs): |
245 | val = apply(imagec.wxImage_GetMaskGreen,(self,) + _args, _kwargs) | |
cf694132 | 246 | return val |
1d99702e RD |
247 | def GetMaskBlue(self, *_args, **_kwargs): |
248 | val = apply(imagec.wxImage_GetMaskBlue,(self,) + _args, _kwargs) | |
cf694132 | 249 | return val |
1d99702e RD |
250 | def SetMask(self, *_args, **_kwargs): |
251 | val = apply(imagec.wxImage_SetMask,(self,) + _args, _kwargs) | |
cf694132 | 252 | return val |
1d99702e RD |
253 | def HasMask(self, *_args, **_kwargs): |
254 | val = apply(imagec.wxImage_HasMask,(self,) + _args, _kwargs) | |
cf694132 | 255 | return val |
f6bcfd97 BP |
256 | def Rotate(self, *_args, **_kwargs): |
257 | val = apply(imagec.wxImage_Rotate,(self,) + _args, _kwargs) | |
258 | if val: val = wxImagePtr(val) ; val.thisown = 1 | |
259 | return val | |
260 | def Rotate90(self, *_args, **_kwargs): | |
261 | val = apply(imagec.wxImage_Rotate90,(self,) + _args, _kwargs) | |
262 | if val: val = wxImagePtr(val) ; val.thisown = 1 | |
263 | return val | |
264 | def Mirror(self, *_args, **_kwargs): | |
265 | val = apply(imagec.wxImage_Mirror,(self,) + _args, _kwargs) | |
266 | if val: val = wxImagePtr(val) ; val.thisown = 1 | |
267 | return val | |
268 | def Replace(self, *_args, **_kwargs): | |
269 | val = apply(imagec.wxImage_Replace,(self,) + _args, _kwargs) | |
270 | return val | |
93283355 RD |
271 | def ConvertToMono(self, *_args, **_kwargs): |
272 | val = apply(imagec.wxImage_ConvertToMono,(self,) + _args, _kwargs) | |
273 | if val: val = wxImagePtr(val) ; val.thisown = 1 | |
274 | return val | |
275 | def SetOption(self, *_args, **_kwargs): | |
276 | val = apply(imagec.wxImage_SetOption,(self,) + _args, _kwargs) | |
277 | return val | |
278 | def SetOptionInt(self, *_args, **_kwargs): | |
279 | val = apply(imagec.wxImage_SetOptionInt,(self,) + _args, _kwargs) | |
280 | return val | |
281 | def GetOption(self, *_args, **_kwargs): | |
282 | val = apply(imagec.wxImage_GetOption,(self,) + _args, _kwargs) | |
283 | return val | |
284 | def GetOptionInt(self, *_args, **_kwargs): | |
285 | val = apply(imagec.wxImage_GetOptionInt,(self,) + _args, _kwargs) | |
286 | return val | |
287 | def HasOption(self, *_args, **_kwargs): | |
288 | val = apply(imagec.wxImage_HasOption,(self,) + _args, _kwargs) | |
289 | return val | |
f6bcfd97 BP |
290 | def CountColours(self, *_args, **_kwargs): |
291 | val = apply(imagec.wxImage_CountColours,(self,) + _args, _kwargs) | |
292 | return val | |
cf694132 | 293 | def __repr__(self): |
1d99702e | 294 | return "<C wxImage instance at %s>" % (self.this,) |
cf694132 | 295 | class wxImage(wxImagePtr): |
1d99702e RD |
296 | def __init__(self,*_args,**_kwargs): |
297 | self.this = apply(imagec.new_wxImage,_args,_kwargs) | |
cf694132 RD |
298 | self.thisown = 1 |
299 | ||
300 | ||
301 | ||
302 | ||
303 | ||
304 | ||
305 | #-------------- FUNCTION WRAPPERS ------------------ | |
306 | ||
1d99702e RD |
307 | def wxEmptyImage(*_args, **_kwargs): |
308 | val = apply(imagec.wxEmptyImage,_args,_kwargs) | |
309 | if val: val = wxImagePtr(val); val.thisown = 1 | |
cf694132 RD |
310 | return val |
311 | ||
1d99702e RD |
312 | def wxImageFromMime(*_args, **_kwargs): |
313 | val = apply(imagec.wxImageFromMime,_args,_kwargs) | |
314 | if val: val = wxImagePtr(val); val.thisown = 1 | |
cf694132 RD |
315 | return val |
316 | ||
1d99702e RD |
317 | def wxImageFromBitmap(*_args, **_kwargs): |
318 | val = apply(imagec.wxImageFromBitmap,_args,_kwargs) | |
319 | if val: val = wxImagePtr(val); val.thisown = 1 | |
cf694132 RD |
320 | return val |
321 | ||
1893b029 RD |
322 | def wxImageFromData(*_args, **_kwargs): |
323 | val = apply(imagec.wxImageFromData,_args,_kwargs) | |
324 | if val: val = wxImagePtr(val); val.thisown = 1 | |
325 | return val | |
326 | ||
fbcadfca RD |
327 | wxInitAllImageHandlers = imagec.wxInitAllImageHandlers |
328 | ||
9e689c06 RD |
329 | def wxBitmapFromImage(*_args, **_kwargs): |
330 | val = apply(imagec.wxBitmapFromImage,_args,_kwargs) | |
331 | if val: val = wxBitmapPtr(val); val.thisown = 1 | |
332 | return val | |
333 | ||
fbcadfca RD |
334 | wxImage_CanRead = imagec.wxImage_CanRead |
335 | ||
1893b029 RD |
336 | wxImage_GetImageCount = imagec.wxImage_GetImageCount |
337 | ||
1d99702e | 338 | wxImage_AddHandler = imagec.wxImage_AddHandler |
cf694132 | 339 | |
fbcadfca RD |
340 | wxImage_InsertHandler = imagec.wxImage_InsertHandler |
341 | ||
342 | wxImage_RemoveHandler = imagec.wxImage_RemoveHandler | |
06c0fba4 | 343 | |
cf694132 RD |
344 | |
345 | ||
346 | #-------------- VARIABLE WRAPPERS ------------------ | |
347 | ||
df05452e RD |
348 | cvar = imagec.cvar |
349 | wxNullImage = wxImagePtr(imagec.cvar.wxNullImage) |