Handles all actively animated css properties. Also keeps track of a single set of css properties as used in any animate method (PowerUI.Element.animate) and can be used to monitor the progress of an animation.
Public Member Functions | |
| UIAnimation (Element animating, string properties, float constantSpeedTime, float timeToAccelerateFor, float timeToDecelerateFor) | |
| Creates a new UIAnimation for animating CSS and immediately animates it. See PowerUI.Element.animate. More... | |
| void | Finished () |
| Called when this animation is finished. More... | |
| void | OnDone (DynamicMethod< Nitro.Void > method) |
| Calls the given function when the animation is over. More... | |
| void | OnDone (AnimationCompleted onComplete) |
| Calls the given delegate when the animation is over. More... | |
| void | Stop () |
| Call this to halt the animation early. This internally will cause the finished event to run. More... | |
| void | Stop (bool runEvent) |
| Call this to halt the animation early. More... | |
Static Public Member Functions | |
| static void | Clear () |
| Removes all active animations. More... | |
| static void | Update () |
| Called at the UI update rate to progress the currently animated properties. More... | |
| static AnimatedProperty | GetAnimatedProperty (Element animating, string property) |
| Searches the current animated properties for the named property on the given element. More... | |
| static AnimatedProperty | GetAnimatedProperty (Element animating, CssProperty property, int innerIndex) |
| Searches the current animated properties for the named property on the given element. More... | |
Public Attributes | |
| object | Data |
| A custom data object. More... | |
| bool | Decelerate |
| True if this animation decelerates. More... | |
| float | TotalTime |
| The total time in seconds that this animation lasts for. More... | |
| Element | Animating |
| The element being animated. More... | |
| float | DecelerateAt |
| The time in seconds to begin decelerating at. More... | |
| float | ConstantSpeedTime |
| The time in seconds that the animation should remain at a constant speed for. More... | |
| UIAnimation | NextAnimation |
| All current animations are stored in a linked list. This is the next one. More... | |
| ElementStyle | ElementStyle |
| A shortcut to the element style object. More... | |
| float | TimeToAccelerateFor |
| The time in seconds that this animation should accelerate for. More... | |
| float | TimeToDecelerateFor |
| The time in seconds that this animation should decelerate for. More... | |
| AnimationCompleted | OnComplete |
| The method to call (a c# or JS method) when the animation is done playing. More... | |
| DynamicMethod< Nitro.Void > | Done |
| The dynamic method (a nitro function) to call when this animation is done. More... | |
Static Public Attributes | |
| static AnimatedProperty | LastProperty |
| Actively animated properties are stored in a linked list. This is the tail of that list. More... | |
| static AnimatedProperty | FirstProperty |
| Actively animated properties are stored in a linked list. This is the head of that list. More... | |
Private Member Functions | |
| void | AnimateComposite (CssProperty property, Css.Value value) |
| void | Animate (CssProperty property, int innerIndex, Css.Value value, bool updateCss) |
| Starts animating the named property and target value. Must not be composite properties. (e.g. color-overlay-r instead of color-overlay) More... | |
Private Attributes | |
| bool | FinishedPlaying |
| True if this animation has finished; false otherwise. More... | |
|
inline |
Creates a new UIAnimation for animating CSS and immediately animates it. See PowerUI.Element.animate.
| animating | The element being animated. |
| properties | The CSS property string. Each property should define the value it will be when the animation is done. |
| constantSpeedTime | How long this animation lasts for at a constant speed. |
| timeToAccelerateFor | How long this animation accelerates for. Creates smooth animations when used. |
| timeToDecelerateFor | How long this animation decelerates for. Creates smooth animations when used. |
|
inlineprivate |
Starts animating the named property and target value. Must not be composite properties. (e.g. color-overlay-r instead of color-overlay)
| property | The property to update. |
| innerIndex | The inner index of the property to update. |
| value | The target value of the property. |
| updateCss | True if this property should update CSS/ the screen when it's progressed. |
|
inlineprivate |
|
inlinestatic |
Removes all active animations.
|
inline |
Called when this animation is finished.
|
inlinestatic |
Searches the current animated properties for the named property on the given element.
| animating | The element being animated. |
| property | The CSS property to look for. Note: Must not be a composite property such as color-overlay. Must be a full property such as color-overlay-r. |
|
inlinestatic |
Searches the current animated properties for the named property on the given element.
| animating | The element being animated. |
| property | The CSS property to look for. Note: Must not be a composite property such as color-overlay. Must be a full property such as color-overlay-r. |
|
inline |
Calls the given function when the animation is over.
|
inline |
Calls the given delegate when the animation is over.
|
inline |
Call this to halt the animation early. This internally will cause the finished event to run.
|
inline |
Call this to halt the animation early.
| runEvent | Optionally run the finished event if there is one. |
|
inlinestatic |
Called at the UI update rate to progress the currently animated properties.
| Element PowerUI.UIAnimation.Animating |
The element being animated.
| float PowerUI.UIAnimation.ConstantSpeedTime |
The time in seconds that the animation should remain at a constant speed for.
| object PowerUI.UIAnimation.Data |
A custom data object.
| bool PowerUI.UIAnimation.Decelerate |
True if this animation decelerates.
| float PowerUI.UIAnimation.DecelerateAt |
The time in seconds to begin decelerating at.
| DynamicMethod<Nitro.Void> PowerUI.UIAnimation.Done |
The dynamic method (a nitro function) to call when this animation is done.
| ElementStyle PowerUI.UIAnimation.ElementStyle |
A shortcut to the element style object.
|
private |
True if this animation has finished; false otherwise.
|
static |
Actively animated properties are stored in a linked list. This is the head of that list.
|
static |
Actively animated properties are stored in a linked list. This is the tail of that list.
| UIAnimation PowerUI.UIAnimation.NextAnimation |
All current animations are stored in a linked list. This is the next one.
| AnimationCompleted PowerUI.UIAnimation.OnComplete |
The method to call (a c# or JS method) when the animation is done playing.
| float PowerUI.UIAnimation.TimeToAccelerateFor |
The time in seconds that this animation should accelerate for.
| float PowerUI.UIAnimation.TimeToDecelerateFor |
The time in seconds that this animation should decelerate for.
| float PowerUI.UIAnimation.TotalTime |
The total time in seconds that this animation lasts for.