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>
6
#include "
ftxui/component/event.hpp
"
7
8
namespace
ftxui
{
9
class
AnimationTask
{};
10
using
Closure
= std::function<void()>;
11
using
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.
event.hpp
ftxui
Definition
animation.hpp:9
ftxui::Task
std::variant< Event, Closure, AnimationTask > Task
Definition
task.hpp:11
ftxui::Closure
std::function< void()> Closure
Definition
task.hpp:10
ftxui::AnimationTask
Definition
task.hpp:9