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#ifdef AEONGUI_USE_SKIA
25#include "aeongui/SkiaTextLayout.hpp"
27#include "aeongui/PangoTextLayout.hpp"
96#ifdef AEONGUI_USE_SKIA
107 void syncTextLayout()
const;
111#ifdef AEONGUI_USE_SKIA
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:42
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:27
const SVGAnimatedLength & textLength() const
Get the animated text length.
Definition SVGTextContentElement.cpp:32
DOMPoint getStartPositionOfChar(long index) const
Get the start position of a character.
Definition SVGTextContentElement.cpp:132
float getSubStringLength(long start, long end) const
Get the advance width of a substring.
Definition SVGTextContentElement.cpp:104
PangoTextLayout & GetTextLayout() const
Definition SVGTextContentElement.cpp:45
DOMPoint getEndPositionOfChar(long index) const
Get the end position of a character.
Definition SVGTextContentElement.cpp:147
long getNumberOfChars() const
Get the total number of characters.
Definition SVGTextContentElement.cpp:92
DOMRect getExtentOfChar(long index) const
Get the bounding box of a character.
Definition SVGTextContentElement.cpp:162
std::string getTextContent() const
Get concatenated text content from child text nodes.
Definition SVGTextContentElement.cpp:68
long getCharNumAtPosition(const DOMPoint &point) const
Get the character index at a point.
Definition SVGTextContentElement.cpp:194
~SVGTextContentElement() override
Destructor.
SVGTextContentElement(const DOMString &aTagName, AttributeMap &&aAttributes, Node *aParent)
Construct an SVGTextContentElement.
Definition SVGTextContentElement.cpp:28
float getComputedTextLength() const
Get the computed total advance width of the text.
Definition SVGTextContentElement.cpp:98
const SVGAnimatedEnumeration & lengthAdjust() const
Get the animated length adjust enumeration.
Definition SVGTextContentElement.cpp:37
float getRotationOfChar(long index) const
Get the rotation of a character.
Definition SVGTextContentElement.cpp:181
Pango-backed text layout implementation.
Definition PangoTextLayout.hpp:39
Skia-backend text layout implementation.
Definition SkiaTextLayout.hpp:37