]>
Commit | Line | Data |
---|---|---|
c368d904 RD |
1 | # This file was created automatically by SWIG. |
2 | import filesysc | |
3 | ||
4 | from utils import * | |
5 | ||
6 | from image import * | |
7 | ||
8 | from misc import * | |
9 | ||
10 | from gdi import * | |
11 | ||
a323d3bd RD |
12 | from fonts import * |
13 | ||
c368d904 RD |
14 | from streams import * |
15 | import wx | |
c368d904 RD |
16 | |
17 | import types | |
18 | def wxMemoryFSHandler_AddFile(filename, a, b=''): | |
b67a9327 | 19 | if wx.wxPy_isinstance(a, (wxImage, wxImagePtr)): |
c368d904 | 20 | __wxMemoryFSHandler_AddFile_wxImage(filename, a, b) |
b67a9327 | 21 | elif wx.wxPy_isinstance(a, (wxBitmap, wxBitmapPtr)): |
c368d904 RD |
22 | __wxMemoryFSHandler_AddFile_wxBitmap(filename, a, b) |
23 | elif type(a) == types.StringType: | |
24 | #__wxMemoryFSHandler_AddFile_wxString(filename, a) | |
25 | __wxMemoryFSHandler_AddFile_Data(filename, a) | |
26 | else: raise TypeError, 'wxImage, wxBitmap or string expected' | |
27 | ||
9df61a29 | 28 | class wxFSFilePtr(wxObjectPtr): |
c368d904 RD |
29 | def __init__(self,this): |
30 | self.this = this | |
31 | self.thisown = 0 | |
32 | def GetStream(self, *_args, **_kwargs): | |
1fded56b | 33 | val = filesysc.wxFSFile_GetStream(self, *_args, **_kwargs) |
c368d904 RD |
34 | return val |
35 | def GetMimeType(self, *_args, **_kwargs): | |
1fded56b | 36 | val = filesysc.wxFSFile_GetMimeType(self, *_args, **_kwargs) |
c368d904 RD |
37 | return val |
38 | def GetLocation(self, *_args, **_kwargs): | |
1fded56b | 39 | val = filesysc.wxFSFile_GetLocation(self, *_args, **_kwargs) |
c368d904 RD |
40 | return val |
41 | def GetAnchor(self, *_args, **_kwargs): | |
1fded56b | 42 | val = filesysc.wxFSFile_GetAnchor(self, *_args, **_kwargs) |
c368d904 RD |
43 | return val |
44 | def GetModificationTime(self, *_args, **_kwargs): | |
1fded56b | 45 | val = filesysc.wxFSFile_GetModificationTime(self, *_args, **_kwargs) |
c368d904 RD |
46 | if val: val = wxDateTimePtr(val) ; val.thisown = 1 |
47 | return val | |
48 | def __repr__(self): | |
1fded56b | 49 | return "<%s.%s instance; proxy of C++ wxFSFile instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) |
c368d904 RD |
50 | class wxFSFile(wxFSFilePtr): |
51 | def __init__(self,*_args,**_kwargs): | |
1fded56b | 52 | self.this = filesysc.new_wxFSFile(*_args,**_kwargs) |
c368d904 RD |
53 | self.thisown = 1 |
54 | ||
55 | ||
56 | ||
57 | ||
9df61a29 | 58 | class wxCPPFileSystemHandlerPtr(wxObjectPtr): |
c368d904 RD |
59 | def __init__(self,this): |
60 | self.this = this | |
61 | self.thisown = 0 | |
62 | def __repr__(self): | |
1fded56b | 63 | return "<%s.%s instance; proxy of C++ wxCPPFileSystemHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) |
c368d904 RD |
64 | class wxCPPFileSystemHandler(wxCPPFileSystemHandlerPtr): |
65 | def __init__(self,this): | |
66 | self.this = this | |
67 | ||
68 | ||
69 | ||
70 | ||
71 | class wxFileSystemHandlerPtr(wxCPPFileSystemHandlerPtr): | |
72 | def __init__(self,this): | |
73 | self.this = this | |
74 | self.thisown = 0 | |
0220cbc1 | 75 | def _setCallbackInfo(self, *_args, **_kwargs): |
1fded56b | 76 | val = filesysc.wxFileSystemHandler__setCallbackInfo(self, *_args, **_kwargs) |
c368d904 RD |
77 | return val |
78 | def CanOpen(self, *_args, **_kwargs): | |
1fded56b | 79 | val = filesysc.wxFileSystemHandler_CanOpen(self, *_args, **_kwargs) |
c368d904 RD |
80 | return val |
81 | def OpenFile(self, *_args, **_kwargs): | |
1fded56b | 82 | val = filesysc.wxFileSystemHandler_OpenFile(self, *_args, **_kwargs) |
c368d904 RD |
83 | return val |
84 | def FindFirst(self, *_args, **_kwargs): | |
1fded56b | 85 | val = filesysc.wxFileSystemHandler_FindFirst(self, *_args, **_kwargs) |
c368d904 RD |
86 | return val |
87 | def FindNext(self, *_args, **_kwargs): | |
1fded56b | 88 | val = filesysc.wxFileSystemHandler_FindNext(self, *_args, **_kwargs) |
c368d904 RD |
89 | return val |
90 | def GetProtocol(self, *_args, **_kwargs): | |
1fded56b | 91 | val = filesysc.wxFileSystemHandler_GetProtocol(self, *_args, **_kwargs) |
c368d904 RD |
92 | return val |
93 | def GetLeftLocation(self, *_args, **_kwargs): | |
1fded56b | 94 | val = filesysc.wxFileSystemHandler_GetLeftLocation(self, *_args, **_kwargs) |
c368d904 RD |
95 | return val |
96 | def GetAnchor(self, *_args, **_kwargs): | |
1fded56b | 97 | val = filesysc.wxFileSystemHandler_GetAnchor(self, *_args, **_kwargs) |
c368d904 RD |
98 | return val |
99 | def GetRightLocation(self, *_args, **_kwargs): | |
1fded56b | 100 | val = filesysc.wxFileSystemHandler_GetRightLocation(self, *_args, **_kwargs) |
c368d904 RD |
101 | return val |
102 | def GetMimeTypeFromExt(self, *_args, **_kwargs): | |
1fded56b | 103 | val = filesysc.wxFileSystemHandler_GetMimeTypeFromExt(self, *_args, **_kwargs) |
c368d904 RD |
104 | return val |
105 | def __repr__(self): | |
1fded56b | 106 | return "<%s.%s instance; proxy of C++ wxFileSystemHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) |
c368d904 RD |
107 | class wxFileSystemHandler(wxFileSystemHandlerPtr): |
108 | def __init__(self,*_args,**_kwargs): | |
1fded56b | 109 | self.this = filesysc.new_wxFileSystemHandler(*_args,**_kwargs) |
c368d904 | 110 | self.thisown = 1 |
0220cbc1 | 111 | self._setCallbackInfo(self, wxFileSystemHandler) |
c368d904 RD |
112 | |
113 | ||
114 | ||
115 | ||
9df61a29 | 116 | class wxFileSystemPtr(wxObjectPtr): |
c368d904 RD |
117 | def __init__(self,this): |
118 | self.this = this | |
119 | self.thisown = 0 | |
120 | def ChangePathTo(self, *_args, **_kwargs): | |
1fded56b | 121 | val = filesysc.wxFileSystem_ChangePathTo(self, *_args, **_kwargs) |
c368d904 RD |
122 | return val |
123 | def GetPath(self, *_args, **_kwargs): | |
1fded56b | 124 | val = filesysc.wxFileSystem_GetPath(self, *_args, **_kwargs) |
c368d904 RD |
125 | return val |
126 | def OpenFile(self, *_args, **_kwargs): | |
1fded56b | 127 | val = filesysc.wxFileSystem_OpenFile(self, *_args, **_kwargs) |
c368d904 RD |
128 | return val |
129 | def FindFirst(self, *_args, **_kwargs): | |
1fded56b | 130 | val = filesysc.wxFileSystem_FindFirst(self, *_args, **_kwargs) |
c368d904 RD |
131 | return val |
132 | def FindNext(self, *_args, **_kwargs): | |
1fded56b | 133 | val = filesysc.wxFileSystem_FindNext(self, *_args, **_kwargs) |
c368d904 RD |
134 | return val |
135 | def __repr__(self): | |
1fded56b | 136 | return "<%s.%s instance; proxy of C++ wxFileSystem instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) |
c368d904 RD |
137 | class wxFileSystem(wxFileSystemPtr): |
138 | def __init__(self,*_args,**_kwargs): | |
1fded56b | 139 | self.this = filesysc.new_wxFileSystem(*_args,**_kwargs) |
c368d904 RD |
140 | self.thisown = 1 |
141 | ||
142 | ||
143 | ||
144 | ||
145 | class wxInternetFSHandlerPtr(wxCPPFileSystemHandlerPtr): | |
146 | def __init__(self,this): | |
147 | self.this = this | |
148 | self.thisown = 0 | |
149 | def CanOpen(self, *_args, **_kwargs): | |
1fded56b | 150 | val = filesysc.wxInternetFSHandler_CanOpen(self, *_args, **_kwargs) |
c368d904 RD |
151 | return val |
152 | def OpenFile(self, *_args, **_kwargs): | |
1fded56b | 153 | val = filesysc.wxInternetFSHandler_OpenFile(self, *_args, **_kwargs) |
c368d904 RD |
154 | return val |
155 | def __repr__(self): | |
1fded56b | 156 | return "<%s.%s instance; proxy of C++ wxInternetFSHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) |
c368d904 RD |
157 | class wxInternetFSHandler(wxInternetFSHandlerPtr): |
158 | def __init__(self,*_args,**_kwargs): | |
1fded56b | 159 | self.this = filesysc.new_wxInternetFSHandler(*_args,**_kwargs) |
c368d904 RD |
160 | self.thisown = 1 |
161 | ||
162 | ||
163 | ||
164 | ||
165 | class wxZipFSHandlerPtr(wxCPPFileSystemHandlerPtr): | |
166 | def __init__(self,this): | |
167 | self.this = this | |
168 | self.thisown = 0 | |
169 | def CanOpen(self, *_args, **_kwargs): | |
1fded56b | 170 | val = filesysc.wxZipFSHandler_CanOpen(self, *_args, **_kwargs) |
c368d904 RD |
171 | return val |
172 | def OpenFile(self, *_args, **_kwargs): | |
1fded56b | 173 | val = filesysc.wxZipFSHandler_OpenFile(self, *_args, **_kwargs) |
c368d904 RD |
174 | return val |
175 | def FindFirst(self, *_args, **_kwargs): | |
1fded56b | 176 | val = filesysc.wxZipFSHandler_FindFirst(self, *_args, **_kwargs) |
c368d904 RD |
177 | return val |
178 | def FindNext(self, *_args, **_kwargs): | |
1fded56b | 179 | val = filesysc.wxZipFSHandler_FindNext(self, *_args, **_kwargs) |
c368d904 RD |
180 | return val |
181 | def __repr__(self): | |
1fded56b | 182 | return "<%s.%s instance; proxy of C++ wxZipFSHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) |
c368d904 RD |
183 | class wxZipFSHandler(wxZipFSHandlerPtr): |
184 | def __init__(self,*_args,**_kwargs): | |
1fded56b | 185 | self.this = filesysc.new_wxZipFSHandler(*_args,**_kwargs) |
c368d904 RD |
186 | self.thisown = 1 |
187 | ||
188 | ||
189 | ||
190 | ||
191 | class wxMemoryFSHandlerPtr(wxCPPFileSystemHandlerPtr): | |
192 | def __init__(self,this): | |
193 | self.this = this | |
194 | self.thisown = 0 | |
195 | def CanOpen(self, *_args, **_kwargs): | |
1fded56b | 196 | val = filesysc.wxMemoryFSHandler_CanOpen(self, *_args, **_kwargs) |
c368d904 RD |
197 | return val |
198 | def OpenFile(self, *_args, **_kwargs): | |
1fded56b | 199 | val = filesysc.wxMemoryFSHandler_OpenFile(self, *_args, **_kwargs) |
c368d904 RD |
200 | return val |
201 | def FindFirst(self, *_args, **_kwargs): | |
1fded56b | 202 | val = filesysc.wxMemoryFSHandler_FindFirst(self, *_args, **_kwargs) |
c368d904 RD |
203 | return val |
204 | def FindNext(self, *_args, **_kwargs): | |
1fded56b | 205 | val = filesysc.wxMemoryFSHandler_FindNext(self, *_args, **_kwargs) |
c368d904 RD |
206 | return val |
207 | def __repr__(self): | |
1fded56b | 208 | return "<%s.%s instance; proxy of C++ wxMemoryFSHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) |
c368d904 RD |
209 | class wxMemoryFSHandler(wxMemoryFSHandlerPtr): |
210 | def __init__(self,*_args,**_kwargs): | |
1fded56b | 211 | self.this = filesysc.new_wxMemoryFSHandler(*_args,**_kwargs) |
c368d904 RD |
212 | self.thisown = 1 |
213 | ||
214 | ||
215 | ||
216 | ||
217 | ||
218 | ||
219 | #-------------- FUNCTION WRAPPERS ------------------ | |
220 | ||
dd116e73 RD |
221 | wxFileSystem_URLToFileName = filesysc.wxFileSystem_URLToFileName |
222 | ||
c368d904 RD |
223 | __wxMemoryFSHandler_AddFile_wxImage = filesysc.__wxMemoryFSHandler_AddFile_wxImage |
224 | ||
225 | __wxMemoryFSHandler_AddFile_wxBitmap = filesysc.__wxMemoryFSHandler_AddFile_wxBitmap | |
226 | ||
227 | __wxMemoryFSHandler_AddFile_Data = filesysc.__wxMemoryFSHandler_AddFile_Data | |
228 | ||
229 | wxFileSystem_AddHandler = filesysc.wxFileSystem_AddHandler | |
230 | ||
231 | wxFileSystem_CleanUpHandlers = filesysc.wxFileSystem_CleanUpHandlers | |
232 | ||
dd116e73 RD |
233 | wxFileSystem_FileNameToURL = filesysc.wxFileSystem_FileNameToURL |
234 | ||
c368d904 RD |
235 | wxMemoryFSHandler_RemoveFile = filesysc.wxMemoryFSHandler_RemoveFile |
236 | ||
237 | ||
238 | ||
239 | #-------------- VARIABLE WRAPPERS ------------------ | |
240 |