Css.Units.ViewPortWidthUnit Class Reference

Detailed Description

Represents an instance of a viewport relative value, e.g. vw.

Inheritance diagram for Css.Units.ViewPortWidthUnit:
Css.Units.ViewPortUnit Css.Units.DecimalUnit Css.CssUnit Css.Value

Public Member Functions

override string ToString ()
 
override void OnValueReady (CssLexer lexer)
 Called after a value has been loaded from the stream. Functions etc get it too. This is used to, for example, map a value to a faster internal representation. More...
 
override float GetDecimal (RenderableData context, CssProperty property)
 If this is a decimal, the raw decimal value. This is generally the main output. More...
 
- Public Member Functions inherited from Css.Units.ViewPortUnit
 ViewPortUnit ()
 
- Public Member Functions inherited from Css.Units.DecimalUnit
 DecimalUnit (float value)
 
 DecimalUnit ()
 
override bool Equals (Value value)
 Checks if two values are equal. More...
 
override void SetRawDecimal (float value)
 Sets a raw decimal value to this object. Used by the animation system. More...
 
override float GetRawDecimal ()
 Obtains the underlying decimal value, if there is one. More...
 
override string GetText (RenderableData context, CssProperty property)
 If this is a text value, e.g. "auto", the raw text value. More...
 
override bool GetBoolean (RenderableData context, CssProperty property)
 If this is a boolean, the raw bool value. More...
 
override string ToString ()
 

Protected Member Functions

override Value Clone ()
 Duplicates this value. More...
 

Properties

override float DisplayNumber [get]
 
override string[] PostText [get]
 

Additional Inherited Members

- Static Public Member Functions inherited from Css.Value
static Css.Value Load (string text)
 
- Public Attributes inherited from Css.Units.DecimalUnit
float RawValue
 
- Protected Attributes inherited from Css.Value
ValueType Type_ =ValueType.Null
 The type of value this is. More...
 
- Static Package Attributes inherited from Css.Value
static readonly Value Empty =new Units.DecimalUnit(0)
 Represents an empty value. More...
 

Member Function Documentation

override Value Css.Units.ViewPortWidthUnit.Clone ( )
inlineprotectedvirtual

Duplicates this value.

Returns
A duplicated copy of this value. Note that if this value has inner values, they are copied too.

Reimplemented from Css.Units.ViewPortUnit.

override float Css.Units.ViewPortWidthUnit.GetDecimal ( RenderableData  context,
CssProperty  property 
)
inlinevirtual

If this is a decimal, the raw decimal value. This is generally the main output.

Reimplemented from Css.Units.DecimalUnit.

override void Css.Units.ViewPortWidthUnit.OnValueReady ( CssLexer  lexer)
inlinevirtual

Called after a value has been loaded from the stream. Functions etc get it too. This is used to, for example, map a value to a faster internal representation.

Reimplemented from Css.Value.

override string Css.Units.ViewPortWidthUnit.ToString ( )
inline

Property Documentation

override float Css.Units.ViewPortWidthUnit.DisplayNumber
get
override string [] Css.Units.ViewPortWidthUnit.PostText
get