Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Static Public Member Functions | Private Member Functions | List of all members
SkSVGTextPath Class Referencefinal

#include <SkSVGText.h>

Inheritance diagram for SkSVGTextPath:
SkSVGTextContainer SkSVGTextFragment SkSVGTransformableNode SkSVGNode SkRefCnt SkRefCntBase

Static Public Member Functions

static sk_sp< SkSVGTextPathMake ()
 

Private Member Functions

void onShapeText (const SkSVGRenderContext &, SkSVGTextContext *, SkSVGXmlSpace) const override
 
bool parseAndSetAttribute (const char *, const char *) override
 

Additional Inherited Members

- Public Member Functions inherited from SkSVGTextContainer
void appendChild (sk_sp< SkSVGNode >) final
 
- Public Member Functions inherited from SkSVGTextFragment
void renderText (const SkSVGRenderContext &, SkSVGTextContext *, SkSVGXmlSpace) const
 
- Public Member Functions inherited from SkSVGTransformableNode
void setTransform (const SkSVGTransformType &t)
 
- Public Member Functions inherited from SkSVGNode
 ~SkSVGNode () override
 
SkSVGTag tag () const
 
void render (const SkSVGRenderContext &) const
 
bool asPaint (const SkSVGRenderContext &, SkPaint *) const
 
SkPath asPath (const SkSVGRenderContext &) const
 
SkRect objectBoundingBox (const SkSVGRenderContext &) const
 
void setAttribute (SkSVGAttribute, const SkSVGValue &)
 
bool setAttribute (const char *attributeName, const char *attributeValue)
 
- Public Member Functions inherited from SkRefCntBase
 SkRefCntBase ()
 
virtual ~SkRefCntBase ()
 
bool unique () const
 
void ref () const
 
void unref () const
 
- Protected Member Functions inherited from SkSVGTextContainer
 SkSVGTextContainer (SkSVGTag t)
 
- Protected Member Functions inherited from SkSVGTextFragment
 SkSVGTextFragment (SkSVGTag t)
 
void onRender (const SkSVGRenderContext &) const override
 
- Protected Member Functions inherited from SkSVGTransformableNode
 SkSVGTransformableNode (SkSVGTag)
 
bool onPrepareToRender (SkSVGRenderContext *) const override
 
void onSetAttribute (SkSVGAttribute, const SkSVGValue &) override
 
void mapToParent (SkPath *) const
 
void mapToParent (SkRect *) const
 
- Protected Member Functions inherited from SkSVGNode
 SkSVGNode (SkSVGTag)
 
virtual bool onAsPaint (const SkSVGRenderContext &, SkPaint *) const
 
virtual bool hasChildren () const
 
virtual SkRect onObjectBoundingBox (const SkSVGRenderContext &) const
 
- Static Protected Member Functions inherited from SkSVGNode
static SkMatrix ComputeViewboxMatrix (const SkRect &, const SkRect &, SkSVGPreserveAspectRatio)
 

Detailed Description

Definition at line 106 of file SkSVGText.h.

Member Function Documentation

◆ Make()

static sk_sp< SkSVGTextPath > SkSVGTextPath::Make ( )
inlinestatic

Definition at line 108 of file SkSVGText.h.

◆ onShapeText()

void SkSVGTextPath::onShapeText ( const SkSVGRenderContext ctx,
SkSVGTextContext parent_tctx,
SkSVGXmlSpace  xs 
) const
overrideprivatevirtual

Reimplemented from SkSVGTextContainer.

Definition at line 701 of file SkSVGText.cpp.

702 {
703 SkASSERT(parent_tctx);
704
705 // textPath nodes establish a new text layout context.
706 SkSVGTextContext tctx(ctx, parent_tctx->getCallback(), this);
707
708 this->INHERITED::onShapeText(ctx, &tctx, xs);
709}
#define SkASSERT(cond)
Definition SkAssert.h:116
void onShapeText(const SkSVGRenderContext &, SkSVGTextContext *, SkSVGXmlSpace) const override
const ShapedTextCallback & getCallback() const

◆ parseAndSetAttribute()

bool SkSVGTextPath::parseAndSetAttribute ( const char *  name,
const char *  value 
)
overrideprivatevirtual

Reimplemented from SkSVGTextContainer.

Definition at line 711 of file SkSVGText.cpp.

711 {
712 return INHERITED::parseAndSetAttribute(name, value) ||
713 this->setHref(SkSVGAttributeParser::parse<SkSVGIRI>("xlink:href", name, value)) ||
714 this->setStartOffset(SkSVGAttributeParser::parse<SkSVGLength>("startOffset", name, value));
715}
bool parseAndSetAttribute(const char *, const char *) override
const char * name
Definition fuchsia.cc:50

The documentation for this class was generated from the following files: