webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Member Functions | Static Public Member Functions | List of all members
WebCore::SVGLengthValue Class Reference

#include <SVGLengthValue.h>

Public Member Functions

 SVGLengthValue (SVGLengthMode=LengthModeOther, const String &valueAsString=String())
 
 SVGLengthValue (const SVGLengthContext &, float, SVGLengthMode=LengthModeOther, SVGLengthType=LengthTypeNumber)
 
SVGLengthType unitType () const
 
SVGLengthMode unitMode () const
 
bool operator== (const SVGLengthValue &) const
 
bool operator!= (const SVGLengthValue &) const
 
float value (const SVGLengthContext &) const
 
ExceptionOr< float > valueForBindings (const SVGLengthContext &) const
 
ExceptionOr< voidsetValue (float, const SVGLengthContext &)
 
ExceptionOr< voidsetValue (const SVGLengthContext &, float, SVGLengthMode, SVGLengthType)
 
float valueInSpecifiedUnits () const
 
void setValueInSpecifiedUnits (float value)
 
float valueAsPercentage () const
 
String valueAsString () const
 
ExceptionOr< voidsetValueAsString (const String &)
 
ExceptionOr< voidsetValueAsString (const String &, SVGLengthMode)
 
ExceptionOr< voidnewValueSpecifiedUnits (unsigned short, float valueInSpecifiedUnits)
 
ExceptionOr< voidconvertToSpecifiedUnits (unsigned short, const SVGLengthContext &)
 
bool isRelative () const
 
bool isZero () const
 
SVGLengthValue blend (const SVGLengthValue &from, float progress) const
 
 SVGLengthValue (SVGLengthMode=LengthModeOther, const String &valueAsString=String())
 
 SVGLengthValue (const SVGLengthContext &, float, SVGLengthMode=LengthModeOther, SVGLengthType=LengthTypeNumber)
 
SVGLengthType unitType () const
 
SVGLengthMode unitMode () const
 
bool operator== (const SVGLengthValue &) const
 
bool operator!= (const SVGLengthValue &) const
 
float value (const SVGLengthContext &) const
 
ExceptionOr< float > valueForBindings (const SVGLengthContext &) const
 
ExceptionOr< voidsetValue (float, const SVGLengthContext &)
 
ExceptionOr< voidsetValue (const SVGLengthContext &, float, SVGLengthMode, SVGLengthType)
 
float valueInSpecifiedUnits () const
 
void setValueInSpecifiedUnits (float value)
 
float valueAsPercentage () const
 
String valueAsString () const
 
ExceptionOr< voidsetValueAsString (const String &)
 
ExceptionOr< voidsetValueAsString (const String &, SVGLengthMode)
 
ExceptionOr< voidnewValueSpecifiedUnits (unsigned short, float valueInSpecifiedUnits)
 
ExceptionOr< voidconvertToSpecifiedUnits (unsigned short, const SVGLengthContext &)
 
bool isRelative () const
 
bool isZero () const
 
SVGLengthValue blend (const SVGLengthValue &from, float progress) const
 

Static Public Member Functions

static SVGLengthValue construct (SVGLengthMode, const String &, SVGParsingError &, SVGLengthNegativeValuesMode=AllowNegativeLengths)
 
static SVGLengthValue fromCSSPrimitiveValue (const CSSPrimitiveValue &)
 
static Ref< CSSPrimitiveValuetoCSSPrimitiveValue (const SVGLengthValue &)
 
static SVGLengthMode lengthModeForAnimatedLengthAttribute (const QualifiedName &)
 
static SVGLengthValue construct (SVGLengthMode, const String &, SVGParsingError &, SVGLengthNegativeValuesMode=AllowNegativeLengths)
 
static SVGLengthValue fromCSSPrimitiveValue (const CSSPrimitiveValue &)
 
static Ref< CSSPrimitiveValuetoCSSPrimitiveValue (const SVGLengthValue &)
 
static SVGLengthMode lengthModeForAnimatedLengthAttribute (const QualifiedName &)
 

Constructor & Destructor Documentation

