Detailed Description

A single css property being animated. Note that composite properties such as colours or rotations must be broken down into their inner properties (e.g. rgba, xyz). This is done internally by PowerUI.UIAnimation.

Inheritance diagram for PowerUI.AnimatedProperty:
PowerUI.AnimatedTransformProperty

Public Member Functions

 AnimatedProperty (UIAnimation animation, CssProperty property)
 Creates a new animated property. More...
 
void Animate (UIAnimation animation, Css.Value targetValue, Blaze.VectorPath timeCurve, bool updateCss)
 Animates this property now. More...
 
void SetupValue (Css.Value hostValue, Css.Value rawValue)
 Sets up the initial value. More...
 
virtual void Update (float deltaTime)
 
void AddToQueue ()
 
void Stop ()
 

Public Attributes

bool UpdateCss
 True if this particular property should flush the output to the screen. This is required if there are multiple inner properties for a particular CSS property. More...
 
float CurrentTime
 The current time in seconds that has passed since the animation started. More...
 
float ActiveValue
 The value that should be applied right now in terms of units. More...
 
UIAnimation Animation
 The parent animation that this property belongs to. More...
 
Css.Value RawStart
 The starting CSS value. More...
 
Css.Units.DecimalUnit ValueObject
 The CSS value object that the current value of this is applied to. More...
 
CssProperty PropertyInfo
 The potentially composite property being animated. E.g. color. More...
 
CssProperty InnerPropertyInfo
 The "actual" property being animated, if there is one. E.g. color-r. More...
 
Css.Value PropertyValueObject
 The CSS property that this value is a part of. For example, if this property currently being animated is the red component of the colour overlay, the property value object is the colour overlay as a whole. More...
 
AnimatedProperty PropertyAfter
 Currently animated properties are stored in a linked list. This is the next one in the list. More...
 
AnimatedProperty PropertyBefore
 Currently animated properties are stored in a linked list. This is the one before this in the list. More...
 
Blaze.CurveSampler ProgressSampler
 The sampler used when progressing the animation. More...
 

Package Attributes

Css.Value RawTarget
 The raw target value. More...
 

Properties

string Property [get]
 The prime property being animated. More...
 
Element Animating [get]
 The element being animated. More...
 

Private Member Functions

void Complete ()
 

Private Attributes

float DeltaValue
 TargetValue-StartValue. More...
 
float StartValue
 The initial starting value. More...
 

Constructor & Destructor Documentation

PowerUI.AnimatedProperty.AnimatedProperty ( UIAnimation  animation,
CssProperty  property 
)
inline

Creates a new animated property.

Parameters
animationThe animation that this property is a part of.
propertyThe property being animated.

Member Function Documentation

void PowerUI.AnimatedProperty.AddToQueue ( )
inline
void PowerUI.AnimatedProperty.Animate ( UIAnimation  animation,
Css.Value  targetValue,
Blaze.VectorPath  timeCurve,
bool  updateCss 
)
inline

Animates this property now.

Parameters
animationThe animation that this property is a part of.
targetValueThe parsed value that this property will be when the animation is over.
timeCurveOptional curve used to describe the progression of the animation. X is time, Y is value. Null acts like linear (a line from 0,0 to 1,1).
updateCssTrue if this particular property should flush its changes to css/the screen.
void PowerUI.AnimatedProperty.Complete ( )
inlineprivate
void PowerUI.AnimatedProperty.SetupValue ( Css.Value  hostValue,
Css.Value  rawValue 
)
inline

Sets up the initial value.

void PowerUI.AnimatedProperty.Stop ( )
inline
virtual void PowerUI.AnimatedProperty.Update ( float  deltaTime)
inlinevirtual

Member Data Documentation

float PowerUI.AnimatedProperty.ActiveValue

The value that should be applied right now in terms of units.

UIAnimation PowerUI.AnimatedProperty.Animation

The parent animation that this property belongs to.

float PowerUI.AnimatedProperty.CurrentTime

The current time in seconds that has passed since the animation started.

float PowerUI.AnimatedProperty.DeltaValue
private

TargetValue-StartValue.

CssProperty PowerUI.AnimatedProperty.InnerPropertyInfo

The "actual" property being animated, if there is one. E.g. color-r.

Blaze.CurveSampler PowerUI.AnimatedProperty.ProgressSampler

The sampler used when progressing the animation.

AnimatedProperty PowerUI.AnimatedProperty.PropertyAfter

Currently animated properties are stored in a linked list. This is the next one in the list.

AnimatedProperty PowerUI.AnimatedProperty.PropertyBefore

Currently animated properties are stored in a linked list. This is the one before this in the list.

CssProperty PowerUI.AnimatedProperty.PropertyInfo

The potentially composite property being animated. E.g. color.

Css.Value PowerUI.AnimatedProperty.PropertyValueObject

The CSS property that this value is a part of. For example, if this property currently being animated is the red component of the colour overlay, the property value object is the colour overlay as a whole.

Css.Value PowerUI.AnimatedProperty.RawStart

The starting CSS value.

Css.Value PowerUI.AnimatedProperty.RawTarget
package

The raw target value.

float PowerUI.AnimatedProperty.StartValue
private

The initial starting value.

bool PowerUI.AnimatedProperty.UpdateCss

True if this particular property should flush the output to the screen. This is required if there are multiple inner properties for a particular CSS property.

Css.Units.DecimalUnit PowerUI.AnimatedProperty.ValueObject

The CSS value object that the current value of this is applied to.

Property Documentation

Element PowerUI.AnimatedProperty.Animating
get

The element being animated.

string PowerUI.AnimatedProperty.Property
get

The prime property being animated.