X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/943d32e1c6fbd658b6e460fcb20058d3958f5d77..8c6686ef7b0d43696d622c6e3fc58c29048ea06e:/include/wx/animate.h?ds=sidebyside diff --git a/include/wx/animate.h b/include/wx/animate.h index c10a05ba47..583b1afc74 100644 --- a/include/wx/animate.h +++ b/include/wx/animate.h @@ -16,15 +16,10 @@ #if wxUSE_ANIMATIONCTRL -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include "wx/animdecod.h" +#include "wx/control.h" +#include "wx/timer.h" +#include "wx/bitmap.h" class WXDLLIMPEXP_ADV wxAnimation; @@ -70,7 +65,6 @@ protected: // auto-resizes by default to fit the new animation when SetAnimation() is called #define wxAC_DEFAULT_STYLE (wxNO_BORDER) - class WXDLLIMPEXP_ADV wxAnimationCtrlBase : public wxControl { public: @@ -88,6 +82,13 @@ public: // public API virtual bool IsPlaying() const = 0; + virtual void SetInactiveBitmap(const wxBitmap &bmp); + wxBitmap GetInactiveBitmap() const + { return m_bmpStatic; } + +protected: + wxBitmap m_bmpStatic; + private: DECLARE_ABSTRACT_CLASS(wxAnimationCtrlBase) }; @@ -97,7 +98,7 @@ private: // include the platform-specific version of the wxAnimationCtrl class // ---------------------------------------------------------------------------- -#if defined(__WXGTK__) +#if defined(__WXGTK20__) && !defined(__WXUNIVERSAL__) #include "wx/gtk/animate.h" #else #include "wx/generic/animate.h"