diff options
| author | Joel Klinghed <the_jk@yahoo.com> | 2017-09-26 23:44:35 +0200 |
|---|---|---|
| committer | Joel Klinghed <the_jk@yahoo.com> | 2017-09-26 23:44:35 +0200 |
| commit | eff2e4cc49bfadd9716f3ad65854b3b0ca309b74 (patch) | |
| tree | bafa49f7efcf39e9057b8f006c14d7f3a2a53e2d /src/animation.hh | |
| parent | 811e04305457108bc32d8895fd9bd274715d02fc (diff) | |
Animate job count changes
Diffstat (limited to 'src/animation.hh')
| -rw-r--r-- | src/animation.hh | 17 |
1 files changed, 17 insertions, 0 deletions
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 |
