Add anim::repeat enumeration (loop / once).
This commit is contained in:
parent
9d07d6a476
commit
9b6e11db62
2 changed files with 8 additions and 3 deletions
|
|
@ -14,16 +14,21 @@
|
|||
|
||||
namespace anim {
|
||||
|
||||
enum class type {
|
||||
enum class type : uchar {
|
||||
normal,
|
||||
instant,
|
||||
};
|
||||
|
||||
enum class activation {
|
||||
enum class activation : uchar {
|
||||
normal,
|
||||
background,
|
||||
};
|
||||
|
||||
enum class repeat : uchar {
|
||||
loop,
|
||||
once,
|
||||
};
|
||||
|
||||
using transition = Fn<float64(float64 delta, float64 dt)>;
|
||||
|
||||
extern transition linear;
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ class Painter;
|
|||
struct TextWithEntities;
|
||||
|
||||
namespace anim {
|
||||
enum class type;
|
||||
enum class type : uchar;
|
||||
} // namespace anim
|
||||
|
||||
namespace style {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue