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

Method timerCallback

hi_scripting/scripting/api/ScriptComponentWrappers.cpp:1491–1506  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1489}
1490
1491void ScriptCreatedComponentWrappers::LabelWrapper::ValueChecker::timerCallback()
1492{
1493 if(currentEditor.getComponent() == nullptr)
1494 return;
1495
1496 auto thisText = currentEditor->getText();
1497
1498 if(lastValue != thisText)
1499 {
1500 lastValue = thisText;
1501 auto sc = parent.getScriptComponent();
1502 sc->setValue(lastValue);
1503
1504 dynamic_cast<ProcessorWithScriptingContent*>(parent.getProcessor())->controlCallback(sc, sc->getValue());
1505 }
1506}
1507
1508void ScriptCreatedComponentWrappers::LabelWrapper::editorShown(Label*, TextEditor& te)
1509{

Callers

nothing calls this directly

Calls 7

getScriptComponentMethod · 0.80
getComponentMethod · 0.45
getTextMethod · 0.45
setValueMethod · 0.45
controlCallbackMethod · 0.45
getProcessorMethod · 0.45
getValueMethod · 0.45

Tested by

no test coverage detected