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

Method ComboBoxWrapper

hi_scripting/scripting/api/ScriptComponentWrappers.cpp:1082–1100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1080}
1081
1082ScriptCreatedComponentWrappers::ComboBoxWrapper::ComboBoxWrapper(ScriptContentComponent *content, ScriptingApi::Content::ScriptComboBox *scriptComboBox, int index) :
1083ScriptCreatedComponentWrapper(content, index)
1084{
1085 HiComboBox *cb = new HiComboBox(scriptComboBox->name.toString());
1086
1087 cb->setup(getProcessor(), getIndex(), scriptComboBox->name.toString());
1088 cb->addListener(this);
1089 //cb->setLookAndFeel(&plaf);
1090
1091 component = cb;
1092
1093 initAllProperties();
1094
1095 cb->updateValue(dontSendNotification);
1096
1097 MouseCursor cursor;
1098 if (setMouseCursorFromParentPanel(scriptComboBox, cursor))
1099 cb->setMouseCursor(cursor);
1100}
1101
1102void ScriptCreatedComponentWrappers::ComboBoxWrapper::updateComponent()
1103{

Callers

nothing calls this directly

Calls 7

getProcessorFunction · 0.85
setMouseCursorMethod · 0.80
getIndexFunction · 0.50
toStringMethod · 0.45
setupMethod · 0.45
addListenerMethod · 0.45
updateValueMethod · 0.45

Tested by

no test coverage detected