Lines Matching refs:viewbox
780 * Set viewbox (x0, x1, y0 and y1 are in document pixels. Border is in screen pixels).
799 Geom::Rect viewbox = canvas->getViewbox();
800 viewbox.expandBy(-border);
804 if (((x1 - x0) * viewbox.dimensions()[Geom::Y]) > ((y1 - y0) * viewbox.dimensions()[Geom::X])) {
805 newscale = viewbox.dimensions()[Geom::X] / (x1 - x0);
807 newscale = viewbox.dimensions()[Geom::Y] / (y1 - y0);
823 x0 = cx - 0.5 * viewbox.dimensions()[Geom::X] / newscale;
824 y1 = cy + 0.5 * viewbox.dimensions()[Geom::Y] / newscale;
850 * Return viewbox dimensions.
854 Geom::Rect const viewbox = canvas->getViewbox();
859 return Geom::Rect(Geom::Point(viewbox.min()[Geom::X] / scale, viewbox.max()[Geom::Y] / -scale),
860 Geom::Point(viewbox.max()[Geom::X] / scale, viewbox.min()[Geom::Y] / -scale));
970 Geom::Rect const viewbox = canvas->getViewbox();
972 double const width2 = viewbox.dimensions()[Geom::X] / zoom;
973 double const height2 = viewbox.dimensions()[Geom::Y] / zoom;
1148 Geom::Rect const viewbox = canvas->getViewbox();
1150 canvas->scrollTo(viewbox.min()[Geom::X] - dx, viewbox.min()[Geom::Y] - dy, FALSE, is_scrolling);