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

Method onDragLeave

src/app/PortWidget.cpp:625–638  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

623
624
625void PortWidget::onDragLeave(const DragLeaveEvent& e) {
626 destroyTooltip();
627
628 if (e.button != GLFW_MOUSE_BUTTON_LEFT)
629 return;
630
631 PortWidget* pwOrigin = dynamic_cast<PortWidget*>(e.origin);
632 if (!pwOrigin)
633 return;
634
635 for (CableWidget* cw : APP->scene->rack->getIncompleteCables()) {
636 cw->getHoveredPort(type) = NULL;
637 }
638}
639
640
641} // namespace app

Callers

nothing calls this directly

Calls 1

getIncompleteCablesMethod · 0.80

Tested by

no test coverage detected