]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/gtk/image.py
synthetize 'button up' event before doubleclick, too
[wxWidgets.git] / wxPython / src / gtk / image.py
CommitLineData
cf694132
RD
1# This file was created automatically by SWIG.
2import imagec
3
4from misc import *
5
6from gdi import *
9df61a29 7class 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 40class wxImageHandler(wxImageHandlerPtr):
9d8bd15f
RD
41 def __init__(self,this):
42 self.this = this
cf694132
RD
43
44
45
46
47class 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 53class 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
61class 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 67class 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
75class 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 81class 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
89class 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,)
95class 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
db34b2d4
RD
103class wxCURHandlerPtr(wxICOHandlerPtr):
104 def __init__(self,this):
105 self.this = this
106 self.thisown = 0
107 def __repr__(self):
108 return "<C wxCURHandler instance at %s>" % (self.this,)
109class wxCURHandler(wxCURHandlerPtr):
110 def __init__(self,*_args,**_kwargs):
111 self.this = apply(imagec.new_wxCURHandler,_args,_kwargs)
112 self.thisown = 1
113
114
115
116
117class wxANIHandlerPtr(wxCURHandlerPtr):
118 def __init__(self,this):
119 self.this = this
120 self.thisown = 0
121 def __repr__(self):
122 return "<C wxANIHandler instance at %s>" % (self.this,)
123class wxANIHandler(wxANIHandlerPtr):
124 def __init__(self,*_args,**_kwargs):
125 self.this = apply(imagec.new_wxANIHandler,_args,_kwargs)
126 self.thisown = 1
127
128
129
130
cf694132
RD
131class wxGIFHandlerPtr(wxImageHandlerPtr):
132 def __init__(self,this):
133 self.this = this
134 self.thisown = 0
135 def __repr__(self):
1d99702e 136 return "<C wxGIFHandler instance at %s>" % (self.this,)
cf694132 137class wxGIFHandler(wxGIFHandlerPtr):
1d99702e
RD
138 def __init__(self,*_args,**_kwargs):
139 self.this = apply(imagec.new_wxGIFHandler,_args,_kwargs)
cf694132
RD
140 self.thisown = 1
141
142
143
144
06c0fba4
RD
145class wxPNMHandlerPtr(wxImageHandlerPtr):
146 def __init__(self,this):
147 self.this = this
148 self.thisown = 0
149 def __repr__(self):
150 return "<C wxPNMHandler instance at %s>" % (self.this,)
151class wxPNMHandler(wxPNMHandlerPtr):
152 def __init__(self,*_args,**_kwargs):
153 self.this = apply(imagec.new_wxPNMHandler,_args,_kwargs)
154 self.thisown = 1
155
156
157
158
159class wxPCXHandlerPtr(wxImageHandlerPtr):
160 def __init__(self,this):
161 self.this = this
162 self.thisown = 0
163 def __repr__(self):
164 return "<C wxPCXHandler instance at %s>" % (self.this,)
165class wxPCXHandler(wxPCXHandlerPtr):
166 def __init__(self,*_args,**_kwargs):
167 self.this = apply(imagec.new_wxPCXHandler,_args,_kwargs)
168 self.thisown = 1
169
170
171
172
9b3d3bc4
RD
173class wxTIFFHandlerPtr(wxImageHandlerPtr):
174 def __init__(self,this):
175 self.this = this
176 self.thisown = 0
177 def __repr__(self):
178 return "<C wxTIFFHandler instance at %s>" % (self.this,)
179class wxTIFFHandler(wxTIFFHandlerPtr):
180 def __init__(self,*_args,**_kwargs):
181 self.this = apply(imagec.new_wxTIFFHandler,_args,_kwargs)
182 self.thisown = 1
183
184
185
186
9df61a29 187class wxImagePtr(wxObjectPtr):
cf694132
RD
188 def __init__(self,this):
189 self.this = this
190 self.thisown = 0
1d99702e 191 def __del__(self,imagec=imagec):
cf694132 192 if self.thisown == 1 :
1d99702e
RD
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
cf694132 197 return val
9e689c06
RD
198 def ConvertToMonoBitmap(self, *_args, **_kwargs):
199 val = apply(imagec.wxImage_ConvertToMonoBitmap,(self,) + _args, _kwargs)
200 if val: val = wxBitmapPtr(val) ; val.thisown = 1
201 return val
1d99702e
RD
202 def Create(self, *_args, **_kwargs):
203 val = apply(imagec.wxImage_Create,(self,) + _args, _kwargs)
cf694132 204 return val
1d99702e
RD
205 def Destroy(self, *_args, **_kwargs):
206 val = apply(imagec.wxImage_Destroy,(self,) + _args, _kwargs)
cf694132 207 return val
1d99702e
RD
208 def Scale(self, *_args, **_kwargs):
209 val = apply(imagec.wxImage_Scale,(self,) + _args, _kwargs)
210 if val: val = wxImagePtr(val) ; val.thisown = 1
cf694132 211 return val
1d99702e
RD
212 def Rescale(self, *_args, **_kwargs):
213 val = apply(imagec.wxImage_Rescale,(self,) + _args, _kwargs)
f6bcfd97 214 if val: val = wxImagePtr(val)
8bf5d46e 215 return val
1d99702e
RD
216 def SetRGB(self, *_args, **_kwargs):
217 val = apply(imagec.wxImage_SetRGB,(self,) + _args, _kwargs)
cf694132 218 return val
1d99702e
RD
219 def GetRed(self, *_args, **_kwargs):
220 val = apply(imagec.wxImage_GetRed,(self,) + _args, _kwargs)
cf694132 221 return val
1d99702e
RD
222 def GetGreen(self, *_args, **_kwargs):
223 val = apply(imagec.wxImage_GetGreen,(self,) + _args, _kwargs)
cf694132 224 return val
1d99702e
RD
225 def GetBlue(self, *_args, **_kwargs):
226 val = apply(imagec.wxImage_GetBlue,(self,) + _args, _kwargs)
cf694132 227 return val
1d99702e
RD
228 def LoadFile(self, *_args, **_kwargs):
229 val = apply(imagec.wxImage_LoadFile,(self,) + _args, _kwargs)
cf694132 230 return val
1d99702e
RD
231 def LoadMimeFile(self, *_args, **_kwargs):
232 val = apply(imagec.wxImage_LoadMimeFile,(self,) + _args, _kwargs)
cf694132 233 return val
1d99702e
RD
234 def SaveFile(self, *_args, **_kwargs):
235 val = apply(imagec.wxImage_SaveFile,(self,) + _args, _kwargs)
cf694132 236 return val
1d99702e
RD
237 def SaveMimeFile(self, *_args, **_kwargs):
238 val = apply(imagec.wxImage_SaveMimeFile,(self,) + _args, _kwargs)
cf694132 239 return val
1d99702e
RD
240 def Ok(self, *_args, **_kwargs):
241 val = apply(imagec.wxImage_Ok,(self,) + _args, _kwargs)
cf694132 242 return val
1d99702e
RD
243 def GetWidth(self, *_args, **_kwargs):
244 val = apply(imagec.wxImage_GetWidth,(self,) + _args, _kwargs)
cf694132 245 return val
1d99702e
RD
246 def GetHeight(self, *_args, **_kwargs):
247 val = apply(imagec.wxImage_GetHeight,(self,) + _args, _kwargs)
cf694132 248 return val
9d8bd15f
RD
249 def GetSubImage(self, *_args, **_kwargs):
250 val = apply(imagec.wxImage_GetSubImage,(self,) + _args, _kwargs)
251 if val: val = wxImagePtr(val) ; val.thisown = 1
252 return val
f6bcfd97
BP
253 def Copy(self, *_args, **_kwargs):
254 val = apply(imagec.wxImage_Copy,(self,) + _args, _kwargs)
255 if val: val = wxImagePtr(val) ; val.thisown = 1
256 return val
257 def Paste(self, *_args, **_kwargs):
258 val = apply(imagec.wxImage_Paste,(self,) + _args, _kwargs)
259 return val
1d99702e
RD
260 def GetData(self, *_args, **_kwargs):
261 val = apply(imagec.wxImage_GetData,(self,) + _args, _kwargs)
cf694132 262 return val
1d99702e
RD
263 def SetData(self, *_args, **_kwargs):
264 val = apply(imagec.wxImage_SetData,(self,) + _args, _kwargs)
cf694132 265 return val
1d99702e
RD
266 def SetMaskColour(self, *_args, **_kwargs):
267 val = apply(imagec.wxImage_SetMaskColour,(self,) + _args, _kwargs)
cf694132 268 return val
1d99702e
RD
269 def GetMaskRed(self, *_args, **_kwargs):
270 val = apply(imagec.wxImage_GetMaskRed,(self,) + _args, _kwargs)
cf694132 271 return val
1d99702e
RD
272 def GetMaskGreen(self, *_args, **_kwargs):
273 val = apply(imagec.wxImage_GetMaskGreen,(self,) + _args, _kwargs)
cf694132 274 return val
1d99702e
RD
275 def GetMaskBlue(self, *_args, **_kwargs):
276 val = apply(imagec.wxImage_GetMaskBlue,(self,) + _args, _kwargs)
cf694132 277 return val
1d99702e
RD
278 def SetMask(self, *_args, **_kwargs):
279 val = apply(imagec.wxImage_SetMask,(self,) + _args, _kwargs)
cf694132 280 return val
1d99702e
RD
281 def HasMask(self, *_args, **_kwargs):
282 val = apply(imagec.wxImage_HasMask,(self,) + _args, _kwargs)
cf694132 283 return val
f6bcfd97
BP
284 def Rotate(self, *_args, **_kwargs):
285 val = apply(imagec.wxImage_Rotate,(self,) + _args, _kwargs)
286 if val: val = wxImagePtr(val) ; val.thisown = 1
287 return val
288 def Rotate90(self, *_args, **_kwargs):
289 val = apply(imagec.wxImage_Rotate90,(self,) + _args, _kwargs)
290 if val: val = wxImagePtr(val) ; val.thisown = 1
291 return val
292 def Mirror(self, *_args, **_kwargs):
293 val = apply(imagec.wxImage_Mirror,(self,) + _args, _kwargs)
294 if val: val = wxImagePtr(val) ; val.thisown = 1
295 return val
296 def Replace(self, *_args, **_kwargs):
297 val = apply(imagec.wxImage_Replace,(self,) + _args, _kwargs)
298 return val
93283355
RD
299 def ConvertToMono(self, *_args, **_kwargs):
300 val = apply(imagec.wxImage_ConvertToMono,(self,) + _args, _kwargs)
301 if val: val = wxImagePtr(val) ; val.thisown = 1
302 return val
303 def SetOption(self, *_args, **_kwargs):
304 val = apply(imagec.wxImage_SetOption,(self,) + _args, _kwargs)
305 return val
306 def SetOptionInt(self, *_args, **_kwargs):
307 val = apply(imagec.wxImage_SetOptionInt,(self,) + _args, _kwargs)
308 return val
309 def GetOption(self, *_args, **_kwargs):
310 val = apply(imagec.wxImage_GetOption,(self,) + _args, _kwargs)
311 return val
312 def GetOptionInt(self, *_args, **_kwargs):
313 val = apply(imagec.wxImage_GetOptionInt,(self,) + _args, _kwargs)
314 return val
315 def HasOption(self, *_args, **_kwargs):
316 val = apply(imagec.wxImage_HasOption,(self,) + _args, _kwargs)
317 return val
f6bcfd97
BP
318 def CountColours(self, *_args, **_kwargs):
319 val = apply(imagec.wxImage_CountColours,(self,) + _args, _kwargs)
320 return val
cf694132 321 def __repr__(self):
1d99702e 322 return "<C wxImage instance at %s>" % (self.this,)
cf694132 323class wxImage(wxImagePtr):
1d99702e
RD
324 def __init__(self,*_args,**_kwargs):
325 self.this = apply(imagec.new_wxImage,_args,_kwargs)
cf694132
RD
326 self.thisown = 1
327
328
329
330
331
332
333#-------------- FUNCTION WRAPPERS ------------------
334
1d99702e
RD
335def wxEmptyImage(*_args, **_kwargs):
336 val = apply(imagec.wxEmptyImage,_args,_kwargs)
337 if val: val = wxImagePtr(val); val.thisown = 1
cf694132
RD
338 return val
339
1d99702e
RD
340def wxImageFromMime(*_args, **_kwargs):
341 val = apply(imagec.wxImageFromMime,_args,_kwargs)
342 if val: val = wxImagePtr(val); val.thisown = 1
cf694132
RD
343 return val
344
1d99702e
RD
345def wxImageFromBitmap(*_args, **_kwargs):
346 val = apply(imagec.wxImageFromBitmap,_args,_kwargs)
347 if val: val = wxImagePtr(val); val.thisown = 1
cf694132
RD
348 return val
349
1893b029
RD
350def wxImageFromData(*_args, **_kwargs):
351 val = apply(imagec.wxImageFromData,_args,_kwargs)
352 if val: val = wxImagePtr(val); val.thisown = 1
353 return val
354
fbcadfca
RD
355wxInitAllImageHandlers = imagec.wxInitAllImageHandlers
356
9e689c06
RD
357def wxBitmapFromImage(*_args, **_kwargs):
358 val = apply(imagec.wxBitmapFromImage,_args,_kwargs)
359 if val: val = wxBitmapPtr(val); val.thisown = 1
360 return val
361
fbcadfca
RD
362wxImage_CanRead = imagec.wxImage_CanRead
363
1893b029
RD
364wxImage_GetImageCount = imagec.wxImage_GetImageCount
365
1d99702e 366wxImage_AddHandler = imagec.wxImage_AddHandler
cf694132 367
fbcadfca
RD
368wxImage_InsertHandler = imagec.wxImage_InsertHandler
369
370wxImage_RemoveHandler = imagec.wxImage_RemoveHandler
06c0fba4 371
cf694132
RD
372
373
374#-------------- VARIABLE WRAPPERS ------------------
375
df05452e
RD
376cvar = imagec.cvar
377wxNullImage = wxImagePtr(imagec.cvar.wxNullImage)