MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / addComboBox

Method addComboBox

source/ui/controls/ImGuiLayout.cpp:349–357  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

347}
348
349std::shared_ptr<LayoutComboboxControl> LayoutRow::addComboBox(const std::vector<ComboboxItem>& options, int selected) {
350 std::shared_ptr<LayoutComboboxControl> control = std::make_shared<LayoutComboboxControl>(shared_from_this());
351 control->setOptions(options);
352 if (selected) {
353 control->setSelection(selected);
354 }
355 this->controls.push_back(control);
356 return control;
357}
358
359std::shared_ptr<LayoutComboboxControl> LayoutRow::addComboBox() {
360 std::shared_ptr<LayoutComboboxControl> control = std::make_shared<LayoutComboboxControl>(shared_from_this());

Callers 2

ContainersViewMethod · 0.80
addComboboxRowMethod · 0.80

Calls 3

setOptionsMethod · 0.80
setSelectionMethod · 0.80
push_backMethod · 0.45

Tested by

no test coverage detected