17 text(
"FTXUI: Una potente biblioteca para construir interfaces de usuario."),
18 text(
"Disfruta de un rico conjunto de componentes y un estilo declarativo."),
19 text(
"Crea UIs hermosas y responsivas con un mínimo esfuerzo."),
20 text(
"Únete a la comunidad y experimenta el poder de FTXUI."),
30 int selection_change_counter = 0;
31 std::string selection_content =
"";
32 screen.SelectionChange([&] {
33 selection_change_counter++;
34 selection_content =
screen.GetSelection();
40 text(
"Selección cambiada: " + std::to_string(selection_change_counter) +
42 text(
"Actualmente seleccionado: "),
43 paragraph(selection_content) | vscroll_indicator | frame | border |
59 window(
text(
"División en cuadrícula con estilo diferente"),
static ScreenInteractive TerminalOutput()
static ButtonOption Animated()
Component Button(ButtonOption options)
Dibuja un botón. Ejecuta una función al hacer clic.
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.
Decorator size(WidthOrHeight, Constraint, int value)
Aplica una restricción al tamaño de un elemento.
Element text(std::wstring text)
Muestra un fragmento de texto Unicode.
Element separator()
Dibuja una separación vertical u horizontal entre otros dos elementos.
Un carácter Unicode y su estilo asociado.
El espacio de nombres ftxui:: de FTXUI.
std::shared_ptr< Node > Element
Decorator selectionStyle(std::function< void(Pixel &)> style)
Establece el estilo de un elemento cuando está seleccionado.
Element hbox(Elements)
Un contenedor que muestra elementos horizontalmente uno por uno.
Decorator selectionBackgroundColor(Color foreground)
Establece el color de fondo de un elemento cuando está seleccionado. Tenga en cuenta que el estilo se...
Decorator selectionColor(Color foreground)
Establece el color de un elemento cuando está seleccionado.
Element selectionStyleReset(Element)
Restablece el estilo de selección de un elemento.
Elements paragraph(std::wstring text)