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({});
64 auto window_container = Container::Stacked({
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));
80 auto layout = Container::Vertical({
Component DummyWindowContent()
void Add(Component children)
Agrega un hijo. @param child El hijo a adjuntar.
static ScreenInteractive Fullscreen()
Implementa el renderizado de sí mismo como ftxui::Element. Implementa la navegación por teclado respo...
Component Renderer(Component child, std::function< Element()>)
Retorna un nuevo Componente, similar a |child|, pero usando |render| como el evento Component::Render...
Component Window(WindowOptions option)
Una ventana arrastrable y redimensionable. Para usar varias, deben apilarse usando el componente Cont...
Component Checkbox(CheckboxOption options)
Dibuja un elemento seleccionable.
Element text(std::wstring text)
Muestra un fragmento de texto Unicode.
El espacio de nombres ftxui:: de FTXUI.
std::shared_ptr< T > Make(Args &&... args)
Component Slider(SliderOption< T > options)
Un deslizador en cualquier dirección.
std::shared_ptr< ComponentBase > Component