Chesto
0.9
A declarative and element-based library for creating GUIs on homebrew'd consoles
src
Animation.hpp
1
#pragma once
2
#include <functional>
3
4
namespace
Chesto {
5
6
class
Animation
7
{
8
public
:
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
Chesto::Animation
Definition:
Animation.hpp:7
Generated by
1.9.4