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

Method createTooltip

src/app/PortWidget.cpp:255–266  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

253
254
255void PortWidget::createTooltip() {
256 if (!settings::tooltips)
257 return;
258 if (internal->tooltip)
259 return;
260 if (!module)
261 return;
262 PortTooltip* tooltip = new PortTooltip;
263 tooltip->portWidget = this;
264 APP->scene->addChild(tooltip);
265 internal->tooltip = tooltip;
266}
267
268
269void PortWidget::destroyTooltip() {

Callers

nothing calls this directly

Calls 1

addChildMethod · 0.80

Tested by

no test coverage detected