X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e07c114691a53dd0203809b6c630a4320aef05f7..68a9527d5185cdd9d3fef3d9421415c50de8794d:/include/wx/anidecod.h diff --git a/include/wx/anidecod.h b/include/wx/anidecod.h index 723c352398..bc048d3c85 100644 --- a/include/wx/anidecod.h +++ b/include/wx/anidecod.h @@ -30,37 +30,23 @@ WX_DECLARE_EXPORTED_OBJARRAY(wxImage, wxImageArray); class WXDLLEXPORT wxANIDecoder : public wxAnimationDecoder { -private: - - // 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. - wxImageArray m_images; - - // the info about each image stored in m_images. - // NB: m_info.GetCount() may differ from m_images.GetCount()! - wxANIFrameInfoArray m_info; - - // this is the wxCURHandler used to load the ICON chunk of the ANI files - static wxCURHandler sm_handler; - -public: - virtual wxSize GetFrameSize(size_t frame) const; - virtual wxPoint GetFramePosition(size_t frame) const; - virtual wxAnimationDisposal GetDisposalMethod(size_t frame) const; - virtual long GetDelay(size_t frame) const; - public: // constructor, destructor, etc. wxANIDecoder(); ~wxANIDecoder(); -public: // implementation of wxAnimationDecoder's pure virtuals + virtual wxSize GetFrameSize(unsigned int frame) const; + virtual wxPoint GetFramePosition(unsigned int frame) const; + virtual wxAnimationDisposal GetDisposalMethod(unsigned int frame) const; + virtual long GetDelay(unsigned int frame) const; + 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(size_t frame, wxImage *image) const; + bool ConvertToImage(unsigned int frame, wxImage *image) const; wxAnimationDecoder *Clone() const { return new wxANIDecoder; } @@ -68,6 +54,19 @@ public: // implementation of wxAnimationDecoder's pure virtuals { return wxANIMATION_TYPE_ANI; } private: + // 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. + wxImageArray m_images; + + // the info about each image stored in m_images. + // NB: m_info.GetCount() may differ from m_images.GetCount()! + wxANIFrameInfoArray m_info; + + // this is the wxCURHandler used to load the ICON chunk of the ANI files + static wxCURHandler sm_handler; + + DECLARE_NO_COPY_CLASS(wxANIDecoder) };