Code

Enable item-selection by cycling through them (using Alt+mouse wheel scroll).
[inkscape.git] / src / snapper.cpp
index 2c646f4d64751bddf93023b6a303af95c9d05a8d..fb7281c30bfb14647ab83f69b7cf5aa8bd4ffa8d 100644 (file)
@@ -19,8 +19,9 @@
  *  \param d Snap tolerance.
  */
 Inkscape::Snapper::Snapper(SnapManager *sm, Geom::Coord const /*t*/) :
-       _snapmanager(sm),
-       _snap_enabled(true)
+    _snapmanager(sm),
+    _snap_enabled(true),
+    _snap_visible_only(true)
 {
     g_assert(_snapmanager != NULL);
 }
@@ -34,6 +35,11 @@ void Inkscape::Snapper::setEnabled(bool s)
     _snap_enabled = s;
 }
 
+void Inkscape::Snapper::setSnapVisibleOnly(bool s)
+{
+    _snap_visible_only = s;
+}
+
 /*
   Local Variables:
   mode:c++