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