]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/imagxpm.h
account for scroll offset correctly in the mouse event handler
[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#if wxUSE_XPM
16
17//-----------------------------------------------------------------------------
18// wxXPMHandler
19//-----------------------------------------------------------------------------
20
21class WXDLLIMPEXP_CORE wxXPMHandler : public wxImageHandler
22{
23public:
24 inline wxXPMHandler()
25 {
26 m_name = wxT("XPM file");
27 m_extension = wxT("xpm");
28 m_type = wxBITMAP_TYPE_XPM;
29 m_mime = wxT("image/xpm");
30 }
31
32#if wxUSE_STREAMS
33 virtual bool LoadFile( wxImage *image, wxInputStream& stream, bool verbose=true, int index=-1 );
34 virtual bool SaveFile( wxImage *image, wxOutputStream& stream, bool verbose=true );
35protected:
36 virtual bool DoCanRead( wxInputStream& stream );
37#endif
38
39private:
40 DECLARE_DYNAMIC_CLASS(wxXPMHandler)
41};
42
43#endif // wxUSE_XPM
44
45#endif
46 // _WX_IMAGXPM_H_
47