17 std::vector<std::string> entries;
20 for (
int i = 0; i < 100; ++i)
21 entries.push_back(std::to_string(i));
24 radiobox, [&] {
return radiobox->Render() | hscroll_indicator |
frame; });
27 screen.Loop(renderer);
static ScreenInteractive FitComponent()
static MenuOption Horizontal()
Standard options for a horizontal menu. This can be useful to implement a tab bar.
Component Menu(MenuOption options)
A list of text. The focused element is selected.
Component Renderer(Component child, std::function< Element()>)
Return a new Component, similar to |child|, but using |render| as the Component::Render() event.
The FTXUI ftxui:: namespace.
Element frame(Element)
Allow an element to be displayed inside a 'virtual' area. It size can be larger than its container....