summaryrefslogtreecommitdiffstats
path: root/src/snapper.h
diff options
context:
space:
mode:
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
};
}