Lines Matching defs:grid
28 #include "display/canvas-grid.h"
169 // It will snap to the grid for which we find the closest snap. This might be a different
170 // grid than to which the objects were initially aligned. I don't see an easy way to fix
176 Inkscape::CanvasGrid *grid = (*it);
177 const Inkscape::Snapper* snapper = grid->snapper;
179 // To find the nearest multiple of the grid pitch for a given translation t, we
180 // will use the grid snapper. Simply snapping the value t to the grid will do, but
181 // only if the origin of the grid is at (0,0). If it's not then compensate for this
183 Geom::Point const t_offset = t + grid->origin;
185 // Only the first three parameters are being used for grid snappers
187 // Find the best snap for this grid, including intersections of the grid-lines
196 nearest_multiple = s.getPoint() - grid->origin;
536 // search for the closest snapped grid line
548 // When freely snapping to a grid/guide/path, only one degree of freedom is eliminated
549 // Therefore we will try get fully constrained by finding an intersection with another grid/guide/path
552 // the grid/guide/path we're snapping to. This snappoint is therefore fully constrained, so there's
573 // search for the closest snapped intersection of grid lines
589 // search for the closest snapped intersection of grid with guide lines
602 // path, so the snapped point must be on a path, and not e.g. on a grid intersection