13 bool checked[3] = {
false,
false,
false};
18 Add(Container::Vertical({
22 Slider(
"Slider", &slider, 0.f, 100.f),
30 int window_1_left = 20;
31 int window_1_top = 10;
32 int window_1_width = 40;
33 int window_1_height = 20;
37 .title =
"First window",
38 .left = &window_1_left,
40 .width = &window_1_width,
41 .height = &window_1_height,
62 auto window_5 =
Window({});
73 return text(
"window_1: " +
74 std::to_string(window_1_width) +
"x" +
75 std::to_string(window_1_height) +
" + " +
76 std::to_string(window_1_left) +
"," +
77 std::to_string(window_1_top));
Component DummyWindowContent()
void Add(Component children)
Add a child. @param child The child to be attached.
static ScreenInteractive Fullscreen()
It implement rendering itself as ftxui::Element. It implement keyboard navigation by responding to ft...
Component Renderer(Component child, std::function< Element()>)
Return a new Component, similar to |child|, but using |render| as the Component::Render() event.
Component Window(WindowOptions option)
A draggeable / resizeable window. To use multiple of them, they must be stacked using Container::Stac...
Component Vertical(Components children)
A list of components, drawn one by one vertically and navigated vertically using up/down arrow key or...
Component Stacked(Components children)
A list of components to be stacked on top of each other. Events are propagated to the first component...
Component Checkbox(CheckboxOption options)
Draw checkable element.
Element text(std::wstring text)
Display a piece of unicode text.
The FTXUI ftxui:: namespace.
std::shared_ptr< T > Make(Args &&... args)
Component Slider(SliderOption< T > options)
A slider in any direction.
std::shared_ptr< ComponentBase > Component