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