18 auto action = [&] { value++; };
19 auto action_renderer =
20 Renderer([&] {
return text(
"count = " + std::to_string(value)); });
26 Container::Horizontal({
46 Button(
"Animated 4", action,
48 Button(
"Animated 5", action,
50 Button(
"Animated 6", action,
static ButtonOption Animated()
Create a ButtonOption, using animated colors.
static ScreenInteractive FitComponent()
static ButtonOption Simple()
Create a ButtonOption, inverted when focused.
static ButtonOption Ascii()
Create a ButtonOption, highlighted using [] characters.
Component Button(ButtonOption options)
Draw a button. Execute a function when clicked.
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...
Element text(std::wstring text)
Display a piece of unicode text.
Element separator()
Draw a vertical or horizontal separation in between two other elements.
The FTXUI ftxui:: namespace.