]> git.saurik.com Git - wxWidgets.git/blame - include/wx/xpmdecod.h
take const wxConfig object in wxDocManager::FileHistoryLoad() and wxFileHistory:...
[wxWidgets.git] / include / wx / xpmdecod.h
CommitLineData
424f5e27 1/////////////////////////////////////////////////////////////////////////////
ce7208d4 2// Name: wx/xpmdecod.h
424f5e27
VS
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
2ecf902b 13#include "wx/defs.h"
424f5e27 14
552796e0 15#if wxUSE_IMAGE && wxUSE_XPM
424f5e27 16
b5dbe15d
VS
17class WXDLLIMPEXP_FWD_CORE wxImage;
18class WXDLLIMPEXP_FWD_BASE wxInputStream;
424f5e27
VS
19
20// --------------------------------------------------------------------------
21// wxXPMDecoder class
22// --------------------------------------------------------------------------
23
53a2db12 24class WXDLLIMPEXP_CORE wxXPMDecoder
424f5e27
VS
25{
26public:
27 // constructor, destructor, etc.
28 wxXPMDecoder() {}
29 ~wxXPMDecoder() {}
30
31#if wxUSE_STREAMS
32 // Is the stream XPM file?
33 bool CanRead(wxInputStream& stream);
34 // Read XPM file from the stream, parse it and create image from it
35 wxImage ReadFile(wxInputStream& stream);
36#endif
37 // Read directly from XPM data (as passed to wxBitmap ctor):
452418c4 38 wxImage ReadData(const char* const* xpm_data);
29b7b6ca
PC
39#ifdef __BORLANDC__
40 // needed for Borland 5.5
41 wxImage ReadData(char** xpm_data) { return ReadData(wx_const_cast(const char* const*, xpm_data)); }
42#endif
424f5e27
VS
43};
44
552796e0 45#endif // wxUSE_IMAGE && wxUSE_XPM
424f5e27 46
552796e0 47#endif // _WX_XPM_H_