FTXUI 6.1.9
C++ functional terminal UI.
Loading...
Searching...
No Matches
component.cppm
Go to the documentation of this file.
1/// @module ftxui.component
2/// @brief Module file for FTXUI component operations.
3
4module;
5
18
19export module ftxui.component;
20
21/**
22 * @namespace ftxui
23 * @brief The FTXUI ftxui:: namespace
24 */
25export namespace ftxui {
29 using ftxui::App;
33 using ftxui::Closure;
34 using ftxui::Component;
37 using ftxui::Delegate;
40 using ftxui::Event;
41 using ftxui::Focus;
44 using ftxui::Loop;
47 using ftxui::Mouse;
50 using ftxui::Screen;
52 using ftxui::Task;
56
57 using ftxui::Make;
58
59 using ftxui::Button;
60 using ftxui::Checkbox;
61 using ftxui::Input;
62 using ftxui::Menu;
63 using ftxui::MenuEntry;
64 using ftxui::Radiobox;
65 using ftxui::Dropdown;
66 using ftxui::Toggle;
67 using ftxui::Slider;
68 using ftxui::ResizableSplit;
69 using ftxui::ResizableSplitLeft;
70 using ftxui::ResizableSplitRight;
71 using ftxui::ResizableSplitTop;
72 using ftxui::ResizableSplitBottom;
73 using ftxui::Renderer;
74 using ftxui::CatchEvent;
75 using ftxui::Maybe;
76 using ftxui::Modal;
77 using ftxui::Collapsible;
78 using ftxui::Hoverable;
79 using ftxui::Window;
80
81 // Deprecated
85 using ftxui::Receiver;
86 using ftxui::Sender;
87 using ftxui::MakeReceiver;
88
89 using ftxui::operator|;
90 using ftxui::operator|=;
91
92 /**
93 * @namespace Container
94 * @brief The FTXUI ftxui::Container:: namespace
95 */
96 namespace Container {
97 using ftxui::Container::Vertical;
98 using ftxui::Container::Horizontal;
99 using ftxui::Container::Tab;
100 using ftxui::Container::Stacked;
101 }
102
103 /**
104 * @namespace animation
105 * @brief The FTXUI ftxui::animation:: namespace
106 */
107 namespace animation {
113
114 using ftxui::animation::RequestAnimationFrame;
115
116 /**
117 * @namespace easing
118 * @brief The FTXUI ftxui::animation::easing:: namespace
119 */
120 namespace easing {
122
123 using ftxui::animation::easing::Linear;
124 using ftxui::animation::easing::QuadraticIn;
125 using ftxui::animation::easing::QuadraticOut;
126 using ftxui::animation::easing::QuadraticInOut;
127 using ftxui::animation::easing::CubicIn;
128 using ftxui::animation::easing::CubicOut;
129 using ftxui::animation::easing::CubicInOut;
130 using ftxui::animation::easing::QuarticIn;
131 using ftxui::animation::easing::QuarticOut;
132 using ftxui::animation::easing::QuarticInOut;
133 using ftxui::animation::easing::QuinticIn;
134 using ftxui::animation::easing::QuinticOut;
135 using ftxui::animation::easing::QuinticInOut;
136 using ftxui::animation::easing::SineIn;
137 using ftxui::animation::easing::SineOut;
138 using ftxui::animation::easing::SineInOut;
139 using ftxui::animation::easing::CircularIn;
140 using ftxui::animation::easing::CircularOut;
141 using ftxui::animation::easing::CircularInOut;
142 using ftxui::animation::easing::ExponentialIn;
143 using ftxui::animation::easing::ExponentialOut;
144 using ftxui::animation::easing::ExponentialInOut;
145 using ftxui::animation::easing::ElasticIn;
146 using ftxui::animation::easing::ElasticOut;
147 using ftxui::animation::easing::ElasticInOut;
148 using ftxui::animation::easing::BackIn;
149 using ftxui::animation::easing::BackOut;
150 using ftxui::animation::easing::BackInOut;
151 using ftxui::animation::easing::BounceIn;
152 using ftxui::animation::easing::BounceOut;
153 using ftxui::animation::easing::BounceInOut;
154 }
155 }
156}
App is a Screen that can handle events, run a main loop, and manage components.
Definition app.hpp:36
It implement rendering itself as ftxui::Element. It implement keyboard navigation by responding to ft...
Loop is a class that manages the event loop for a component.
Definition loop.hpp:56
Option about a potentially animated color.
Option for the AnimatedButton component.
Option for the Checkbox component.
Option for the Dropdown component.A dropdown menu is a checkbox opening/closing a radiobox.
Represent an event. It can be key press event, a terminal resize, or more ...
Definition event.hpp:30
Option for the Input component.
Option for the MenuEntry component.
Option for the Menu component.
A mouse event. It contains the coordinate of the mouse, the button pressed and the modifier (shift,...
Definition mouse.hpp:11
Option for the Radiobox component.
Option for the underline effect.
State passed to the Window component's render function.
A rectangular grid of Cell.
Definition screen.hpp:26
Module file for FTXUI component operations.
The FTXUI ftxui::Container:: namespace.
The FTXUI ftxui::animation:: namespace.
The FTXUI ftxui::animation::easing:: namespace.
std::function< float(float)> Function
Definition animation.hpp:45
std::chrono::steady_clock Clock
Definition animation.hpp:28
std::chrono::duration< float > Duration
Definition animation.hpp:30
std::chrono::time_point< Clock > TimePoint
Definition animation.hpp:29
The FTXUI ftxui:: namespace.
Definition animation.hpp:10
std::vector< Component > Components
std::unique_ptr< ReceiverImpl< T > > Receiver
Definition receiver.hpp:54
std::unique_ptr< SenderImpl< T > > Sender
Definition receiver.hpp:52
std::variant< Event, Closure, AnimationTask > Task
Definition task.hpp:14
std::function< void()> Closure
Definition task.hpp:13
std::shared_ptr< ComponentBase > Component
Definition app.hpp:24
arguments for transform from |ButtonOption|, |CheckboxOption|, |RadioboxOption|, |MenuEntryOption|,...
Used to define style for the Input component.