Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
AbstractAnimation.hpp
Go to the documentation of this file.
1#ifndef LIBS_GRAPHICSCOMP_ABSTRACTANIMATION_HPP_
2#define LIBS_GRAPHICSCOMP_ABSTRACTANIMATION_HPP_
3
4#include "core/buildInfo.hpp"
5#include "core/types.hpp"
7
8#include <optional>
9
11{
12public:
13 static constexpr iv::types::milliseconds animationTime {CLIM ? 0 : 100};
14
17
18private:
19 void nextFrame() override;
20
21 bool isFinished() override;
22
23 virtual void actionEnd() = 0;
24 virtual void actionStart() = 0;
26
28 {
29 Start,
30 Running,
31 Stop
32 };
33
36 std::optional<iv::types::timestamp> m_previousFrameTime;
37};
38
39#endif /* LIBS_GRAPHICSCOMP_ABSTRACTANIMATION_HPP_ */
#define CLIM
Definition buildInfo.hpp:17
Definition AbstractAnimation.hpp:11
virtual void frameParameter(iv::types::milliseconds time)=0
virtual void actionEnd()=0
virtual void actionStart()=0
static constexpr iv::types::milliseconds animationTime
Definition AbstractAnimation.hpp:13
iv::types::milliseconds m_time
Definition AbstractAnimation.hpp:35
AbstractAnimation::EPrvAnimationState m_state
Definition AbstractAnimation.hpp:34
EPrvAnimationState
Definition AbstractAnimation.hpp:28
~AbstractAnimation() override
std::optional< iv::types::timestamp > m_previousFrameTime
Definition AbstractAnimation.hpp:36
bool isFinished() override
Definition AbstractAnimation.cpp:51
AbstractAnimation()
Definition AbstractAnimation.cpp:8
void nextFrame() override
Definition AbstractAnimation.cpp:16
Definition IAnimation.hpp:7
uint64_t milliseconds
Definition types.hpp:22