#include <memory>
#include <utility>
#include <vector>
Component Inner(std::vector<Component> children) {
vlist->Render(),
});
});
}
return std::make_shared<ComponentBase>();
}
int main() {
auto component =
Inner({
Inner({
})),
Inner({
})),
Inner({
})),
}));
}
static ScreenInteractive FitComponent()
void Loop(Component)
Execute the main loop.
Component Vertical(Components children)
A list of components, drawn one by one vertically and navigated vertically using up/down arrow key or...
std::shared_ptr< ComponentBase > Component
Component Collapsible(ConstStringRef label, Component child, Ref< bool > show=false)
Component Renderer(Component child, std::function< Element()>)
Return a new Component, similar to |child|, but using |render| as the Component::Render() event.
Element hbox(Elements)
A container displaying elements horizontally one by one.
Element text(std::wstring text)
Display a piece of unicode text.