Manages a group of animations. More...
#include <SValueAnimator.h>
Public Types | |
| enum | AniState { idle , started , running } |
| Enumeration of animation states. More... | |
Public Member Functions | |
| SAnimatorGroup () | |
| Constructor. | |
| ~SAnimatorGroup () | |
| Destructor. | |
| BOOL | AddAnimator (IValueAnimator *ani) OVERRIDE |
| Adds an animator to the group. | |
| BOOL | RemoveAnimator (IValueAnimator *ani) OVERRIDE |
| Removes an animator from the group. | |
| void | SetListener (IAnimatorGroupListerer *listener) OVERRIDE |
| Sets the listener for the animator group. | |
Public Member Functions inherited from TObjRefImpl< IAnimatorGroup > | |
| TObjRefImpl () | |
| Constructor that initializes the reference count to 1. | |
| virtual | ~TObjRefImpl () |
| Virtual destructor. | |
| long | AddRef () override |
| Increments the reference count. | |
| long | Release () override |
| Decrements the reference count and deletes the object if the count reaches zero. | |
| void | OnFinalRelease () override |
| Deletes the object. | |
Protected Types | |
| typedef SMap< IValueAnimator *, AniState > | AnimatorStateMap |
| Map of animators and their states. | |
Protected Member Functions | |
| void | onAnimationStart (IValueAnimator *pAnimator) |
| Called when an animation starts. | |
| void | onAnimationRepeat (IValueAnimator *pAnimator) |
| Called when an animation repeats. | |
| void | onAnimationEnd (IValueAnimator *pAnimator) |
| Called when an animation ends. | |
Protected Attributes | |
| AnimatorStateMap | m_lstAnimator |
| Map of animators and their states. | |
| IAnimatorGroupListerer * | m_listener |
| Listener for the animator group. | |
Protected Attributes inherited from TObjRefImpl< IAnimatorGroup > | |
| LONG | m_cRef |
| Reference count. | |
Manages a group of animations.
Definition at line 767 of file SValueAnimator.h.
|
protected |
Map of animators and their states.
Definition at line 837 of file SValueAnimator.h.
Enumeration of animation states.
Definition at line 775 of file SValueAnimator.h.
| SAnimatorGroup::SAnimatorGroup | ( | ) |
Constructor.
Definition at line 658 of file SValueAnimator.cpp.
| SAnimatorGroup::~SAnimatorGroup | ( | ) |
Destructor.
Definition at line 663 of file SValueAnimator.cpp.
| BOOL SAnimatorGroup::AddAnimator | ( | IValueAnimator * | ani | ) |
Adds an animator to the group.
| ani | Pointer to the animator to add. |
Definition at line 675 of file SValueAnimator.cpp.
|
protected |
Called when an animation ends.
| pAnimator | Pointer to the animator that ended. |
Definition at line 714 of file SValueAnimator.cpp.
|
inlineprotected |
Called when an animation repeats.
| pAnimator | Pointer to the animator that repeated. |
Definition at line 823 of file SValueAnimator.h.
|
protected |
Called when an animation starts.
| pAnimator | Pointer to the animator that started. |
Definition at line 703 of file SValueAnimator.cpp.
| BOOL SAnimatorGroup::RemoveAnimator | ( | IValueAnimator * | ani | ) |
Removes an animator from the group.
| ani | Pointer to the animator to remove. |
Definition at line 694 of file SValueAnimator.cpp.
| void SAnimatorGroup::SetListener | ( | IAnimatorGroupListerer * | listener | ) |
Sets the listener for the animator group.
| listener | Pointer to the listener. |
Definition at line 741 of file SValueAnimator.cpp.
|
protected |
Listener for the animator group.
Definition at line 847 of file SValueAnimator.h.
|
protected |
Map of animators and their states.
Definition at line 842 of file SValueAnimator.h.