X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/53b7ce7ef8512914690ad95b4150b2d880dda4dd..689fceb7a725f0000102fa080d1015ab22a58489:/include/wx/imaggif.h diff --git a/include/wx/imaggif.h b/include/wx/imaggif.h index 909a69c17a..f0cffd7fca 100644 --- a/include/wx/imaggif.h +++ b/include/wx/imaggif.h @@ -1,7 +1,9 @@ ///////////////////////////////////////////////////////////////////////////// // Name: imaggif.h -// Purpose: wxImage handler for GIFs (read-only) -// Author: Vaclav Slavik (of this header only) +// Purpose: wxImage GIF handler +// Author: Vaclav Slavik & Guillermo Rodriguez Garcia +// RCS-ID: $Id$ +// Copyright: (c) Guillermo Rodriguez Garcia // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -12,17 +14,15 @@ #pragma interface "imaggif.h" #endif -#include -#include -#include -#include -#include -#include +#include "wx/image.h" + //----------------------------------------------------------------------------- // wxGIFHandler //----------------------------------------------------------------------------- +#if wxUSE_GIF + class WXDLLEXPORT wxGIFHandler : public wxImageHandler { DECLARE_DYNAMIC_CLASS(wxGIFHandler) @@ -37,10 +37,15 @@ public: m_mime = "image/gif"; }; - virtual bool LoadFile( wxImage *image, wxInputStream& stream ); - virtual bool SaveFile( wxImage *image, wxOutputStream& stream ); +#if wxUSE_STREAMS + virtual bool LoadFile( wxImage *image, wxInputStream& stream, bool verbose=TRUE, int index=-1 ); + virtual bool SaveFile( wxImage *image, wxOutputStream& stream, bool verbose=TRUE ); + virtual bool DoCanRead( wxInputStream& stream ); +#endif }; +#endif + #endif - // _WX_IMAGGIF_H_ + // _WX_IMAGGIF_H_