| 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) { |
nothing calls this directly
no test coverage detected