Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
sp-item-transform.h
Go to the documentation of this file.
1// SPDX-License-Identifier: GPL-2.0-or-later
/*
5 * Authors: see git history
6 *
7 * Copyright (C) 2018 Authors
8 * Released under GNU GPL v2+, read the file 'COPYING' for more information.
9 */
10#ifndef SEEN_SP_ITEM_TRANSFORM_H
11#define SEEN_SP_ITEM_TRANSFORM_H
12
13#include <2geom/forward.h>
14
15class SPItem;
16
17Geom::Affine get_scale_transform_for_uniform_stroke (Geom::Rect const &bbox_visual, double stroke_x, double stroke_y, bool transform_stroke, bool preserve, double x0, double y0, double x1, double y1);
18Geom::Affine get_scale_transform_for_variable_stroke (Geom::Rect const &bbox_visual, Geom::Rect const &bbox_geom, bool transform_stroke, bool preserve, double x0, double y0, double x1, double y1);
19Geom::Rect get_visual_bbox (Geom::OptRect const &initial_geom_bbox, Geom::Affine const &abs_affine, double const initial_strokewidth, bool const transform_stroke);
20
21#endif // SEEN_SP_ITEM_TRANSFORM_H
22
23/*
24 Local Variables:
25 mode:c++
26 c-file-style:"stroustrup"
27 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
28 indent-tabs-mode:nil
29 fill-column:99
30 End:
31*/
32// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :
3x3 matrix representing an affine transformation.
Definition affine.h:70
Axis-aligned rectangle that can be empty.
Definition rect.h:203
Axis aligned, non-empty rectangle.
Definition rect.h:92
Base class for visual SVG elements.
Definition sp-item.h:109
Contains forward declarations of 2geom types.
Geom::Affine get_scale_transform_for_uniform_stroke(Geom::Rect const &bbox_visual, double stroke_x, double stroke_y, bool transform_stroke, bool preserve, double x0, double y0, double x1, double y1)
Geom::Rect get_visual_bbox(Geom::OptRect const &initial_geom_bbox, Geom::Affine const &abs_affine, double const initial_strokewidth, bool const transform_stroke)
Geom::Affine get_scale_transform_for_variable_stroke(Geom::Rect const &bbox_visual, Geom::Rect const &bbox_geom, bool transform_stroke, bool preserve, double x0, double y0, double x1, double y1)