FTXUI  3.0.0
C++ functional terminal UI.
Loading...
Searching...
No Matches
task.hpp
Go to the documentation of this file.
1#ifndef FTXUI_COMPONENT_ANIMATION_HPP
2#define FTXUI_COMPONENT_ANIMATION_HPP
3
4#include <functional>
5#include <variant>
7
8namespace ftxui {
9class AnimationTask {};
10using Closure = std::function<void()>;
11using Task = std::variant<Event, Closure, AnimationTask>;
12} // namespace ftxui
13
14#endif // FTXUI_COMPONENT_ANIMATION_HPP
15
16// Copyright 2022 Arthur Sonzogni. All rights reserved.
17// Use of this source code is governed by the MIT license that can be found in
18// the LICENSE file.
std::variant< Event, Closure, AnimationTask > Task
Definition task.hpp:11
std::function< void()> Closure
Definition task.hpp:10