From e52fb9fac3f1bbd924c0ca3b6b5e214a095d44af Mon Sep 17 00:00:00 2001 From: Diederik van Lierop Date: Sat, 30 Jan 2010 23:04:33 +0100 Subject: Finally introducing the pre-snap indicator (bzr r9034) --- src/shape-editor.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/shape-editor.cpp') diff --git a/src/shape-editor.cpp b/src/shape-editor.cpp index 7002c9723..e3b6d65c2 100644 --- a/src/shape-editor.cpp +++ b/src/shape-editor.cpp @@ -226,6 +226,16 @@ bool ShapeEditor::has_selection() { return false; // so far, knotholder cannot have selection } +/** + * \brief Returns true if this ShapeEditor has a knot above which the mouse currently hovers + */ +bool ShapeEditor::knot_mouseover() +{ + if (this->knotholder) { + return knotholder->knot_mouseover(); + } +} + /* Local Variables: mode:c++ -- cgit v1.2.3