1 # This file was created automatically by SWIG.
17 def wxMemoryFSHandler_AddFile(filename
, a
, b
=''):
18 if isinstance(a
, wxImage
):
19 __wxMemoryFSHandler_AddFile_wxImage(filename
, a
, b
)
20 elif isinstance(a
, wxBitmap
):
21 __wxMemoryFSHandler_AddFile_wxBitmap(filename
, a
, b
)
22 elif type(a
) == types
.StringType
:
23 #__wxMemoryFSHandler_AddFile_wxString(filename, a)
24 __wxMemoryFSHandler_AddFile_Data(filename
, a
)
25 else: raise TypeError, 'wxImage, wxBitmap or string expected'
28 def __init__(self
,this
):
31 def GetStream(self
, *_args
, **_kwargs
):
32 val
= apply(filesysc
.wxFSFile_GetStream
,(self
,) + _args
, _kwargs
)
34 def GetMimeType(self
, *_args
, **_kwargs
):
35 val
= apply(filesysc
.wxFSFile_GetMimeType
,(self
,) + _args
, _kwargs
)
37 def GetLocation(self
, *_args
, **_kwargs
):
38 val
= apply(filesysc
.wxFSFile_GetLocation
,(self
,) + _args
, _kwargs
)
40 def GetAnchor(self
, *_args
, **_kwargs
):
41 val
= apply(filesysc
.wxFSFile_GetAnchor
,(self
,) + _args
, _kwargs
)
43 def GetModificationTime(self
, *_args
, **_kwargs
):
44 val
= apply(filesysc
.wxFSFile_GetModificationTime
,(self
,) + _args
, _kwargs
)
45 if val
: val
= wxDateTimePtr(val
) ; val
.thisown
= 1
48 return "<C wxFSFile instance at %s>" % (self
.this
,)
49 class wxFSFile(wxFSFilePtr
):
50 def __init__(self
,*_args
,**_kwargs
):
51 self
.this
= apply(filesysc
.new_wxFSFile
,_args
,_kwargs
)
57 class wxCPPFileSystemHandlerPtr
:
58 def __init__(self
,this
):
62 return "<C wxCPPFileSystemHandler instance at %s>" % (self
.this
,)
63 class wxCPPFileSystemHandler(wxCPPFileSystemHandlerPtr
):
64 def __init__(self
,this
):
70 class wxFileSystemHandlerPtr(wxCPPFileSystemHandlerPtr
):
71 def __init__(self
,this
):
74 def _setSelf(self
, *_args
, **_kwargs
):
75 val
= apply(filesysc
.wxFileSystemHandler__setSelf
,(self
,) + _args
, _kwargs
)
77 def CanOpen(self
, *_args
, **_kwargs
):
78 val
= apply(filesysc
.wxFileSystemHandler_CanOpen
,(self
,) + _args
, _kwargs
)
80 def OpenFile(self
, *_args
, **_kwargs
):
81 val
= apply(filesysc
.wxFileSystemHandler_OpenFile
,(self
,) + _args
, _kwargs
)
82 if val
: val
= wxFSFilePtr(val
)
84 def FindFirst(self
, *_args
, **_kwargs
):
85 val
= apply(filesysc
.wxFileSystemHandler_FindFirst
,(self
,) + _args
, _kwargs
)
87 def FindNext(self
, *_args
, **_kwargs
):
88 val
= apply(filesysc
.wxFileSystemHandler_FindNext
,(self
,) + _args
, _kwargs
)
90 def GetProtocol(self
, *_args
, **_kwargs
):
91 val
= apply(filesysc
.wxFileSystemHandler_GetProtocol
,(self
,) + _args
, _kwargs
)
93 def GetLeftLocation(self
, *_args
, **_kwargs
):
94 val
= apply(filesysc
.wxFileSystemHandler_GetLeftLocation
,(self
,) + _args
, _kwargs
)
96 def GetAnchor(self
, *_args
, **_kwargs
):
97 val
= apply(filesysc
.wxFileSystemHandler_GetAnchor
,(self
,) + _args
, _kwargs
)
99 def GetRightLocation(self
, *_args
, **_kwargs
):
100 val
= apply(filesysc
.wxFileSystemHandler_GetRightLocation
,(self
,) + _args
, _kwargs
)
102 def GetMimeTypeFromExt(self
, *_args
, **_kwargs
):
103 val
= apply(filesysc
.wxFileSystemHandler_GetMimeTypeFromExt
,(self
,) + _args
, _kwargs
)
106 return "<C wxFileSystemHandler instance at %s>" % (self
.this
,)
107 class wxFileSystemHandler(wxFileSystemHandlerPtr
):
108 def __init__(self
,*_args
,**_kwargs
):
109 self
.this
= apply(filesysc
.new_wxFileSystemHandler
,_args
,_kwargs
)
111 self
._setSelf
(self
, wxFileSystemHandler
)
116 class wxFileSystemPtr
:
117 def __init__(self
,this
):
120 def ChangePathTo(self
, *_args
, **_kwargs
):
121 val
= apply(filesysc
.wxFileSystem_ChangePathTo
,(self
,) + _args
, _kwargs
)
123 def GetPath(self
, *_args
, **_kwargs
):
124 val
= apply(filesysc
.wxFileSystem_GetPath
,(self
,) + _args
, _kwargs
)
126 def OpenFile(self
, *_args
, **_kwargs
):
127 val
= apply(filesysc
.wxFileSystem_OpenFile
,(self
,) + _args
, _kwargs
)
128 if val
: val
= wxFSFilePtr(val
)
130 def FindFirst(self
, *_args
, **_kwargs
):
131 val
= apply(filesysc
.wxFileSystem_FindFirst
,(self
,) + _args
, _kwargs
)
133 def FindNext(self
, *_args
, **_kwargs
):
134 val
= apply(filesysc
.wxFileSystem_FindNext
,(self
,) + _args
, _kwargs
)
137 return "<C wxFileSystem instance at %s>" % (self
.this
,)
138 class wxFileSystem(wxFileSystemPtr
):
139 def __init__(self
,*_args
,**_kwargs
):
140 self
.this
= apply(filesysc
.new_wxFileSystem
,_args
,_kwargs
)
146 class wxInternetFSHandlerPtr(wxCPPFileSystemHandlerPtr
):
147 def __init__(self
,this
):
150 def CanOpen(self
, *_args
, **_kwargs
):
151 val
= apply(filesysc
.wxInternetFSHandler_CanOpen
,(self
,) + _args
, _kwargs
)
153 def OpenFile(self
, *_args
, **_kwargs
):
154 val
= apply(filesysc
.wxInternetFSHandler_OpenFile
,(self
,) + _args
, _kwargs
)
155 if val
: val
= wxFSFilePtr(val
)
158 return "<C wxInternetFSHandler instance at %s>" % (self
.this
,)
159 class wxInternetFSHandler(wxInternetFSHandlerPtr
):
160 def __init__(self
,*_args
,**_kwargs
):
161 self
.this
= apply(filesysc
.new_wxInternetFSHandler
,_args
,_kwargs
)
167 class wxZipFSHandlerPtr(wxCPPFileSystemHandlerPtr
):
168 def __init__(self
,this
):
171 def CanOpen(self
, *_args
, **_kwargs
):
172 val
= apply(filesysc
.wxZipFSHandler_CanOpen
,(self
,) + _args
, _kwargs
)
174 def OpenFile(self
, *_args
, **_kwargs
):
175 val
= apply(filesysc
.wxZipFSHandler_OpenFile
,(self
,) + _args
, _kwargs
)
176 if val
: val
= wxFSFilePtr(val
)
178 def FindFirst(self
, *_args
, **_kwargs
):
179 val
= apply(filesysc
.wxZipFSHandler_FindFirst
,(self
,) + _args
, _kwargs
)
181 def FindNext(self
, *_args
, **_kwargs
):
182 val
= apply(filesysc
.wxZipFSHandler_FindNext
,(self
,) + _args
, _kwargs
)
185 return "<C wxZipFSHandler instance at %s>" % (self
.this
,)
186 class wxZipFSHandler(wxZipFSHandlerPtr
):
187 def __init__(self
,*_args
,**_kwargs
):
188 self
.this
= apply(filesysc
.new_wxZipFSHandler
,_args
,_kwargs
)
194 class wxMemoryFSHandlerPtr(wxCPPFileSystemHandlerPtr
):
195 def __init__(self
,this
):
198 def CanOpen(self
, *_args
, **_kwargs
):
199 val
= apply(filesysc
.wxMemoryFSHandler_CanOpen
,(self
,) + _args
, _kwargs
)
201 def OpenFile(self
, *_args
, **_kwargs
):
202 val
= apply(filesysc
.wxMemoryFSHandler_OpenFile
,(self
,) + _args
, _kwargs
)
203 if val
: val
= wxFSFilePtr(val
)
205 def FindFirst(self
, *_args
, **_kwargs
):
206 val
= apply(filesysc
.wxMemoryFSHandler_FindFirst
,(self
,) + _args
, _kwargs
)
208 def FindNext(self
, *_args
, **_kwargs
):
209 val
= apply(filesysc
.wxMemoryFSHandler_FindNext
,(self
,) + _args
, _kwargs
)
212 return "<C wxMemoryFSHandler instance at %s>" % (self
.this
,)
213 class wxMemoryFSHandler(wxMemoryFSHandlerPtr
):
214 def __init__(self
,*_args
,**_kwargs
):
215 self
.this
= apply(filesysc
.new_wxMemoryFSHandler
,_args
,_kwargs
)
223 #-------------- FUNCTION WRAPPERS ------------------
225 __wxMemoryFSHandler_AddFile_wxImage
= filesysc
.__wxMemoryFSHandler
_AddFile
_wxImage
227 __wxMemoryFSHandler_AddFile_wxBitmap
= filesysc
.__wxMemoryFSHandler
_AddFile
_wxBitmap
229 __wxMemoryFSHandler_AddFile_Data
= filesysc
.__wxMemoryFSHandler
_AddFile
_Data
231 wxFileSystem_AddHandler
= filesysc
.wxFileSystem_AddHandler
233 wxFileSystem_CleanUpHandlers
= filesysc
.wxFileSystem_CleanUpHandlers
235 wxMemoryFSHandler_RemoveFile
= filesysc
.wxMemoryFSHandler_RemoveFile
239 #-------------- VARIABLE WRAPPERS ------------------