Skia
2D Graphics Library
SkSVGTextContainer Class Reference

#include <SkSVGText.h>

Inheritance diagram for SkSVGTextContainer:

Public Member Functions

void appendChild (sk_sp< SkSVGNode >) final
 
void renderText (const SkSVGRenderContext &, SkSVGTextContext *, SkSVGXmlSpace) const
 
void setTransform (const SkSVGTransformType &t)
 
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)
 
bool unique () const
 May return true if the caller is the only owner. More...
 
void ref () const
 Increment the reference count. More...
 
void unref () const
 Decrement the reference count. More...
 

Protected Member Functions

 SkSVGTextContainer (SkSVGTag t)
 
void onShapeText (const SkSVGRenderContext &, SkSVGTextContext *, SkSVGXmlSpace) const override
 
bool parseAndSetAttribute (const char *, const char *) override
 
void onRender (const SkSVGRenderContext &) const override
 
bool onPrepareToRender (SkSVGRenderContext *) const override
 
void onSetAttribute (SkSVGAttribute, const SkSVGValue &) override
 
void mapToParent (SkPath *) const
 
void mapToParent (SkRect *) const
 
virtual bool onAsPaint (const SkSVGRenderContext &, SkPaint *) const
 
virtual bool hasChildren () const
 
virtual SkRect onObjectBoundingBox (const SkSVGRenderContext &) const
 

Static Protected Member Functions

static SkMatrix ComputeViewboxMatrix (const SkRect &, const SkRect &, SkSVGPreserveAspectRatio)
 

Constructor & Destructor Documentation

◆ SkSVGTextContainer()

SkSVGTextContainer::SkSVGTextContainer ( SkSVGTag  t)
inlineexplicitprotected

Member Function Documentation

◆ appendChild()

void SkSVGTextContainer::appendChild ( sk_sp< SkSVGNode )
finalvirtual

Implements SkSVGNode.

◆ asPaint()

bool SkSVGNode::asPaint ( const SkSVGRenderContext ,
SkPaint  
) const
inherited

◆ asPath()

SkPath SkSVGNode::asPath ( const SkSVGRenderContext ) const
inherited

◆ ComputeViewboxMatrix()

static SkMatrix SkSVGNode::ComputeViewboxMatrix ( const SkRect ,
const SkRect ,
SkSVGPreserveAspectRatio   
)
staticprotectedinherited

◆ hasChildren()

virtual bool SkSVGNode::hasChildren ( ) const
inlineprotectedvirtualinherited

Reimplemented in SkSVGContainer.

◆ mapToParent() [1/2]

void SkSVGTransformableNode::mapToParent ( SkPath ) const
protectedinherited

◆ mapToParent() [2/2]

void SkSVGTransformableNode::mapToParent ( SkRect ) const
protectedinherited

◆ objectBoundingBox()

SkRect SkSVGNode::objectBoundingBox ( const SkSVGRenderContext ) const
inherited

◆ onAsPaint()

virtual bool SkSVGNode::onAsPaint ( const SkSVGRenderContext ,
SkPaint  
) const
inlineprotectedvirtualinherited

Reimplemented in SkSVGPattern, and SkSVGGradient.

◆ onObjectBoundingBox()

virtual SkRect SkSVGNode::onObjectBoundingBox ( const SkSVGRenderContext ) const
inlineprotectedvirtualinherited

◆ onPrepareToRender()

bool SkSVGTransformableNode::onPrepareToRender ( SkSVGRenderContext ) const
overrideprotectedvirtualinherited

Reimplemented from SkSVGNode.

Reimplemented in SkSVGUse.

◆ onRender()

void SkSVGTextFragment::onRender ( const SkSVGRenderContext ) const
inlineoverrideprotectedvirtualinherited

Implements SkSVGNode.

◆ onSetAttribute()

void SkSVGTransformableNode::onSetAttribute ( SkSVGAttribute  ,
const SkSVGValue  
)
overrideprotectedvirtualinherited

Reimplemented from SkSVGNode.

◆ onShapeText()

void SkSVGTextContainer::onShapeText ( const SkSVGRenderContext ,
SkSVGTextContext ,
SkSVGXmlSpace   
) const
overrideprotectedvirtual

Implements SkSVGTextFragment.

◆ parseAndSetAttribute()

bool SkSVGTextContainer::parseAndSetAttribute ( const char *  ,
const char *   
)
overrideprotectedvirtual

Reimplemented from SkSVGNode.

◆ ref()

void SkRefCntBase::ref ( ) const
inlineinherited

Increment the reference count.

Must be balanced by a call to unref().

◆ render()

void SkSVGNode::render ( const SkSVGRenderContext ) const
inherited

◆ renderText()

void SkSVGTextFragment::renderText ( const SkSVGRenderContext ,
SkSVGTextContext ,
SkSVGXmlSpace   
) const
inherited

◆ setAttribute() [1/2]

bool SkSVGNode::setAttribute ( const char *  attributeName,
const char *  attributeValue 
)
inherited

◆ setAttribute() [2/2]

void SkSVGNode::setAttribute ( SkSVGAttribute  ,
const SkSVGValue  
)
inherited

◆ setTransform()

void SkSVGTransformableNode::setTransform ( const SkSVGTransformType t)
inlineinherited

◆ tag()

SkSVGTag SkSVGNode::tag ( ) const
inlineinherited

◆ unique()

bool SkRefCntBase::unique ( ) const
inlineinherited

May return true if the caller is the only owner.

Ensures that all previous owner's actions are complete.

◆ unref()

void SkRefCntBase::unref ( ) const
inlineinherited

Decrement the reference count.

If the reference count is 1 before the decrement, then delete the object. Note that if this is the case, then the object needs to have been allocated via new, and not on the stack.


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