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

Method updateTooltip

hi_scripting/scripting/api/ScriptComponentWrappers.cpp:774–785  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

772}
773
774void ScriptCreatedComponentWrappers::SliderWrapper::updateTooltip(Slider * s)
775{
776 auto tooltip = GET_SCRIPT_PROPERTY(tooltip).toString();
777
778 static const String valueWildCard("{VALUE}");
779
780 if (tooltip.isNotEmpty() && tooltip.contains(valueWildCard))
781 {
782 tooltip = tooltip.replace(valueWildCard, s->getTextFromValue(s->getValue()));
783 s->setTooltip(tooltip);
784 }
785}
786
787void ScriptCreatedComponentWrapper::showValuePopup()
788{

Callers

nothing calls this directly

Calls 7

toStringMethod · 0.45
isNotEmptyMethod · 0.45
containsMethod · 0.45
replaceMethod · 0.45
getTextFromValueMethod · 0.45
getValueMethod · 0.45
setTooltipMethod · 0.45

Tested by

no test coverage detected