Lines Matching refs:sw
843 sw = spacing * affine;
844 sw -= Geom::Point(affine[4], affine[5]);
853 sw[dim] = fabs (sw[dim]);
854 while (sw[dim] < 8.0) {
856 sw[dim] *= scaling_factor;
904 gdouble const sxg = floor ((buf->rect.left() - ow[Geom::X]) / sw[Geom::X]) * sw[Geom::X] + ow[Geom::X];
905 gint const xlinestart = round((sxg - ow[Geom::X]) / sw[Geom::X]);
906 gdouble const syg = floor ((buf->rect.top() - ow[Geom::Y]) / sw[Geom::Y]) * sw[Geom::Y] + ow[Geom::Y];
907 gint const ylinestart = round((syg - ow[Geom::Y]) / sw[Geom::Y]);
928 for (y = syg, ylinenum = ylinestart; y < buf->rect.bottom(); y += sw[Geom::Y], ylinenum++) {
939 for (x = sxg, xlinenum = xlinestart; x < buf->rect.right(); x += sw[Geom::X], xlinenum++) {
965 for (y = syg, ylinenum = ylinestart; y < buf->rect.bottom(); y += sw[Geom::Y], ylinenum++) {
970 for (x = sxg, xlinenum = xlinestart; x < buf->rect.right(); x += sw[Geom::X], xlinenum++) {
1031 spacing = grid->sw[i]; // this is the spacing of the visible grid lines measured in screen pixels