diff options
| author | Carl Hetherington <cth@carlh.net> | 2006-05-08 15:07:23 +0000 |
|---|---|---|
| committer | cth103 <cth103@users.sourceforge.net> | 2006-05-08 15:07:23 +0000 |
| commit | da410c000e6b03de0a1b246b60ffcdd1ba6c6fc8 (patch) | |
| tree | aae445fe039be8ddcadd602e2a11a673b5b94410 /src/snap.h | |
| parent | whitespace and fix sodipodi URI (diff) | |
| download | inkscape-da410c000e6b03de0a1b246b60ffcdd1ba6c6fc8.tar.gz inkscape-da410c000e6b03de0a1b246b60ffcdd1ba6c6fc8.zip | |
More snapping cleanups.
(bzr r768)
Diffstat (limited to 'src/snap.h')
| -rw-r--r-- | src/snap.h | 28 |
1 files changed, 9 insertions, 19 deletions
diff --git a/src/snap.h b/src/snap.h index ad5c68857..12996f04d 100644 --- a/src/snap.h +++ b/src/snap.h @@ -84,6 +84,13 @@ public: NR::Dim2 d, bool uniform) const; + std::pair<NR::Coord, bool> freeSnapSkew(Inkscape::Snapper::PointType t, + std::vector<NR::Point> const &p, + std::list<SPItem const *> const &it, + NR::Coord const &s, + NR::Point const &o, + NR::Dim2 d) const; + Inkscape::GridSnapper grid; Inkscape::GuideSnapper guide; Inkscape::ObjectSnapper object; @@ -96,7 +103,8 @@ private: enum Transformation { TRANSLATION, SCALE, - STRETCH + STRETCH, + SKEW }; std::pair<NR::Point, bool> _snapTransformed(Inkscape::Snapper::PointType type, @@ -111,24 +119,6 @@ private: bool uniform) const; }; - -/* Single point methods */ -NR::Coord namedview_vector_snap(SPNamedView const *nv, Inkscape::Snapper::PointType t, NR::Point &req, - NR::Point const &d, std::list<SPItem const *> const &it); -NR::Coord namedview_vector_snap(SPNamedView const *nv, Inkscape::Snapper::PointType t, NR::Point &req, - NR::Point const &d, SPItem const *it); -NR::Coord namedview_dim_snap(SPNamedView const *nv, Inkscape::Snapper::PointType t, NR::Point& req, - NR::Dim2 const dim, SPItem const *it); -NR::Coord namedview_dim_snap(SPNamedView const *nv, Inkscape::Snapper::PointType t, NR::Point& req, - NR::Dim2 const dim, std::list<SPItem const *> const &it); - -/* List of points methods */ - -NR::Coord namedview_dim_snap_list_skew(SPNamedView const *nv, Inkscape::Snapper::PointType t, - const std::vector<NR::Point> &p, - NR::Point const &norm, double const sx, NR::Dim2 const dim); - - #endif /* !SEEN_SNAP_H */ /* |
