AeonGUI
A portable video game graphic user interface library.
Loading...
Searching...
No Matches
SVGTextPositioningElement.hpp
1/*
2Copyright (C) 2025,2026 Rodrigo Jose Hernandez Cordoba
3
4Licensed under the Apache License, Version 2.0 (the "License");
5you may not use this file except in compliance with the License.
6You may obtain a copy of the License at
7
8http://www.apache.org/licenses/LICENSE-2.0
9
10Unless required by applicable law or agreed to in writing, software
11distributed under the License is distributed on an "AS IS" BASIS,
12WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13See the License for the specific language governing permissions and
14limitations under the License.
15*/
16#ifndef AEONGUI_SVGTEXTPOSITIONINGELEMENT_H
17#define AEONGUI_SVGTEXTPOSITIONINGELEMENT_H
18
19#include "SVGTextContentElement.hpp"
20#include "SVGAnimatedLengthList.hpp"
21#include "SVGAnimatedNumberList.hpp"
22namespace AeonGUI
23{
24 namespace DOM
25 {
30 {
31 public:
37 SVGTextPositioningElement ( const DOMString& aTagName, AttributeMap&& aAttributes, Node* aParent );
40
45 const SVGAnimatedLengthList& x() const;
48 const SVGAnimatedLengthList& y() const;
51 const SVGAnimatedLengthList& dx() const;
54 const SVGAnimatedLengthList& dy() const;
57 const SVGAnimatedNumberList& rotate() const;
59
60 private:
62 void parsePositioningAttributes ( const AttributeMap& aAttributes );
63 void parseLengthList ( const DOMString& value, SVGLengthList& lengthList );
64 void parseNumberList ( const DOMString& value, SVGNumberList& numberList );
65
71 };
72 }
73}
74#endif
Base class for all nodes in the DOM tree.
Definition Node.hpp:40
Animated length list attribute (SVG).
Definition SVGAnimatedLengthList.hpp:31
Animated number list attribute (SVG).
Definition SVGAnimatedNumberList.hpp:31
Ordered list of SVGLength values.
Definition SVGLengthList.hpp:33
Ordered list of floating-point numbers (SVG).
Definition SVGNumberList.hpp:32
SVGTextContentElement(const DOMString &aTagName, AttributeMap &&aAttributes, Node *aParent)
Construct an SVGTextContentElement.
Definition SVGTextContentElement.cpp:27
const SVGAnimatedLengthList & x() const
Get the animated x position list.
Definition SVGTextPositioningElement.cpp:33
const SVGAnimatedLengthList & dy() const
Get the animated dy offset list.
Definition SVGTextPositioningElement.cpp:48
~SVGTextPositioningElement() override
Destructor.
const SVGAnimatedNumberList & rotate() const
Get the animated rotation list.
Definition SVGTextPositioningElement.cpp:53
const SVGAnimatedLengthList & y() const
Get the animated y position list.
Definition SVGTextPositioningElement.cpp:38
SVGTextPositioningElement(const DOMString &aTagName, AttributeMap &&aAttributes, Node *aParent)
Construct an SVGTextPositioningElement.
Definition SVGTextPositioningElement.cpp:25
const SVGAnimatedLengthList & dx() const
Get the animated dx offset list.
Definition SVGTextPositioningElement.cpp:43