31 auto renderer =
Renderer(split, [&] {
32 return window(
text(
"Arrastra el separador con el ratón"),
34 text(
"Min: " + std::to_string(size_min)),
35 text(
"Max: " + std::to_string(size_max)),
36 text(
"Size: " + std::to_string(size)),
static ScreenInteractive Fullscreen()
Component Renderer(Component child, std::function< Element()>)
Retorna un nuevo Componente, similar a |child|, pero usando |render| como el evento Component::Render...
virtual void Render(Screen &screen)
Muestra un elemento en un 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)
Hace que un elemento hijo se expanda proporcionalmente al espacio restante en un contenedor.
Element center(Element)
Centra un elemento horizontal y verticalmente.
Element text(std::wstring text)
Muestra un fragmento de texto Unicode.
Element separator()
Dibuja una separación vertical u horizontal entre otros dos elementos.
El espacio de nombres ftxui:: de FTXUI.
Component ResizableSplit(ResizableSplitOption options)
Una división entre dos componentes.