From cca66b9ec4e494c1d919bff0f71a820d8afab1fa Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 20:24:48 +0200 Subject: Adding upstream version 1.2.2. Signed-off-by: Daniel Baumann --- src/live_effects/lpegroupbbox.h | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 src/live_effects/lpegroupbbox.h (limited to 'src/live_effects/lpegroupbbox.h') diff --git a/src/live_effects/lpegroupbbox.h b/src/live_effects/lpegroupbbox.h new file mode 100644 index 0000000..5d17240 --- /dev/null +++ b/src/live_effects/lpegroupbbox.h @@ -0,0 +1,34 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +#ifndef INKSCAPE_LPEGROUPBBOX_H +#define INKSCAPE_LPEGROUPBBOX_H + +/* + * Inkscape::LivePathEffect_group_bbox + * + * Copyright (C) Steren Giannini 2008 + * + * Released under GNU GPL v2+, read the file 'COPYING' for more information. + */ + +class SPLPEItem; + +#include <2geom/interval.h> + +namespace Inkscape { +namespace LivePathEffect { + +class GroupBBoxEffect { +protected: + // Bounding box of the item the path effect is applied on + Geom::Interval boundingbox_X; + Geom::Interval boundingbox_Y; + + //This sets boundingbox_X and boundingbox_Y + Geom::OptRect clip_mask_bbox(SPLPEItem * item, Geom::Affine transform); + void original_bbox(SPLPEItem const* lpeitem, bool absolute = false, bool clip_mask = false, Geom::Affine base_transform = Geom::identity()); +}; + +}; //namespace LivePathEffect +}; //namespace Inkscape + +#endif -- cgit v1.2.3