mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-01-18 07:05:39 +00:00
fd498ff35e
ead790126 fix name conflict with rlottie #100 6192f2536 Fix fill default color #105 be5ec7a4f Release v2.3.4 29c32978d Fix std::clamp bug #105 41f21ccb1 Release v2.3.3 git-subtree-dir: external/lunasvg git-subtree-split: ead790126004b86a2dbbe9f4aaf27e82e419721e
32 lines
623 B
C++
32 lines
623 B
C++
#ifndef SVGELEMENT_H
|
|
#define SVGELEMENT_H
|
|
|
|
#include "graphicselement.h"
|
|
|
|
namespace lunasvg {
|
|
|
|
class TreeBuilder;
|
|
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> build(const TreeBuilder* builder) const;
|
|
|
|
void layout(LayoutContext* context, LayoutContainer* current) const;
|
|
std::unique_ptr<Node> clone() const;
|
|
};
|
|
|
|
} // namespace lunasvg
|
|
|
|
#endif // SVGELEMENT_H
|