Detailed Description

A CSS keyword. You can create custom ones by deriving from this class. Note that they are instanced globally and locally.

Inheritance diagram for Css.CssKeyword:
Css.Value Css.After Css.Before Css.FirstLetter Css.IsChecked Css.IsDefault Css.IsDisabled Css.IsEmpty Css.IsEnabled Css.IsFirstChild Css.IsFocused Css.IsFullscreen Css.IsHover Css.IsIndeterminate Css.IsInRange Css.IsInvalid Css.IsLastChild Css.IsLeft Css.IsLink Css.IsMainUI Css.IsOnlyChild Css.IsOptional Css.IsOutOfRange Css.IsReadWrite Css.IsRequired Css.IsRight Css.IsRoot Css.IsScope Css.IsTarget Css.IsValid Css.IsVisited Css.IsWorldUI Css.Keywords.Absolute Css.Keywords.Auto Css.Keywords.Baseline Css.Keywords.Bevel Css.Keywords.Block Css.Keywords.Bold Css.Keywords.Bolder Css.Keywords.Both Css.Keywords.Bottom Css.Keywords.BreakWord Css.Keywords.Butt Css.Keywords.Capitalize Css.Keywords.Center Css.Keywords.CloseQuote Css.Keywords.Collapse Css.Keywords.Condensed Css.Keywords.Contents Css.Keywords.CoverKeyword Css.Keywords.CurrentColor Css.Keywords.Dashed Css.Keywords.Disc Css.Keywords.Ease Css.Keywords.EaseIn Css.Keywords.EaseInOut Css.Keywords.EaseOut Css.Keywords.Ellipsis Css.Keywords.End Css.Keywords.Even Css.Keywords.Expanded Css.Keywords.ExtraCondensed Css.Keywords.ExtraExpanded Css.Keywords.FalseKeyword Css.Keywords.Fixed Css.Keywords.Flex Css.Keywords.Flow Css.Keywords.FlowRoot Css.Keywords.Grid Css.Keywords.Hidden Css.Keywords.HistoricalForms Css.Keywords.ImportantKeyword Css.Keywords.Inherit Css.Keywords.Initial Css.Keywords.Inline Css.Keywords.InlineBlock Css.Keywords.InlineEnd Css.Keywords.InlineFlex Css.Keywords.InlineListItem Css.Keywords.InlineStart Css.Keywords.InlineTable Css.Keywords.IsActive Css.Keywords.Italic Css.Keywords.Justify Css.Keywords.Large Css.Keywords.Larger Css.Keywords.Left Css.Keywords.Lighter Css.Keywords.Linear Css.Keywords.LineThrough Css.Keywords.ListItem Css.Keywords.Lowercase Css.Keywords.Ltr Css.Keywords.Medium Css.Keywords.Middle Css.Keywords.Miter Css.Keywords.None Css.Keywords.Normal Css.Keywords.NoWrap Css.Keywords.Oblique Css.Keywords.Odd Css.Keywords.OpenQuote Css.Keywords.Overline Css.Keywords.Pre Css.Keywords.PreLine Css.Keywords.PreWrap Css.Keywords.Relative Css.Keywords.Right Css.Keywords.Round Css.Keywords.Rtl Css.Keywords.Ruby Css.Keywords.RubyBase Css.Keywords.RubyBaseContainer Css.Keywords.RubyText Css.Keywords.RubyTextContainer Css.Keywords.RunIn Css.Keywords.Scroll Css.Keywords.SemiCondensed Css.Keywords.SemiExpanded Css.Keywords.Small Css.Keywords.Smaller Css.Keywords.Solid Css.Keywords.SparkAbsolute Css.Keywords.SparkAbsoluteFixed Css.Keywords.SparkCenter Css.Keywords.SparkClassSpecifity Css.Keywords.SparkIDSpecifity Css.Keywords.SparkTagSpecifity Css.Keywords.Square Css.Keywords.Start Css.Keywords.Static Css.Keywords.StepEnd Css.Keywords.StepStart Css.Keywords.Sticky Css.Keywords.Sub Css.Keywords.Super Css.Keywords.Table Css.Keywords.TableBottom Css.Keywords.TableCaption Css.Keywords.TableCell Css.Keywords.TableColumn Css.Keywords.TableColumnGroup Css.Keywords.TableFooterGroup Css.Keywords.TableHeaderGroup Css.Keywords.TableMiddle Css.Keywords.TableRow Css.Keywords.TableRowGroup Css.Keywords.TableTop Css.Keywords.TextBottom Css.Keywords.TextTop Css.Keywords.Thick Css.Keywords.Thin Css.Keywords.Top Css.Keywords.TrueKeyword Css.Keywords.UltraCondensed Css.Keywords.UltraExpanded Css.Keywords.Underline Css.Keywords.Uppercase Css.Keywords.Visible Css.Keywords.XLarge Css.Keywords.XSmall Css.Keywords.XXLarge Css.Keywords.XXSmall Css.Marker Css.MathMLAnonymousBlock Css.OnlyOfType

Public Member Functions

 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...
 
virtual float GetDecimal (RenderableData context, CssProperty property)
 If this is a decimal, the raw decimal value. This is generally the main output. 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...
 

Protected Member Functions

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

Properties

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 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.CssKeyword.CssKeyword ( )
inline

Member Function Documentation

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

Reimplemented in Css.Keywords.Inherit, Css.Keywords.Initial, Css.Keywords.HistoricalForms, Css.Keywords.CloseQuote, and Css.Keywords.OpenQuote.

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

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

Reimplemented from Css.Value.

Reimplemented in Css.Keywords.Inherit, Css.Keywords.Initial, Css.Keywords.CloseQuote, Css.Keywords.OpenQuote, and Css.Keywords.Ellipsis.

override string Css.CssKeyword.ToString ( )
inline

Property Documentation

virtual string Css.CssKeyword.Name
get

The keyword itself. E.g. auto etc.