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

Method createTooltip

src/app/ParamWidget.cpp:150–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148
149
150void ParamWidget::createTooltip() {
151 if (!settings::tooltips)
152 return;
153 if (internal->tooltip)
154 return;
155 if (!module)
156 return;
157 ParamTooltip* tooltip = new ParamTooltip;
158 tooltip->paramWidget = this;
159 APP->scene->addChild(tooltip);
160 internal->tooltip = tooltip;
161}
162
163
164void ParamWidget::destroyTooltip() {

Callers

nothing calls this directly

Calls 1

addChildMethod · 0.80

Tested by

no test coverage detected