]> git.saurik.com Git - wxWidgets.git/blame - utils/wxPython/src/gtk/image.py
Enabled to be run without splitters to track down possible bugs
[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):
2d091820
RD
38 def __init__(self,*_args,**_kwargs):
39 self.this = apply(imagec.new_wxImageHandler,_args,_kwargs)
ab9bc19b
RD
40 self.thisown = 1
41
42
43
44
45class wxPNGHandlerPtr(wxImageHandlerPtr):
46 def __init__(self,this):
47 self.this = this
48 self.thisown = 0
49 def __repr__(self):
2d091820 50 return "<C wxPNGHandler instance at %s>" % (self.this,)
ab9bc19b 51class wxPNGHandler(wxPNGHandlerPtr):
2d091820
RD
52 def __init__(self,*_args,**_kwargs):
53 self.this = apply(imagec.new_wxPNGHandler,_args,_kwargs)
ab9bc19b
RD
54 self.thisown = 1
55
56
57
58
59class wxJPEGHandlerPtr(wxImageHandlerPtr):
60 def __init__(self,this):
61 self.this = this
62 self.thisown = 0
63 def __repr__(self):
2d091820 64 return "<C wxJPEGHandler instance at %s>" % (self.this,)
ab9bc19b 65class wxJPEGHandler(wxJPEGHandlerPtr):
2d091820
RD
66 def __init__(self,*_args,**_kwargs):
67 self.this = apply(imagec.new_wxJPEGHandler,_args,_kwargs)
ab9bc19b
RD
68 self.thisown = 1
69
70
71
72
73class wxBMPHandlerPtr(wxImageHandlerPtr):
74 def __init__(self,this):
75 self.this = this
76 self.thisown = 0
77 def __repr__(self):
2d091820 78 return "<C wxBMPHandler instance at %s>" % (self.this,)
ab9bc19b 79class wxBMPHandler(wxBMPHandlerPtr):
2d091820
RD
80 def __init__(self,*_args,**_kwargs):
81 self.this = apply(imagec.new_wxBMPHandler,_args,_kwargs)
ab9bc19b
RD
82 self.thisown = 1
83
84
85
86
87class wxGIFHandlerPtr(wxImageHandlerPtr):
88 def __init__(self,this):
89 self.this = this
90 self.thisown = 0
91 def __repr__(self):
2d091820 92 return "<C wxGIFHandler instance at %s>" % (self.this,)
ab9bc19b 93class wxGIFHandler(wxGIFHandlerPtr):
2d091820
RD
94 def __init__(self,*_args,**_kwargs):
95 self.this = apply(imagec.new_wxGIFHandler,_args,_kwargs)
ab9bc19b
RD
96 self.thisown = 1
97
98
99
100
bc29c5e0
RD
101class wxPNMHandlerPtr(wxImageHandlerPtr):
102 def __init__(self,this):
103 self.this = this
104 self.thisown = 0
105 def __repr__(self):
106 return "<C wxPNMHandler instance at %s>" % (self.this,)
107class wxPNMHandler(wxPNMHandlerPtr):
108 def __init__(self,*_args,**_kwargs):
109 self.this = apply(imagec.new_wxPNMHandler,_args,_kwargs)
110 self.thisown = 1
111
112
113
114
115class wxPCXHandlerPtr(wxImageHandlerPtr):
116 def __init__(self,this):
117 self.this = this
118 self.thisown = 0
119 def __repr__(self):
120 return "<C wxPCXHandler instance at %s>" % (self.this,)
121class wxPCXHandler(wxPCXHandlerPtr):
122 def __init__(self,*_args,**_kwargs):
123 self.this = apply(imagec.new_wxPCXHandler,_args,_kwargs)
124 self.thisown = 1
125
126
127
128
ab9bc19b
RD
129class wxImagePtr :
130 def __init__(self,this):
131 self.this = this
132 self.thisown = 0
2d091820 133 def __del__(self,imagec=imagec):
ab9bc19b 134 if self.thisown == 1 :
2d091820
RD
135 imagec.delete_wxImage(self)
136 def ConvertToBitmap(self, *_args, **_kwargs):
137 val = apply(imagec.wxImage_ConvertToBitmap,(self,) + _args, _kwargs)
138 if val: val = wxBitmapPtr(val) ; val.thisown = 1
ab9bc19b 139 return val
2d091820
RD
140 def Create(self, *_args, **_kwargs):
141 val = apply(imagec.wxImage_Create,(self,) + _args, _kwargs)
ab9bc19b 142 return val
2d091820
RD
143 def Destroy(self, *_args, **_kwargs):
144 val = apply(imagec.wxImage_Destroy,(self,) + _args, _kwargs)
ab9bc19b 145 return val
2d091820
RD
146 def Scale(self, *_args, **_kwargs):
147 val = apply(imagec.wxImage_Scale,(self,) + _args, _kwargs)
148 if val: val = wxImagePtr(val) ; val.thisown = 1
ab9bc19b 149 return val
2d091820
RD
150 def Rescale(self, *_args, **_kwargs):
151 val = apply(imagec.wxImage_Rescale,(self,) + _args, _kwargs)
8bf5d46e 152 return val
2d091820
RD
153 def SetRGB(self, *_args, **_kwargs):
154 val = apply(imagec.wxImage_SetRGB,(self,) + _args, _kwargs)
ab9bc19b 155 return val
2d091820
RD
156 def GetRed(self, *_args, **_kwargs):
157 val = apply(imagec.wxImage_GetRed,(self,) + _args, _kwargs)
ab9bc19b 158 return val
2d091820
RD
159 def GetGreen(self, *_args, **_kwargs):
160 val = apply(imagec.wxImage_GetGreen,(self,) + _args, _kwargs)
ab9bc19b 161 return val
2d091820
RD
162 def GetBlue(self, *_args, **_kwargs):
163 val = apply(imagec.wxImage_GetBlue,(self,) + _args, _kwargs)
ab9bc19b 164 return val
2d091820
RD
165 def LoadFile(self, *_args, **_kwargs):
166 val = apply(imagec.wxImage_LoadFile,(self,) + _args, _kwargs)
ab9bc19b 167 return val
2d091820
RD
168 def LoadMimeFile(self, *_args, **_kwargs):
169 val = apply(imagec.wxImage_LoadMimeFile,(self,) + _args, _kwargs)
ab9bc19b 170 return val
2d091820
RD
171 def SaveFile(self, *_args, **_kwargs):
172 val = apply(imagec.wxImage_SaveFile,(self,) + _args, _kwargs)
ab9bc19b 173 return val
2d091820
RD
174 def SaveMimeFile(self, *_args, **_kwargs):
175 val = apply(imagec.wxImage_SaveMimeFile,(self,) + _args, _kwargs)
ab9bc19b 176 return val
2d091820
RD
177 def Ok(self, *_args, **_kwargs):
178 val = apply(imagec.wxImage_Ok,(self,) + _args, _kwargs)
ab9bc19b 179 return val
2d091820
RD
180 def GetWidth(self, *_args, **_kwargs):
181 val = apply(imagec.wxImage_GetWidth,(self,) + _args, _kwargs)
ab9bc19b 182 return val
2d091820
RD
183 def GetHeight(self, *_args, **_kwargs):
184 val = apply(imagec.wxImage_GetHeight,(self,) + _args, _kwargs)
ab9bc19b 185 return val
2d091820
RD
186 def GetData(self, *_args, **_kwargs):
187 val = apply(imagec.wxImage_GetData,(self,) + _args, _kwargs)
ab9bc19b 188 return val
2d091820
RD
189 def SetData(self, *_args, **_kwargs):
190 val = apply(imagec.wxImage_SetData,(self,) + _args, _kwargs)
ab9bc19b 191 return val
2d091820
RD
192 def SetMaskColour(self, *_args, **_kwargs):
193 val = apply(imagec.wxImage_SetMaskColour,(self,) + _args, _kwargs)
ab9bc19b 194 return val
2d091820
RD
195 def GetMaskRed(self, *_args, **_kwargs):
196 val = apply(imagec.wxImage_GetMaskRed,(self,) + _args, _kwargs)
ab9bc19b 197 return val
2d091820
RD
198 def GetMaskGreen(self, *_args, **_kwargs):
199 val = apply(imagec.wxImage_GetMaskGreen,(self,) + _args, _kwargs)
ab9bc19b 200 return val
2d091820
RD
201 def GetMaskBlue(self, *_args, **_kwargs):
202 val = apply(imagec.wxImage_GetMaskBlue,(self,) + _args, _kwargs)
ab9bc19b 203 return val
2d091820
RD
204 def SetMask(self, *_args, **_kwargs):
205 val = apply(imagec.wxImage_SetMask,(self,) + _args, _kwargs)
ab9bc19b 206 return val
2d091820
RD
207 def HasMask(self, *_args, **_kwargs):
208 val = apply(imagec.wxImage_HasMask,(self,) + _args, _kwargs)
ab9bc19b
RD
209 return val
210 def __repr__(self):
2d091820 211 return "<C wxImage instance at %s>" % (self.this,)
ab9bc19b 212class wxImage(wxImagePtr):
2d091820
RD
213 def __init__(self,*_args,**_kwargs):
214 self.this = apply(imagec.new_wxImage,_args,_kwargs)
ab9bc19b
RD
215 self.thisown = 1
216
217
218
219
220
221
222#-------------- FUNCTION WRAPPERS ------------------
223
2d091820
RD
224def wxNullImage(*_args, **_kwargs):
225 val = apply(imagec.wxNullImage,_args,_kwargs)
226 if val: val = wxImagePtr(val); val.thisown = 1
ab9bc19b
RD
227 return val
228
2d091820
RD
229def wxEmptyImage(*_args, **_kwargs):
230 val = apply(imagec.wxEmptyImage,_args,_kwargs)
231 if val: val = wxImagePtr(val); val.thisown = 1
ab9bc19b
RD
232 return val
233
2d091820
RD
234def wxImageFromMime(*_args, **_kwargs):
235 val = apply(imagec.wxImageFromMime,_args,_kwargs)
236 if val: val = wxImagePtr(val); val.thisown = 1
ab9bc19b
RD
237 return val
238
2d091820
RD
239def wxImageFromBitmap(*_args, **_kwargs):
240 val = apply(imagec.wxImageFromBitmap,_args,_kwargs)
241 if val: val = wxImagePtr(val); val.thisown = 1
ab9bc19b
RD
242 return val
243
2d091820 244wxImage_AddHandler = imagec.wxImage_AddHandler
ab9bc19b 245
bc29c5e0
RD
246wxInitAllImageHandlers = imagec.wxInitAllImageHandlers
247
ab9bc19b
RD
248
249
250#-------------- VARIABLE WRAPPERS ------------------
251