Skia
2D Graphics Library
SkSVGLengthContext Class Reference

#include <SkSVGRenderContext.h>

Public Types

enum class  LengthType { kHorizontal , kVertical , kOther }
 

Public Member Functions

 SkSVGLengthContext (const SkSize &viewport, SkScalar dpi=90)
 
const SkSizeviewPort () const
 
void setViewPort (const SkSize &viewport)
 
SkScalar resolve (const SkSVGLength &, LengthType) const
 
SkRect resolveRect (const SkSVGLength &x, const SkSVGLength &y, const SkSVGLength &w, const SkSVGLength &h) const
 

Member Enumeration Documentation

◆ LengthType

Enumerator
kHorizontal 
kVertical 
kOther 

Constructor & Destructor Documentation

◆ SkSVGLengthContext()

SkSVGLengthContext::SkSVGLengthContext ( const SkSize viewport,
SkScalar  dpi = 90 
)
inline

Member Function Documentation

◆ resolve()

SkScalar SkSVGLengthContext::resolve ( const SkSVGLength ,
LengthType   
) const

◆ resolveRect()

SkRect SkSVGLengthContext::resolveRect ( const SkSVGLength x,
const SkSVGLength y,
const SkSVGLength w,
const SkSVGLength h 
) const

◆ setViewPort()

void SkSVGLengthContext::setViewPort ( const SkSize viewport)
inline

◆ viewPort()

const SkSize& SkSVGLengthContext::viewPort ( ) const
inline

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