Represents the linear-gradient css function.
Public Member Functions | |
| LinearGradientFunction () | |
| override ImageFormat | GetImage (Css.RenderableData context, CssProperty property) |
| Gets the image. More... | |
| override string[] | GetNames () |
| The set of all function names that this one will handle. Usually just one. Lowercase. e.g. "rgb", "rgba". More... | |
Public Member Functions inherited from Css.CssFunction | |
| override string | ToString () |
Public Member Functions inherited from Css.ValueSet | |
| ValueSet () | |
| void | Add (Value val) |
| Adds the given value to the set. More... | |
| ValueSet (int count) | |
| ValueSet (Value[] s) | |
| 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 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 string | ToString () |
| override IEnumerator< Value > | GetEnumerator () |
| override bool | Equals (Value value) |
| Checks if two values are equal. More... | |
| Value[] | CopyInnerValues () |
Static Public Member Functions | |
| static float | LoadAngle (Css.Value value) |
| Attempts to load an angle from the given CSS value. More... | |
| static Gradient2D | LoadGradient (int firstColour, Css.ValueSet parameters, bool autoRepeat) |
| Loads a gradient from a set of stops in the given parameters. More... | |
Public Attributes | |
| const int | Resolution =50 |
| Standard resolution of gradients, in pixels. More... | |
| SparkSpecialImageFormat | Image |
| The computed gradient image. More... | |
| float | Angle |
| The angle. More... | |
Public Attributes inherited from Css.CssFunction | |
| bool | LiteralValue |
| True if this functions value should be read literally. More... | |
| string | Name |
| The main name of this function. Originates from the first result returned by GetNames. More... | |
Public Attributes inherited from Css.ValueSet | |
| string | Spacer =" " |
| The spacer for this value set. More... | |
Protected Member Functions | |
| override Css.Value | Clone () |
| Duplicates this value. More... | |
Private Attributes | |
| const float | Fourty5Deg =(float)Math.PI / 4f |
| 45 degrees in rad. More... | |
Additional Inherited Members | |
Protected Attributes inherited from Css.Value | |
| ValueType | Type_ =ValueType.Null |
| The type of value this is. More... | |
Package Attributes inherited from Css.ValueSet | |
| Value[] | Values |
| The set of internal values, such as each individual value of padding. More... | |
Static Package Attributes inherited from Css.Value | |
| static readonly Value | Empty =new Units.DecimalUnit(0) |
| Represents an empty value. More... | |
Properties inherited from Css.CssFunction | |
| override bool | IsFunction [get] |
| override string | Identifier [get] |
|
inline |
|
inlineprotectedvirtual |
Duplicates this value.
Reimplemented from Css.Value.
|
inline |
Gets the image.
|
inlinevirtual |
The set of all function names that this one will handle. Usually just one. Lowercase. e.g. "rgb", "rgba".
Reimplemented from Css.CssFunction.
|
inlinestatic |
Attempts to load an angle from the given CSS value.
|
inlinestatic |
Loads a gradient from a set of stops in the given parameters.
| float Css.Functions.LinearGradientFunction.Angle |
The angle.
|
private |
45 degrees in rad.
| SparkSpecialImageFormat Css.Functions.LinearGradientFunction.Image |
The computed gradient image.
| const int Css.Functions.LinearGradientFunction.Resolution =50 |
Standard resolution of gradients, in pixels.