Lines Matching defs:spacing
476 spacing[Geom::X] = Inkscape::Util::Quantity::convert(prefs->getDouble("/options/grids/xy/spacing_x", 0.0), gridunit, "px");
477 spacing[Geom::Y] = Inkscape::Util::Quantity::convert(prefs->getDouble("/options/grids/xy/spacing_y", 0.0), gridunit, "px");
584 if( spacing[Geom::X] <= 0.0 )
585 spacing[Geom::X] = 1.0;
592 spacing[Geom::X] = q.value("px");
595 spacing[Geom::X] = q.quantity * scale_x;
603 if( spacing[Geom::Y] <= 0.0 )
604 spacing[Geom::Y] = 1.0;
611 spacing[Geom::Y] = q.value("px");
614 spacing[Geom::Y] = q.quantity * scale_y;
769 val = spacing[Geom::X];
772 val = spacing[Geom::Y];
818 val = spacing[Geom::X];
821 val = spacing[Geom::Y];
843 sw = spacing * affine;
857 /* First pass, go up to the major line spacing, then
1027 double spacing;
1031 spacing = grid->sw[i]; // this is the spacing of the visible grid lines measured in screen pixels
1036 spacing /= dt->current_zoom();
1040 spacing = grid->spacing[i];
1048 rounded = Inkscape::Util::round_to_upper_multiple_plus(p[i], spacing, grid->origin[i]);
1052 rounded = Inkscape::Util::round_to_lower_multiple_plus(p[i], spacing, grid->origin[i]);