]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/mac/image.py
Use multi-lib build on MSW, and other tweaks
[wxWidgets.git] / wxPython / src / mac / image.py
CommitLineData
e6056257
RD
1# This file was created automatically by SWIG.
2import imagec
3
4from misc import *
5
6from gdi import *
a341e32e 7
40699168
RD
8from fonts import *
9
a341e32e 10from streams import *
2b9e4799
RD
11class wxImageHistogramPtr :
12 def __init__(self,this):
13 self.this = this
14 self.thisown = 0
15 def FindFirstUnusedColour(self, *_args, **_kwargs):
d84a9306 16 val = imagec.wxImageHistogram_FindFirstUnusedColour(self, *_args, **_kwargs)
2b9e4799
RD
17 return val
18 def __repr__(self):
d84a9306 19 return "<%s.%s instance; proxy of C++ wxImageHistogram instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
2b9e4799
RD
20class wxImageHistogram(wxImageHistogramPtr):
21 def __init__(self,*_args,**_kwargs):
d84a9306 22 self.this = imagec.new_wxImageHistogram(*_args,**_kwargs)
2b9e4799
RD
23 self.thisown = 1
24
25
26
27
e6056257
RD
28class wxImageHandlerPtr(wxObjectPtr):
29 def __init__(self,this):
30 self.this = this
31 self.thisown = 0
32 def GetName(self, *_args, **_kwargs):
d84a9306 33 val = imagec.wxImageHandler_GetName(self, *_args, **_kwargs)
e6056257
RD
34 return val
35 def GetExtension(self, *_args, **_kwargs):
d84a9306 36 val = imagec.wxImageHandler_GetExtension(self, *_args, **_kwargs)
e6056257
RD
37 return val
38 def GetType(self, *_args, **_kwargs):
d84a9306 39 val = imagec.wxImageHandler_GetType(self, *_args, **_kwargs)
e6056257
RD
40 return val
41 def GetMimeType(self, *_args, **_kwargs):
d84a9306 42 val = imagec.wxImageHandler_GetMimeType(self, *_args, **_kwargs)
e6056257 43 return val
6abe8375 44 def CanRead(self, *_args, **_kwargs):
d84a9306 45 val = imagec.wxImageHandler_CanRead(self, *_args, **_kwargs)
6abe8375 46 return val
e6056257 47 def SetName(self, *_args, **_kwargs):
d84a9306 48 val = imagec.wxImageHandler_SetName(self, *_args, **_kwargs)
e6056257
RD
49 return val
50 def SetExtension(self, *_args, **_kwargs):
d84a9306 51 val = imagec.wxImageHandler_SetExtension(self, *_args, **_kwargs)
e6056257
RD
52 return val
53 def SetType(self, *_args, **_kwargs):
d84a9306 54 val = imagec.wxImageHandler_SetType(self, *_args, **_kwargs)
e6056257
RD
55 return val
56 def SetMimeType(self, *_args, **_kwargs):
d84a9306 57 val = imagec.wxImageHandler_SetMimeType(self, *_args, **_kwargs)
e6056257
RD
58 return val
59 def __repr__(self):
d84a9306 60 return "<%s.%s instance; proxy of C++ wxImageHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
e6056257
RD
61class wxImageHandler(wxImageHandlerPtr):
62 def __init__(self,this):
63 self.this = this
64
65
66
67
68class wxPNGHandlerPtr(wxImageHandlerPtr):
69 def __init__(self,this):
70 self.this = this
71 self.thisown = 0
72 def __repr__(self):
d84a9306 73 return "<%s.%s instance; proxy of C++ wxPNGHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
e6056257
RD
74class wxPNGHandler(wxPNGHandlerPtr):
75 def __init__(self,*_args,**_kwargs):
d84a9306 76 self.this = imagec.new_wxPNGHandler(*_args,**_kwargs)
e6056257
RD
77 self.thisown = 1
78
79
80
81
82class wxJPEGHandlerPtr(wxImageHandlerPtr):
83 def __init__(self,this):
84 self.this = this
85 self.thisown = 0
86 def __repr__(self):
d84a9306 87 return "<%s.%s instance; proxy of C++ wxJPEGHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
e6056257
RD
88class wxJPEGHandler(wxJPEGHandlerPtr):
89 def __init__(self,*_args,**_kwargs):
d84a9306 90 self.this = imagec.new_wxJPEGHandler(*_args,**_kwargs)
e6056257
RD
91 self.thisown = 1
92
93
94
95
96class wxBMPHandlerPtr(wxImageHandlerPtr):
97 def __init__(self,this):
98 self.this = this
99 self.thisown = 0
100 def __repr__(self):
d84a9306 101 return "<%s.%s instance; proxy of C++ wxBMPHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
e6056257
RD
102class wxBMPHandler(wxBMPHandlerPtr):
103 def __init__(self,*_args,**_kwargs):
d84a9306 104 self.this = imagec.new_wxBMPHandler(*_args,**_kwargs)
e6056257
RD
105 self.thisown = 1
106
107
108
109
6abe8375
RD
110class wxICOHandlerPtr(wxBMPHandlerPtr):
111 def __init__(self,this):
112 self.this = this
113 self.thisown = 0
114 def __repr__(self):
d84a9306 115 return "<%s.%s instance; proxy of C++ wxICOHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
6abe8375
RD
116class wxICOHandler(wxICOHandlerPtr):
117 def __init__(self,*_args,**_kwargs):
d84a9306 118 self.this = imagec.new_wxICOHandler(*_args,**_kwargs)
6abe8375
RD
119 self.thisown = 1
120
121
122
123
d1e76a37
RD
124class wxCURHandlerPtr(wxICOHandlerPtr):
125 def __init__(self,this):
126 self.this = this
127 self.thisown = 0
128 def __repr__(self):
d84a9306 129 return "<%s.%s instance; proxy of C++ wxCURHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
d1e76a37
RD
130class wxCURHandler(wxCURHandlerPtr):
131 def __init__(self,*_args,**_kwargs):
d84a9306 132 self.this = imagec.new_wxCURHandler(*_args,**_kwargs)
d1e76a37
RD
133 self.thisown = 1
134
135
136
137
138class wxANIHandlerPtr(wxCURHandlerPtr):
139 def __init__(self,this):
140 self.this = this
141 self.thisown = 0
142 def __repr__(self):
d84a9306 143 return "<%s.%s instance; proxy of C++ wxANIHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
d1e76a37
RD
144class wxANIHandler(wxANIHandlerPtr):
145 def __init__(self,*_args,**_kwargs):
d84a9306 146 self.this = imagec.new_wxANIHandler(*_args,**_kwargs)
d1e76a37
RD
147 self.thisown = 1
148
149
150
151
e6056257
RD
152class wxGIFHandlerPtr(wxImageHandlerPtr):
153 def __init__(self,this):
154 self.this = this
155 self.thisown = 0
156 def __repr__(self):
d84a9306 157 return "<%s.%s instance; proxy of C++ wxGIFHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
e6056257
RD
158class wxGIFHandler(wxGIFHandlerPtr):
159 def __init__(self,*_args,**_kwargs):
d84a9306 160 self.this = imagec.new_wxGIFHandler(*_args,**_kwargs)
e6056257
RD
161 self.thisown = 1
162
163
164
165
166class wxPNMHandlerPtr(wxImageHandlerPtr):
167 def __init__(self,this):
168 self.this = this
169 self.thisown = 0
170 def __repr__(self):
d84a9306 171 return "<%s.%s instance; proxy of C++ wxPNMHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
e6056257
RD
172class wxPNMHandler(wxPNMHandlerPtr):
173 def __init__(self,*_args,**_kwargs):
d84a9306 174 self.this = imagec.new_wxPNMHandler(*_args,**_kwargs)
e6056257
RD
175 self.thisown = 1
176
177
178
179
180class wxPCXHandlerPtr(wxImageHandlerPtr):
181 def __init__(self,this):
182 self.this = this
183 self.thisown = 0
184 def __repr__(self):
d84a9306 185 return "<%s.%s instance; proxy of C++ wxPCXHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
e6056257
RD
186class wxPCXHandler(wxPCXHandlerPtr):
187 def __init__(self,*_args,**_kwargs):
d84a9306 188 self.this = imagec.new_wxPCXHandler(*_args,**_kwargs)
e6056257
RD
189 self.thisown = 1
190
191
192
193
194class wxTIFFHandlerPtr(wxImageHandlerPtr):
195 def __init__(self,this):
196 self.this = this
197 self.thisown = 0
198 def __repr__(self):
d84a9306 199 return "<%s.%s instance; proxy of C++ wxTIFFHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
e6056257
RD
200class wxTIFFHandler(wxTIFFHandlerPtr):
201 def __init__(self,*_args,**_kwargs):
d84a9306 202 self.this = imagec.new_wxTIFFHandler(*_args,**_kwargs)
e6056257
RD
203 self.thisown = 1
204
205
206
207
208class wxImagePtr(wxObjectPtr):
209 def __init__(self,this):
210 self.this = this
211 self.thisown = 0
7108497a
RD
212 def __del__(self, delfunc=imagec.delete_wxImage):
213 if self.thisown == 1:
214 try:
215 delfunc(self)
216 except:
217 pass
e6056257 218 def Create(self, *_args, **_kwargs):
d84a9306 219 val = imagec.wxImage_Create(self, *_args, **_kwargs)
e6056257
RD
220 return val
221 def Destroy(self, *_args, **_kwargs):
d84a9306 222 val = imagec.wxImage_Destroy(self, *_args, **_kwargs)
e6056257
RD
223 return val
224 def Scale(self, *_args, **_kwargs):
d84a9306 225 val = imagec.wxImage_Scale(self, *_args, **_kwargs)
e6056257
RD
226 if val: val = wxImagePtr(val) ; val.thisown = 1
227 return val
2b9e4799 228 def ShrinkBy(self, *_args, **_kwargs):
d84a9306 229 val = imagec.wxImage_ShrinkBy(self, *_args, **_kwargs)
2b9e4799
RD
230 if val: val = wxImagePtr(val) ; val.thisown = 1
231 return val
e6056257 232 def Rescale(self, *_args, **_kwargs):
d84a9306 233 val = imagec.wxImage_Rescale(self, *_args, **_kwargs)
e6056257
RD
234 if val: val = wxImagePtr(val)
235 return val
236 def SetRGB(self, *_args, **_kwargs):
d84a9306 237 val = imagec.wxImage_SetRGB(self, *_args, **_kwargs)
e6056257
RD
238 return val
239 def GetRed(self, *_args, **_kwargs):
d84a9306 240 val = imagec.wxImage_GetRed(self, *_args, **_kwargs)
e6056257
RD
241 return val
242 def GetGreen(self, *_args, **_kwargs):
d84a9306 243 val = imagec.wxImage_GetGreen(self, *_args, **_kwargs)
e6056257
RD
244 return val
245 def GetBlue(self, *_args, **_kwargs):
d84a9306 246 val = imagec.wxImage_GetBlue(self, *_args, **_kwargs)
e6056257 247 return val
2b9e4799 248 def SetAlpha(self, *_args, **_kwargs):
d84a9306 249 val = imagec.wxImage_SetAlpha(self, *_args, **_kwargs)
2b9e4799
RD
250 return val
251 def GetAlpha(self, *_args, **_kwargs):
d84a9306 252 val = imagec.wxImage_GetAlpha(self, *_args, **_kwargs)
2b9e4799
RD
253 return val
254 def HasAlpha(self, *_args, **_kwargs):
d84a9306 255 val = imagec.wxImage_HasAlpha(self, *_args, **_kwargs)
2b9e4799 256 return val
40699168 257 def FindFirstUnusedColour(self, *_args, **_kwargs):
d84a9306 258 val = imagec.wxImage_FindFirstUnusedColour(self, *_args, **_kwargs)
40699168
RD
259 return val
260 def SetMaskFromImage(self, *_args, **_kwargs):
d84a9306 261 val = imagec.wxImage_SetMaskFromImage(self, *_args, **_kwargs)
40699168 262 return val
e6056257 263 def LoadFile(self, *_args, **_kwargs):
d84a9306 264 val = imagec.wxImage_LoadFile(self, *_args, **_kwargs)
e6056257
RD
265 return val
266 def LoadMimeFile(self, *_args, **_kwargs):
d84a9306 267 val = imagec.wxImage_LoadMimeFile(self, *_args, **_kwargs)
e6056257
RD
268 return val
269 def SaveFile(self, *_args, **_kwargs):
d84a9306 270 val = imagec.wxImage_SaveFile(self, *_args, **_kwargs)
e6056257
RD
271 return val
272 def SaveMimeFile(self, *_args, **_kwargs):
d84a9306 273 val = imagec.wxImage_SaveMimeFile(self, *_args, **_kwargs)
e6056257 274 return val
a341e32e 275 def LoadStream(self, *_args, **_kwargs):
d84a9306 276 val = imagec.wxImage_LoadStream(self, *_args, **_kwargs)
a341e32e
RD
277 return val
278 def LoadMimeStream(self, *_args, **_kwargs):
d84a9306 279 val = imagec.wxImage_LoadMimeStream(self, *_args, **_kwargs)
a341e32e 280 return val
e6056257 281 def Ok(self, *_args, **_kwargs):
d84a9306 282 val = imagec.wxImage_Ok(self, *_args, **_kwargs)
e6056257
RD
283 return val
284 def GetWidth(self, *_args, **_kwargs):
d84a9306 285 val = imagec.wxImage_GetWidth(self, *_args, **_kwargs)
e6056257
RD
286 return val
287 def GetHeight(self, *_args, **_kwargs):
d84a9306 288 val = imagec.wxImage_GetHeight(self, *_args, **_kwargs)
e6056257
RD
289 return val
290 def GetSubImage(self, *_args, **_kwargs):
d84a9306 291 val = imagec.wxImage_GetSubImage(self, *_args, **_kwargs)
e6056257
RD
292 if val: val = wxImagePtr(val) ; val.thisown = 1
293 return val
294 def Copy(self, *_args, **_kwargs):
d84a9306 295 val = imagec.wxImage_Copy(self, *_args, **_kwargs)
e6056257
RD
296 if val: val = wxImagePtr(val) ; val.thisown = 1
297 return val
298 def Paste(self, *_args, **_kwargs):
d84a9306 299 val = imagec.wxImage_Paste(self, *_args, **_kwargs)
e6056257
RD
300 return val
301 def GetData(self, *_args, **_kwargs):
d84a9306 302 val = imagec.wxImage_GetData(self, *_args, **_kwargs)
e6056257 303 return val
2b9e4799 304 def SetData(self, *_args, **_kwargs):
d84a9306 305 val = imagec.wxImage_SetData(self, *_args, **_kwargs)
2b9e4799
RD
306 return val
307 def GetDataBuffer(self, *_args, **_kwargs):
d84a9306 308 val = imagec.wxImage_GetDataBuffer(self, *_args, **_kwargs)
2b9e4799 309 return val
7108497a 310 def SetDataBuffer(self, *_args, **_kwargs):
d84a9306 311 val = imagec.wxImage_SetDataBuffer(self, *_args, **_kwargs)
7108497a 312 return val
2b9e4799 313 def GetAlphaData(self, *_args, **_kwargs):
d84a9306 314 val = imagec.wxImage_GetAlphaData(self, *_args, **_kwargs)
2b9e4799
RD
315 return val
316 def SetAlphaData(self, *_args, **_kwargs):
d84a9306 317 val = imagec.wxImage_SetAlphaData(self, *_args, **_kwargs)
2b9e4799
RD
318 return val
319 def GetAlphaBuffer(self, *_args, **_kwargs):
d84a9306 320 val = imagec.wxImage_GetAlphaBuffer(self, *_args, **_kwargs)
2b9e4799
RD
321 return val
322 def SetAlphaBuffer(self, *_args, **_kwargs):
d84a9306 323 val = imagec.wxImage_SetAlphaBuffer(self, *_args, **_kwargs)
e6056257
RD
324 return val
325 def SetMaskColour(self, *_args, **_kwargs):
d84a9306 326 val = imagec.wxImage_SetMaskColour(self, *_args, **_kwargs)
e6056257
RD
327 return val
328 def GetMaskRed(self, *_args, **_kwargs):
d84a9306 329 val = imagec.wxImage_GetMaskRed(self, *_args, **_kwargs)
e6056257
RD
330 return val
331 def GetMaskGreen(self, *_args, **_kwargs):
d84a9306 332 val = imagec.wxImage_GetMaskGreen(self, *_args, **_kwargs)
e6056257
RD
333 return val
334 def GetMaskBlue(self, *_args, **_kwargs):
d84a9306 335 val = imagec.wxImage_GetMaskBlue(self, *_args, **_kwargs)
e6056257
RD
336 return val
337 def SetMask(self, *_args, **_kwargs):
d84a9306 338 val = imagec.wxImage_SetMask(self, *_args, **_kwargs)
e6056257
RD
339 return val
340 def HasMask(self, *_args, **_kwargs):
d84a9306 341 val = imagec.wxImage_HasMask(self, *_args, **_kwargs)
e6056257
RD
342 return val
343 def Rotate(self, *_args, **_kwargs):
d84a9306 344 val = imagec.wxImage_Rotate(self, *_args, **_kwargs)
e6056257
RD
345 if val: val = wxImagePtr(val) ; val.thisown = 1
346 return val
347 def Rotate90(self, *_args, **_kwargs):
d84a9306 348 val = imagec.wxImage_Rotate90(self, *_args, **_kwargs)
e6056257
RD
349 if val: val = wxImagePtr(val) ; val.thisown = 1
350 return val
351 def Mirror(self, *_args, **_kwargs):
d84a9306 352 val = imagec.wxImage_Mirror(self, *_args, **_kwargs)
e6056257
RD
353 if val: val = wxImagePtr(val) ; val.thisown = 1
354 return val
355 def Replace(self, *_args, **_kwargs):
d84a9306 356 val = imagec.wxImage_Replace(self, *_args, **_kwargs)
e6056257 357 return val
742fc581 358 def ConvertToMono(self, *_args, **_kwargs):
d84a9306 359 val = imagec.wxImage_ConvertToMono(self, *_args, **_kwargs)
742fc581
RD
360 if val: val = wxImagePtr(val) ; val.thisown = 1
361 return val
362 def SetOption(self, *_args, **_kwargs):
d84a9306 363 val = imagec.wxImage_SetOption(self, *_args, **_kwargs)
742fc581
RD
364 return val
365 def SetOptionInt(self, *_args, **_kwargs):
d84a9306 366 val = imagec.wxImage_SetOptionInt(self, *_args, **_kwargs)
742fc581
RD
367 return val
368 def GetOption(self, *_args, **_kwargs):
d84a9306 369 val = imagec.wxImage_GetOption(self, *_args, **_kwargs)
742fc581
RD
370 return val
371 def GetOptionInt(self, *_args, **_kwargs):
d84a9306 372 val = imagec.wxImage_GetOptionInt(self, *_args, **_kwargs)
742fc581
RD
373 return val
374 def HasOption(self, *_args, **_kwargs):
d84a9306 375 val = imagec.wxImage_HasOption(self, *_args, **_kwargs)
742fc581 376 return val
e6056257 377 def CountColours(self, *_args, **_kwargs):
d84a9306 378 val = imagec.wxImage_CountColours(self, *_args, **_kwargs)
e6056257 379 return val
2b9e4799 380 def ComputeHistogram(self, *_args, **_kwargs):
d84a9306 381 val = imagec.wxImage_ComputeHistogram(self, *_args, **_kwargs)
2b9e4799 382 return val
40699168 383 def ConvertToBitmap(self, *_args, **_kwargs):
d84a9306 384 val = imagec.wxImage_ConvertToBitmap(self, *_args, **_kwargs)
40699168
RD
385 if val: val = wxBitmapPtr(val) ; val.thisown = 1
386 return val
387 def ConvertToMonoBitmap(self, *_args, **_kwargs):
d84a9306 388 val = imagec.wxImage_ConvertToMonoBitmap(self, *_args, **_kwargs)
40699168
RD
389 if val: val = wxBitmapPtr(val) ; val.thisown = 1
390 return val
e6056257 391 def __repr__(self):
d84a9306
RD
392 return "<%s.%s instance; proxy of C++ wxImage instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
393 def __nonzero__(self): return self.Ok()
e6056257
RD
394class wxImage(wxImagePtr):
395 def __init__(self,*_args,**_kwargs):
d84a9306 396 self.this = imagec.new_wxImage(*_args,**_kwargs)
e6056257
RD
397 self.thisown = 1
398
399
400
401
402
403
404#-------------- FUNCTION WRAPPERS ------------------
405
406def wxEmptyImage(*_args, **_kwargs):
d84a9306 407 val = imagec.wxEmptyImage(*_args,**_kwargs)
e6056257
RD
408 if val: val = wxImagePtr(val); val.thisown = 1
409 return val
410
411def wxImageFromMime(*_args, **_kwargs):
d84a9306 412 val = imagec.wxImageFromMime(*_args,**_kwargs)
e6056257
RD
413 if val: val = wxImagePtr(val); val.thisown = 1
414 return val
415
416def wxImageFromBitmap(*_args, **_kwargs):
d84a9306 417 val = imagec.wxImageFromBitmap(*_args,**_kwargs)
e6056257
RD
418 if val: val = wxImagePtr(val); val.thisown = 1
419 return val
420
6abe8375 421def wxImageFromData(*_args, **_kwargs):
d84a9306 422 val = imagec.wxImageFromData(*_args,**_kwargs)
6abe8375
RD
423 if val: val = wxImagePtr(val); val.thisown = 1
424 return val
425
a341e32e 426def wxImageFromStream(*_args, **_kwargs):
d84a9306 427 val = imagec.wxImageFromStream(*_args,**_kwargs)
a341e32e
RD
428 if val: val = wxImagePtr(val); val.thisown = 1
429 return val
430
431def wxImageFromStreamMime(*_args, **_kwargs):
d84a9306 432 val = imagec.wxImageFromStreamMime(*_args,**_kwargs)
a341e32e
RD
433 if val: val = wxImagePtr(val); val.thisown = 1
434 return val
435
e6056257
RD
436wxInitAllImageHandlers = imagec.wxInitAllImageHandlers
437
438def wxBitmapFromImage(*_args, **_kwargs):
d84a9306 439 val = imagec.wxBitmapFromImage(*_args,**_kwargs)
e6056257
RD
440 if val: val = wxBitmapPtr(val); val.thisown = 1
441 return val
442
2b9e4799
RD
443wxImageHistogram_MakeKey = imagec.wxImageHistogram_MakeKey
444
e6056257
RD
445wxImage_CanRead = imagec.wxImage_CanRead
446
6abe8375
RD
447wxImage_GetImageCount = imagec.wxImage_GetImageCount
448
a341e32e
RD
449wxImage_CanReadStream = imagec.wxImage_CanReadStream
450
e6056257
RD
451wxImage_AddHandler = imagec.wxImage_AddHandler
452
453wxImage_InsertHandler = imagec.wxImage_InsertHandler
454
455wxImage_RemoveHandler = imagec.wxImage_RemoveHandler
456
d84a9306
RD
457wxImage_GetImageExtWildcard = imagec.wxImage_GetImageExtWildcard
458
e6056257
RD
459
460
461#-------------- VARIABLE WRAPPERS ------------------
462
463cvar = imagec.cvar
464wxNullImage = wxImagePtr(imagec.cvar.wxNullImage)