FTXUI 6.1.9
C++ functional terminal UI.
载入中...
搜索中...
未找到
task.hpp
浏览该文件的文档.
1// 版权所有 2022 Arthur Sonzogni。保留所有权利。
2// 本源代码的使用受 MIT 许可证的约束,该许可证可在 LICENSE 文件中找到。
3#ifndef FTXUI_COMPONENT_ANIMATION_HPP
4#define FTXUI_COMPONENT_ANIMATION_HPP
5
6#include <functional>
7#include <variant>
9
10namespace ftxui {
12using Closure = std::function<void()>;
13using Task = std::variant<Event, Closure, AnimationTask>;
14} // namespace ftxui
15
16#endif // FTXUI_COMPONENT_ANIMATION_HPP
#include "ftxui/component/component_base.hpp" // 用于 ComponentBase
std::variant< Event, Closure, AnimationTask > Task
std::function< void()> Closure