Location:
AnimationGroup.h
Link against: animation.lib
class CAnimationGroup : public CAnimation;
Handles groups of other animations.
When it is appropriate to have several animations starting and stopping together, add them all to an animation group and control them through that.
In addition to making the code easier to both read and write, the animation group handles synchronisation issues which can occur when issuing a sequence of asynchronous requests.
Care must be taken to remove an animation from any groups it may have been added to before deleting it.
CBase
- Base class for all classes to be instantiated on the heap
CAnimation
- Pure virtual base class for animations
CAnimationGroup
- Handles groups of other animations
Defined in CAnimationGroup
:
Animations()
, Animations()
, CAnimationGroup_Reserved1()
, CAnimationGroup_Reserved2()
, Freeze()
, Hold()
, Pause()
, Resume()
, SetPosition()
, Start()
, Stop()
, Unfreeze()
, Unhold()
Inherited from CBase
:
Delete()
,
Extension_()
,
operator new()
IMPORT_C const RPointerArray< CAnimation > &Animations() const;
Returns a reference to the array of animations being grouped.
It is intended for animations to be added to and removed from this array directly.
|
IMPORT_C RPointerArray< CAnimation > &Animations();
Returns a reference to the array of animations being grouped.
It is intended for animations to be added to and removed from this array directly.
|
virtual void Start(const TAnimationConfig &aConfig);
Starts all of the animations.
|
virtual void SetPosition(const TPoint &aPoint);
Set the position of all the animations.
Note that this will cause all the animations to be in the same place, which is unlikely to be a desired effect. It is implemented here for completeness.
|
protected: virtual IMPORT_C void CAnimationGroup_Reserved2();
Reserved for future use