Lines Matching refs:rect
868 if ((y < buf->rect.top()) || (y >= buf->rect.bottom()))
880 if ((x < buf->rect.left()) || (x >= buf->rect.right()))
892 if ( (y < buf->rect.top()) || (y >= buf->rect.bottom())
893 || (x < buf->rect.left()) || (x >= buf->rect.right()) )
904 gdouble const sxg = floor ((buf->rect.left() - ow[Geom::X]) / sw[Geom::X]) * sw[Geom::X] + ow[Geom::X];
906 gdouble const syg = floor ((buf->rect.top() - ow[Geom::Y]) / sw[Geom::Y]) * sw[Geom::Y] + ow[Geom::Y];
920 cairo_translate(buf->ct, -buf->rect.left(), -buf->rect.top());
928 for (y = syg, ylinenum = ylinestart; y < buf->rect.bottom(); y += sw[Geom::Y], ylinenum++) {
931 grid_hline (buf, y0, buf->rect.left(), buf->rect.right() - 1, color);
933 grid_hline (buf, y0, buf->rect.left(), buf->rect.right() - 1, _empcolor);
939 for (x = sxg, xlinenum = xlinestart; x < buf->rect.right(); x += sw[Geom::X], xlinenum++) {
942 grid_vline (buf, ix, buf->rect.top(), buf->rect.bottom(), color);
944 grid_vline (buf, ix, buf->rect.top(), buf->rect.bottom(), _empcolor);
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++) {