Skia
2D Graphics Library
SkSVGRenderContext Class Reference

#include <SkSVGRenderContext.h>

Classes

class  BorrowedNode
 
struct  OBBScope
 
struct  OBBTransform
 

Public Types

enum  ApplyFlags { kLeaf = 1 << 0 }
 

Public Member Functions

 SkSVGRenderContext (SkCanvas *, const sk_sp< SkFontMgr > &, const sk_sp< skresources::ResourceProvider > &, const SkSVGIDMapper &, const SkSVGLengthContext &, const SkSVGPresentationContext &, const OBBScope &)
 
 SkSVGRenderContext (const SkSVGRenderContext &)
 
 SkSVGRenderContext (const SkSVGRenderContext &, SkCanvas *)
 
 SkSVGRenderContext (const SkSVGRenderContext &, const SkSVGNode *)
 
 ~SkSVGRenderContext ()
 
const SkSVGLengthContextlengthContext () const
 
SkSVGLengthContextwritableLengthContext ()
 
const SkSVGPresentationContextpresentationContext () const
 
SkCanvascanvas () const
 
void saveOnce ()
 
void applyPresentationAttributes (const SkSVGPresentationAttributes &, uint32_t flags)
 
BorrowedNode findNodeById (const SkSVGIRI &) const
 
SkTLazy< SkPaintfillPaint () const
 
SkTLazy< SkPaintstrokePaint () const
 
SkSVGColorType resolveSvgColor (const SkSVGColor &) const
 
const SkPathclipPath () const
 
const sk_sp< skresources::ResourceProvider > & resourceProvider () const
 
sk_sp< SkFontMgrfontMgr () const
 
OBBTransform transformForCurrentOBB (SkSVGObjectBoundingBoxUnits) const
 
SkRect resolveOBBRect (const SkSVGLength &x, const SkSVGLength &y, const SkSVGLength &w, const SkSVGLength &h, SkSVGObjectBoundingBoxUnits) const
 

Member Enumeration Documentation

◆ ApplyFlags

Enumerator
kLeaf 

Constructor & Destructor Documentation

◆ SkSVGRenderContext() [1/4]

SkSVGRenderContext::SkSVGRenderContext ( SkCanvas ,
const sk_sp< SkFontMgr > &  ,
const sk_sp< skresources::ResourceProvider > &  ,
const SkSVGIDMapper ,
const SkSVGLengthContext ,
const SkSVGPresentationContext ,
const OBBScope  
)

◆ SkSVGRenderContext() [2/4]

SkSVGRenderContext::SkSVGRenderContext ( const SkSVGRenderContext )

◆ SkSVGRenderContext() [3/4]

SkSVGRenderContext::SkSVGRenderContext ( const SkSVGRenderContext ,
SkCanvas  
)

◆ SkSVGRenderContext() [4/4]

SkSVGRenderContext::SkSVGRenderContext ( const SkSVGRenderContext ,
const SkSVGNode  
)

◆ ~SkSVGRenderContext()

SkSVGRenderContext::~SkSVGRenderContext ( )

Member Function Documentation

◆ applyPresentationAttributes()

void SkSVGRenderContext::applyPresentationAttributes ( const SkSVGPresentationAttributes ,
uint32_t  flags 
)

◆ canvas()

SkCanvas* SkSVGRenderContext::canvas ( ) const
inline

◆ clipPath()

const SkPath* SkSVGRenderContext::clipPath ( ) const
inline

◆ fillPaint()

SkTLazy<SkPaint> SkSVGRenderContext::fillPaint ( ) const

◆ findNodeById()

BorrowedNode SkSVGRenderContext::findNodeById ( const SkSVGIRI ) const

◆ fontMgr()

sk_sp<SkFontMgr> SkSVGRenderContext::fontMgr ( ) const
inline

◆ lengthContext()

const SkSVGLengthContext& SkSVGRenderContext::lengthContext ( ) const
inline

◆ presentationContext()

const SkSVGPresentationContext& SkSVGRenderContext::presentationContext ( ) const
inline

◆ resolveOBBRect()

SkRect SkSVGRenderContext::resolveOBBRect ( const SkSVGLength x,
const SkSVGLength y,
const SkSVGLength w,
const SkSVGLength h,
SkSVGObjectBoundingBoxUnits   
) const

◆ resolveSvgColor()

SkSVGColorType SkSVGRenderContext::resolveSvgColor ( const SkSVGColor ) const

◆ resourceProvider()

const sk_sp<skresources::ResourceProvider>& SkSVGRenderContext::resourceProvider ( ) const
inline

◆ saveOnce()

void SkSVGRenderContext::saveOnce ( )

◆ strokePaint()

SkTLazy<SkPaint> SkSVGRenderContext::strokePaint ( ) const

◆ transformForCurrentOBB()

OBBTransform SkSVGRenderContext::transformForCurrentOBB ( SkSVGObjectBoundingBoxUnits  ) const

◆ writableLengthContext()

SkSVGLengthContext* SkSVGRenderContext::writableLengthContext ( )
inline

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