31 auto renderer =
Renderer(split, [&] {
32 return window(
text(
"Drag the separator with the mouse"),
34 text(
"Min: " + std::to_string(size_min)),
35 text(
"Max: " + std::to_string(size_max)),
36 text(
"Size: " + std::to_string(size)),
42 screen.Loop(renderer);
static ScreenInteractive Fullscreen()
Component Renderer(Component child, std::function< Element()>)
Return a new Component, similar to |child|, but using |render| as the Component::Render() event.
virtual void Render(Screen &screen)
Display an element on a ftxui::Screen.
Element window(Element title, Element content, BorderStyle border=ROUNDED)
Draw window with a title and a border around the element.
Element flex(Element)
Make a child element to expand proportionally to the space left in a container.
Element center(Element)
Center an element horizontally and vertically.
Element text(std::wstring text)
Display a piece of unicode text.
Element separator()
Draw a vertical or horizontal separation in between two other elements.
Element vbox(Elements)
A container displaying elements vertically one by one.
The FTXUI ftxui:: namespace.
Component ResizableSplit(ResizableSplitOption options)
A split in between two components.