From: Magnus Jacobsson Date: Wed, 17 Aug 2022 19:59:30 +0000 (+0200) Subject: tests: SvgAnalyzer: GraphvizEdge: add retrieval of bounding box X-Git-Tag: 6.0.1~32^2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a92f7639ec44d78358e4e3eccf077701b77af88a;p=graphviz tests: SvgAnalyzer: GraphvizEdge: add retrieval of bounding box --- diff --git a/tests/graphviz_edge.cpp b/tests/graphviz_edge.cpp index 7dcad02a3..ca33ecf0e 100644 --- a/tests/graphviz_edge.cpp +++ b/tests/graphviz_edge.cpp @@ -8,3 +8,5 @@ std::string_view GraphvizEdge::edgeop() const { return m_edgeop; } const SVG::SVGElement &GraphvizEdge::svg_g_element() const { return m_svg_g_element; } + +SVG::SVGRect GraphvizEdge::bbox() const { return m_svg_g_element.bbox(); } diff --git a/tests/graphviz_edge.h b/tests/graphviz_edge.h index 3e77d5dbe..5e774aa81 100644 --- a/tests/graphviz_edge.h +++ b/tests/graphviz_edge.h @@ -15,6 +15,7 @@ public: GraphvizEdge() = delete; explicit GraphvizEdge(SVG::SVGElement &svg_g_element); + SVG::SVGRect bbox() const; std::string_view edgeop() const; /// Return a non-mutable reference to the SVG `g` element corresponding to the /// edge