Detailed Description

Represents an instance of the inherit keyword.

Inheritance diagram for Css.Keywords.Inherit:
Css.CssKeyword Css.Value

Public Member Functions

 Inherit ()
 Note that you'll need to ensure ReEvaluate is called if you use this. Only the parser uses this one (via reflection during load). More...
 
 Inherit (CssProperty property, int specifity)
 Optionally set a specifity. More...
 
 Inherit (CssProperty property)
 
 Inherit (Node context, CssProperty property)
 
void SetProperty (CssProperty prop)
 Updates the property which is used as a fallback if there is nothing to inherit from. More...
 
void SetFrom (RenderableData context, Css.Value value)
 Updates the value that is being inherited. If you don't have the value available then use ReEvaluate. More...
 
override bool IsType (Type type)
 Checks if this is a particular type. Note that this is always false for inherit/ initial (as they pass the type through them). More...
 
Css.Value FromCopy ()
 Copies the inherited value. If from is a set, this returns a set of inherit values. More...
 
Css.Value SetCopy ()
 A special variant of clone which checks if the inherited value is a set (and if it is a set, this returns a set of inherits). More...
 
void ReEvaluate (Node context, CssProperty property)
 
override float GetDecimal (RenderableData context, CssProperty property)
 If this is a decimal, the raw decimal value. This is generally the main output. 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 IEnumerator< ValueGetEnumerator ()
 
- Public Member Functions inherited from Css.CssKeyword
 CssKeyword ()
 
override string ToString ()
 
- Public Member Functions inherited from Css.Value
virtual Loonim.TextureNode ToLoonimNode (RenderableData context)
 Converts this to a Loonim node. More...
 
virtual void GetOpenTypeFeatures (TextRenderingProperty trp, List< OpenTypeFeature > features)
 
 Value ()
 Creates a new empty value. More...
 
Value GetByType (ValueType type)
 Some CSS values are sets of entries. This attempts to select the first entry of the given type. More...
 
virtual Value ReadStartValue (CssLexer lexer)
 When a unit declares that it has a start identifier, such as #, this reads the rest of it's value. More...
 
Value GetByTypes (params ValueType[] types)
 Some CSS values are sets of entries. This attempts to select the first entry of the given type. More...
 
Value GetEntryWithoutAttribute (string funcName)
 Some CSS values are sets of entries. This attempts to select the entry without the named attribute. More...
 
Value GetEntryWithAttribute (string funcName, params string[] values)
 Some CSS values are sets of entries. This attempts to select the entry which has an attribute which matches one of the given values. More...
 
void SetSpecifity (int val)
 Sets the specifity for this and all child values. More...
 
void SetImportant (bool important)
 Sets this and all child values as being important. More...
 
virtual 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...
 
Value Copy ()
 Copies this value. More...
 
virtual float GetRawDecimal ()
 Obtains the underlying decimal value, if there is one. More...
 
virtual void SetRawDecimal (float value)
 Sets a raw decimal value to this object. Used by the animation system. More...
 
float GetDecimal (RenderableData context, ValueAxis axis)
 If this is a decimal, the raw decimal value. This is generally the main output. This overload explicitly tells it to use the vertical axis or not (e.g. when resolving %). More...
 
float GetDecimal (RenderableData context, bool verticalAxis)
 If this is a decimal, the raw decimal value. This is generally the main output. This overload explicitly tells it to use the vertical axis or not (e.g. when resolving %). More...
 
int GetInteger (RenderableData context, CssProperty property)
 If this is a pixel integer, the raw pixel value. More...
 
virtual bool Equals (Value value)
 Checks if two values are equal. More...
 
ValueSet ToSet ()
 Make this value a set. If it is already a set, the value is returned unchanged. Otherwise, a set of 1 is created. More...
 
Vector3 GetVector (RenderableData context, CssProperty property)
 Converts this value to a Unity Vector3. More...
 
Quaternion GetQuaternion (RenderableData context, CssProperty property)
 Converts this value to a Unity Quaternion. More...
 
virtual ImageFormat GetImage (RenderableData context, CssProperty property)
 Gets the value as an image, if it is one. More...
 
virtual SelectorMatcher GetSelectorMatcher ()
 Converts this value into a suitable selector matcher. Typically either a local matcher or a structural one. More...
 
