]> git.saurik.com Git - wxWidgets.git/blob - utils/wxPython/src/gtk/image.py
Added missing files to filelist.txt and regenerated makefiles.
[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):
12 val = imagec.wxImageHandler_GetName(self.this)
13 return val
14 def GetExtension(self):
15 val = imagec.wxImageHandler_GetExtension(self.this)
16 return val
17 def GetType(self):
18 val = imagec.wxImageHandler_GetType(self.this)
19 return val
20 def GetMimeType(self):
21 val = imagec.wxImageHandler_GetMimeType(self.this)
22 return val
23 def SetName(self,arg0):
24 val = imagec.wxImageHandler_SetName(self.this,arg0)
25 return val
26 def SetExtension(self,arg0):
27 val = imagec.wxImageHandler_SetExtension(self.this,arg0)
28 return val
29 def SetType(self,arg0):
30 val = imagec.wxImageHandler_SetType(self.this,arg0)
31 return val
32 def SetMimeType(self,arg0):
33 val = imagec.wxImageHandler_SetMimeType(self.this,arg0)
34 return val
35 def __repr__(self):
36 return "<C wxImageHandler instance>"
37 class wxImageHandler(wxImageHandlerPtr):
38 def __init__(self) :
39 self.this = imagec.new_wxImageHandler()
40 self.thisown = 1
41
42
43
44
45 class wxPNGHandlerPtr(wxImageHandlerPtr):
46 def __init__(self,this):
47 self.this = this
48 self.thisown = 0
49 def __repr__(self):
50 return "<C wxPNGHandler instance>"
51 class wxPNGHandler(wxPNGHandlerPtr):
52 def __init__(self) :
53 self.this = imagec.new_wxPNGHandler()
54 self.thisown = 1
55
56
57
58
59 class wxJPEGHandlerPtr(wxImageHandlerPtr):
60 def __init__(self,this):
61 self.this = this
62 self.thisown = 0
63 def __repr__(self):
64 return "<C wxJPEGHandler instance>"
65 class wxJPEGHandler(wxJPEGHandlerPtr):
66 def __init__(self) :
67 self.this = imagec.new_wxJPEGHandler()
68 self.thisown = 1
69
70
71
72
73 class wxBMPHandlerPtr(wxImageHandlerPtr):
74 def __init__(self,this):
75 self.this = this
76 self.thisown = 0
77 def __repr__(self):
78 return "<C wxBMPHandler instance>"
79 class wxBMPHandler(wxBMPHandlerPtr):
80 def __init__(self) :
81 self.this = imagec.new_wxBMPHandler()
82 self.thisown = 1
83
84
85
86
87 class wxGIFHandlerPtr(wxImageHandlerPtr):
88 def __init__(self,this):
89 self.this = this
90 self.thisown = 0
91 def __repr__(self):
92 return "<C wxGIFHandler instance>"
93 class wxGIFHandler(wxGIFHandlerPtr):
94 def __init__(self) :
95 self.this = imagec.new_wxGIFHandler()
96 self.thisown = 1
97
98
99
100
101 class wxImagePtr :
102 def __init__(self,this):
103 self.this = this
104 self.thisown = 0
105 def __del__(self, imagec=imagec):
106 if self.thisown == 1 :
107 imagec.delete_wxImage(self.this)
108 def ConvertToBitmap(self):
109 val = imagec.wxImage_ConvertToBitmap(self.this)
110 val = wxBitmapPtr(val)
111 val.thisown = 1
112 return val
113 def Create(self,arg0,arg1):
114 val = imagec.wxImage_Create(self.this,arg0,arg1)
115 return val
116 def Destroy(self):
117 val = imagec.wxImage_Destroy(self.this)
118 return val
119 def Scale(self,arg0,arg1):
120 val = imagec.wxImage_Scale(self.this,arg0,arg1)
121 val = wxImagePtr(val)
122 val.thisown = 1
123 return val
124 def Rescale(self,arg0,arg1):
125 val = imagec.wxImage_Rescale(self.this,arg0,arg1)
126 return val
127 def SetRGB(self,arg0,arg1,arg2,arg3,arg4):
128 val = imagec.wxImage_SetRGB(self.this,arg0,arg1,arg2,arg3,arg4)
129 return val
130 def GetRed(self,arg0,arg1):
131 val = imagec.wxImage_GetRed(self.this,arg0,arg1)
132 return val
133 def GetGreen(self,arg0,arg1):
134 val = imagec.wxImage_GetGreen(self.this,arg0,arg1)
135 return val
136 def GetBlue(self,arg0,arg1):
137 val = imagec.wxImage_GetBlue(self.this,arg0,arg1)
138 return val
139 def LoadFile(self,arg0,*args):
140 val = apply(imagec.wxImage_LoadFile,(self.this,arg0,)+args)
141 return val
142 def LoadMimeFile(self,arg0,arg1):
143 val = imagec.wxImage_LoadMimeFile(self.this,arg0,arg1)
144 return val
145 def SaveFile(self,arg0,arg1):
146 val = imagec.wxImage_SaveFile(self.this,arg0,arg1)
147 return val
148 def SaveMimeFile(self,arg0,arg1):
149 val = imagec.wxImage_SaveMimeFile(self.this,arg0,arg1)
150 return val
151 def Ok(self):
152 val = imagec.wxImage_Ok(self.this)
153 return val
154 def GetWidth(self):
155 val = imagec.wxImage_GetWidth(self.this)
156 return val
157 def GetHeight(self):
158 val = imagec.wxImage_GetHeight(self.this)
159 return val
160 def GetData(self):
161 val = imagec.wxImage_GetData(self.this)
162 return val
163 def SetData(self,arg0):
164 val = imagec.wxImage_SetData(self.this,arg0)
165 return val
166 def SetMaskColour(self,arg0,arg1,arg2):
167 val = imagec.wxImage_SetMaskColour(self.this,arg0,arg1,arg2)
168 return val
169 def GetMaskRed(self):
170 val = imagec.wxImage_GetMaskRed(self.this)
171 return val
172 def GetMaskGreen(self):
173 val = imagec.wxImage_GetMaskGreen(self.this)
174 return val
175 def GetMaskBlue(self):
176 val = imagec.wxImage_GetMaskBlue(self.this)
177 return val
178 def SetMask(self,*args):
179 val = apply(imagec.wxImage_SetMask,(self.this,)+args)
180 return val
181 def HasMask(self):
182 val = imagec.wxImage_HasMask(self.this)
183 return val
184 def __repr__(self):
185 return "<C wxImage instance>"
186 class wxImage(wxImagePtr):
187 def __init__(self,arg0,*args) :
188 self.this = apply(imagec.new_wxImage,(arg0,)+args)
189 self.thisown = 1
190
191
192
193
194
195
196 #-------------- FUNCTION WRAPPERS ------------------
197
198 def wxNullImage():
199 val = imagec.wxNullImage()
200 val = wxImagePtr(val)
201 val.thisown = 1
202 return val
203
204 def wxEmptyImage(arg0,arg1):
205 val = imagec.wxEmptyImage(arg0,arg1)
206 val = wxImagePtr(val)
207 val.thisown = 1
208 return val
209
210 def wxImageFromMime(arg0,arg1):
211 val = imagec.wxImageFromMime(arg0,arg1)
212 val = wxImagePtr(val)
213 val.thisown = 1
214 return val
215
216 def wxImageFromBitmap(arg0):
217 val = imagec.wxImageFromBitmap(arg0.this)
218 val = wxImagePtr(val)
219 val.thisown = 1
220 return val
221
222 def wxImage_AddHandler(arg0):
223 val = imagec.wxImage_AddHandler(arg0.this)
224 return val
225
226
227
228 #-------------- VARIABLE WRAPPERS ------------------
229