IsOk is pure virtual

This commit is contained in:
Robin Dunn
2020-03-30 15:44:32 -07:00
parent f13c3dc1ec
commit e72793abec

View File

@@ -265,7 +265,7 @@ class wxAnimationBase : public wxObject
public: public:
wxAnimationBase(); wxAnimationBase();
virtual bool IsOk() const; virtual bool IsOk() const = 0;
virtual int GetDelay(unsigned int frame) const = 0; virtual int GetDelay(unsigned int frame) const = 0;
@@ -460,6 +460,8 @@ public:
If the platform supports a native animation control (currently just wxGTK) If the platform supports a native animation control (currently just wxGTK)
then this is the animation class that should be used with @c wxAnimationCtrl. then this is the animation class that should be used with @c wxAnimationCtrl.
Otherwise it is virtually the same as @c wxGenericAnimation. Otherwise it is virtually the same as @c wxGenericAnimation.
@see wxGenericAnimation
*/ */
class wxAnimation : public wxAnimationBase class wxAnimation : public wxAnimationBase
{ {
@@ -467,6 +469,8 @@ public:
wxAnimation(); wxAnimation();
wxAnimation(const wxString &name, wxAnimationType type = wxANIMATION_TYPE_ANY); wxAnimation(const wxString &name, wxAnimationType type = wxANIMATION_TYPE_ANY);
virtual bool IsOk() const;
virtual int GetDelay(unsigned int frame) const; virtual int GetDelay(unsigned int frame) const;
virtual unsigned int GetFrameCount() const; virtual unsigned int GetFrameCount() const;
virtual wxImage GetFrame(unsigned int frame) const; virtual wxImage GetFrame(unsigned int frame) const;