Logo Search packages:      
Sourcecode: inkscape version File versions

Inkscape::SnappedPoint SnapManager::freeSnap ( Inkscape::Snapper::PointType  t,
NR::Point const &  p,
SPItem const *  it 
) const

Try to snap a point to any interested snappers.

Parameters:
t Type of point.
p Point.
it Item to ignore when snapping.
Returns:
Snapped point.

Definition at line 179 of file snap.cpp.

Referenced by _snapTransformed(), node_handle_request(), pencil_handle_motion_notify(), and sp_nodepath_selected_nodes_move().

{
    std::list<SPItem const *> lit;
    lit.push_back(it);
    
    std::vector<NR::Point> points_to_snap;
    points_to_snap.push_back(p);
    
    return freeSnap(t, p, true, points_to_snap, lit);
}


Generated by  Doxygen 1.6.0   Back to index