17 std::array<bool, 30> states;
20 for (
int i = 0; i < 30; ++i) {
22 container->Add(
Checkbox(
"Checkbox" + std::to_string(i), &states[i]));
25 auto renderer =
Renderer(container, [&] {
31 screen.Loop(renderer);
static ScreenInteractive FitComponent()
Component Renderer(Component child, std::function< Element()>)
Return a new Component, similar to |child|, but using |render| as the Component::Render() event.
Component Vertical(Components children)
A list of components, drawn one by one vertically and navigated vertically using up/down arrow key or...
Component Checkbox(CheckboxOption options)
Draw checkable element.
Element vscroll_indicator(Element)
Display a vertical scrollbar on the right. Colors follow the content.
Decorator size(WidthOrHeight, Constraint, int value)
Apply a constraint on the size of an element.
Element border(Element)
Draw a border around the element.
The FTXUI ftxui:: namespace.
Element frame(Element)
Allow an element to be displayed inside a 'virtual' area. It size can be larger than its container....