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