]> git.saurik.com Git - wxWidgets.git/blame - include/wx/xpmdecod.h
Replaced typedef with #define for VC++ 1.5, to prevent 'no constructor' error
[wxWidgets.git] / include / wx / xpmdecod.h
CommitLineData
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
7// Licence: wxWindows licence
8/////////////////////////////////////////////////////////////////////////////
9
10#ifndef _WX_XPMDECOD_H_
11#define _WX_XPMDECOD_H_
12
13#ifdef __GNUG__
14#pragma interface "xpmdecod.h"
15#endif
16
17#include "wx/setup.h"
18
19#if wxUSE_IMAGE && wxUSE_XPM
20
21class WXDLLEXPORT wxImage;
22class WXDLLEXPORT wxInputStream;
23
24// --------------------------------------------------------------------------
25// wxXPMDecoder class
26// --------------------------------------------------------------------------
27
28class WXDLLEXPORT wxXPMDecoder
29{
30public:
31 // constructor, destructor, etc.
32 wxXPMDecoder() {}
33 ~wxXPMDecoder() {}
34
35#if wxUSE_STREAMS
36 // Is the stream XPM file?
37 bool CanRead(wxInputStream& stream);
38 // Read XPM file from the stream, parse it and create image from it
39 wxImage ReadFile(wxInputStream& stream);
40#endif
41 // Read directly from XPM data (as passed to wxBitmap ctor):
42 wxImage ReadData(const char **xpm_data);
43};
44
45
46#endif // wxUSE_IMAGE && wxUSE_XPM
47#endif // _WX_GIFDECOD_H_
48