Lines Matching refs:viewBox

601 /// Sets document scale (by changing viewBox)
604 root->viewBox = Geom::Rect::from_xywh(
605 root->viewBox.left(),
606 root->viewBox.top(),
613 /// Sets document scale (by changing viewBox, x and y scaling equal)
618 /// Returns document scale as defined by width/height (in pixels) and viewBox (real world to
626 if( root->viewBox.width() > 0.0 ) {
627 scale_x = root->width.computed / root->viewBox.width();
629 if( root->viewBox.height() > 0.0 ) {
630 scale_y = root->height.computed / root->viewBox.height();
668 // viewBox scaled by relative change in page size (maintains document scale).
670 root->viewBox.setMax(Geom::Point(
671 root->viewBox.left() + (root->width.value / old_width_converted ) * root->viewBox.width(),
672 root->viewBox.top() + (root->height.value / old_height_converted) * root->viewBox.height()));
685 result = root->viewBox.width();
710 root->viewBox.setMax(Geom::Point(root->viewBox.left() + (root->width.value / old_width_converted) * root->viewBox.width(), root->viewBox.bottom()));
724 result = root->viewBox.height();
749 root->viewBox.setMax(Geom::Point(root->viewBox.right(), root->viewBox.top() + (root->height.value / old_height_converted) * root->viewBox.height()));
756 Geom::Rect viewBox;
758 viewBox = root->viewBox;
760 viewBox = Geom::Rect::from_xywh( 0, 0, getWidth().value("px"), getHeight().value("px"));
762 return viewBox;
765 void SPDocument::setViewBox(const Geom::Rect &viewBox)
768 root->viewBox = viewBox;
1140 if (root->viewBox_set) { // if set, take from viewBox
1141 ctx->viewport = root->viewBox;