Skia
2D Graphics Library
SkSVGLength Class Reference

#include <SkSVGTypes.h>

Public Types

enum class  Unit {
  kUnknown , kNumber , kPercentage , kEMS ,
  kEXS , kPX , kCM , kMM ,
  kIN , kPT , kPC
}
 

Public Member Functions

constexpr SkSVGLength ()
 
constexpr SkSVGLength (SkScalar v, Unit u=Unit::kNumber)
 
 SkSVGLength (const SkSVGLength &)=default
 
SkSVGLengthoperator= (const SkSVGLength &)=default
 
bool operator== (const SkSVGLength &other) const
 
bool operator!= (const SkSVGLength &other) const
 
const SkScalarvalue () const
 
const Unitunit () const
 

Member Enumeration Documentation

◆ Unit

enum SkSVGLength::Unit
strong
Enumerator
kUnknown 
kNumber 
kPercentage 
kEMS 
kEXS 
kPX 
kCM 
kMM 
kIN 
kPT 
kPC 

Constructor & Destructor Documentation

◆ SkSVGLength() [1/3]

constexpr SkSVGLength::SkSVGLength ( )
inlineconstexpr

◆ SkSVGLength() [2/3]

constexpr SkSVGLength::SkSVGLength ( SkScalar  v,
Unit  u = Unit::kNumber 
)
inlineexplicitconstexpr

◆ SkSVGLength() [3/3]

SkSVGLength::SkSVGLength ( const SkSVGLength )
default

Member Function Documentation

◆ operator!=()

bool SkSVGLength::operator!= ( const SkSVGLength other) const
inline

◆ operator=()

SkSVGLength& SkSVGLength::operator= ( const SkSVGLength )
default

◆ operator==()

bool SkSVGLength::operator== ( const SkSVGLength other) const
inline

◆ unit()

const Unit& SkSVGLength::unit ( ) const
inline

◆ value()

const SkScalar& SkSVGLength::value ( ) const
inline

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