16#ifndef AEONGUI_SVGSVGELEMENT_H
17#define AEONGUI_SVGSVGELEMENT_H
19#include "SVGGraphicsElement.hpp"
20#include "aeongui/Attribute.hpp"
37 SVGSVGElement (
const DOMString& aTagName, AttributeMap&& aAttributes,
Node* aParent );
47 void ParseAttributes();
52 PreserveAspectRatio mPreserveAspectRatio{};
Abstract 2D rendering surface.
Definition Canvas.hpp:40
Base class for all nodes in the DOM tree.
Definition Node.hpp:42
SVGGraphicsElement(const DOMString &aTagName, AttributeMap &&aAttributes, Node *aParent)
Construct an SVGGraphicsElement.
Definition SVGGraphicsElement.cpp:27
void DrawStart(Canvas &aCanvas) const final
Set up viewport and viewBox, then draw children.
Definition SVGSVGElement.cpp:73
void onAttributeChanged(const DOMString &aName, const DOMString &aValue) override
Called after an attribute is changed via setAttribute.
Definition SVGSVGElement.cpp:64
~SVGSVGElement() final
Destructor.
SVGSVGElement(const DOMString &aTagName, AttributeMap &&aAttributes, Node *aParent)
Construct an SVGSVGElement.
Definition SVGSVGElement.cpp:25
SVG viewBox attribute value.
Definition Attribute.hpp:31