]>
Commit | Line | Data |
---|---|---|
cf694132 RD |
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): | |
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 SetRGB(self,arg0,arg1,arg2,arg3,arg4): | |
125 | val = imagec.wxImage_SetRGB(self.this,arg0,arg1,arg2,arg3,arg4) | |
126 | return val | |
127 | def GetRed(self,arg0,arg1): | |
128 | val = imagec.wxImage_GetRed(self.this,arg0,arg1) | |
129 | return val | |
130 | def GetGreen(self,arg0,arg1): | |
131 | val = imagec.wxImage_GetGreen(self.this,arg0,arg1) | |
132 | return val | |
133 | def GetBlue(self,arg0,arg1): | |
134 | val = imagec.wxImage_GetBlue(self.this,arg0,arg1) | |
135 | return val | |
136 | def LoadFile(self,arg0,*args): | |
137 | val = apply(imagec.wxImage_LoadFile,(self.this,arg0,)+args) | |
138 | return val | |
139 | def LoadMimeFile(self,arg0,arg1): | |
140 | val = imagec.wxImage_LoadMimeFile(self.this,arg0,arg1) | |
141 | return val | |
142 | def SaveFile(self,arg0,arg1): | |
143 | val = imagec.wxImage_SaveFile(self.this,arg0,arg1) | |
144 | return val | |
145 | def SaveMimeFile(self,arg0,arg1): | |
146 | val = imagec.wxImage_SaveMimeFile(self.this,arg0,arg1) | |
147 | return val | |
148 | def Ok(self): | |
149 | val = imagec.wxImage_Ok(self.this) | |
150 | return val | |
151 | def GetWidth(self): | |
152 | val = imagec.wxImage_GetWidth(self.this) | |
153 | return val | |
154 | def GetHeight(self): | |
155 | val = imagec.wxImage_GetHeight(self.this) | |
156 | return val | |
157 | def GetData(self): | |
158 | val = imagec.wxImage_GetData(self.this) | |
159 | return val | |
160 | def SetData(self,arg0): | |
161 | val = imagec.wxImage_SetData(self.this,arg0) | |
162 | return val | |
163 | def SetMaskColour(self,arg0,arg1,arg2): | |
164 | val = imagec.wxImage_SetMaskColour(self.this,arg0,arg1,arg2) | |
165 | return val | |
166 | def GetMaskRed(self): | |
167 | val = imagec.wxImage_GetMaskRed(self.this) | |
168 | return val | |
169 | def GetMaskGreen(self): | |
170 | val = imagec.wxImage_GetMaskGreen(self.this) | |
171 | return val | |
172 | def GetMaskBlue(self): | |
173 | val = imagec.wxImage_GetMaskBlue(self.this) | |
174 | return val | |
175 | def SetMask(self,*args): | |
176 | val = apply(imagec.wxImage_SetMask,(self.this,)+args) | |
177 | return val | |
178 | def HasMask(self): | |
179 | val = imagec.wxImage_HasMask(self.this) | |
180 | return val | |
181 | def __repr__(self): | |
182 | return "<C wxImage instance>" | |
183 | class wxImage(wxImagePtr): | |
184 | def __init__(self,arg0,*args) : | |
185 | self.this = apply(imagec.new_wxImage,(arg0,)+args) | |
186 | self.thisown = 1 | |
187 | ||
188 | ||
189 | ||
190 | ||
191 | ||
192 | ||
193 | #-------------- FUNCTION WRAPPERS ------------------ | |
194 | ||
195 | def wxNullImage(): | |
196 | val = imagec.wxNullImage() | |
197 | val = wxImagePtr(val) | |
198 | val.thisown = 1 | |
199 | return val | |
200 | ||
201 | def wxEmptyImage(arg0,arg1): | |
202 | val = imagec.wxEmptyImage(arg0,arg1) | |
203 | val = wxImagePtr(val) | |
204 | val.thisown = 1 | |
205 | return val | |
206 | ||
207 | def wxImageFromMime(arg0,arg1): | |
208 | val = imagec.wxImageFromMime(arg0,arg1) | |
209 | val = wxImagePtr(val) | |
210 | val.thisown = 1 | |
211 | return val | |
212 | ||
213 | def wxImageFromBitmap(arg0): | |
214 | val = imagec.wxImageFromBitmap(arg0.this) | |
215 | val = wxImagePtr(val) | |
216 | val.thisown = 1 | |
217 | return val | |
218 | ||
219 | def wxImage_AddHandler(arg0): | |
220 | val = imagec.wxImage_AddHandler(arg0.this) | |
221 | return val | |
222 | ||
223 | ||
224 | ||
225 | #-------------- VARIABLE WRAPPERS ------------------ | |
226 |