summaryrefslogtreecommitdiffstats
path: root/src/guide-snapper.h
diff options
context:
space:
mode:
authorDiederik van Lierop <mailat-signdiedenrezidotnl>2009-12-24 20:10:43 +0000
committerDiederik van Lierop <mailat-signdiedenrezidotnl>2009-12-24 20:10:43 +0000
commitbc576428c38521984964e4f9e6289c8da1157173 (patch)
treebe7c0e78e69461ef617bacce57e39c3698d6f7cb /src/guide-snapper.h
parentDataMatrix encoder extension by inductiveload (diff)
downloadinkscape-bc576428c38521984964e4f9e6289c8da1157173.tar.gz
inkscape-bc576428c38521984964e4f9e6289c8da1157173.zip
refactoring the snapping code (laying the groundwork for my next commit which reduces snap jitter)
(bzr r8906)
Diffstat (limited to 'src/guide-snapper.h')
-rw-r--r--src/guide-snapper.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/guide-snapper.h b/src/guide-snapper.h
index 1dc602f72..5adac6e22 100644
--- a/src/guide-snapper.h
+++ b/src/guide-snapper.h
@@ -30,13 +30,13 @@ public:
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
+ 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, SnapSourceType const &source, Geom::Point const normal_to_line, Geom::Point const point_on_line) const;
- void _addSnappedLinesOrigin(SnappedConstraints &sc, Geom::Point const origin, Geom::Coord const snapped_distance, SnapSourceType const &source) const;
- void _addSnappedPoint(SnappedConstraints &sc, Geom::Point const snapped_point, Geom::Coord const snapped_distance, SnapSourceType const &source) const;
+ void _addSnappedLine(SnappedConstraints &sc, Geom::Point const snapped_point, Geom::Coord const snapped_distance, SnapSourceType const &source, long source_num, Geom::Point const normal_to_line, Geom::Point const point_on_line) const;
+ void _addSnappedLinesOrigin(SnappedConstraints &sc, Geom::Point const origin, Geom::Coord const snapped_distance, SnapSourceType const &source, long source_num) const;
+ void _addSnappedPoint(SnappedConstraints &sc, Geom::Point const snapped_point, Geom::Coord const snapped_distance, SnapSourceType const &source, long source_num) const;
};
}