]> git.saurik.com Git - wxWidgets.git/blob - utils/wxPython/src/gtk/image.py
Added some definitions, a missing method, and fixed a compile error
[wxWidgets.git] / utils / wxPython / src / gtk / image.py
1 # This file was created automatically by SWIG.
2 import imagec
3
4 from misc import *
5
6 from gdi import *
7 class wxImageHandlerPtr :
8 def __init__(self,this):
9 self.this = this
10 self.thisown = 0
11 def GetName(self, *_args, **_kwargs):
12 val = apply(imagec.wxImageHandler_GetName,(self,) + _args, _kwargs)
13 return val
14 def GetExtension(self, *_args, **_kwargs):
15 val = apply(imagec.wxImageHandler_GetExtension,(self,) + _args, _kwargs)
16 return val
17 def GetType(self, *_args, **_kwargs):
18 val = apply(imagec.wxImageHandler_GetType,(self,) + _args, _kwargs)
19 return val
20 def GetMimeType(self, *_args, **_kwargs):
21 val = apply(imagec.wxImageHandler_GetMimeType,(self,) + _args, _kwargs)
22 return val
23 def SetName(self, *_args, **_kwargs):
24 val = apply(imagec.wxImageHandler_SetName,(self,) + _args, _kwargs)
25 return val
26 def SetExtension(self, *_args, **_kwargs):
27 val = apply(imagec.wxImageHandler_SetExtension,(self,) + _args, _kwargs)
28 return val
29 def SetType(self, *_args, **_kwargs):
30 val = apply(imagec.wxImageHandler_SetType,(self,) + _args, _kwargs)
31 return val
32 def SetMimeType(self, *_args, **_kwargs):
33 val = apply(imagec.wxImageHandler_SetMimeType,(self,) + _args, _kwargs)
34 return val
35 def __repr__(self):
36 return "<C wxImageHandler instance at %s>" % (self.this,)
37 class wxImageHandler(wxImageHandlerPtr):
38 def __init__(self,this):
39 self.this = this
40
41
42
43
44 class wxPNGHandlerPtr(wxImageHandlerPtr):
45 def __init__(self,this):
46 self.this = this
47 self.thisown = 0
48 def __repr__(self):
49 return "<C wxPNGHandler instance at %s>" % (self.this,)
50 class wxPNGHandler(wxPNGHandlerPtr):
51 def __init__(self,*_args,**_kwargs):
52 self.this = apply(imagec.new_wxPNGHandler,_args,_kwargs)
53 self.thisown = 1
54
55
56
57
58 class wxJPEGHandlerPtr(wxImageHandlerPtr):
59 def __init__(self,this):
60 self.this = this
61 self.thisown = 0
62 def __repr__(self):
63 return "<C wxJPEGHandler instance at %s>" % (self.this,)
64 class wxJPEGHandler(wxJPEGHandlerPtr):
65 def __init__(self,*_args,**_kwargs):
66 self.this = apply(imagec.new_wxJPEGHandler,_args,_kwargs)
67 self.thisown = 1
68
69
70
71
72 class wxBMPHandlerPtr(wxImageHandlerPtr):
73 def __init__(self,this):
74 self.this = this
75 self.thisown = 0
76 def __repr__(self):
77 return "<C wxBMPHandler instance at %s>" % (self.this,)
78 class wxBMPHandler(wxBMPHandlerPtr):
79 def __init__(self,*_args,**_kwargs):
80 self.this = apply(imagec.new_wxBMPHandler,_args,_kwargs)
81 self.thisown = 1
82
83
84
85
86 class wxGIFHandlerPtr(wxImageHandlerPtr):
87 def __init__(self,this):
88 self.this = this
89 self.thisown = 0
90 def __repr__(self):
91 return "<C wxGIFHandler instance at %s>" % (self.this,)
92 class wxGIFHandler(wxGIFHandlerPtr):
93 def __init__(self,*_args,**_kwargs):
94 self.this = apply(imagec.new_wxGIFHandler,_args,_kwargs)
95 self.thisown = 1
96
97
98
99
100 class 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,)
106 class 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
114 class 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,)
120 class 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
128 class wxImagePtr :
129 def __init__(self,this):
130 self.this = this
131 self.thisown = 0
132 def __del__(self,imagec=imagec):
133 if self.thisown == 1 :
134 imagec.delete_wxImage(self)
135 def ConvertToBitmap(self, *_args, **_kwargs):
136 val = apply(imagec.wxImage_ConvertToBitmap,(self,) + _args, _kwargs)
137 if val: val = wxBitmapPtr(val) ; val.thisown = 1
138 return val
139 def Create(self, *_args, **_kwargs):
140 val = apply(imagec.wxImage_Create,(self,) + _args, _kwargs)
141 return val
142 def Destroy(self, *_args, **_kwargs):
143 val = apply(imagec.wxImage_Destroy,(self,) + _args, _kwargs)
144 return val
145 def Scale(self, *_args, **_kwargs):
146 val = apply(imagec.wxImage_Scale,(self,) + _args, _kwargs)
147 if val: val = wxImagePtr(val) ; val.thisown = 1
148 return val
149 def Rescale(self, *_args, **_kwargs):
150 val = apply(imagec.wxImage_Rescale,(self,) + _args, _kwargs)
151 return val
152 def SetRGB(self, *_args, **_kwargs):
153 val = apply(imagec.wxImage_SetRGB,(self,) + _args, _kwargs)
154 return val
155 def GetRed(self, *_args, **_kwargs):
156 val = apply(imagec.wxImage_GetRed,(self,) + _args, _kwargs)
157 return val
158 def GetGreen(self, *_args, **_kwargs):
159 val = apply(imagec.wxImage_GetGreen,(self,) + _args, _kwargs)
160 return val
161 def GetBlue(self, *_args, **_kwargs):
162 val = apply(imagec.wxImage_GetBlue,(self,) + _args, _kwargs)
163 return val
164 def LoadFile(self, *_args, **_kwargs):
165 val = apply(imagec.wxImage_LoadFile,(self,) + _args, _kwargs)
166 return val
167 def LoadMimeFile(self, *_args, **_kwargs):
168 val = apply(imagec.wxImage_LoadMimeFile,(self,) + _args, _kwargs)
169 return val
170 def SaveFile(self, *_args, **_kwargs):
171 val = apply(imagec.wxImage_SaveFile,(self,) + _args, _kwargs)
172 return val
173 def SaveMimeFile(self, *_args, **_kwargs):
174 val = apply(imagec.wxImage_SaveMimeFile,(self,) + _args, _kwargs)
175 return val
176 def Ok(self, *_args, **_kwargs):
177 val = apply(imagec.wxImage_Ok,(self,) + _args, _kwargs)
178 return val
179 def GetWidth(self, *_args, **_kwargs):
180 val = apply(imagec.wxImage_GetWidth,(self,) + _args, _kwargs)
181 return val
182 def GetHeight(self, *_args, **_kwargs):
183 val = apply(imagec.wxImage_GetHeight,(self,) + _args, _kwargs)
184 return val
185 def GetData(self, *_args, **_kwargs):
186 val = apply(imagec.wxImage_GetData,(self,) + _args, _kwargs)
187 return val
188 def SetData(self, *_args, **_kwargs):
189 val = apply(imagec.wxImage_SetData,(self,) + _args, _kwargs)
190 return val
191 def SetMaskColour(self, *_args, **_kwargs):
192 val = apply(imagec.wxImage_SetMaskColour,(self,) + _args, _kwargs)
193 return val
194 def GetMaskRed(self, *_args, **_kwargs):
195 val = apply(imagec.wxImage_GetMaskRed,(self,) + _args, _kwargs)
196 return val
197 def GetMaskGreen(self, *_args, **_kwargs):
198 val = apply(imagec.wxImage_GetMaskGreen,(self,) + _args, _kwargs)
199 return val
200 def GetMaskBlue(self, *_args, **_kwargs):
201 val = apply(imagec.wxImage_GetMaskBlue,(self,) + _args, _kwargs)
202 return val
203 def SetMask(self, *_args, **_kwargs):
204 val = apply(imagec.wxImage_SetMask,(self,) + _args, _kwargs)
205 return val
206 def HasMask(self, *_args, **_kwargs):
207 val = apply(imagec.wxImage_HasMask,(self,) + _args, _kwargs)
208 return val
209 def __repr__(self):
210 return "<C wxImage instance at %s>" % (self.this,)
211 class wxImage(wxImagePtr):
212 def __init__(self,*_args,**_kwargs):
213 self.this = apply(imagec.new_wxImage,_args,_kwargs)
214 self.thisown = 1
215
216
217
218
219
220
221 #-------------- FUNCTION WRAPPERS ------------------
222
223 def wxNullImage(*_args, **_kwargs):
224 val = apply(imagec.wxNullImage,_args,_kwargs)
225 if val: val = wxImagePtr(val); val.thisown = 1
226 return val
227
228 def wxEmptyImage(*_args, **_kwargs):
229 val = apply(imagec.wxEmptyImage,_args,_kwargs)
230 if val: val = wxImagePtr(val); val.thisown = 1
231 return val
232
233 def wxImageFromMime(*_args, **_kwargs):
234 val = apply(imagec.wxImageFromMime,_args,_kwargs)
235 if val: val = wxImagePtr(val); val.thisown = 1
236 return val
237
238 def wxImageFromBitmap(*_args, **_kwargs):
239 val = apply(imagec.wxImageFromBitmap,_args,_kwargs)
240 if val: val = wxImagePtr(val); val.thisown = 1
241 return val
242
243 wxImage_AddHandler = imagec.wxImage_AddHandler
244
245 wxInitAllImageHandlers = imagec.wxInitAllImageHandlers
246
247
248
249 #-------------- VARIABLE WRAPPERS ------------------
250