summaryrefslogtreecommitdiffstats
path: root/src/snap.h
diff options
context:
space:
mode:
authorDiederik van Lierop <mail@diedenrezi.nl>2007-08-28 20:07:38 +0000
committerdvlierop2 <dvlierop2@users.sourceforge.net>2007-08-28 20:07:38 +0000
commit73d24d066094549193e1ceda7daa244e5c0dc1e8 (patch)
treeaf1cad39ed909961d1fd2f22c27651f3c6bc0b1d /src/snap.h
parentremove debug and example LPE files from POTFILES.in (diff)
downloadinkscape-73d24d066094549193e1ceda7daa244e5c0dc1e8.tar.gz
inkscape-73d24d066094549193e1ceda7daa244e5c0dc1e8.zip
Implement snapping of guides while dragging them, and snap TO item centers (we only had snapping FROM item centers so far)
(bzr r3603)
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 {