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

Method setTooltip

src/app/Browser.cpp:253–263  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

251 }
252
253 void setTooltip(ui::Tooltip* tooltip) {
254 if (this->tooltip) {
255 this->tooltip->requestDelete();
256 this->tooltip = NULL;
257 }
258
259 if (tooltip) {
260 APP->scene->addChild(tooltip);
261 this->tooltip = tooltip;
262 }
263 }
264
265 void onButton(const ButtonEvent& e) override {
266 if (e.action == GLFW_PRESS && e.button == GLFW_MOUSE_BUTTON_LEFT && (e.mods & RACK_MOD_MASK) == 0) {

Callers

nothing calls this directly

Calls 2

requestDeleteMethod · 0.80
addChildMethod · 0.80

Tested by

no test coverage detected