Inheritance diagram for Exponent::GUI::Controls::CAnimation:
Definition at line 37 of file CAnimation.hpp.
Exponent::GUI::Controls::CAnimation::CAnimation | ( | 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::CAnimation::~CAnimation | ( | ) | [virtual] |
Destruction
virtual void Exponent::GUI::Controls::CAnimation::drawControl | ( | CGraphics & | graphics | ) | [virtual] |
Draw the control
graphics | The graphics context |
Reimplemented from Exponent::GUI::Controls::CControl.
virtual void Exponent::GUI::Controls::CAnimation::setAnimationImage | ( | CImageManager::CAnimationReference * | animationReference, | |
const bool | invertAnimation = false | |||
) | [virtual] |
Set the animation image
animationReference | The animation image | |
invertAnimation | If true, expects animation to run bottom to top, else runs top to bottom |
virtual void Exponent::GUI::Controls::CAnimation::setAnimationImage | ( | IImage * | theImage, | |
const long | heightOfEachFrame, | |||
const long | numberOfFrames, | |||
const bool | invertAnimation = false | |||
) | [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 | |
invertAnimation | If true a value of 1.0 indicates the beggining of the animation (rather than the normal 0.0 being te beggining). |
long Exponent::GUI::Controls::CAnimation::m_frameHeight [protected] |
Height of each frame
Definition at line 94 of file CAnimation.hpp.
bool Exponent::GUI::Controls::CAnimation::m_invertAnimationStrip [protected] |
Should the animation be played backwards?
Definition at line 97 of file CAnimation.hpp.
long Exponent::GUI::Controls::CAnimation::m_numberOfFrames [protected] |
Total number of frames in the animation
Definition at line 95 of file CAnimation.hpp.
CRect Exponent::GUI::Controls::CAnimation::m_offsetArea [protected] |
Area we are offset by
Definition at line 96 of file CAnimation.hpp.