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