virtual Blaze.VectorPath GetPath (RenderableData context, CssProperty property)
 Gets this value as a vector path (or null if it isn't one). More...
 
Color GetColour ()
 Converts this value to a context-free Unity colour. More...
 
Color GetColour (RenderableData context, CssProperty property)
 Converts this value to a Unity colour. More...
 
bool FunctionalEquals (Css.Value other)
 Checks if this is the same set of one or more functions as the other value. Note that this only checks if they are the same functions in the same order. It's not a complete equiv check (and its used by the animation system to interpolate CSS transform). More...
 
override string ToString ()
 Converts this value to a css useable string. More...
 
bool AllSameValues ()
 Are all entries in this rectangle the same? More...
 
virtual ShapeProvider ToShape (SVGElement context, RenderContext renderer, out Css.Value value)
 Gets the shape that this CSS value represents. More...
 

Protected Member Functions

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

Properties

Css.Value From [get]
 The object being inherited from. Note that this is never null. More...
 
override Css.Value Computed [get]
 Resolves through e.g. inherit and initial. More...
 
override bool IsAuto [get]
 Checks if this is the 'auto' keyword More...
 
override string HexString [get]
 Converts this value into a hex string that is 2 characters long. More...
 
override bool IsInherit [get]
 
override string Name [get]
 
override int Count [get, set]
 
override Value this[int index] [get, set]
 
- Properties inherited from Css.CssKeyword
virtual string Name [get]
 The keyword itself. E.g. auto etc. More...
 
- Properties inherited from Css.Value
ValueType Type [get, set]
 
bool IsCommaArray [get]
 Checks if this value is a,comma,array. More...
 
virtual bool IsFunction [get]
 Checks if this is a function. More...
 
virtual bool IsAuto [get]
 Checks if this is the 'auto' keyword More...
 
virtual bool IsColour [get]
 Checks if this is a suitable colour. More...
 
virtual bool IsCached [get]
 True if this is a 'cached' value. See CachedIntegerUnit. More...
 
virtual Css.Value CachedOrigin [get]
 The original value of a cached object. More...
 
virtual bool IsAbsolute [get]
 Checks if this is an absolute value and is not a percentage/em/ rectangle containing percents. More...
 
virtual string Identifier [get]
 Used for locating e.g. a function contained within a set. More...
 
string Hash [get]
 Text is e.g. "afile.svg#something". This is either 'something' or null. More...
 
string Text [get]
 Gets context-free text such as font family names. More...
 
virtual int Count [get, set]
 The number of internal values. More...
 
virtual Value this[int index] [get, set]
 
virtual Value this[string index] [get, set]
 
virtual bool IsInherit [get]
 Is this an inheriting value? More...
 
virtual Css.Value Computed [get]
 Resolves through e.g. inherit and initial. More...
 
virtual string HexString [get]
 Converts this value into a hex string that is 2 characters long. More...
 

Private Member Functions

void Readonly ()
 

Private Attributes

Css.Value From_
 The object being inherited from. Note that this is never null. More...
 
RenderableData Context
 The context it's being inherited from. More...
 
CssProperty Property
 The property that is inheriting. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from Css.Value
static Css.Value Load (string text)
 
- Public Attributes inherited from Css.Value
bool Important
 True if this value is important. More...
 
int Specifity =1<<28
 How specific this value is. A low specifity value should never overwrite a high specifity one. By default it's a very high specifity (but not so high that it overflows if it's "important"!) More...
 
- 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...
 

Constructor & Destructor Documentation

Css.Keywords.Inherit.Inherit ( )
inline

Note that you'll need to ensure ReEvaluate is called if you use this. Only the parser uses this one (via reflection during load).

Css.Keywords.Inherit.Inherit ( CssProperty  property,
int  specifity 
)
inline

Optionally set a specifity.

Css.Keywords.Inherit.Inherit ( CssProperty  property)
inline
Css.Keywords.Inherit.Inherit ( Node  context,
CssProperty  property 
)
inline

Member Function Documentation

override Value Css.Keywords.Inherit.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.CssKeyword.

Css.Value Css.Keywords.Inherit.FromCopy ( )
inline

Copies the inherited value. If from is a set, this returns a set of inherit values.

override bool Css.Keywords.Inherit.GetBoolean ( RenderableData  context,
CssProperty  property 
)
inlinevirtual

If this is a boolean, the raw bool value.

Reimplemented from Css.Value.

override float Css.Keywords.Inherit.GetDecimal ( RenderableData  context,
CssProperty  property 
)
inlinevirtual

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

Reimplemented from Css.Value.

override IEnumerator<Value> Css.Keywords.Inherit.GetEnumerator ( )
inlinevirtual

Reimplemented from Css.Value.

override string Css.Keywords.Inherit.GetText ( RenderableData  context,
CssProperty  property 
)
inlinevirtual

If this is a text value, e.g. "auto", the raw text value.

Reimplemented from Css.CssKeyword.

override bool Css.Keywords.Inherit.IsType ( Type  type)
inlinevirtual

Checks if this is a particular type. Note that this is always false for inherit/ initial (as they pass the type through them).

Returns
True if this value is of the given type.

Reimplemented from Css.Value.

void Css.Keywords.Inherit.Readonly ( )
inlineprivate
void Css.Keywords.Inherit.ReEvaluate ( Node  context,
CssProperty  property 
)
inline
Css.Value Css.Keywords.Inherit.SetCopy ( )
inline

A special variant of clone which checks if the inherited value is a set (and if it is a set, this returns a set of inherits).

void Css.Keywords.Inherit.SetFrom ( RenderableData  context,
Css.Value  value 
)
inline

Updates the value that is being inherited. If you don't have the value available then use ReEvaluate.

void Css.Keywords.Inherit.SetProperty ( CssProperty  prop)
inline

Updates the property which is used as a fallback if there is nothing to inherit from.

Member Data Documentation

RenderableData Css.Keywords.Inherit.Context
private

The context it's being inherited from.

Css.Value Css.Keywords.Inherit.From_
private

The object being inherited from. Note that this is never null.

CssProperty Css.Keywords.Inherit.Property
private

The property that is inheriting.

Property Documentation

override Css.Value Css.Keywords.Inherit.Computed
get

Resolves through e.g. inherit and initial.

override int Css.Keywords.Inherit.Count
getset
Css.Value Css.Keywords.Inherit.From
get

The object being inherited from. Note that this is never null.

override string Css.Keywords.Inherit.HexString
get

Converts this value into a hex string that is 2 characters long.

override bool Css.Keywords.Inherit.IsAuto
get

Checks if this is the 'auto' keyword

Returns
True if this value is 'auto'.
override bool Css.Keywords.Inherit.IsInherit
get
override string Css.Keywords.Inherit.Name
get
override Value Css.Keywords.Inherit.this[int index]
getset