Flutter Engine
The Flutter Engine
Public Member Functions | Protected Member Functions | List of all members
SkSVGTextFragment Class Referenceabstract

#include <SkSVGText.h>

Inheritance diagram for SkSVGTextFragment:
SkSVGTransformableNode SkSVGNode SkRefCnt SkRefCntBase SkSVGTextContainer SkSVGTextLiteral SkSVGTSpan SkSVGText SkSVGTextPath

Public Member Functions

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
 
virtual void appendChild (sk_sp< SkSVGNode >)=0
 
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)
 
virtual bool parseAndSetAttribute (const char *name, const char *value)
 
- Public Member Functions inherited from SkRefCntBase
 SkRefCntBase ()
 
virtual ~SkRefCntBase ()
 
bool unique () const
 
void ref () const
 
void unref () const
 

Protected Member Functions

 SkSVGTextFragment (SkSVGTag t)
 
virtual void onShapeText (const SkSVGRenderContext &, SkSVGTextContext *, SkSVGXmlSpace) const =0
 
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 onPrepareToRender (SkSVGRenderContext *) const
 
virtual void onRender (const SkSVGRenderContext &) const =0
 
virtual bool onAsPaint (const SkSVGRenderContext &, SkPaint *) const
 
virtual SkPath onAsPath (const SkSVGRenderContext &) const =0
 
virtual void onSetAttribute (SkSVGAttribute, const SkSVGValue &)
 
virtual bool hasChildren () const
 
virtual SkRect onObjectBoundingBox (const SkSVGRenderContext &) const
 

Additional Inherited Members

- Static Protected Member Functions inherited from SkSVGNode
static SkMatrix ComputeViewboxMatrix (const SkRect &, const SkRect &, SkSVGPreserveAspectRatio)
 

Detailed Description

Definition at line 19 of file SkSVGText.h.

Constructor & Destructor Documentation

◆ SkSVGTextFragment()

SkSVGTextFragment::SkSVGTextFragment ( SkSVGTag  t)
inlineexplicitprotected

Definition at line 24 of file SkSVGText.h.

24: INHERITED(t) {}

Member Function Documentation

◆ onRender()

void SkSVGTextFragment::onRender ( const SkSVGRenderContext ) const
inlineoverrideprotectedvirtual

Implements SkSVGNode.

Definition at line 29 of file SkSVGText.h.

29{}

◆ onShapeText()

virtual void SkSVGTextFragment::onShapeText ( const SkSVGRenderContext ,
SkSVGTextContext ,
SkSVGXmlSpace   
) const
protectedpure virtual

Implemented in SkSVGTextContainer.

◆ renderText()

void SkSVGTextFragment::renderText ( const SkSVGRenderContext ctx,
SkSVGTextContext tctx,
SkSVGXmlSpace  xs 
) const

Definition at line 531 of file SkSVGText.cpp.

532 {
533 // N.B.: unlike regular elements, text fragments do not establish a new OBB scope -- they
534 // always defer to the root <text> element for OBB resolution.
535 SkSVGRenderContext localContext(ctx);
536
537 if (this->onPrepareToRender(&localContext)) {
538 this->onShapeText(localContext, tctx, xs);
539 }
540}
virtual void onShapeText(const SkSVGRenderContext &, SkSVGTextContext *, SkSVGXmlSpace) const =0
bool onPrepareToRender(SkSVGRenderContext *) const override

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