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

SnapManager::SnapperList SnapManager::getGridSnappers (  ) const

Return a list of gridsnappers.

Each grid has its own instance of the snapper class. This way snapping can be enabled per grid individually. A list will be returned containing the pointers to these instances, but only for grids that are being displayed and for which snapping is enabled.

List of gridsnappers that we use.

Definition at line 89 of file snap.cpp.

Referenced by getSnappers(), gridSnapperMightSnap(), guideConstrainedSnap(), and guideFreeSnap().

    SnapperList s;

    if (_desktop && _desktop->gridsEnabled() && snapprefs.getSnapToGrids()) {
        for ( GSList const *l = _named_view->grids; l != NULL; l = l->next) {
            Inkscape::CanvasGrid *grid = (Inkscape::CanvasGrid*) l->data;

    return s;

Here is the caller graph for this function:

Generated by  Doxygen 1.6.0   Back to index