summaryrefslogtreecommitdiffstats
path: root/src/snap.h
diff options
context:
space:
mode:
authorDiederik van Lierop <mail@diedenrezi.nl>2009-03-15 21:08:02 +0000
committerdvlierop2 <dvlierop2@users.sourceforge.net>2009-03-15 21:08:02 +0000
commite6a7b16084f21efb8268abfa6e8773b089cf740f (patch)
tree5938368bcddd877797cdc5cefa370df3f704d1e6 /src/snap.h
parentstore default size in lpe::ArrayParam (diff)
downloadinkscape-e6a7b16084f21efb8268abfa6e8773b089cf740f.tar.gz
inkscape-e6a7b16084f21efb8268abfa6e8773b089cf740f.zip
Implement constrained snapping when dragging the position and size handles of a rectangle in the node tool, with the ctrl-key being pressed.
(bzr r7497)
Diffstat (limited to 'src/snap.h')
-rw-r--r--src/snap.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/snap.h b/src/snap.h
index ac314c66d..5290ef081 100644
--- a/src/snap.h
+++ b/src/snap.h
@@ -86,6 +86,7 @@ public:
Geom::Point &p,
Inkscape::SnapSourceType const source_type,
Inkscape::Snapper::ConstraintLine const &constraint,
+ bool snap_projection, //try snapping the projection of p onto the constraint line, not p itself
bool first_point = true,
Geom::OptRect const &bbox_to_snap = Geom::OptRect()) const;
@@ -93,6 +94,7 @@ public:
Geom::Point const &p,
Inkscape::SnapSourceType const &source_type,
Inkscape::Snapper::ConstraintLine const &constraint,
+ bool const snap_projection,
bool first_point = true,
Geom::OptRect const &bbox_to_snap = Geom::OptRect()) const;