X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7e0bac9d7deb56f70983c894c68ef228c1fa85b4..aaf5f98682223a5ceb3496e7a25865ad791e8ab7:/include/wx/anidecod.h diff --git a/include/wx/anidecod.h b/include/wx/anidecod.h index ee5e719c2d..86970ae771 100644 --- a/include/wx/anidecod.h +++ b/include/wx/anidecod.h @@ -20,7 +20,7 @@ #include "wx/dynarray.h" -class /*WXDLLEXPORT*/ wxANIFrameInfo; +class /*WXDLLIMPEXP_CORE*/ wxANIFrameInfo; // private implementation detail WX_DECLARE_EXPORTED_OBJARRAY(wxANIFrameInfo, wxANIFrameInfoArray); WX_DECLARE_EXPORTED_OBJARRAY(wxImage, wxImageArray); @@ -29,7 +29,7 @@ WX_DECLARE_EXPORTED_OBJARRAY(wxImage, wxImageArray); // wxANIDecoder class // -------------------------------------------------------------------------- -class WXDLLEXPORT wxANIDecoder : public wxAnimationDecoder +class WXDLLIMPEXP_CORE wxANIDecoder : public wxAnimationDecoder { public: // constructor, destructor, etc. @@ -44,7 +44,7 @@ public: virtual wxColour GetTransparentColour(unsigned int frame) const; // implementation of wxAnimationDecoder's pure virtuals - virtual bool CanRead( wxInputStream& stream ) const; + virtual bool Load( wxInputStream& stream ); bool ConvertToImage(unsigned int frame, wxImage *image) const; @@ -55,6 +55,10 @@ public: { return wxANIMATION_TYPE_ANI; } private: + // wxAnimationDecoder pure virtual: + virtual bool DoCanRead( wxInputStream& stream ) const; + // modifies current stream position (see wxAnimationDecoder::CanRead) + // frames stored as wxImage(s): ANI files are meant to be used mostly for animated // cursors and thus they do not use any optimization to encode differences between // two frames: they are just a list of images to display sequentially. @@ -68,10 +72,10 @@ private: static wxCURHandler sm_handler; - DECLARE_NO_COPY_CLASS(wxANIDecoder) + wxDECLARE_NO_COPY_CLASS(wxANIDecoder); }; -#endif // wxUSE_STREAM && wxUSE_ICO_CUR +#endif // wxUSE_STREAMS && wxUSE_ICO_CUR #endif // _WX_ANIDECOD_H