FTXUI/include/ftxui/component/task.hpp

18 lines
515 B
C++
Raw Normal View History

2023-08-19 19:56:36 +08:00
// Copyright 2022 Arthur Sonzogni. All rights reserved.
// Use of this source code is governed by the MIT license that can be found in
// the LICENSE file.
2022-03-14 01:51:46 +08:00
#ifndef FTXUI_COMPONENT_ANIMATION_HPP
#define FTXUI_COMPONENT_ANIMATION_HPP
#include <functional>
#include <variant>
#include "ftxui/component/event.hpp"
namespace ftxui {
2022-03-14 01:51:46 +08:00
class AnimationTask {};
using Closure = std::function<void()>;
2022-03-14 01:51:46 +08:00
using Task = std::variant<Event, Closure, AnimationTask>;
} // namespace ftxui
2022-03-14 01:51:46 +08:00
#endif // FTXUI_COMPONENT_ANIMATION_HPP