◆ SVGLengthValue() [1/4]

WebCore::SVGLengthValue::SVGLengthValue ( SVGLengthMode  mode = LengthModeOther,
const String valueAsString = String() 
)

◆ SVGLengthValue() [2/4]

WebCore::SVGLengthValue::SVGLengthValue ( const SVGLengthContext context,
float  value,
SVGLengthMode  mode = LengthModeOther,
SVGLengthType  unitType = LengthTypeNumber 
)

◆ SVGLengthValue() [3/4]

WebCore::SVGLengthValue::SVGLengthValue ( SVGLengthMode  = LengthModeOther,
const String valueAsString = String() 
)

◆ SVGLengthValue() [4/4]

WebCore::SVGLengthValue::SVGLengthValue ( const SVGLengthContext ,
float  ,
SVGLengthMode  = LengthModeOther,
SVGLengthType  = LengthTypeNumber 
)

Member Function Documentation

◆ blend() [1/2]

SVGLengthValue WebCore::SVGLengthValue::blend ( const SVGLengthValue from,
float  progress 
) const
inline

◆ blend() [2/2]

SVGLengthValue WebCore::SVGLengthValue::blend ( const SVGLengthValue from,
float  progress 
) const
inline

◆ construct() [1/2]

SVGLengthValue WebCore::SVGLengthValue::construct ( SVGLengthMode  mode,
const String valueAsString,
SVGParsingError parseError,
SVGLengthNegativeValuesMode  negativeValuesMode = AllowNegativeLengths 
)
static

◆ construct() [2/2]

static SVGLengthValue WebCore::SVGLengthValue::construct ( SVGLengthMode  ,
const String ,
SVGParsingError ,
SVGLengthNegativeValuesMode  = AllowNegativeLengths 
)
static

◆ convertToSpecifiedUnits() [1/2]

ExceptionOr<void> WebCore::SVGLengthValue::convertToSpecifiedUnits ( unsigned  short,
const SVGLengthContext  
)

◆ convertToSpecifiedUnits() [2/2]

ExceptionOr< void > WebCore::SVGLengthValue::convertToSpecifiedUnits ( unsigned short  type,
const SVGLengthContext context 
)

◆ fromCSSPrimitiveValue() [1/2]

static SVGLengthValue WebCore::SVGLengthValue::fromCSSPrimitiveValue ( const CSSPrimitiveValue )
static

◆ fromCSSPrimitiveValue() [2/2]

SVGLengthValue WebCore::SVGLengthValue::fromCSSPrimitiveValue ( const CSSPrimitiveValue value)
static

◆ isRelative() [1/2]

bool WebCore::SVGLengthValue::isRelative ( ) const
inline

◆ isRelative() [2/2]

bool WebCore::SVGLengthValue::isRelative ( ) const
inline

◆ isZero() [1/2]

bool WebCore::SVGLengthValue::isZero ( ) const
inline

◆ isZero() [2/2]

bool WebCore::SVGLengthValue::isZero ( ) const
inline

◆ lengthModeForAnimatedLengthAttribute() [1/2]

SVGLengthMode WebCore::SVGLengthValue::lengthModeForAnimatedLengthAttribute ( const QualifiedName attrName)
static

◆ lengthModeForAnimatedLengthAttribute() [2/2]

static SVGLengthMode WebCore::SVGLengthValue::lengthModeForAnimatedLengthAttribute ( const QualifiedName )
static

◆ newValueSpecifiedUnits() [1/2]

ExceptionOr< void > WebCore::SVGLengthValue::newValueSpecifiedUnits ( unsigned short  type,
float  valueInSpecifiedUnits 
)

◆ newValueSpecifiedUnits() [2/2]

ExceptionOr<void> WebCore::SVGLengthValue::newValueSpecifiedUnits ( unsigned  short,
float  valueInSpecifiedUnits 
)

◆ operator!=() [1/2]

bool WebCore::SVGLengthValue::operator!= ( const SVGLengthValue other) const

◆ operator!=() [2/2]

