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

Method setSelectionIntValue

source/ui/controls/ImGuiLayout.cpp:425–433  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

423}
424
425bool LayoutComboboxControl::setSelectionIntValue(int value) {
426 for (int i = 0; i < (int)this->options.data.size(); i++) {
427 if (this->options.data[i].intValue == value) {
428 this->setSelection(i);
429 return true;
430 }
431 }
432 return false;
433}
434
435LayoutControl::LayoutControl(std::shared_ptr<LayoutRow> row, LayoutControlType type) : row(row), width(-1), type(type), readOnly(false), font(nullptr) {
436}

Callers 4

ContainersViewMethod · 0.80
setCurrentAppMethod · 0.80
createThemeTabMethod · 0.80
createGeneralTabMethod · 0.80

Calls 2

setSelectionMethod · 0.95
sizeMethod · 0.45

Tested by

no test coverage detected