#include <memory>
#include <string>
#include <vector>
int main() {
std::vector<std::string> entries;
int selected = 0;
for (int i = 0; i < 30; ++i)
auto radiobox =
Radiobox(&entries, &selected);
auto renderer =
Renderer(radiobox, [&] {
});
screen.Loop(renderer);
return 0;
}
static ScreenInteractive FitComponent()
Element vscroll_indicator(Element)
Display a vertical scrollbar to the right. colors.
Decorator size(WidthOrHeight, Constraint, int value)
Apply a constraint on the size of an element.
Component Radiobox(RadioboxOption options)
A list of element, where only one can be selected.
Component Renderer(Component child, std::function< Element()>)
Return a new Component, similar to |child|, but using |render| as the Component::Render() event.
std::string to_string(const std::wstring &s)
Convert a UTF8 std::string into a std::wstring.
Element frame(Element)
Allow an element to be displayed inside a 'virtual' area. It size can be larger than its container....
Element border(Element)
Draw a border around the element.