#include <memory>
#include <string>
#include <vector>
int main() {
std::vector<std::string> items(100, "");
for (size_t i = 0; i < items.size(); ++i) {
}
auto renderer =
Renderer(input_list, [&] {
});
auto screen = ScreenInteractive::TerminalOutput();
screen.Loop(renderer);
}
Component Vertical(Components children)
A list of components, drawn one by one vertically and navigated vertically using up/down arrow key or...
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.
std::shared_ptr< ComponentBase > Component
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.
Component Input(InputOption options={})
An input box for editing text.
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.