summaryrefslogtreecommitdiffstats
path: root/src/guide-snapper.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/guide-snapper.h')
-rw-r--r--src/guide-snapper.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/guide-snapper.h b/src/guide-snapper.h
index f36d03499..dd5581654 100644
--- a/src/guide-snapper.h
+++ b/src/guide-snapper.h
@@ -31,6 +31,9 @@ public:
GuideSnapper(SnapManager *sm, Geom::Coord const d);
bool ThisSnapperMightSnap() const;
+ Geom::Coord getSnapperTolerance() const; //returns the tolerance of the snapper in screen pixels (i.e. independent of zoom)
+ bool getSnapperAlwaysSnap() const; //if true, then the snapper will always snap, regardless of its tolerance
+
private:
LineList _getSnapLines(Geom::Point const &p) const;
void _addSnappedLine(SnappedConstraints &sc, Geom::Point const snapped_point, Geom::Coord const snapped_distance, Geom::Point const normal_to_line, Geom::Point const point_on_line) const;