Add path rendering.
This commit is contained in:
parent
f2ab532005
commit
97afa782a0
39 changed files with 1148 additions and 131 deletions
|
@ -181,6 +181,16 @@ SvgPath::SvgPath()
|
|||
|
||||
}
|
||||
|
||||
std::string SvgPath::getPath() const
|
||||
{
|
||||
std::string d;
|
||||
if (auto attr = getAttribute("d"); attr)
|
||||
{
|
||||
d = attr->getValue();
|
||||
}
|
||||
return d;
|
||||
}
|
||||
|
||||
void SvgPath::setPath(const std::string& mPath)
|
||||
{
|
||||
auto path = std::make_unique<XmlAttribute>("d");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue