2001-04-22 22:21:21 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
2009-03-09 23:08:36 +00:00
|
|
|
// Name: wx/imagxpm.h
|
2001-04-22 22:21:21 +00:00
|
|
|
// Purpose: wxImage XPM handler
|
|
|
|
// Author: Vaclav Slavik
|
|
|
|
// Copyright: (c) 2001 Vaclav Slavik
|
2004-05-23 20:53:33 +00:00
|
|
|
// Licence: wxWindows licence
|
2001-04-22 22:21:21 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_IMAGXPM_H_
|
|
|
|
#define _WX_IMAGXPM_H_
|
|
|
|
|
|
|
|
#include "wx/image.h"
|
|
|
|
|
2008-09-03 07:29:31 +00:00
|
|
|
#if wxUSE_XPM
|
2001-04-22 22:21:21 +00:00
|
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// wxXPMHandler
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
2008-03-26 15:06:00 +00:00
|
|
|
class WXDLLIMPEXP_CORE wxXPMHandler : public wxImageHandler
|
2001-04-22 22:21:21 +00:00
|
|
|
{
|
|
|
|
public:
|
2002-12-04 14:11:26 +00:00
|
|
|
inline wxXPMHandler()
|
|
|
|
{
|
|
|
|
m_name = wxT("XPM file");
|
|
|
|
m_extension = wxT("xpm");
|
|
|
|
m_type = wxBITMAP_TYPE_XPM;
|
|
|
|
m_mime = wxT("image/xpm");
|
|
|
|
}
|
2001-04-22 22:21:21 +00:00
|
|
|
|
|
|
|
#if wxUSE_STREAMS
|
2014-03-30 00:02:23 +00:00
|
|
|
virtual bool LoadFile( wxImage *image, wxInputStream& stream, bool verbose=true, int index=-1 ) wxOVERRIDE;
|
|
|
|
virtual bool SaveFile( wxImage *image, wxOutputStream& stream, bool verbose=true ) wxOVERRIDE;
|
2006-02-08 21:47:09 +00:00
|
|
|
protected:
|
2014-03-30 00:02:23 +00:00
|
|
|
virtual bool DoCanRead( wxInputStream& stream ) wxOVERRIDE;
|
2001-04-22 22:21:21 +00:00
|
|
|
#endif
|
2002-12-04 14:11:26 +00:00
|
|
|
|
|
|
|
private:
|
2015-04-23 11:49:01 +00:00
|
|
|
wxDECLARE_DYNAMIC_CLASS(wxXPMHandler);
|
2001-04-22 22:21:21 +00:00
|
|
|
};
|
|
|
|
|
2008-09-03 07:29:31 +00:00
|
|
|
#endif // wxUSE_XPM
|
2001-04-22 22:21:21 +00:00
|
|
|
|
2009-03-09 23:08:36 +00:00
|
|
|
#endif // _WX_IMAGXPM_H_
|