summaryrefslogtreecommitdiffstats
path: root/src/snap.h
diff options
context:
space:
mode:
authorDiederik van Lierop <mail@diedenrezi.nl>2007-08-04 09:10:17 +0000
committerdvlierop2 <dvlierop2@users.sourceforge.net>2007-08-04 09:10:17 +0000
commit5753fd8392dbfa06c3c808b5248d008d008a02c8 (patch)
tree092333efec8e95ee0c3193c505eda87fdfca21c5 /src/snap.h
parentsetting of attributes and default values for feColorMatrix. (diff)
downloadinkscape-5753fd8392dbfa06c3c808b5248d008d008a02c8.tar.gz
inkscape-5753fd8392dbfa06c3c808b5248d008d008a02c8.zip
Make snapping to the item's transformation center optional, but not yet available in the snapping preferences dialog
(bzr r3365)
Diffstat (limited to 'src/snap.h')
-rw-r--r--src/snap.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/snap.h b/src/snap.h
index 401fd60ba..c60d866ad 100644
--- a/src/snap.h
+++ b/src/snap.h
@@ -127,6 +127,14 @@ public:
bool getSnapModeBBox() const;
bool getSnapModeNode() const;
+ void setIncludeItemCenter(bool enabled) {
+ _include_item_center = enabled;
+ }
+
+ bool getIncludeItemCenter() const {
+ return _include_item_center;
+ }
+
protected:
SPNamedView const *_named_view;
@@ -139,6 +147,8 @@ private:
SKEW
};
+ bool _include_item_center; //If true, snapping nodes will also snap the item's center
+
std::pair<NR::Point, bool> _snapTransformed(Inkscape::Snapper::PointType type,
std::vector<NR::Point> const &points,
std::list<SPItem const *> const &ignore,