]> git.saurik.com Git - wxWidgets.git/blame - utils/wxPython/src/gtk/image.py
Prep for wxPython 2.1b3 release
[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
101class wxImagePtr :
102 def __init__(self,this):
103 self.this = this
104 self.thisown = 0
2d091820 105 def __del__(self,imagec=imagec):
ab9bc19b 106 if self.thisown == 1 :
2d091820
RD
107 imagec.delete_wxImage(self)
108 def ConvertToBitmap(self, *_args, **_kwargs):
109 val = apply(imagec.wxImage_ConvertToBitmap,(self,) + _args, _kwargs)
110 if val: val = wxBitmapPtr(val) ; val.thisown = 1
ab9bc19b 111 return val
2d091820
RD
112 def Create(self, *_args, **_kwargs):
113 val = apply(imagec.wxImage_Create,(self,) + _args, _kwargs)
ab9bc19b 114 return val
2d091820
RD
115 def Destroy(self, *_args, **_kwargs):
116 val = apply(imagec.wxImage_Destroy,(self,) + _args, _kwargs)
ab9bc19b 117 return val
2d091820
RD
118 def Scale(self, *_args, **_kwargs):
119 val = apply(imagec.wxImage_Scale,(self,) + _args, _kwargs)
120 if val: val = wxImagePtr(val) ; val.thisown = 1
ab9bc19b 121 return val
2d091820
RD
122 def Rescale(self, *_args, **_kwargs):
123 val = apply(imagec.wxImage_Rescale,(self,) + _args, _kwargs)
8bf5d46e 124 return val
2d091820
RD
125 def SetRGB(self, *_args, **_kwargs):
126 val = apply(imagec.wxImage_SetRGB,(self,) + _args, _kwargs)
ab9bc19b 127 return val
2d091820
RD
128 def GetRed(self, *_args, **_kwargs):
129 val = apply(imagec.wxImage_GetRed,(self,) + _args, _kwargs)
ab9bc19b 130 return val
2d091820
RD
131 def GetGreen(self, *_args, **_kwargs):
132 val = apply(imagec.wxImage_GetGreen,(self,) + _args, _kwargs)
ab9bc19b 133 return val
2d091820
RD
134 def GetBlue(self, *_args, **_kwargs):
135 val = apply(imagec.wxImage_GetBlue,(self,) + _args, _kwargs)
ab9bc19b 136 return val
2d091820
RD
137 def LoadFile(self, *_args, **_kwargs):
138 val = apply(imagec.wxImage_LoadFile,(self,) + _args, _kwargs)
ab9bc19b 139 return val
2d091820
RD
140 def LoadMimeFile(self, *_args, **_kwargs):
141 val = apply(imagec.wxImage_LoadMimeFile,(self,) + _args, _kwargs)
ab9bc19b 142 return val
2d091820
RD
143 def SaveFile(self, *_args, **_kwargs):
144 val = apply(imagec.wxImage_SaveFile,(self,) + _args, _kwargs)
ab9bc19b 145 return val
2d091820
RD
146 def SaveMimeFile(self, *_args, **_kwargs):
147 val = apply(imagec.wxImage_SaveMimeFile,(self,) + _args, _kwargs)
ab9bc19b 148 return val
2d091820
RD
149 def Ok(self, *_args, **_kwargs):
150 val = apply(imagec.wxImage_Ok,(self,) + _args, _kwargs)
ab9bc19b 151 return val
2d091820
RD
152 def GetWidth(self, *_args, **_kwargs):
153 val = apply(imagec.wxImage_GetWidth,(self,) + _args, _kwargs)
ab9bc19b 154 return val
2d091820
RD
155 def GetHeight(self, *_args, **_kwargs):
156 val = apply(imagec.wxImage_GetHeight,(self,) + _args, _kwargs)
ab9bc19b 157 return val
2d091820
RD
158 def GetData(self, *_args, **_kwargs):
159 val = apply(imagec.wxImage_GetData,(self,) + _args, _kwargs)
ab9bc19b 160 return val
2d091820
RD
161 def SetData(self, *_args, **_kwargs):
162 val = apply(imagec.wxImage_SetData,(self,) + _args, _kwargs)
ab9bc19b 163 return val
2d091820
RD
164 def SetMaskColour(self, *_args, **_kwargs):
165 val = apply(imagec.wxImage_SetMaskColour,(self,) + _args, _kwargs)
ab9bc19b 166 return val
2d091820
RD
167 def GetMaskRed(self, *_args, **_kwargs):
168 val = apply(imagec.wxImage_GetMaskRed,(self,) + _args, _kwargs)
ab9bc19b 169 return val
2d091820
RD
170 def GetMaskGreen(self, *_args, **_kwargs):
171 val = apply(imagec.wxImage_GetMaskGreen,(self,) + _args, _kwargs)
ab9bc19b 172 return val
2d091820
RD
173 def GetMaskBlue(self, *_args, **_kwargs):
174 val = apply(imagec.wxImage_GetMaskBlue,(self,) + _args, _kwargs)
ab9bc19b 175 return val
2d091820
RD
176 def SetMask(self, *_args, **_kwargs):
177 val = apply(imagec.wxImage_SetMask,(self,) + _args, _kwargs)
ab9bc19b 178 return val
2d091820
RD
179 def HasMask(self, *_args, **_kwargs):
180 val = apply(imagec.wxImage_HasMask,(self,) + _args, _kwargs)
ab9bc19b
RD
181 return val
182 def __repr__(self):
2d091820 183 return "<C wxImage instance at %s>" % (self.this,)
ab9bc19b 184class wxImage(wxImagePtr):
2d091820
RD
185 def __init__(self,*_args,**_kwargs):
186 self.this = apply(imagec.new_wxImage,_args,_kwargs)
ab9bc19b
RD
187 self.thisown = 1
188
189
190
191
192
193
194#-------------- FUNCTION WRAPPERS ------------------
195
2d091820
RD
196def wxNullImage(*_args, **_kwargs):
197 val = apply(imagec.wxNullImage,_args,_kwargs)
198 if val: val = wxImagePtr(val); val.thisown = 1
ab9bc19b
RD
199 return val
200
2d091820
RD
201def wxEmptyImage(*_args, **_kwargs):
202 val = apply(imagec.wxEmptyImage,_args,_kwargs)
203 if val: val = wxImagePtr(val); val.thisown = 1
ab9bc19b
RD
204 return val
205
2d091820
RD
206def wxImageFromMime(*_args, **_kwargs):
207 val = apply(imagec.wxImageFromMime,_args,_kwargs)
208 if val: val = wxImagePtr(val); val.thisown = 1
ab9bc19b
RD
209 return val
210
2d091820
RD
211def wxImageFromBitmap(*_args, **_kwargs):
212 val = apply(imagec.wxImageFromBitmap,_args,_kwargs)
213 if val: val = wxImagePtr(val); val.thisown = 1
ab9bc19b
RD
214 return val
215
2d091820 216wxImage_AddHandler = imagec.wxImage_AddHandler
ab9bc19b
RD
217
218
219
220#-------------- VARIABLE WRAPPERS ------------------
221