diff options
| author | Diederik van Lierop <mail@diedenrezi.nl> | 2008-12-14 20:49:00 +0000 |
|---|---|---|
| committer | dvlierop2 <dvlierop2@users.sourceforge.net> | 2008-12-14 20:49:00 +0000 |
| commit | f643622c05d698103b68a0af90b96fadb021f815 (patch) | |
| tree | 69f647af0776d8896263ee9c6694d1a64e649f32 /src/snapper.h | |
| parent | Filter quality setting revised, seems to not crash when viewing filters.svg (diff) | |
| download | inkscape-f643622c05d698103b68a0af90b96fadb021f815.tar.gz inkscape-f643622c05d698103b68a0af90b96fadb021f815.zip | |
1) snap midpoints of line segments (both as source and as target)
2) snap intersections within a single shape (as source; as target was already implemented)
(bzr r7008)
Diffstat (limited to 'src/snapper.h')
| -rw-r--r-- | src/snapper.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/snapper.h b/src/snapper.h index 0c405fd2b..f6e1a086e 100644 --- a/src/snapper.h +++ b/src/snapper.h @@ -42,9 +42,9 @@ class Snapper { public: Snapper() {} - Snapper(SnapManager const *sm, ::Geom::Coord const t); + Snapper(SnapManager *sm, ::Geom::Coord const t); virtual ~Snapper() {} - + void setSnapperTolerance(Geom::Coord t); Geom::Coord getSnapperTolerance() const; //returns the tolerance of the snapper in screen pixels (i.e. independent of zoom) bool getSnapperAlwaysSnap() const; //if true, then the snapper will always snap, regardless of its tolerance @@ -83,10 +83,10 @@ public: Geom::Point getDirection() const { return _direction; } - + void setPoint(Geom::Point const &p) { _point = p; - _has_point = true; + _has_point = true; } private: @@ -105,8 +105,8 @@ public: std::vector<SPItem const *> const */*it*/) const {}; protected: - SnapManager const *_snapmanager; - + SnapManager *_snapmanager; + bool _snap_enabled; ///< true if this snapper is enabled, otherwise false private: |
