Logo Search packages:      
Sourcecode: inkscape version File versions  Download package

bool SnapManager::gridSnapperMightSnap (  ) const
Returns:
true if one of the grids might be snapped to.

Definition at line 133 of file snap.cpp.

References getGridSnappers().

{
    if ( !snapprefs.getSnapEnabledGlobally() || snapprefs.getSnapPostponedGlobally() ) {
        return false;
    }

    SnapperList const s = getGridSnappers();
    SnapperList::const_iterator i = s.begin();
    while (i != s.end() && (*i)->ThisSnapperMightSnap() == false) {
        i++;
    }

    return (i != s.end());
}

Here is the call graph for this function:


Generated by  Doxygen 1.6.0   Back to index