Skia
2D Graphics Library
|
#include <SkSVGRenderContext.h>
Public Types | |
enum class | LengthType { kHorizontal , kVertical , kOther } |
Public Member Functions | |
SkSVGLengthContext (const SkSize &viewport, SkScalar dpi=90) | |
const SkSize & | viewPort () 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 |
|
strong |
SkScalar SkSVGLengthContext::resolve | ( | const SkSVGLength & | , |
LengthType | |||
) | const |
SkRect SkSVGLengthContext::resolveRect | ( | const SkSVGLength & | x, |
const SkSVGLength & | y, | ||
const SkSVGLength & | w, | ||
const SkSVGLength & | h | ||
) | const |
|
inline |
|
inline |