]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/msw/image.py
Got dialog sizing to work, downsized fonts a bit (though it always returns
[wxWidgets.git] / wxPython / src / msw / image.py
CommitLineData
cf694132
RD
1# This file was created automatically by SWIG.
2import imagec
3
4from misc import *
5
6from gdi import *
f74ff5ef
RD
7
8from streams import *
9416aa89 9class wxImageHandlerPtr(wxObjectPtr):
cf694132
RD
10 def __init__(self,this):
11 self.this = this
12 self.thisown = 0
1d99702e
RD
13 def GetName(self, *_args, **_kwargs):
14 val = apply(imagec.wxImageHandler_GetName,(self,) + _args, _kwargs)
cf694132 15 return val
1d99702e
RD
16 def GetExtension(self, *_args, **_kwargs):
17 val = apply(imagec.wxImageHandler_GetExtension,(self,) + _args, _kwargs)
cf694132 18 return val
1d99702e
RD
19 def GetType(self, *_args, **_kwargs):
20 val = apply(imagec.wxImageHandler_GetType,(self,) + _args, _kwargs)
cf694132 21 return val
1d99702e
RD
22 def GetMimeType(self, *_args, **_kwargs):
23 val = apply(imagec.wxImageHandler_GetMimeType,(self,) + _args, _kwargs)
cf694132 24 return val
b5a5d647
RD
25 def CanRead(self, *_args, **_kwargs):
26 val = apply(imagec.wxImageHandler_CanRead,(self,) + _args, _kwargs)
27 return val
1d99702e
RD
28 def SetName(self, *_args, **_kwargs):
29 val = apply(imagec.wxImageHandler_SetName,(self,) + _args, _kwargs)
cf694132 30 return val
1d99702e
RD
31 def SetExtension(self, *_args, **_kwargs):
32 val = apply(imagec.wxImageHandler_SetExtension,(self,) + _args, _kwargs)
cf694132 33 return val
1d99702e
RD
34 def SetType(self, *_args, **_kwargs):
35 val = apply(imagec.wxImageHandler_SetType,(self,) + _args, _kwargs)
cf694132 36 return val
1d99702e
RD
37 def SetMimeType(self, *_args, **_kwargs):
38 val = apply(imagec.wxImageHandler_SetMimeType,(self,) + _args, _kwargs)
cf694132
RD
39 return val
40 def __repr__(self):
1d99702e 41 return "<C wxImageHandler instance at %s>" % (self.this,)
cf694132 42class wxImageHandler(wxImageHandlerPtr):
9d8bd15f
RD
43 def __init__(self,this):
44 self.this = this
cf694132
RD
45
46
47
48
49class wxPNGHandlerPtr(wxImageHandlerPtr):
50 def __init__(self,this):
51 self.this = this
52 self.thisown = 0
53 def __repr__(self):
1d99702e 54 return "<C wxPNGHandler instance at %s>" % (self.this,)
cf694132 55class wxPNGHandler(wxPNGHandlerPtr):
1d99702e
RD
56 def __init__(self,*_args,**_kwargs):
57 self.this = apply(imagec.new_wxPNGHandler,_args,_kwargs)
cf694132
RD
58 self.thisown = 1
59
60
61
62
63class wxJPEGHandlerPtr(wxImageHandlerPtr):
64 def __init__(self,this):
65 self.this = this
66 self.thisown = 0
67 def __repr__(self):
1d99702e 68 return "<C wxJPEGHandler instance at %s>" % (self.this,)
cf694132 69class wxJPEGHandler(wxJPEGHandlerPtr):
1d99702e
RD
70 def __init__(self,*_args,**_kwargs):
71 self.this = apply(imagec.new_wxJPEGHandler,_args,_kwargs)
cf694132
RD
72 self.thisown = 1
73
74
75
76
77class wxBMPHandlerPtr(wxImageHandlerPtr):
78 def __init__(self,this):
79 self.this = this
80 self.thisown = 0
81 def __repr__(self):
1d99702e 82 return "<C wxBMPHandler instance at %s>" % (self.this,)
cf694132 83class wxBMPHandler(wxBMPHandlerPtr):
1d99702e
RD
84 def __init__(self,*_args,**_kwargs):
85 self.this = apply(imagec.new_wxBMPHandler,_args,_kwargs)
cf694132
RD
86 self.thisown = 1
87
88
89
90
b5a5d647
RD
91class wxICOHandlerPtr(wxBMPHandlerPtr):
92 def __init__(self,this):
93 self.this = this
94 self.thisown = 0
95 def __repr__(self):
96 return "<C wxICOHandler instance at %s>" % (self.this,)
97class wxICOHandler(wxICOHandlerPtr):
98 def __init__(self,*_args,**_kwargs):
99 self.this = apply(imagec.new_wxICOHandler,_args,_kwargs)
100 self.thisown = 1
101
102
103
104
68320e40
RD
105class wxCURHandlerPtr(wxICOHandlerPtr):
106 def __init__(self,this):
107 self.this = this
108 self.thisown = 0
109 def __repr__(self):
110 return "<C wxCURHandler instance at %s>" % (self.this,)
111class wxCURHandler(wxCURHandlerPtr):
112 def __init__(self,*_args,**_kwargs):
113 self.this = apply(imagec.new_wxCURHandler,_args,_kwargs)
114 self.thisown = 1
115
116
117
118
119class wxANIHandlerPtr(wxCURHandlerPtr):
120 def __init__(self,this):
121 self.this = this
122 self.thisown = 0
123 def __repr__(self):
124 return "<C wxANIHandler instance at %s>" % (self.this,)
125class wxANIHandler(wxANIHandlerPtr):
126 def __init__(self,*_args,**_kwargs):
127 self.this = apply(imagec.new_wxANIHandler,_args,_kwargs)
128 self.thisown = 1
129
130
131
132
cf694132
RD
133class wxGIFHandlerPtr(wxImageHandlerPtr):
134 def __init__(self,this):
135 self.this = this
136 self.thisown = 0
137 def __repr__(self):
1d99702e 138 return "<C wxGIFHandler instance at %s>" % (self.this,)
cf694132 139class wxGIFHandler(wxGIFHandlerPtr):
1d99702e
RD
140 def __init__(self,*_args,**_kwargs):
141 self.this = apply(imagec.new_wxGIFHandler,_args,_kwargs)
cf694132
RD
142 self.thisown = 1
143
144
145
146
06c0fba4
RD
147class wxPNMHandlerPtr(wxImageHandlerPtr):
148 def __init__(self,this):
149 self.this = this
150 self.thisown = 0
151 def __repr__(self):
152 return "<C wxPNMHandler instance at %s>" % (self.this,)
153class wxPNMHandler(wxPNMHandlerPtr):
154 def __init__(self,*_args,**_kwargs):
155 self.this = apply(imagec.new_wxPNMHandler,_args,_kwargs)
156 self.thisown = 1
157
158
159
160
161class wxPCXHandlerPtr(wxImageHandlerPtr):
162 def __init__(self,this):
163 self.this = this
164 self.thisown = 0
165 def __repr__(self):
166 return "<C wxPCXHandler instance at %s>" % (self.this,)
167class wxPCXHandler(wxPCXHandlerPtr):
168 def __init__(self,*_args,**_kwargs):
169 self.this = apply(imagec.new_wxPCXHandler,_args,_kwargs)
170 self.thisown = 1
171
172
173
174
9b3d3bc4
RD
175class wxTIFFHandlerPtr(wxImageHandlerPtr):
176 def __init__(self,this):
177 self.this = this
178 self.thisown = 0
179 def __repr__(self):
180 return "<C wxTIFFHandler instance at %s>" % (self.this,)
181class wxTIFFHandler(wxTIFFHandlerPtr):
182 def __init__(self,*_args,**_kwargs):
183 self.this = apply(imagec.new_wxTIFFHandler,_args,_kwargs)
184 self.thisown = 1
185
186
187
188
9416aa89 189class wxImagePtr(wxObjectPtr):
cf694132
RD
190 def __init__(self,this):
191 self.this = this
192 self.thisown = 0
1d99702e 193 def __del__(self,imagec=imagec):
cf694132 194 if self.thisown == 1 :
1d99702e
RD
195 imagec.delete_wxImage(self)
196 def ConvertToBitmap(self, *_args, **_kwargs):
197 val = apply(imagec.wxImage_ConvertToBitmap,(self,) + _args, _kwargs)
198 if val: val = wxBitmapPtr(val) ; val.thisown = 1
cf694132 199 return val
1d99702e
RD
200 def Create(self, *_args, **_kwargs):
201 val = apply(imagec.wxImage_Create,(self,) + _args, _kwargs)
cf694132 202 return val
1d99702e
RD
203 def Destroy(self, *_args, **_kwargs):
204 val = apply(imagec.wxImage_Destroy,(self,) + _args, _kwargs)
cf694132 205 return val
1d99702e
RD
206 def Scale(self, *_args, **_kwargs):
207 val = apply(imagec.wxImage_Scale,(self,) + _args, _kwargs)
208 if val: val = wxImagePtr(val) ; val.thisown = 1
cf694132 209 return val
1d99702e
RD
210 def Rescale(self, *_args, **_kwargs):
211 val = apply(imagec.wxImage_Rescale,(self,) + _args, _kwargs)
f6bcfd97 212 if val: val = wxImagePtr(val)
8bf5d46e 213 return val
1d99702e
RD
214 def SetRGB(self, *_args, **_kwargs):
215 val = apply(imagec.wxImage_SetRGB,(self,) + _args, _kwargs)
cf694132 216 return val
1d99702e
RD
217 def GetRed(self, *_args, **_kwargs):
218 val = apply(imagec.wxImage_GetRed,(self,) + _args, _kwargs)
cf694132 219 return val
1d99702e
RD
220 def GetGreen(self, *_args, **_kwargs):
221 val = apply(imagec.wxImage_GetGreen,(self,) + _args, _kwargs)
cf694132 222 return val
1d99702e
RD
223 def GetBlue(self, *_args, **_kwargs):
224 val = apply(imagec.wxImage_GetBlue,(self,) + _args, _kwargs)
cf694132 225 return val
1d99702e
RD
226 def LoadFile(self, *_args, **_kwargs):
227 val = apply(imagec.wxImage_LoadFile,(self,) + _args, _kwargs)
cf694132 228 return val
1d99702e
RD
229 def LoadMimeFile(self, *_args, **_kwargs):
230 val = apply(imagec.wxImage_LoadMimeFile,(self,) + _args, _kwargs)
cf694132 231 return val
1d99702e
RD
232 def SaveFile(self, *_args, **_kwargs):
233 val = apply(imagec.wxImage_SaveFile,(self,) + _args, _kwargs)
cf694132 234 return val
1d99702e
RD
235 def SaveMimeFile(self, *_args, **_kwargs):
236 val = apply(imagec.wxImage_SaveMimeFile,(self,) + _args, _kwargs)
cf694132 237 return val
f74ff5ef
RD
238 def LoadStream(self, *_args, **_kwargs):
239 val = apply(imagec.wxImage_LoadStream,(self,) + _args, _kwargs)
240 return val
241 def LoadMimeStream(self, *_args, **_kwargs):
242 val = apply(imagec.wxImage_LoadMimeStream,(self,) + _args, _kwargs)
243 return val
1d99702e
RD
244 def Ok(self, *_args, **_kwargs):
245 val = apply(imagec.wxImage_Ok,(self,) + _args, _kwargs)
cf694132 246 return val
1d99702e
RD
247 def GetWidth(self, *_args, **_kwargs):
248 val = apply(imagec.wxImage_GetWidth,(self,) + _args, _kwargs)
cf694132 249 return val
1d99702e
RD
250 def GetHeight(self, *_args, **_kwargs):
251 val = apply(imagec.wxImage_GetHeight,(self,) + _args, _kwargs)
cf694132 252 return val
9d8bd15f
RD
253 def GetSubImage(self, *_args, **_kwargs):
254 val = apply(imagec.wxImage_GetSubImage,(self,) + _args, _kwargs)
255 if val: val = wxImagePtr(val) ; val.thisown = 1
256 return val
f6bcfd97
BP
257 def Copy(self, *_args, **_kwargs):
258 val = apply(imagec.wxImage_Copy,(self,) + _args, _kwargs)
259 if val: val = wxImagePtr(val) ; val.thisown = 1
260 return val
261 def Paste(self, *_args, **_kwargs):
262 val = apply(imagec.wxImage_Paste,(self,) + _args, _kwargs)
263 return val
1d99702e
RD
264 def GetData(self, *_args, **_kwargs):
265 val = apply(imagec.wxImage_GetData,(self,) + _args, _kwargs)
cf694132 266 return val
1d99702e
RD
267 def SetData(self, *_args, **_kwargs):
268 val = apply(imagec.wxImage_SetData,(self,) + _args, _kwargs)
cf694132 269 return val
1d99702e
RD
270 def SetMaskColour(self, *_args, **_kwargs):
271 val = apply(imagec.wxImage_SetMaskColour,(self,) + _args, _kwargs)
cf694132 272 return val
1d99702e
RD
273 def GetMaskRed(self, *_args, **_kwargs):
274 val = apply(imagec.wxImage_GetMaskRed,(self,) + _args, _kwargs)
cf694132 275 return val
1d99702e
RD
276 def GetMaskGreen(self, *_args, **_kwargs):
277 val = apply(imagec.wxImage_GetMaskGreen,(self,) + _args, _kwargs)
cf694132 278 return val
1d99702e
RD
279 def GetMaskBlue(self, *_args, **_kwargs):
280 val = apply(imagec.wxImage_GetMaskBlue,(self,) + _args, _kwargs)
cf694132 281 return val
1d99702e
RD
282 def SetMask(self, *_args, **_kwargs):
283 val = apply(imagec.wxImage_SetMask,(self,) + _args, _kwargs)
cf694132 284 return val
1d99702e
RD
285 def HasMask(self, *_args, **_kwargs):
286 val = apply(imagec.wxImage_HasMask,(self,) + _args, _kwargs)
cf694132 287 return val
f6bcfd97
BP
288 def Rotate(self, *_args, **_kwargs):
289 val = apply(imagec.wxImage_Rotate,(self,) + _args, _kwargs)
290 if val: val = wxImagePtr(val) ; val.thisown = 1
291 return val
292 def Rotate90(self, *_args, **_kwargs):
293 val = apply(imagec.wxImage_Rotate90,(self,) + _args, _kwargs)
294 if val: val = wxImagePtr(val) ; val.thisown = 1
295 return val
296 def Mirror(self, *_args, **_kwargs):
297 val = apply(imagec.wxImage_Mirror,(self,) + _args, _kwargs)
298 if val: val = wxImagePtr(val) ; val.thisown = 1
299 return val
300 def Replace(self, *_args, **_kwargs):
301 val = apply(imagec.wxImage_Replace,(self,) + _args, _kwargs)
302 return val
6c0168c9
RD
303 def ConvertToMono(self, *_args, **_kwargs):
304 val = apply(imagec.wxImage_ConvertToMono,(self,) + _args, _kwargs)
305 if val: val = wxImagePtr(val) ; val.thisown = 1
306 return val
307 def SetOption(self, *_args, **_kwargs):
308 val = apply(imagec.wxImage_SetOption,(self,) + _args, _kwargs)
309 return val
310 def SetOptionInt(self, *_args, **_kwargs):
311 val = apply(imagec.wxImage_SetOptionInt,(self,) + _args, _kwargs)
312 return val
313 def GetOption(self, *_args, **_kwargs):
314 val = apply(imagec.wxImage_GetOption,(self,) + _args, _kwargs)
315 return val
316 def GetOptionInt(self, *_args, **_kwargs):
317 val = apply(imagec.wxImage_GetOptionInt,(self,) + _args, _kwargs)
318 return val
319 def HasOption(self, *_args, **_kwargs):
320 val = apply(imagec.wxImage_HasOption,(self,) + _args, _kwargs)
321 return val
f6bcfd97
BP
322 def CountColours(self, *_args, **_kwargs):
323 val = apply(imagec.wxImage_CountColours,(self,) + _args, _kwargs)
324 return val
cf694132 325 def __repr__(self):
1d99702e 326 return "<C wxImage instance at %s>" % (self.this,)
cf694132 327class wxImage(wxImagePtr):
1d99702e
RD
328 def __init__(self,*_args,**_kwargs):
329 self.this = apply(imagec.new_wxImage,_args,_kwargs)
cf694132
RD
330 self.thisown = 1
331
332
333
334
335
336
337#-------------- FUNCTION WRAPPERS ------------------
338
1d99702e
RD
339def wxEmptyImage(*_args, **_kwargs):
340 val = apply(imagec.wxEmptyImage,_args,_kwargs)
341 if val: val = wxImagePtr(val); val.thisown = 1
cf694132
RD
342 return val
343
1d99702e
RD
344def wxImageFromMime(*_args, **_kwargs):
345 val = apply(imagec.wxImageFromMime,_args,_kwargs)
346 if val: val = wxImagePtr(val); val.thisown = 1
cf694132
RD
347 return val
348
1d99702e
RD
349def wxImageFromBitmap(*_args, **_kwargs):
350 val = apply(imagec.wxImageFromBitmap,_args,_kwargs)
351 if val: val = wxImagePtr(val); val.thisown = 1
cf694132
RD
352 return val
353
b5a5d647
RD
354def wxImageFromData(*_args, **_kwargs):
355 val = apply(imagec.wxImageFromData,_args,_kwargs)
356 if val: val = wxImagePtr(val); val.thisown = 1
357 return val
358
f74ff5ef
RD
359def wxImageFromStream(*_args, **_kwargs):
360 val = apply(imagec.wxImageFromStream,_args,_kwargs)
361 if val: val = wxImagePtr(val); val.thisown = 1
362 return val
363
364def wxImageFromStreamMime(*_args, **_kwargs):
365 val = apply(imagec.wxImageFromStreamMime,_args,_kwargs)
366 if val: val = wxImagePtr(val); val.thisown = 1
367 return val
368
96bfd053
RD
369wxInitAllImageHandlers = imagec.wxInitAllImageHandlers
370
926bb76c
RD
371def wxBitmapFromImage(*_args, **_kwargs):
372 val = apply(imagec.wxBitmapFromImage,_args,_kwargs)
373 if val: val = wxBitmapPtr(val); val.thisown = 1
374 return val
375
96bfd053
RD
376wxImage_CanRead = imagec.wxImage_CanRead
377
b5a5d647
RD
378wxImage_GetImageCount = imagec.wxImage_GetImageCount
379
f74ff5ef
RD
380wxImage_CanReadStream = imagec.wxImage_CanReadStream
381
1d99702e 382wxImage_AddHandler = imagec.wxImage_AddHandler
cf694132 383
96bfd053
RD
384wxImage_InsertHandler = imagec.wxImage_InsertHandler
385
386wxImage_RemoveHandler = imagec.wxImage_RemoveHandler
06c0fba4 387
cf694132
RD
388
389
390#-------------- VARIABLE WRAPPERS ------------------
391
0a651eb8
RD
392cvar = imagec.cvar
393wxNullImage = wxImagePtr(imagec.cvar.wxNullImage)