Inheritance diagram for Exponent::GUI::Controls::CAutoAnimation:
Definition at line 37 of file CAutoAnimation.hpp.
Enumerators of animation styles.
e_forward | start to end |
e_backward | end to start |
e_bounce | forward then backward, in loop |
e_forwardLoop | start to end, jump back to start and loop |
e_backwardLoop | end to start, jump back to end and loop |
Definition at line 53 of file CAutoAnimation.hpp.
Exponent::GUI::Controls::CAutoAnimation::CAutoAnimation | ( | IControlRoot * | root, | |
const long | uniqueId, | |||
const CRect & | area | |||
) |
Construction
root | The root control that this control is being added to | |
uniqueId | The unique Identifier of this control or CCONTROL_NO_ID_REQUIRED if no id is required | |
area | The area of this control relative to the root controls top left |
virtual Exponent::GUI::Controls::CAutoAnimation::~CAutoAnimation | ( | ) | [virtual] |
Destruction
virtual long Exponent::GUI::Controls::CAutoAnimation::getTimerId | ( | ) | const [inline, virtual] |
Get the id
long | The timer identifier |
Implements Exponent::GUI::Basics::ITimedObject.
Definition at line 104 of file CAutoAnimation.hpp.
References Exponent::GUI::Controls::CControl::m_uniqueId.
virtual void Exponent::GUI::Controls::CAutoAnimation::setAnimationImage | ( | IImage * | theImage, | |
const long | heightOfEachFrame, | |||
const long | numberOfFrames | |||
) | [virtual] |
Set the image
theImage | The image to display | |
heightOfEachFrame | The height of each frame of the animation strip | |
numberOfFrames | The total animtion length in frames |
virtual void Exponent::GUI::Controls::CAutoAnimation::setAnimationStyle | ( | const EAnimationStyle | style | ) | [virtual] |
Set the animation style
style | The style of animation |
virtual void Exponent::GUI::Controls::CAutoAnimation::startAnimation | ( | const long | updateRateInMillseconds | ) | [virtual] |
Start the animation
updateRateInMillseconds | Time in msec between update calls |
virtual void Exponent::GUI::Controls::CAutoAnimation::stopAnimation | ( | ) | [virtual] |
Stop the animation
virtual void Exponent::GUI::Controls::CAutoAnimation::timerExpired | ( | ) | [virtual] |
On expired increment value and redraw
Implements Exponent::GUI::Basics::ITimedObject.
Style of animation
Definition at line 126 of file CAutoAnimation.hpp.
bool Exponent::GUI::Controls::CAutoAnimation::m_forward [protected] |
Currently going forward?
Definition at line 127 of file CAutoAnimation.hpp.
double Exponent::GUI::Controls::CAutoAnimation::m_stepIncrement [protected] |
Size of the increment for each timer update
Definition at line 125 of file CAutoAnimation.hpp.