Code

remove g++ 4.1.1 compiler errors
[inkscape.git] / src / snapper.h
index 33a15bd04887d500e4a16c0dea0eb4bb30850a8f..89e4f9d7288e8197d0ad536e6e798b35e95e85d9 100644 (file)
@@ -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
 };
 
 }