KiCad PCB EDA Suite
Loading...
Searching...
No Matches
svg_test_utils.h File Reference
#include <tl/expected.hpp>
#include <wx/string.h>
#include <wx/xml/xml.h>

Go to the source code of this file.

Classes

struct  KI_TEST::SVG_VIEWBOX
 

Namespaces

namespace  KI_TEST
 

Functions

tl::expected< wxXmlDocument, wxString > KI_TEST::LoadSvg (const wxString &aSvg)
 
tl::expected< SVG_VIEWBOX, wxString > KI_TEST::ParseViewBox (const wxXmlNode &aRoot)
 Parse the four numbers of the SVG viewBox attribute (min-x, min-y, width, height).
 
const wxXmlNode * KI_TEST::FindFirstRect (const wxXmlNode &aNode)
 Find the first <rect> element in the given XML node's descendants.