]> git.saurik.com Git - wxWidgets.git/blame - utils/wxPython/src/gtk/image.py
Compilation fixes
[wxWidgets.git] / utils / wxPython / src / gtk / image.py
CommitLineData
ab9bc19b
RD
1# This file was created automatically by SWIG.
2import imagec
3
4from misc import *
5
6from gdi import *
7class wxImageHandlerPtr :
8 def __init__(self,this):
9 self.this = this
10 self.thisown = 0
2d091820
RD
11 def GetName(self, *_args, **_kwargs):
12 val = apply(imagec.wxImageHandler_GetName,(self,) + _args, _kwargs)
ab9bc19b 13 return val
2d091820
RD
14 def GetExtension(self, *_args, **_kwargs):
15 val = apply(imagec.wxImageHandler_GetExtension,(self,) + _args, _kwargs)
ab9bc19b 16 return val
2d091820
RD
17 def GetType(self, *_args, **_kwargs):
18 val = apply(imagec.wxImageHandler_GetType,(self,) + _args, _kwargs)
ab9bc19b 19 return val
2d091820
RD
20 def GetMimeType(self, *_args, **_kwargs):
21 val = apply(imagec.wxImageHandler_GetMimeType,(self,) + _args, _kwargs)
ab9bc19b 22 return val
2d091820
RD
23 def SetName(self, *_args, **_kwargs):
24 val = apply(imagec.wxImageHandler_SetName,(self,) + _args, _kwargs)
ab9bc19b 25 return val
2d091820
RD
26 def SetExtension(self, *_args, **_kwargs):
27 val = apply(imagec.wxImageHandler_SetExtension,(self,) + _args, _kwargs)
ab9bc19b 28 return val
2d091820
RD
29 def SetType(self, *_args, **_kwargs):
30 val = apply(imagec.wxImageHandler_SetType,(self,) + _args, _kwargs)
ab9bc19b 31 return val
2d091820
RD
32 def SetMimeType(self, *_args, **_kwargs):
33 val = apply(imagec.wxImageHandler_SetMimeType,(self,) + _args, _kwargs)
ab9bc19b
RD
34 return val
35 def __repr__(self):
2d091820 36 return "<C wxImageHandler instance at %s>" % (self.this,)
ab9bc19b 37class wxImageHandler(wxImageHandlerPtr):
1dec68aa
RD
38 def __init__(self,this):
39 self.this = this
ab9bc19b
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):
2d091820 49 return "<C wxPNGHandler instance at %s>" % (self.this,)
ab9bc19b 50class wxPNGHandler(wxPNGHandlerPtr):
2d091820
RD
51 def __init__(self,*_args,**_kwargs):
52 self.this = apply(imagec.new_wxPNGHandler,_args,_kwargs)
ab9bc19b
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):
2d091820 63 return "<C wxJPEGHandler instance at %s>" % (self.this,)
ab9bc19b 64class wxJPEGHandler(wxJPEGHandlerPtr):
2d091820
RD
65 def __init__(self,*_args,**_kwargs):
66 self.this = apply(imagec.new_wxJPEGHandler,_args,_kwargs)
ab9bc19b
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):
2d091820 77 return "<C wxBMPHandler instance at %s>" % (self.this,)
ab9bc19b 78class wxBMPHandler(wxBMPHandlerPtr):
2d091820
RD
79 def __init__(self,*_args,**_kwargs):
80 self.this = apply(imagec.new_wxBMPHandler,_args,_kwargs)
ab9bc19b
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):
2d091820 91 return "<C wxGIFHandler instance at %s>" % (self.this,)
ab9bc19b 92class wxGIFHandler(wxGIFHandlerPtr):
2d091820
RD
93 def __init__(self,*_args,**_kwargs):
94 self.this = apply(imagec.new_wxGIFHandler,_args,_kwargs)
ab9bc19b
RD
95 self.thisown = 1
96
97
98
99
bc29c5e0
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
ab2208b5
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
ab9bc19b
RD
142class wxImagePtr :
143 def __init__(self,this):
144 self.this = this
145 self.thisown = 0
2d091820 146 def __del__(self,imagec=imagec):
ab9bc19b 147 if self.thisown == 1 :
2d091820
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
ab9bc19b 152 return val
2d091820
RD
153 def Create(self, *_args, **_kwargs):
154 val = apply(imagec.wxImage_Create,(self,) + _args, _kwargs)
ab9bc19b 155 return val
2d091820
RD
156 def Destroy(self, *_args, **_kwargs):
157 val = apply(imagec.wxImage_Destroy,(self,) + _args, _kwargs)
ab9bc19b 158 return val
2d091820
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
ab9bc19b 162 return val
2d091820
RD
163 def Rescale(self, *_args, **_kwargs):
164 val = apply(imagec.wxImage_Rescale,(self,) + _args, _kwargs)
8bf5d46e 165 return val
2d091820
RD
166 def SetRGB(self, *_args, **_kwargs):
167 val = apply(imagec.wxImage_SetRGB,(self,) + _args, _kwargs)
ab9bc19b 168 return val
2d091820
RD
169 def GetRed(self, *_args, **_kwargs):
170 val = apply(imagec.wxImage_GetRed,(self,) + _args, _kwargs)
ab9bc19b 171 return val
2d091820
RD
172 def GetGreen(self, *_args, **_kwargs):
173 val = apply(imagec.wxImage_GetGreen,(self,) + _args, _kwargs)
ab9bc19b 174 return val
2d091820
RD
175 def GetBlue(self, *_args, **_kwargs):
176 val = apply(imagec.wxImage_GetBlue,(self,) + _args, _kwargs)
ab9bc19b 177 return val
2d091820
RD
178 def LoadFile(self, *_args, **_kwargs):
179 val = apply(imagec.wxImage_LoadFile,(self,) + _args, _kwargs)
ab9bc19b 180 return val
2d091820
RD
181 def LoadMimeFile(self, *_args, **_kwargs):
182 val = apply(imagec.wxImage_LoadMimeFile,(self,) + _args, _kwargs)
ab9bc19b 183 return val
2d091820
RD
184 def SaveFile(self, *_args, **_kwargs):
185 val = apply(imagec.wxImage_SaveFile,(self,) + _args, _kwargs)
ab9bc19b 186 return val
2d091820
RD
187 def SaveMimeFile(self, *_args, **_kwargs):
188 val = apply(imagec.wxImage_SaveMimeFile,(self,) + _args, _kwargs)
ab9bc19b 189 return val
2d091820
RD
190 def Ok(self, *_args, **_kwargs):
191 val = apply(imagec.wxImage_Ok,(self,) + _args, _kwargs)
ab9bc19b 192 return val
2d091820
RD
193 def GetWidth(self, *_args, **_kwargs):
194 val = apply(imagec.wxImage_GetWidth,(self,) + _args, _kwargs)
ab9bc19b 195 return val
2d091820
RD
196 def GetHeight(self, *_args, **_kwargs):
197 val = apply(imagec.wxImage_GetHeight,(self,) + _args, _kwargs)
ab9bc19b 198 return val
f078d013
RD
199 def GetSubImage(self, *_args, **_kwargs):
200 val = apply(imagec.wxImage_GetSubImage,(self,) + _args, _kwargs)
201 if val: val = wxImagePtr(val) ; val.thisown = 1
202 return val
2d091820
RD
203 def GetData(self, *_args, **_kwargs):
204 val = apply(imagec.wxImage_GetData,(self,) + _args, _kwargs)
ab9bc19b 205 return val
2d091820
RD
206 def SetData(self, *_args, **_kwargs):
207 val = apply(imagec.wxImage_SetData,(self,) + _args, _kwargs)
ab9bc19b 208 return val
2d091820
RD
209 def SetMaskColour(self, *_args, **_kwargs):
210 val = apply(imagec.wxImage_SetMaskColour,(self,) + _args, _kwargs)
ab9bc19b 211 return val
2d091820
RD
212 def GetMaskRed(self, *_args, **_kwargs):
213 val = apply(imagec.wxImage_GetMaskRed,(self,) + _args, _kwargs)
ab9bc19b 214 return val
2d091820
RD
215 def GetMaskGreen(self, *_args, **_kwargs):
216 val = apply(imagec.wxImage_GetMaskGreen,(self,) + _args, _kwargs)
ab9bc19b 217 return val
2d091820
RD
218 def GetMaskBlue(self, *_args, **_kwargs):
219 val = apply(imagec.wxImage_GetMaskBlue,(self,) + _args, _kwargs)
ab9bc19b 220 return val
2d091820
RD
221 def SetMask(self, *_args, **_kwargs):
222 val = apply(imagec.wxImage_SetMask,(self,) + _args, _kwargs)
ab9bc19b 223 return val
2d091820
RD
224 def HasMask(self, *_args, **_kwargs):
225 val = apply(imagec.wxImage_HasMask,(self,) + _args, _kwargs)
ab9bc19b
RD
226 return val
227 def __repr__(self):
2d091820 228 return "<C wxImage instance at %s>" % (self.this,)
ab9bc19b 229class wxImage(wxImagePtr):
2d091820
RD
230 def __init__(self,*_args,**_kwargs):
231 self.this = apply(imagec.new_wxImage,_args,_kwargs)
ab9bc19b
RD
232 self.thisown = 1
233
234
235
236
237
238
239#-------------- FUNCTION WRAPPERS ------------------
240
2d091820
RD
241def wxNullImage(*_args, **_kwargs):
242 val = apply(imagec.wxNullImage,_args,_kwargs)
243 if val: val = wxImagePtr(val); val.thisown = 1
ab9bc19b
RD
244 return val
245
2d091820
RD
246def wxEmptyImage(*_args, **_kwargs):
247 val = apply(imagec.wxEmptyImage,_args,_kwargs)
248 if val: val = wxImagePtr(val); val.thisown = 1
ab9bc19b
RD
249 return val
250
2d091820
RD
251def wxImageFromMime(*_args, **_kwargs):
252 val = apply(imagec.wxImageFromMime,_args,_kwargs)
253 if val: val = wxImagePtr(val); val.thisown = 1
ab9bc19b
RD
254 return val
255
2d091820
RD
256def wxImageFromBitmap(*_args, **_kwargs):
257 val = apply(imagec.wxImageFromBitmap,_args,_kwargs)
258 if val: val = wxImagePtr(val); val.thisown = 1
ab9bc19b
RD
259 return val
260
2d091820 261wxImage_AddHandler = imagec.wxImage_AddHandler
ab9bc19b 262
bc29c5e0
RD
263wxInitAllImageHandlers = imagec.wxInitAllImageHandlers
264
ab9bc19b
RD
265
266
267#-------------- VARIABLE WRAPPERS ------------------
268