34 class Impl :
public ComponentBase {
38 opt.transform = [](EntryState s) {
40 auto t =
text(s.label);
Component Vertical(Components children)
A list of components, drawn one by one vertically and navigated vertically using up/down arrow key or...
Component Maybe(Component, const bool *show)
Decorate a component |child|. It is shown only when |show| is true.
std::shared_ptr< T > Make(Args &&... args)
std::shared_ptr< ComponentBase > Component
Element bold(Element)
Use a bold font, for elements with more emphasis.
Element hbox(Elements)
A container displaying elements horizontally one by one.
Element inverted(Element)
Add a filter that will invert the foreground and the background colors.
Element text(std::wstring text)
Display a piece of unicode text.
Component Checkbox(CheckboxOption options)
Draw checkable element.
Component Collapsible(ConstStringRef label, Component child, Ref< bool > show=false)