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

Method setSelectionStringValue

source/ui/controls/ImGuiLayout.cpp:415–423  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

413}
414
415bool LayoutComboboxControl::setSelectionStringValue(BString value) {
416 for (int i = 0; i < (int)this->options.data.size(); i++) {
417 if (this->options.data[i].strValue == value) {
418 this->setSelection(i);
419 return true;
420 }
421 }
422 return false;
423}
424
425bool LayoutComboboxControl::setSelectionIntValue(int value) {
426 for (int i = 0; i < (int)this->options.data.size(); i++) {

Callers 4

ContainersViewMethod · 0.80
setCurrentContainerMethod · 0.80
createThemeTabMethod · 0.80

Calls 2

setSelectionMethod · 0.95
sizeMethod · 0.45

Tested by

no test coverage detected