VizKit
3.3.7
|
Shows the lyrics of the current audio track. More...
#include <TrackLyrics.h>
Public Member Functions | |
TrackLyrics () | |
The constructor. | |
~TrackLyrics () | |
The destructor. | |
void | show (uint32 anElapsedAudioTime, uint32 aRemainingAudioTime) |
Shows the track lyrics action. | |
VisualStringStyle | getTrackLyricsStringStyle (void) |
Returns the current string style of the track lyrics string. | |
void | setTrackLyricsString (VisualStyledString &aTrackLyricsString) |
Sets the track lyrics string. | |
void | refresh (void) |
Refreshes the layout based on current canvas size. | |
void | fadeIn (uint32 durationInMilliseconds, bool startWithCurrentOpacityValue) |
Starts fading in the texture of the track lyrics. | |
void | fadeOut (uint32 durationInMilliseconds, double stopValue=0.0) |
Starts fading out the texture of the track lyrics. | |
void | clear (void) |
Clears the memory allocated for the track lyrics action. | |
Static Private Member Functions | |
static void | animateOpacity (double currentPosition, void *userData) |
Callback of the opacity animation. | |
Private Attributes | |
VisualTextAutoScrollView * | trackLyricsAutoScrollView |
The VisualTextAutoScrollView of the track lyrics action. | |
VisualItemIdentifier | vertexChainId |
Identifier of the vertex chain (the vertices used for display of the track lyrics string texture). | |
VisualItemIdentifier | opacityAnimationIdentifier |
Identifier of the fade in and fade out animation. |
Shows the lyrics of the current audio track.
TrackLyrics performs the action of the TrackLyricsActor.
The constructor.
The destructor.
void TrackLyrics::animateOpacity | ( | double | currentPosition, |
void * | userData | ||
) | [static, private] |
Callback of the opacity animation.
void TrackLyrics::clear | ( | void | ) |
Clears the memory allocated for the track lyrics action.
void TrackLyrics::fadeIn | ( | uint32 | durationInMilliseconds, |
bool | startWithCurrentOpacityValue | ||
) |
Starts fading in the texture of the track lyrics.
durationInMilliseconds | The duration of the animation measured in milliseconds. |
startWithCurrentOpacityValue | If yes, the animation starts with the current opacity value. If no, the animation starts with 0 opacity. |
void TrackLyrics::fadeOut | ( | uint32 | durationInMilliseconds, |
double | stopValue = 0.0 |
||
) |
Starts fading out the texture of the track lyrics.
durationInMilliseconds | The duration of the animation measured in milliseconds. |
stopValue | The stop value of the fade out process (default = 0.0f). |
Returns the current string style of the track lyrics string.
void TrackLyrics::refresh | ( | void | ) |
Refreshes the layout based on current canvas size.
void TrackLyrics::setTrackLyricsString | ( | VisualStyledString & | aTrackLyricsString | ) |
Sets the track lyrics string.
aTrackLyricsString | The styled track lyrics string. |
void TrackLyrics::show | ( | uint32 | anElapsedAudioTime, |
uint32 | aRemainingAudioTime | ||
) |
Shows the track lyrics action.
anElapsedAudioTime | The elapsed audio time. |
aRemainingAudioTime | The remaining audio time. |
Identifier of the fade in and fade out animation.
The VisualTextAutoScrollView of the track lyrics action.
Identifier of the vertex chain (the vertices used for display of the track lyrics string texture).