Css.Properties.BBox Class Reference

Detailed Description

Represents the bbox: css property.

Inheritance diagram for Css.Properties.BBox:
Css.CssProperty

Public Member Functions

 BBox ()
 
override string[] GetProperties ()
 The set of all properties that this one will handle. Usually just one. e.g. "v-align", "vertical-align". More...
 
override ApplyState Apply (ComputedStyle style, Value value)
 Apply this CSS style to the given computed style. Note that you can grab the element from the computed style if you need that. More...
 
- Public Member Functions inherited from Css.CssProperty
virtual float GetNormalValue (RenderableData context)
 The value of the 'normal' keyword. More...
 
CssProperty GetAliased (int index)
 Gets the aliased property for the given index. E.g. color-r is index 0 of color. More...
 
CssProperty GetAliased (int index, bool orThis)
 Gets the aliased property for the given index. E.g. color-r is index 0 of color. More...
 
virtual void Aliases ()
 The set of aliases for this property. For example, the border-radius property can declare an alias of border-top-left which maps to e.g. "1", i.e. the first inner index. More...
 
virtual void ApplyText (TextRenderingProperty text, RenderableData data, ComputedStyle style, Value value)
 Apply this CSS style to the given computed style. Note that you can grab the element from the computed style if you need that. More...
 
virtual void OnReadValue (Style styleBlock, Css.Value value)
 Called when a value is read from the CSS stream. More...
 
virtual Css.Value GetValue (Style styleBlock)
 Called to get a this properties value from the given style. This exists as it may be an alias property. More...
 
Css.Value GetOrCreateValue (Node context, Style styleBlock, bool allowInherit)
 Called to get a this properties value from the given style. This overload should not be used with alias properties - it always returns the 'host' value. More...
 
virtual Css.Value GetOrCreateValue (Node context, Style styleBlock, bool allowInherit, out Css.Value hostValue)
 Called to get a this properties value from the given style. This exists as it may be an alias property. More...
 
void Reapply (ComputedStyle computed, string propertyName)
 Causes the named property to apply its value. More...
 
void Reapply (ComputedStyle style, CssProperty property)
 Sets the named css property from the given style if the property exists in the style. More...
 
BackgroundImage GetBackground (ComputedStyle style)
 Call this if the current property requires a background image object. More...
 
BorderProperty GetBorder (ComputedStyle style)
 Call this if the current property requies a border object. More...
 
TextRenderingProperty GetText (ComputedStyle style)
 Call this if the current property requires a text object. NOTE: This one may be null. More...
 
TextRenderingProperty3D GetText3D (ComputedStyle style)
 Call this if the current property requires a text object. NOTE: This one may be null. More...
 

Additional Inherited Members

- Public Attributes inherited from Css.CssProperty
int SetSize
 If this property is a known set, the size of the set. This is automatically computed from aliases. More...
 
string Name
 The main property name. Some properties use multiple names (e.g. content and inner-text). More...
 
bool IsAlias
 True if this is an alias. More...
 
bool IsTextual
 Does this css property apply to text? E.g. font-size, color etc. More...
 
string NamespaceName
 Set if this property comes from some other namespace (e.g. "svg"). More...
 
ValueAxis Axis =ValueAxis.None
 True if this property occurs along the x axis. E.g. width, left, right. More...
 
ValueRelativity RelativeTo =ValueRelativity.Dimensions
 What is this property relative to? Most of the time, they're relative to dimensions (e.g. 100% of width). More...
 
bool IsWidthOrHeight
 True if this is width or height only. More...
 
List< CssPropertyAliasedProperties
 The properties that are aliased to this one. For example, color-r is aliased to color. More...
 
bool Inherits
 True if this property inherits. Defaults to false. More...
 
Css.Value InitialValue =NONE
 The initial value for this property. Defaults to a decimal 0 (equiv of 'none' or just '0'). More...
 
- Protected Member Functions inherited from Css.CssProperty
virtual Css.Spec.Value GetSpecification ()
 Loads the values spec. More...
 
void ColourAliases (string property, ValueAxis axis, int index)
 Loads a set of colour aliases for a given property name. E.g. name-r,name-g,name-b and name-a. The alias may also be mapped to a sub-index. It must be an empty string otherwise. More...
 
void SquareAliases (string property, int index)
 Loads a set of square aliases. E.g. name-top or name-bottom. More...
 
void ColourAliases ()
 Loads a set of colour aliases. E.g. name-r,name-g,name-b and name-a. More...
 
void PointAliases2D ()
 Loads a set of point aliases. E.g. name-x, name-y and name-z. More...
 
void PointAliases3D ()
 Loads a set of point aliases. E.g. name-x, name-y and name-z. More...
 
void SquareAliases ()
 Loads a set of square aliases. E.g. name-top or name-bottom. More...
 
void LogicalAlias (string name, ValueAxis axis, params int[] target)
 Adds a logical alias for the given CSS property to the given target. A numeric target, e.g. 1, means that inner index of this property, which is a set. More...
 
void Alias (string name, ValueAxis axis, params int[] target)
 Adds an alias for the given CSS property to the given target. A numeric target, e.g. 1, means that inner index of this property, which is a set. More...
 
- Static Package Attributes inherited from Css.CssProperty
static Css.Value NONE =new Css.Keywords.None()
 Shared default values. More...
 
static Css.Value ZERO =new Css.Units.DecimalUnit(0)
 
static Css.Value AUTO =new Css.Keywords.Auto()
 
- Properties inherited from Css.CssProperty
bool HasAliases [get]
 True if this property has aliases. More...
 
Css.Spec.Value Specification [get]
 The specification for this properties value. More...
 
virtual bool Internal [get]
 True if this property is for internal use only. More...
 
virtual bool NonStandard [get]
 True if this property is specific to Spark. More...
 
string InitialValueText [set]
 A convenience property for setting up initial values. More...
 

Constructor & Destructor Documentation

Css.Properties.BBox.BBox ( )
inline

Member Function Documentation

override ApplyState Css.Properties.BBox.Apply ( ComputedStyle  style,
Value  value 
)
inlinevirtual

Apply this CSS style to the given computed style. Note that you can grab the element from the computed style if you need that.

Parameters
styleThe computed style to apply the property to.
valueThe new value being applied.

Reimplemented from Css.CssProperty.

override string [] Css.Properties.BBox.GetProperties ( )
inlinevirtual

The set of all properties that this one will handle. Usually just one. e.g. "v-align", "vertical-align".

Reimplemented from Css.CssProperty.