Logo Search packages:      
Sourcecode: inkscape version File versions

void Inkscape::Snapper::freeSnap ( SnappedConstraints &  sc,
PointType const &  t,
NR::Point const &  p,
bool const &  first_point,
std::vector< NR::Point > &  points_to_snap,
SPItem const *  it 
) const

Try to snap a point to whatever this snapper is interested in. Any snap that occurs will be to the nearest "interesting" thing (e.g. a grid or guide line)

Parameters:
t Point type.
p Point to snap (desktop coordinates).
it Item that should not be snapped to.
Returns:
Snapped point.

Definition at line 100 of file snapper.cpp.

{
    std::list<SPItem const *> lit;
    lit.push_back(it);
    freeSnap(sc, t, p, first_point, points_to_snap, lit);
}


Generated by  Doxygen 1.6.0   Back to index