summaryrefslogtreecommitdiffstats
path: root/src/snapper.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2006-05-09 11:16:07 +0000
committercth103 <cth103@users.sourceforge.net>2006-05-09 11:16:07 +0000
commit59c4341913f56e5fdc21c58ebf2425eadaec1eaa (patch)
treee193ba7062a50fddeace35edfe09dbe9aff4b8c1 /src/snapper.h
parentSmall comment cleanups. (diff)
downloadinkscape-59c4341913f56e5fdc21c58ebf2425eadaec1eaa.tar.gz
inkscape-59c4341913f56e5fdc21c58ebf2425eadaec1eaa.zip
Re-enable link between grid visibility and grid snap.
(bzr r795)
Diffstat (limited to 'src/snapper.h')
-rw-r--r--src/snapper.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/snapper.h b/src/snapper.h
index 33a15bd04..89e4f9d72 100644
--- a/src/snapper.h
+++ b/src/snapper.h
@@ -46,6 +46,8 @@ public:
bool willSnapSomething() const;
+ void setEnabled(bool s);
+
SnappedPoint freeSnap(PointType t,
NR::Point const &p,
SPItem const *it) const;
@@ -120,7 +122,8 @@ private:
std::list<SPItem const *> const &it) const = 0;
::NR::Coord _distance; ///< snap distance (desktop coordinates)
- int _snap_to; ///< bitmap of point types that we will snap to
+ int _snap_to; ///< bitmap of point types that we will snap to
+ bool _enabled; ///< true if this snapper is enabled, otherwise false
};
}