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

#include <SVGLength.h>

Inheritance diagram for WebCore::SVGLength:
WebCore::SVGPropertyTearOff< SVGLengthValue > WebCore::SVGPropertyTearOffBase WebCore::SVGProperty WTF::RefCounted< SVGProperty > WTF::RefCounted< SVGProperty > WTF::RefCountedBase WTF::RefCountedBase WTF::RefCountedBase WTF::RefCountedBase WTF::RefCountedBase WTF::RefCountedBase

Public Types

enum  {
  SVG_LENGTHTYPE_UNKNOWN = LengthTypeUnknown, SVG_LENGTHTYPE_NUMBER = LengthTypeNumber, SVG_LENGTHTYPE_PERCENTAGE = LengthTypePercentage, SVG_LENGTHTYPE_EMS = LengthTypeEMS,
  SVG_LENGTHTYPE_EXS = LengthTypeEXS, SVG_LENGTHTYPE_PX = LengthTypePX, SVG_LENGTHTYPE_CM = LengthTypeCM, SVG_LENGTHTYPE_MM = LengthTypeMM,
  SVG_LENGTHTYPE_IN = LengthTypeIN, SVG_LENGTHTYPE_PT = LengthTypePT, SVG_LENGTHTYPE_PC = LengthTypePC
}
 
- Public Types inherited from WebCore::SVGPropertyTearOff< SVGLengthValue >
using PropertyType = SVGLengthValue
 
using Self = SVGPropertyTearOff< PropertyType >
 

Public Member Functions

unsigned short unitType ()
 
ExceptionOr< float > valueForBindings ()
 
ExceptionOr< voidsetValueForBindings (float value)
 
float valueInSpecifiedUnits ()
 
ExceptionOr< voidsetValueInSpecifiedUnits (float valueInSpecifiedUnits)
 
String valueAsString ()
 
ExceptionOr< voidsetValueAsString (const String &value)
 
ExceptionOr< voidnewValueSpecifiedUnits (unsigned short unitType, float valueInSpecifiedUnits)
 
ExceptionOr< voidconvertToSpecifiedUnits (unsigned short unitType)
 
- Public Member Functions inherited from WebCore::SVGPropertyTearOff< SVGLengthValue >
virtual PropertyTypepropertyReference ()
 
SVGAnimatedPropertyanimatedProperty () const
 
virtual void setValue (PropertyType &value)
 
void setAnimatedProperty (SVGAnimatedProperty *animatedProperty)
 
SVGElementcontextElement () const
 
void addChild (WeakPtr< SVGPropertyTearOffBase > child)
 
void detachWrapper () override
 
void commitChange () override
 
bool isReadOnly () const override
 
- Public Member Functions inherited from WebCore::SVGProperty
virtual ~SVGProperty ()
 
virtual ~SVGProperty ()
 
- Public Member Functions inherited from WTF::RefCounted< SVGProperty >
void deref () const
 
void deref () const
 
void deref () const
 
- Public Member Functions inherited from WTF::RefCountedBase
void ref () const
 
bool hasOneRef () const
 
unsigned refCount () const
 
void relaxAdoptionRequirement ()
 
void ref () const
 
bool hasOneRef () const
 
unsigned refCount () const
 
void relaxAdoptionRequirement ()
 
void ref () const
 
bool hasOneRef () const
 
unsigned refCount () const
 
void relaxAdoptionRequirement ()
 

Static Public Member Functions

static Ref< SVGLengthcreate (SVGAnimatedProperty &animatedProperty, SVGPropertyRole role, SVGLengthValue &value)
 
static Ref< SVGLengthcreate (const SVGLengthValue &initialValue={ })
 
static Ref< SVGLengthcreate (const SVGLengthValue *initialValue)
 
template<typename T >
static ExceptionOr< Ref< SVGLength > > create (ExceptionOr< T > &&initialValue)
 
- Static Public Member Functions inherited from WebCore::SVGPropertyTearOff< SVGLengthValue >
static Ref< Selfcreate (SVGAnimatedProperty &animatedProperty, SVGPropertyRole role, PropertyType &value)
 
static Ref< Selfcreate (const PropertyType &initialValue)
 
static Ref< Selfcreate (const PropertyType *initialValue)
 
