MCPcopy Create free account
hub / github.com/VCVRack/Rack / createTooltip

Method createTooltip

src/app/ModuleLightWidget.cpp:83–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81
82
83void ModuleLightWidget::createTooltip() {
84 if (!settings::tooltips)
85 return;
86 if (internal->tooltip)
87 return;
88 // If the LightInfo is null, don't show a tooltip
89 if (!getLightInfo())
90 return;
91 LightTooltip* tooltip = new LightTooltip;
92 tooltip->lightWidget = this;
93 APP->scene->addChild(tooltip);
94 internal->tooltip = tooltip;
95}
96
97
98void ModuleLightWidget::destroyTooltip() {

Callers

nothing calls this directly

Calls 1

addChildMethod · 0.80

Tested by

no test coverage detected