]>
Commit | Line | Data |
---|---|---|
1 | ///////////////////////////////////////////////////////////////////////////// | |
2 | // Name: xpmdecod.h | |
3 | // Purpose: wxXPMDecoder, XPM reader for wxImage and wxBitmap | |
4 | // Author: Vaclav Slavik | |
5 | // CVS-ID: $Id$ | |
6 | // Copyright: (c) 2001 Vaclav Slavik | |
7 | // Licence: wxWindows licence | |
8 | ///////////////////////////////////////////////////////////////////////////// | |
9 | ||
10 | #ifndef _WX_XPMDECOD_H_ | |
11 | #define _WX_XPMDECOD_H_ | |
12 | ||
13 | #include "wx/defs.h" | |
14 | ||
15 | ||
16 | class WXDLLIMPEXP_CORE wxImage; | |
17 | class WXDLLIMPEXP_BASE wxInputStream; | |
18 | ||
19 | // -------------------------------------------------------------------------- | |
20 | // wxXPMDecoder class | |
21 | // -------------------------------------------------------------------------- | |
22 | ||
23 | class WXDLLEXPORT wxXPMDecoder | |
24 | { | |
25 | public: | |
26 | // constructor, destructor, etc. | |
27 | wxXPMDecoder() {} | |
28 | ~wxXPMDecoder() {} | |
29 | ||
30 | #if wxUSE_STREAMS | |
31 | // Is the stream XPM file? | |
32 | bool CanRead(wxInputStream& stream); | |
33 | // Read XPM file from the stream, parse it and create image from it | |
34 | wxImage ReadFile(wxInputStream& stream); | |
35 | #endif | |
36 | // Read directly from XPM data (as passed to wxBitmap ctor): | |
37 | wxImage ReadData(const char **xpm_data); | |
38 | }; | |
39 | ||
40 | ||
41 | #endif // _WX_GIFDECOD_H_ | |
42 |