Chesto 0.9
A declarative and element-based library for creating GUIs on homebrew'd consoles
Animation.hpp
1#pragma once
2#include <functional>
3
4namespace Chesto {
5
7{
8public:
9 Animation(int startTime, int duration, std::function<void(float)> onStep, std::function<void()> onFinish);
10
11 bool isFinished();
12 bool step();
13 int startTime = 0;
14 int duration = 0;
15 std::function<void(float)> onStep = NULL;
16 std::function<void()> onFinish = NULL;
17};
18
19} // namespace Chesto