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

Method updateRange

hi_scripting/scripting/api/ScriptComponentWrappers.cpp:2228–2242  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2226}
2227
2228void ScriptCreatedComponentWrappers::PanelWrapper::updateRange(BorderPanel * bpc)
2229{
2230 const double min = GET_SCRIPT_PROPERTY(min);
2231 const double max = GET_SCRIPT_PROPERTY(max);
2232
2233 if(min < max)
2234 {
2235 const double stepSize = getScriptComponent()->getScriptObjectProperty(ScriptingApi::Content::ScriptPanel::stepSize);
2236
2237 NormalisableRange<double> r(min, max);
2238 r.interval = stepSize;
2239
2240 bpc->setRange(r);
2241 }
2242}
2243
2244void ScriptCreatedComponentWrappers::PanelWrapper::updateColourAndBorder(BorderPanel * bpc)
2245{

Callers

nothing calls this directly

Calls 5

setRangeMethod · 0.45
getConnectedProcessorMethod · 0.45
getMethod · 0.45
updateSliderRangeMethod · 0.45

Tested by

no test coverage detected