MCPcopy Create free account
hub / github.com/christophhart/HISE / updateItems

Method updateItems

hi_scripting/scripting/api/ScriptComponentWrappers.cpp:1177–1185  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1175}
1176
1177void ScriptCreatedComponentWrappers::ComboBoxWrapper::updateItems(HiComboBox * cb)
1178{
1179 cb->clear(dontSendNotification);
1180 cb->addItemList(dynamic_cast<ScriptingApi::Content::ScriptComboBox*>(getScriptComponent())->getItemList(), 1);
1181 cb->rebuildPopupMenu();
1182
1183 auto currentValue = (int)getScriptComponent()->getValue();
1184 cb->setSelectedId(currentValue, dontSendNotification);
1185}
1186
1187void ScriptCreatedComponentWrappers::ComboBoxWrapper::updateColours(HiComboBox * cb)
1188{

Callers

nothing calls this directly

Calls 11

addItemListMethod · 0.80
rebuildPopupMenuMethod · 0.80
setSelectedIdMethod · 0.80
clearMethod · 0.45
getItemListMethod · 0.45
getValueMethod · 0.45
getMethod · 0.45
shouldUpdateMethod · 0.45
setItemsMethod · 0.45
repaintMethod · 0.45
updateContentMethod · 0.45

Tested by

no test coverage detected