20#include <tl/expected.hpp>
23#include <wx/xml/xml.h>
36tl::expected<wxXmlDocument, wxString>
LoadSvg(
const wxString& aSvg );
42tl::expected<SVG_VIEWBOX, wxString>
ParseViewBox(
const wxXmlNode& aRoot );
Test utilities for timestamps.
const wxXmlNode * FindFirstRect(const wxXmlNode &aNode)
Find the first <rect> element in the given XML node's descendants.
tl::expected< wxXmlDocument, wxString > LoadSvg(const wxString &aSvg)
tl::expected< SVG_VIEWBOX, wxString > ParseViewBox(const wxXmlNode &aRoot)
Parse the four numbers of the SVG viewBox attribute (min-x, min-y, width, height).