Guiliani  Version 2.5 revision 7293 (documentation build 13)
CGUIAnimationObserver Class Referenceabstract

This interface is used to observe the status of an animation. More...

#include <GUIAnimationObserver.h>

Inheritance diagram for CGUIAnimationObserver:

Public Member Functions

virtual ~CGUIAnimationObserver ()
 
virtual void OnStatusChanged (CGUIAnimation::AnimationStatus_t eStatus, CGUIAnimation *pAnimation)=0
 

Detailed Description

This interface is used to observe the status of an animation.

It is possible to set an AnimationObserver for each animation by calling CGUIAnimation::SetAnimationObserver.

Note
When reading the GUI from stream, the CGUIAnimation::ReadFromStream() will not set its observer pointer. It is the responsibility of the animation observer to set itself as observer in the animation again when it is reading from stream. To do so, use the id of the animation which shall be observed.

Constructor & Destructor Documentation

◆ ~CGUIAnimationObserver()

virtual CGUIAnimationObserver::~CGUIAnimationObserver ( )
inlinevirtual

Destructor Informs the animation handler about the deleted observer.

Member Function Documentation

◆ OnStatusChanged()

virtual void CGUIAnimationObserver::OnStatusChanged ( CGUIAnimation::AnimationStatus_t  eStatus,
CGUIAnimation pAnimation 
)
pure virtual

This callback function is called by the observed animation whenever the status changes.

Parameters
eStatusThe new status of the animation.
pAnimationThe Animation whose status is updated.

Implemented in CGUIAnimationChain.


The documentation for this class was generated from the following file: