16#ifndef AEONGUI_SVGCONTENTELEMENT_H
17#define AEONGUI_SVGCONTENTELEMENT_H
19#include "SVGGraphicsElement.hpp"
20#include "SVGAnimatedLength.hpp"
21#include "SVGAnimatedEnumeration.hpp"
22#include "DOMPoint.hpp"
24#include "aeongui/PangoTextLayout.hpp"
95 std::string getTextContent()
const;
97 void syncTextLayout()
const;
Mutable 3D point with a perspective component.
Definition DOMPoint.hpp:32
Mutable rectangle.
Definition DOMRect.hpp:32
Base class for all nodes in the DOM tree.
Definition Node.hpp:40
Animated enumeration attribute (SVG).
Definition SVGAnimatedEnumeration.hpp:31
Animated length attribute (SVG).
Definition SVGAnimatedLength.hpp:30
SVGGraphicsElement(const DOMString &aTagName, AttributeMap &&aAttributes, Node *aParent)
Construct an SVGGraphicsElement.
Definition SVGGraphicsElement.cpp:24
const SVGAnimatedLength & textLength() const
Get the animated text length.
Definition SVGTextContentElement.cpp:31
DOMPoint getStartPositionOfChar(long index) const
Get the start position of a character.
Definition SVGTextContentElement.cpp:208
float getSubStringLength(long start, long end) const
Get the advance width of a substring.
Definition SVGTextContentElement.cpp:180
PangoTextLayout & GetTextLayout() const
Definition SVGTextContentElement.cpp:41
DOMPoint getEndPositionOfChar(long index) const
Get the end position of a character.
Definition SVGTextContentElement.cpp:223
long getNumberOfChars() const
Get the total number of characters.
Definition SVGTextContentElement.cpp:168
DOMRect getExtentOfChar(long index) const
Get the bounding box of a character.
Definition SVGTextContentElement.cpp:238
long getCharNumAtPosition(const DOMPoint &point) const
Get the character index at a point.
Definition SVGTextContentElement.cpp:270
~SVGTextContentElement() override
Destructor.
SVGTextContentElement(const DOMString &aTagName, AttributeMap &&aAttributes, Node *aParent)
Construct an SVGTextContentElement.
Definition SVGTextContentElement.cpp:27
float getComputedTextLength() const
Get the computed total advance width of the text.
Definition SVGTextContentElement.cpp:174
const SVGAnimatedEnumeration & lengthAdjust() const
Get the animated length adjust enumeration.
Definition SVGTextContentElement.cpp:36
float getRotationOfChar(long index) const
Get the rotation of a character.
Definition SVGTextContentElement.cpp:257
Pango-backed text layout implementation.
Definition PangoTextLayout.hpp:39