/inkscape/src/helper/ |
H A D | geom.h | 26 Geom::Coord tolerance, Geom::Rect const *viewbox);
|
H A D | geom.cpp | 351 Geom::Coord tolerance, Geom::Rect const *viewbox, 366 } else { // only stroke is being picked; skip this segment if it's totally outside the viewbox 368 if (!viewbox || swept.intersects(*viewbox)) 385 if (!viewbox || swept.intersects(*viewbox)) { // we see this segment, so do full processing 405 geom_curve_bbox_wind_distance(*iter, m, pt, bbox, wind, dist, tolerance, viewbox, p0); 417 Geom::Coord tolerance, Geom::Rect const *viewbox) 447 geom_curve_bbox_wind_distance(*cit, m, pt, bbox, wind, dist, tolerance, viewbox, p0); 348 geom_curve_bbox_wind_distance(Geom::Curve const & c, Geom::Affine const &m, Geom::Point const &pt, Geom::Rect *bbox, int *wind, Geom::Coord *dist, Geom::Coord tolerance, Geom::Rect const *viewbox, Geom::Point &p0) argument 415 pathv_matrix_point_bbox_wind_distance(Geom::PathVector const & pathv, Geom::Affine const &m, Geom::Point const &pt, Geom::Rect *bbox, int *wind, Geom::Coord *dist, Geom::Coord tolerance, Geom::Rect const *viewbox) argument
|
/inkscape/share/extensions/ |
H A D | inkex.py | 313 viewbox = self.document.getroot().get('viewBox') 314 if viewbox: 315 return viewbox.split()[2] 329 viewbox = self.document.getroot().get('viewBox') 330 if viewbox: 331 return viewbox.split()[3]
|
/inkscape/src/display/ |
H A D | canvas-bpath.cpp | 157 Geom::Rect viewbox = item->canvas->getViewbox(); local 158 viewbox.expandBy (width); 160 pathv_matrix_point_bbox_wind_distance(cbp->curve->get_pathvector(), cbp->affine, p, NULL, NULL, &dist, 0.5, &viewbox);
|
H A D | drawing-shape.cpp | 344 Geom::Rect viewbox = _drawing.arena()->item.canvas->getViewbox(); local 345 viewbox.expandBy (width); 346 pathv_matrix_point_bbox_wind_distance(_curve->get_pathvector(), _ctm, p, NULL, needfill? &wind : NULL, &dist, 0.5, &viewbox);
|
/inkscape/src/ |
H A D | desktop.cpp | 780 * Set viewbox (x0, x1, y0 and y1 are in document pixels. Border is in screen pixels). 799 Geom::Rect viewbox = canvas->getViewbox(); local 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 dimension 854 Geom::Rect const viewbox = canvas->getViewbox(); member in class:Geom 970 Geom::Rect const viewbox = canvas->getViewbox(); member in class:Geom 1148 Geom::Rect const viewbox = canvas->getViewbox(); member in class:Geom [all...] |
H A D | sp-pattern.h | 24 #include "viewbox.h" 54 Geom::OptRect viewbox() const;
|
H A D | sp-pattern.cpp | 497 Geom::OptRect SPPattern::viewbox() const function in class:SPPattern 499 Geom::OptRect viewbox; local 502 viewbox = pat_i->viewBox; 506 return viewbox; 595 Geom::OptRect effective_view_box = viewbox();
|
H A D | sp-ellipse.cpp | 191 Geom::Rect const &viewbox = ((SPItemCtx const *) ctx)->viewport; member in class:Geom 193 double const dx = viewbox.width(); 194 double const dy = viewbox.height();
|
H A D | sp-namedview.cpp | 71 this->svg_units = unit_table.getUnit("px"); // legacy behavior: if no viewbox present, default to 'px' units 265 // If viewbox defined: try to calculate the SVG unit from document width and viewbox 268 Geom::Rect viewbox = document->getRoot()->viewBox; local 269 double factor = svgwidth.value(unit_table.primary(Inkscape::Util::UNIT_TYPE_LINEAR)) / viewbox.width();
|
/inkscape/src/widgets/ |
H A D | desktop-widget.cpp | 1791 Geom::Rect viewbox = dtw->desktop->get_display_area(); local 1793 double lower_x = dtw->dt2r * (viewbox.left() - dtw->ruler_origin[Geom::X]); 1794 double upper_x = dtw->dt2r * (viewbox.right() - dtw->ruler_origin[Geom::X]); 1800 double lower_y = dtw->dt2r * (viewbox.bottom() - dtw->ruler_origin[Geom::Y]); 1801 double upper_y = dtw->dt2r * (viewbox.top() - dtw->ruler_origin[Geom::Y]); 2224 Geom::Rect viewbox = dtw->canvas->getViewbox(); local 2227 carea = Geom::unify(carea, viewbox); 2230 viewbox.dimensions()[Geom::X], 2231 0.1 * viewbox.dimensions()[Geom::X], 2232 viewbox [all...] |
/inkscape/src/extension/internal/ |
H A D | cairo-render-context.cpp | 1037 Geom::Rect view_box = *pat->viewbox();
|