class WXDLLIMPEXP_ADV wxAnimation : public wxAnimationBase
{
public:
- bool operator == (const wxAnimation& anim) const
- { return m_refData == anim.m_refData; }
- bool operator != (const wxAnimation& anim) const
- { return m_refData != anim.m_refData; }
-
- bool IsOk() const
+ virtual bool IsOk() const
{ return m_refData != NULL; }
- size_t GetFrameCount() const;
- int GetDelay(size_t i) const;
- wxImage GetFrame(size_t i) const;
- wxSize GetSize() const;
+ virtual size_t GetFrameCount() const;
+ virtual int GetDelay(size_t i) const;
+ virtual wxImage GetFrame(size_t i) const;
+ virtual wxSize GetSize() const;
- bool LoadFile(const wxString& filename, wxAnimationType type = wxANIMATION_TYPE_ANY);
- bool Load(wxInputStream &stream, wxAnimationType type = wxANIMATION_TYPE_ANY);
+ virtual bool LoadFile(const wxString& filename,
+ wxAnimationType type = wxANIMATION_TYPE_ANY);
+ virtual bool Load(wxInputStream& stream,
+ wxAnimationType type = wxANIMATION_TYPE_ANY);
public: // extended interface used by the generic implementation of wxAnimationCtrl
wxAnimation GetAnimation() const
{ return m_animation; }
+ void SetInactiveBitmap(const wxBitmap &bmp);
+
public: // event handlers
void OnPaint(wxPaintEvent& event);
void FitToAnimation();
// Draw the background; use this when e.g. previous frame had wxANIM_TOBACKGROUND disposal.
+ void DisposeToBackground();
void DisposeToBackground(wxDC& dc);
void DisposeToBackground(wxDC& dc, const wxPoint &pos, const wxSize &sz);
+ void UpdateBackingStoreWithStaticImage();
void IncrementalUpdateBackingStore();
bool RebuildBackingStoreUpToFrame(size_t);
void DrawFrame(wxDC &dc, size_t);