Css.Keywords.SparkCenter Class Reference

Detailed Description

Same as -moz-center. Used by the center element.

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

Public Member Functions

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.CssKeyword
 CssKeyword ()
 
override string GetText (RenderableData context, CssProperty property)
 If this is a text value, e.g. "auto", the raw text value. More...
 
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 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...
 
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...
 
virtual bool GetBoolean (RenderableData context, CssProperty property)
 If this is a boolean, the raw bool value. 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 IEnumerator< ValueGetEnumerator ()
 
virtual ShapeProvider ToShape (SVGElement context, RenderContext renderer, out Css.Value value)
 Gets the shape that this CSS value represents. More...
 

Properties

override string Name [get]
 
- 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...
 

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 Member Functions inherited from Css.CssKeyword
override Value Clone ()
 Duplicates this value. 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...
 

Member Function Documentation

override float Css.Keywords.SparkCenter.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.

Property Documentation

override string Css.Keywords.SparkCenter.Name
get