X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/580ca0a4e10dbd2fb0a144065004394b9d5dcc56..4e2251ecd324ba89c486434485efcb1d32ee7dca:/include/wx/animate.h diff --git a/include/wx/animate.h b/include/wx/animate.h index d228b37f19..5a0a5ad632 100644 --- a/include/wx/animate.h +++ b/include/wx/animate.h @@ -82,13 +82,26 @@ public: // public API virtual bool IsPlaying() const = 0; - virtual void SetInactiveBitmap(const wxBitmap &bmp) = 0; + virtual void SetInactiveBitmap(const wxBitmap &bmp); + + // always return the original bitmap set in this control wxBitmap GetInactiveBitmap() const { return m_bmpStatic; } protected: + // the inactive bitmap as it was set by the user wxBitmap m_bmpStatic; + // the inactive bitmap currently shown in the control + // (may differ in the size from m_bmpStatic) + wxBitmap m_bmpStaticReal; + + // updates m_bmpStaticReal from m_bmpStatic if needed + virtual void UpdateStaticImage(); + + // called by SetInactiveBitmap + virtual void DisplayStaticImage() = 0; + private: DECLARE_ABSTRACT_CLASS(wxAnimationCtrlBase) };