From eff2e4cc49bfadd9716f3ad65854b3b0ca309b74 Mon Sep 17 00:00:00 2001 From: Joel Klinghed Date: Tue, 26 Sep 2017 23:44:35 +0200 Subject: Animate job count changes --- src/animation.hh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/animation.hh (limited to 'src/animation.hh') diff --git a/src/animation.hh b/src/animation.hh new file mode 100644 index 0000000..fb77142 --- /dev/null +++ b/src/animation.hh @@ -0,0 +1,17 @@ +#ifndef ANIMATION_HH +#define ANIMATION_HH + +class Animation { +public: + virtual ~Animation() {} + + // Return true if animation is still active, value is always set + virtual bool tick(double duration, double* value) = 0; + +protected: + Animation() {} + Animation(Animation const&) = delete; + Animation& operator=(Animation const&) = delete; +}; + +#endif // ANIMATION_HH -- cgit v1.3