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

Method setSelectionByLabel

source/ui/controls/ImGuiLayout.cpp:405–413  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

403}
404
405bool LayoutComboboxControl::setSelectionByLabel(BString label) {
406 for (int i = 0; i < (int)this->options.data.size(); i++) {
407 if (this->options.data[i].label == label) {
408 this->setSelection(i);
409 return true;
410 }
411 }
412 return false;
413}
414
415bool LayoutComboboxControl::setSelectionStringValue(BString value) {
416 for (int i = 0; i < (int)this->options.data.size(); i++) {

Callers 3

setCurrentAppMethod · 0.80
setCurrentContainerMethod · 0.80
createGeneralTabMethod · 0.80

Calls 2

setSelectionMethod · 0.95
sizeMethod · 0.45

Tested by

no test coverage detected