class
Styles
public class Styles : BaseStyles Represents all supported CSS properties and their currently assigned values.
Constructors
Styles() Properties
| Name | Type | Description |
|---|---|---|
HasTransitions | Boolean | Whether this style sheet has any transitions that would need to be run. |
Padding | Length? | |
Margin | Length? | |
BorderWidth | Length? | |
BorderColor | Color? | |
HasBorder | Boolean |
Methods
Void ResetAnimation() Stops the animation. If we have animation vars we'll start again.
Void StartAnimation(String name, Single duration, Int32 iterations = 1, Single delay = 0, String timing = linear, String direction = normal, String fillmode = none) Stop any previous animations and start this one. Make it last this long.
Boolean ApplyAnimation(Panel panel) virtual Void Dirty() Boolean Set(String styles) Matrix BuildTransformMatrix(Vector2 size) Creates a matrix based on this style's "transform" and other related properties
virtual Void LerpProperty(String name, BaseStyles from, BaseStyles to, Single delta) virtual Void FromLerp(BaseStyles from, BaseStyles to, Single delta) virtual Void Add(BaseStyles bs) virtual Void From(BaseStyles bs) Void ApplyScale(Single scale) virtual Boolean Set(String property, String value) Fields
| Name | Type | Description |
|---|---|---|
Transitions | TransitionList | List of transitions this style sheet has. |
BoxShadow | ShadowList | |
TextShadow | ShadowList | |
FilterDropShadow | ShadowList | |
Default static | Styles |