From 605e4220b2a3437be2952c991d6b024eb9fda935 Mon Sep 17 00:00:00 2001 From: Magnus Jacobsson Date: Tue, 23 Aug 2022 17:18:17 +0200 Subject: [PATCH] tests: SVGAnalyzer: add some comments --- tests/graphviz_edge.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/graphviz_edge.h b/tests/graphviz_edge.h index 87a810e73..eeeef8ba5 100644 --- a/tests/graphviz_edge.h +++ b/tests/graphviz_edge.h @@ -15,16 +15,19 @@ public: GraphvizEdge() = delete; explicit GraphvizEdge(SVG::SVGElement &svg_g_element); + /// Return the bounding box of the edge SVG::SVGRect bbox() const; + /// Return the center of the edge's bounding box SVG::SVGPoint center() const; + /// Return the 'edgeop' according to the DOT language specification. Note that + /// this is not the same as the 'id' attribute of an edge. std::string_view edgeop() const; /// Return a non-mutable reference to the SVG `g` element corresponding to the /// edge const SVG::SVGElement &svg_g_element() const; private: - /// The 'edgeop' according to the DOT language specification. Note that this - /// is not the same as the 'id' attribute of an edge + /// The 'edgeop' according to the DOT language specification std::string m_edgeop; /// The SVG `g` element corresponding to the edge SVG::SVGElement &m_svg_g_element; -- 2.40.0