|
wavelength 1.0.0
|
Player of the entry animation of a view, which loops the cursor sound while a cursor of the animation moves. More...
#include <viewanimplayer.h>
Public Member Functions | |
| ViewAnimPlayer () | |
| Construct a player with no animation. | |
| void | SetAnim (RndAnimatable *pAnim) |
| Use an animation, and move it to its first frame. | |
| void | Start (float fNowMs) |
| Start playing the animation from its first frame. | |
| void | Stop () |
| Stop playing, and stop the cursor sound. | |
| void | Poll (float fNowMs) |
| Move the animation to the current time, stop at its last frame, and loop the cursor sound while a cursor of the animation is between its first and its last frame. | |
| bool | IsPlaying () |
| Report whether the animation plays. | |
| void | Clear () |
| Stop playing and forget the animation. | |
Player of the entry animation of a view, which loops the cursor sound while a cursor of the animation moves.
The class is not polymorphic and has no RTTI. The name is inferred. The object is 0x10 bytes. The front-end screens and panels that animate a view embed one.
| ViewAnimPlayer::ViewAnimPlayer | ( | ) |
Construct a player with no animation.
| void ViewAnimPlayer::SetAnim | ( | RndAnimatable * | pAnim | ) |
Use an animation, and move it to its first frame.
| pAnim | The animation. |
| void ViewAnimPlayer::Start | ( | float | fNowMs | ) |
Start playing the animation from its first frame.
| fNowMs | The current time in milliseconds. |
| void ViewAnimPlayer::Stop | ( | ) |
Stop playing, and stop the cursor sound.
| void ViewAnimPlayer::Poll | ( | float | fNowMs | ) |
Move the animation to the current time, stop at its last frame, and loop the cursor sound while a cursor of the animation is between its first and its last frame.
| fNowMs | The current time in milliseconds. |
| bool ViewAnimPlayer::IsPlaying | ( | ) |
Report whether the animation plays.
| void ViewAnimPlayer::Clear | ( | ) |
Stop playing and forget the animation.