]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/imagxpm.h
Commited FRM's stockitem patch (empty stock items).
[wxWidgets.git] / include / wx / imagxpm.h
... / ...
CommitLineData
1/////////////////////////////////////////////////////////////////////////////
2// Name: imaggif.h
3// Purpose: wxImage XPM handler
4// Author: Vaclav Slavik
5// RCS-ID: $Id$
6// Copyright: (c) 2001 Vaclav Slavik
7// Licence: wxWindows licence
8/////////////////////////////////////////////////////////////////////////////
9
10#ifndef _WX_IMAGXPM_H_
11#define _WX_IMAGXPM_H_
12
13#include "wx/image.h"
14
15
16//-----------------------------------------------------------------------------
17// wxXPMHandler
18//-----------------------------------------------------------------------------
19
20class WXDLLEXPORT wxXPMHandler : public wxImageHandler
21{
22public:
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 }
30
31#if wxUSE_STREAMS
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 );
34protected:
35 virtual bool DoCanRead( wxInputStream& stream );
36#endif
37
38private:
39 DECLARE_DYNAMIC_CLASS(wxXPMHandler)
40};
41
42
43#endif
44 // _WX_IMAGXPM_H_
45