]> git.saurik.com Git - wxWidgets.git/blame - include/wx/imagxpm.h
Move wxMBConv_cf out of strconv.cpp and into strconv_cf.(cpp|h) by forking the files...
[wxWidgets.git] / include / wx / imagxpm.h
CommitLineData
775c6f0c
VS
1/////////////////////////////////////////////////////////////////////////////
2// Name: imaggif.h
3// Purpose: wxImage XPM handler
4// Author: Vaclav Slavik
5// RCS-ID: $Id$
6// Copyright: (c) 2001 Vaclav Slavik
65571936 7// Licence: wxWindows licence
775c6f0c
VS
8/////////////////////////////////////////////////////////////////////////////
9
10#ifndef _WX_IMAGXPM_H_
11#define _WX_IMAGXPM_H_
12
775c6f0c
VS
13#include "wx/image.h"
14
15
16//-----------------------------------------------------------------------------
17// wxXPMHandler
18//-----------------------------------------------------------------------------
19
775c6f0c
VS
20class WXDLLEXPORT wxXPMHandler : public wxImageHandler
21{
775c6f0c 22public:
2b5f62a0
VZ
23 inline wxXPMHandler()
24 {
25 m_name = wxT("XPM file");
26 m_extension = wxT("xpm");
27 m_type = wxBITMAP_TYPE_XPM;
28 m_mime = wxT("image/xpm");
29 }
775c6f0c
VS
30
31#if wxUSE_STREAMS
7beb59f3
WS
32 virtual bool LoadFile( wxImage *image, wxInputStream& stream, bool verbose=true, int index=-1 );
33 virtual bool SaveFile( wxImage *image, wxOutputStream& stream, bool verbose=true );
6f02a879 34protected:
2b5f62a0 35 virtual bool DoCanRead( wxInputStream& stream );
775c6f0c 36#endif
2b5f62a0
VZ
37
38private:
39 DECLARE_DYNAMIC_CLASS(wxXPMHandler)
775c6f0c 40};
775c6f0c
VS
41
42
43#endif
44 // _WX_IMAGXPM_H_
45