Detecting mouse events on paths


#1

Hi guys, I’m working on a node based interface and I’m trying to make selectable connection “wires”. Basically I’m wondering if there is some kind of way to detect mouse events on a path? Or is there some way to check whether a point was in a certain proximity of a path?


#2

Yes: Path::contains (float x, float y, float tolerance = defaultToleranceForTesting) const :slight_smile: