MCPcopy Create free account
hub / github.com/BespokeSynth/BespokeSynth / GetLabel

Method GetLabel

Source/DropdownList.cpp:138–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136}
137
138std::string DropdownList::GetLabel(int val) const
139{
140 for (int i = 0; i < mElements.size(); ++i)
141 {
142 if (mElements[i].mValue == val)
143 return mElements[i].mLabel;
144 }
145 return "";
146}
147
148void DropdownList::Poll()
149{

Callers 15

DrawToFramebufferMethod · 0.45
LoadControllerLayoutMethod · 0.45
DropdownUpdatedMethod · 0.45
ConnectDeviceMethod · 0.45
DropdownUpdatedMethod · 0.45
DrawModuleMethod · 0.45
DropdownUpdatedMethod · 0.45
UpdateDisplayMethod · 0.45
ConnectToDeviceMethod · 0.45
UpdateDropdownsMethod · 0.45
DrawModuleMethod · 0.45

Calls 1

sizeMethod · 0.80

Tested by

no test coverage detected