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

Method SliderWrapper

hi_scripting/scripting/api/ScriptComponentWrappers.cpp:483–510  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

481
482
483ScriptCreatedComponentWrappers::SliderWrapper::SliderWrapper(ScriptContentComponent *content, ScriptingApi::Content::ScriptSlider *sc, int index) :
484ScriptCreatedComponentWrapper(content, index)
485{
486 HiSlider *s;
487
488 s = new HiSlider(sc->name.toString());
489
490 MouseCursor cursor;
491
492
493
494 s->addListener(this);
495 s->setValue(sc->value, dontSendNotification);
496
497 s->setup(getProcessor(), getIndex(), sc->name.toString());
498
499 if(auto obj = sc->modObject.getDynamicObject())
500 s->setModifierObject(sc->modObject);
501
502 component = s;
503
504 initAllProperties();
505
506 s->updateValue(dontSendNotification);
507
508 if (setMouseCursorFromParentPanel(sc, cursor))
509 s->setMouseCursor(cursor);
510}
511
512void ScriptCreatedComponentWrappers::SliderWrapper::updateFilmstrip()
513{

Callers

nothing calls this directly

Calls 10

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

Tested by

no test coverage detected