summaryrefslogtreecommitdiffstats
path: root/src/snap.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/snap.h')
-rw-r--r--src/snap.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/snap.h b/src/snap.h
index c60d866ad..276069fe6 100644
--- a/src/snap.h
+++ b/src/snap.h
@@ -76,6 +76,9 @@ public:
NR::Point const &p,
Inkscape::Snapper::ConstraintLine const &c,
std::list<SPItem const *> const &it) const;
+
+ Inkscape::SnappedPoint guideSnap(NR::Point const &p,
+ SPGuide const &guide) const;
std::pair<NR::Point, bool> freeSnapTranslation(Inkscape::Snapper::PointType t,
std::vector<NR::Point> const &p,
@@ -124,11 +127,15 @@ public:
void setSnapModeBBox(bool enabled);
void setSnapModeNode(bool enabled);
+ void setSnapModeGuide(bool enabled);
bool getSnapModeBBox() const;
bool getSnapModeNode() const;
+ bool getSnapModeGuide() const;
void setIncludeItemCenter(bool enabled) {
_include_item_center = enabled;
+ object.setIncludeItemCenter(enabled); //store a local copy in the object-snapper
+ //instead of passing it through many functions
}
bool getIncludeItemCenter() const {