bool WebCore::SVGLengthValue::operator!= ( const SVGLengthValue ) const

◆ operator==() [1/2]

bool WebCore::SVGLengthValue::operator== ( const SVGLengthValue other) const

◆ operator==() [2/2]

bool WebCore::SVGLengthValue::operator== ( const SVGLengthValue ) const

◆ setValue() [1/4]

ExceptionOr< void > WebCore::SVGLengthValue::setValue ( float  value,
const SVGLengthContext context 
)

◆ setValue() [2/4]

ExceptionOr<void> WebCore::SVGLengthValue::setValue ( float  ,
const SVGLengthContext  
)

◆ setValue() [3/4]

ExceptionOr<void> WebCore::SVGLengthValue::setValue ( const SVGLengthContext ,
float  ,
SVGLengthMode  ,
SVGLengthType   
)

◆ setValue() [4/4]

ExceptionOr< void > WebCore::SVGLengthValue::setValue ( const SVGLengthContext context,
float  value,
SVGLengthMode  mode,
SVGLengthType  unitType 
)

◆ setValueAsString() [1/4]

ExceptionOr<void> WebCore::SVGLengthValue::setValueAsString ( const String )

◆ setValueAsString() [2/4]

ExceptionOr< void > WebCore::SVGLengthValue::setValueAsString ( const String string)

◆ setValueAsString() [3/4]

ExceptionOr<void> WebCore::SVGLengthValue::setValueAsString ( const String ,
SVGLengthMode   
)

◆ setValueAsString() [4/4]

ExceptionOr< void > WebCore::SVGLengthValue::setValueAsString ( const String valueAsString,
SVGLengthMode  mode 
)

◆ setValueInSpecifiedUnits() [1/2]

void WebCore::SVGLengthValue::setValueInSpecifiedUnits ( float  value)
inline

◆ setValueInSpecifiedUnits() [2/2]

void WebCore::SVGLengthValue::setValueInSpecifiedUnits ( float  value)
inline

◆ toCSSPrimitiveValue() [1/2]

Ref< CSSPrimitiveValue > WebCore::SVGLengthValue::toCSSPrimitiveValue ( const SVGLengthValue length)
static

◆ toCSSPrimitiveValue() [2/2]

static Ref<CSSPrimitiveValue> WebCore::SVGLengthValue::toCSSPrimitiveValue ( const SVGLengthValue )
static

◆ unitMode() [1/2]

SVGLengthMode WebCore::SVGLengthValue::unitMode ( ) const

◆ unitMode() [2/2]

SVGLengthMode WebCore::SVGLengthValue::unitMode ( ) const

◆ unitType() [1/2]

SVGLengthType WebCore::SVGLengthValue::unitType ( ) const

◆ unitType() [2/2]

SVGLengthType WebCore::SVGLengthValue::unitType ( ) const

◆ value() [1/2]

float WebCore::SVGLengthValue::value ( const SVGLengthContext ) const

◆ value() [2/2]

float WebCore::SVGLengthValue::value ( const SVGLengthContext context) const

◆ valueAsPercentage() [1/2]

float WebCore::SVGLengthValue::valueAsPercentage ( ) const

◆ valueAsPercentage() [2/2]

float WebCore::SVGLengthValue::valueAsPercentage ( ) const

◆ valueAsString() [1/2]

String WebCore::SVGLengthValue::valueAsString ( ) const

◆ valueAsString() [2/2]

String WebCore::SVGLengthValue::valueAsString ( ) const

◆ valueForBindings() [1/2]

ExceptionOr<float> WebCore::SVGLengthValue::valueForBindings ( const SVGLengthContext ) const

◆ valueForBindings() [2/2]

ExceptionOr< float > WebCore::SVGLengthValue::valueForBindings ( const SVGLengthContext context) const

◆ valueInSpecifiedUnits() [1/2]

float WebCore::SVGLengthValue::valueInSpecifiedUnits ( ) const
inline

◆ valueInSpecifiedUnits() [2/2]

float WebCore::SVGLengthValue::valueInSpecifiedUnits ( ) const
inline

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