#include <string>
#include <vector>
int main() {
std::vector<std::string> entries = {
"tribute", "clearance", "ally", "bend", "electronics",
"module", "era", "cultural", "sniff", "nationalism",
"negotiation", "deliver", "figure", "east", "tribute",
"clearance", "ally", "bend", "electronics", "module",
"era", "cultural", "sniff", "nationalism", "negotiation",
"deliver", "figure", "east", "tribute", "clearance",
"ally", "bend", "electronics", "module", "era",
"cultural", "sniff", "nationalism", "negotiation", "deliver",
"figure", "east",
};
.radiobox = {.entries = &entries},
.transform =
if (open) {
});
}
checkbox,
});
},
});
.radiobox = {.entries = &entries},
.transform =
if (open) {
});
}
});
},
});
.radiobox =
{
.entries = &entries,
.transform =
[](const EntryState& s) {
if (s.active) {
}
if (s.focused) {
}
return t;
},
},
.transform =
if (open) {
});
}
});
},
});
dropdown_1,
dropdown_2,
dropdown_3,
}));
}
static ScreenInteractive FitComponent()
Component Horizontal(Components children)
A list of components, drawn one by one horizontally and navigated horizontally using left/right arrow...
Decorator bgcolor(Color)
Decorate using a background color.
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< Node > Element
Element bold(Element)
Use a bold font, for elements with more emphasis.
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 Dropdown(ConstStringListRef entries, int *selected)
A dropdown menu.
Element filler()
An element that will take expand proportionally to the space left in a container.
Element frame(Element)
Allow an element to be displayed inside a 'virtual' area. It size can be larger than its container....
Element borderEmpty(Element)
Draw an empty border around the element.
Element vbox(Elements)
A container displaying elements vertically one by one.