]>
Commit | Line | Data |
---|---|---|
424f5e27 VS |
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 | |
65571936 | 7 | // Licence: wxWindows licence |
424f5e27 VS |
8 | ///////////////////////////////////////////////////////////////////////////// |
9 | ||
10 | #ifndef _WX_XPMDECOD_H_ | |
11 | #define _WX_XPMDECOD_H_ | |
12 | ||
12028905 | 13 | #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) |
424f5e27 VS |
14 | #pragma interface "xpmdecod.h" |
15 | #endif | |
16 | ||
2ecf902b | 17 | #include "wx/defs.h" |
424f5e27 | 18 | |
424f5e27 | 19 | |
62a9d04c VS |
20 | class WXDLLIMPEXP_CORE wxImage; |
21 | class WXDLLIMPEXP_BASE wxInputStream; | |
424f5e27 VS |
22 | |
23 | // -------------------------------------------------------------------------- | |
24 | // wxXPMDecoder class | |
25 | // -------------------------------------------------------------------------- | |
26 | ||
27 | class WXDLLEXPORT wxXPMDecoder | |
28 | { | |
29 | public: | |
30 | // constructor, destructor, etc. | |
31 | wxXPMDecoder() {} | |
32 | ~wxXPMDecoder() {} | |
33 | ||
34 | #if wxUSE_STREAMS | |
35 | // Is the stream XPM file? | |
36 | bool CanRead(wxInputStream& stream); | |
37 | // Read XPM file from the stream, parse it and create image from it | |
38 | wxImage ReadFile(wxInputStream& stream); | |
39 | #endif | |
40 | // Read directly from XPM data (as passed to wxBitmap ctor): | |
41 | wxImage ReadData(const char **xpm_data); | |
42 | }; | |
43 | ||
44 | ||
424f5e27 VS |
45 | #endif // _WX_GIFDECOD_H_ |
46 |