mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-30 01:55:39 +00:00
32546b5874
git-subtree-dir: external/lunasvg git-subtree-split: 7417baa0aff477f361e44e2aa793fdb0c7aae352
32 lines
637 B
C++
32 lines
637 B
C++
#ifndef SVGELEMENT_H
|
|
#define SVGELEMENT_H
|
|
|
|
#include "graphicselement.h"
|
|
|
|
namespace lunasvg {
|
|
|
|
class ParseDocument;
|
|
class LayoutSymbol;
|
|
|
|
class SVGElement : public GraphicsElement
|
|
{
|
|
public:
|
|
SVGElement();
|
|
|
|
Length x() const;
|
|
Length y() const;
|
|
Length width() const;
|
|
Length height() const;
|
|
|
|
Rect viewBox() const;
|
|
PreserveAspectRatio preserveAspectRatio() const;
|
|
std::unique_ptr<LayoutSymbol> layoutDocument(const ParseDocument* document) const;
|
|
|
|
void layout(LayoutContext* context, LayoutContainer* current) const;
|
|
std::unique_ptr<Node> clone() const;
|
|
};
|
|
|
|
} // namespace lunasvg
|
|
|
|
#endif // SVGELEMENT_H
|