2022-03-14 01:51:46 +08:00
|
|
|
#ifndef FTXUI_COMPONENT_ANIMATION_HPP
|
|
|
|
#define FTXUI_COMPONENT_ANIMATION_HPP
|
|
|
|
|
2022-02-13 18:11:34 +08:00
|
|
|
#include <functional>
|
|
|
|
#include <variant>
|
|
|
|
#include "ftxui/component/event.hpp"
|
|
|
|
|
|
|
|
namespace ftxui {
|
2022-03-14 01:51:46 +08:00
|
|
|
class AnimationTask {};
|
2022-02-13 18:11:34 +08:00
|
|
|
using Closure = std::function<void()>;
|
2022-03-14 01:51:46 +08:00
|
|
|
using Task = std::variant<Event, Closure, AnimationTask>;
|
2022-02-13 18:11:34 +08:00
|
|
|
} // namespace ftxui
|
|
|
|
|
2022-03-14 01:51:46 +08:00
|
|
|
#endif // FTXUI_COMPONENT_ANIMATION_HPP
|
|
|
|
|
2022-02-13 18:11:34 +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.
|