static ExceptionOr< Ref< Self > > create (ExceptionOr< U > &&initialValue)
 

Additional Inherited Members

- Protected Member Functions inherited from WebCore::SVGPropertyTearOff< SVGLengthValue >
 SVGPropertyTearOff (SVGAnimatedProperty *animatedProperty, SVGPropertyRole role, PropertyType &value)
 
 SVGPropertyTearOff (const PropertyType &initialValue)
 
 SVGPropertyTearOff (const PropertyType *initialValue)
 
virtual ~SVGPropertyTearOff ()
 
void detachChildren ()
 
- Protected Member Functions inherited from WTF::RefCounted< SVGProperty >
 RefCounted ()
 
 RefCounted ()
 
 RefCounted ()
 
 ~RefCounted ()
 
 ~RefCounted ()
 
 ~RefCounted ()
 
- Protected Member Functions inherited from WTF::RefCountedBase
 RefCountedBase ()
 
 ~RefCountedBase ()
 
bool derefBase () const
 
bool deletionHasBegun () const
 
 RefCountedBase ()
 
 ~RefCountedBase ()
 
bool derefBase () const
 
bool deletionHasBegun () const
 
 RefCountedBase ()
 
 ~RefCountedBase ()
 
bool derefBase () const
 
bool deletionHasBegun () const
 
- Protected Attributes inherited from WebCore::SVGPropertyTearOff< SVGLengthValue >
RefPtr< SVGAnimatedPropertym_animatedProperty
 
SVGPropertyRole m_role
 
PropertyTypem_value
 
Vector< WeakPtr< SVGPropertyTearOffBase > > m_childTearOffs
 
bool m_valueIsCopy
 

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
SVG_LENGTHTYPE_UNKNOWN 
SVG_LENGTHTYPE_NUMBER 
SVG_LENGTHTYPE_PERCENTAGE 
SVG_LENGTHTYPE_EMS 
SVG_LENGTHTYPE_EXS 
SVG_LENGTHTYPE_PX 
SVG_LENGTHTYPE_CM 
SVG_LENGTHTYPE_MM 
SVG_LENGTHTYPE_IN 
SVG_LENGTHTYPE_PT 
SVG_LENGTHTYPE_PC 

Member Function Documentation

◆ convertToSpecifiedUnits()

ExceptionOr<void> WebCore::SVGLength::convertToSpecifiedUnits ( unsigned short  unitType)
inline

◆ create() [1/4]

static Ref<SVGLength> WebCore::SVGLength::create ( SVGAnimatedProperty animatedProperty,
SVGPropertyRole  role,
SVGLengthValue value 
)
inlinestatic

◆ create() [2/4]

static Ref<SVGLength> WebCore::SVGLength::create ( const SVGLengthValue initialValue = { })
inlinestatic

◆ create() [3/4]

static Ref<SVGLength> WebCore::SVGLength::create ( const SVGLengthValue initialValue)
inlinestatic

◆ create() [4/4]

template<typename T >
static ExceptionOr<Ref<SVGLength> > WebCore::SVGLength::create ( ExceptionOr< T > &&  initialValue)
inlinestatic

◆ newValueSpecifiedUnits()

ExceptionOr<void> WebCore::SVGLength::newValueSpecifiedUnits ( unsigned short  unitType,
float  valueInSpecifiedUnits 
)
inline

◆ setValueAsString()

ExceptionOr<void> WebCore::SVGLength::setValueAsString ( const String value)
inline

◆ setValueForBindings()

ExceptionOr<void> WebCore::SVGLength::setValueForBindings ( float  value)
inline

◆ setValueInSpecifiedUnits()

ExceptionOr<void> WebCore::SVGLength::setValueInSpecifiedUnits ( float  valueInSpecifiedUnits)
inline

◆ unitType()

unsigned short WebCore::SVGLength::unitType ( )
inline

◆ valueAsString()

String WebCore::SVGLength::valueAsString ( )
inline

◆ valueForBindings()

ExceptionOr<float> WebCore::SVGLength::valueForBindings ( )
inline

◆ valueInSpecifiedUnits()

float WebCore::SVGLength::valueInSpecifiedUnits ( )
inline

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