16#ifndef AEONGUI_SVGIMAGEELEMENT_H
17#define AEONGUI_SVGIMAGEELEMENT_H
19#include "SVGGraphicsElement.hpp"
20#include "SVGAnimatedLength.hpp"
21#include "SVGAnimatedString.hpp"
22#include "SVGAnimatedPreserveAspectRatio.hpp"
23#include "aeongui/RasterImage.hpp"
40 DLL
SVGImageElement (
const DOMString& aTagName, AttributeMap&& aAttributes,
Node* aParent );
67 DLL const DOMString&
decoding() const;
75 void ParseAttributes ( const AttributeMap& aAttributes );
76 bool EnsureImageLoaded() const;
80 SVGAnimatedLength mWidth{};
81 SVGAnimatedLength mHeight{};
82 SVGAnimatedString mHref{};
83 SVGAnimatedPreserveAspectRatio mPreserveAspectRatio{};
84 DOMString mCrossOrigin{};
85 DOMString mDecoding{
"auto"};
86 mutable RasterImage mRasterImage{};
87 mutable bool mImageLoadAttempted{
false};
Abstract 2D rendering surface.
Definition Canvas.hpp:39
Base class for all nodes in the DOM tree.
Definition Node.hpp:40
Animated length attribute (SVG).
Definition SVGAnimatedLength.hpp:30
Animated preserveAspectRatio attribute (SVG).
Definition SVGAnimatedPreserveAspectRatio.hpp:31
Animated string attribute (SVG).
Definition SVGAnimatedString.hpp:31
SVGGraphicsElement(const DOMString &aTagName, AttributeMap &&aAttributes, Node *aParent)
Construct an SVGGraphicsElement.
Definition SVGGraphicsElement.cpp:24
~SVGImageElement() final
Destructor.
const SVGAnimatedString & href() const
Get the animated href (image source URL).
Definition SVGImageElement.cpp:211
const SVGAnimatedPreserveAspectRatio & preserveAspectRatio() const
Get the animated preserveAspectRatio.
Definition SVGImageElement.cpp:216
const SVGAnimatedLength & height() const
Get the animated height.
Definition SVGImageElement.cpp:206
const DOMString & crossOrigin() const
Get the crossOrigin attribute value.
Definition SVGImageElement.cpp:221
const SVGAnimatedLength & x() const
Get the animated x position.
Definition SVGImageElement.cpp:191
const SVGAnimatedLength & width() const
Get the animated width.
Definition SVGImageElement.cpp:201
void DrawStart(Canvas &aCanvas) const final
Draw the embedded image onto the canvas.
Definition SVGImageElement.cpp:231
const SVGAnimatedLength & y() const
Get the animated y position.
Definition SVGImageElement.cpp:196
const DOMString & decoding() const
Get the decoding hint ("auto", "sync", or "async").
Definition SVGImageElement.cpp:226
SVGImageElement(const DOMString &aTagName, AttributeMap &&aAttributes, Node *aParent)
Construct an SVGImageElement.
Definition SVGImageElement.cpp:84