Code

C++-ification of paint selector.
[inkscape.git] / src / snap.h
index 613550376aca3d485f3f33536631358494aa2d51..8a5688bea19473c3df511a46e3ca615c676c1440 100644 (file)
@@ -107,7 +107,7 @@ public:
 
     void preSnap(Inkscape::SnapCandidatePoint const &p);
 
-    Geom::Point multipleOfGridPitch(Geom::Point const &t) const;
+    Geom::Point multipleOfGridPitch(Geom::Point const &t, Geom::Point const &origin);
 
     // constrainedSnapReturnByRef() is preferred over constrainedSnap(), because it only returns a
     // point, by overwriting p, if snapping has occurred; otherwise p is untouched
@@ -170,7 +170,7 @@ public:
 
     bool getSnapIndicator() const {return _snapindicator;}
 
-    Inkscape::SnappedPoint findBestSnap(Inkscape::SnapCandidatePoint const &p, SnappedConstraints const &sc, bool constrained, bool noCurves = false) const;
+    Inkscape::SnappedPoint findBestSnap(Inkscape::SnapCandidatePoint const &p, SnappedConstraints const &sc, bool constrained, bool noCurves = false, bool allowOffScreen = false) const;
 
 protected:
     SPNamedView const *_named_view;