diff options
| author | Diederik van Lierop <mail@diedenrezi.nl> | 2009-06-02 04:36:17 +0000 |
|---|---|---|
| committer | dvlierop2 <dvlierop2@users.sourceforge.net> | 2009-06-02 04:36:17 +0000 |
| commit | 9d1365da9d6ed6312e4f034df40aa64dec35c9e0 (patch) | |
| tree | b5d6de8cc2a3293d1b8db11dfd8fd17f7d8cfa06 /src/object-snapper.h | |
| parent | Moved whiteboard related file to POTFILES.ignore (diff) | |
| download | inkscape-9d1365da9d6ed6312e4f034df40aa64dec35c9e0.tar.gz inkscape-9d1365da9d6ed6312e4f034df40aa64dec35c9e0.zip | |
When dragging the origin of a guide along that guide, we should use constrained snapping instead of free snapping. Also make sure that we snap to paths too, not just to guides
(bzr r7973)
Diffstat (limited to 'src/object-snapper.h')
| -rw-r--r-- | src/object-snapper.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/object-snapper.h b/src/object-snapper.h index f220106e3..baa60a096 100644 --- a/src/object-snapper.h +++ b/src/object-snapper.h @@ -53,13 +53,17 @@ public: GUIDE_TRANSL_SNAP_X, // For snapping a vertical guide (normal in the X-direction) to objects, GUIDE_TRANSL_SNAP_Y, // For snapping a horizontal guide (normal in the Y-direction) to objects ANGLED_GUIDE_TRANSL_SNAP, // For snapping an angled guide, while translating it accross the desktop - ANGLED_GUIDE_ROT_SNAP, // For snapping an angled guide, while rotating it around some pivot point TRANSL_SNAP_XY}; // All other cases; for snapping to objects, other than guides - void guideSnap(SnappedConstraints &sc, + void guideFreeSnap(SnappedConstraints &sc, Geom::Point const &p, Geom::Point const &guide_normal) const; + void guideConstrainedSnap(SnappedConstraints &sc, + Geom::Point const &p, + Geom::Point const &guide_normal, + ConstraintLine const &c) const; + bool ThisSnapperMightSnap() const; bool GuidesMightSnap() const; |
