8 #ifndef SkSVGText_DEFINED
9 #define SkSVGText_DEFINED
40 SVG_ATTR(X, std::vector<SkSVGLength>, {})
41 SVG_ATTR(Y, std::vector<SkSVGLength>, {})
42 SVG_ATTR(Dx, std::vector<SkSVGLength>, {})
43 SVG_ATTR(Dy, std::vector<SkSVGLength>, {})
44 SVG_ATTR(Rotate, std::vector<SkSVGNumberType>, {})
58 std::vector<sk_sp<SkSVGTextFragment>> fChildren;
117 bool parseAndSetAttribute(
const char*,
const char*)
override;
SkSVGTag
Definition: SkSVGNode.h:23
#define SVG_ATTR(attr_name, attr_type, attr_default)
Definition: SkSVGNode.h:203
class SK_API SkSVGTextContext
Definition: SkSVGText.h:16
SkSVGXmlSpace
Definition: SkSVGTypes.h:714
SkString SkSVGStringType
Definition: SkSVGTypes.h:28
SkPath contain geometry.
Definition: SkPath.h:58
Definition: SkRefCnt.h:119
Definition: SkSVGTypes.h:152
Definition: SkSVGTypes.h:116
Definition: SkSVGNode.h:95
Definition: SkSVGRenderContext.h:61
Definition: SkSVGText.h:78
static sk_sp< SkSVGTSpan > Make()
Definition: SkSVGText.h:80
Definition: SkSVGText.h:38
void onShapeText(const SkSVGRenderContext &, SkSVGTextContext *, SkSVGXmlSpace) const override
void appendChild(sk_sp< SkSVGNode >) final
bool parseAndSetAttribute(const char *, const char *) override
SkSVGTextContainer(SkSVGTag t)
Definition: SkSVGText.h:51
Definition: SkSVGText.h:19
void renderText(const SkSVGRenderContext &, SkSVGTextContext *, SkSVGXmlSpace) const
SkSVGTextFragment(SkSVGTag t)
Definition: SkSVGText.h:24
void onRender(const SkSVGRenderContext &) const override
Definition: SkSVGText.h:29
virtual void onShapeText(const SkSVGRenderContext &, SkSVGTextContext *, SkSVGXmlSpace) const =0
Definition: SkSVGText.h:88
static sk_sp< SkSVGTextLiteral > Make()
Definition: SkSVGText.h:90
Definition: SkSVGText.h:106
static sk_sp< SkSVGTextPath > Make()
Definition: SkSVGText.h:108
Definition: SkSVGText.h:63
static sk_sp< SkSVGText > Make()
Definition: SkSVGText.h:65
Light weight class for managing strings.
Definition: SkString.h:118
Shared pointer class to wrap classes that support a ref()/unref() interface.
Definition: SkRefCnt.h:220
SkRect holds four float coordinates describing the upper and lower bounds of a rectangle.
Definition: SkRect.h:582