FTXUI/include/ftxui/component/task.hpp

19 lines
516 B
C++
Raw Normal View History

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
// 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.