]> git.saurik.com Git - wxWidgets.git/blame - include/wx/imagxpm.h
Add "rect" paramerer to wxRichToolTip::ShowFor().
[wxWidgets.git] / include / wx / imagxpm.h
CommitLineData
775c6f0c 1/////////////////////////////////////////////////////////////////////////////
e225e700 2// Name: wx/imagxpm.h
775c6f0c
VS
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
6502dc68 15#if wxUSE_XPM
775c6f0c
VS
16
17//-----------------------------------------------------------------------------
18// wxXPMHandler
19//-----------------------------------------------------------------------------
20
53a2db12 21class WXDLLIMPEXP_CORE wxXPMHandler : public wxImageHandler
775c6f0c 22{
775c6f0c 23public:
2b5f62a0
VZ
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 }
775c6f0c
VS
31
32#if wxUSE_STREAMS
7beb59f3
WS
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 );
6f02a879 35protected:
2b5f62a0 36 virtual bool DoCanRead( wxInputStream& stream );
775c6f0c 37#endif
2b5f62a0
VZ
38
39private:
40 DECLARE_DYNAMIC_CLASS(wxXPMHandler)
775c6f0c 41};
775c6f0c 42
6502dc68 43#endif // wxUSE_XPM
775c6f0c 44
e225e700 45#endif // _WX_IMAGXPM_H_