Kodi Development 22.0
for Binary and Script based Add-Ons
 
Loading...
Searching...
No Matches

Detailed Description

Class: kodi::gui::controls::CFadeLabel

Window control used to show multiple pieces of text in the same position, by fading from one to the other
The fade label control is used for displaying multiple pieces of text in the same space in Kodi.

You can choose the font, size, colour, location and contents of the text to be displayed. The first piece of information to display fades in over 50 frames, then scrolls off to the left. Once it is finished scrolling off screen, the second piece of information fades in and the process repeats. A fade label control is not supported in a list container.

It has the header #include <kodi/gui/controls/FadeLabel.h> be included to enjoy it.

Here you find the needed skin part for a fade label control.

Note
The call of the control is only possible from the corresponding window as its class and identification number is required.

Function Documentation

◆ CFadeLabel()

CFadeLabel ( CWindow * window,
int controlId )
inline

Construct a new control.

Parameters
[in]windowRelated window control class
[in]controlIdUsed skin xml control id

◆ ~CFadeLabel()

~CFadeLabel ( )
overridedefault

Destructor.

◆ SetVisible()

void SetVisible ( bool visible)
inline

Set the control on window to visible.

Parameters
[in]visibleIf true visible, otherwise hidden

◆ AddLabel()

void AddLabel ( const std::string & label)
inline

To add additional text string on fade label.

Parameters
[in]labelText to show

◆ GetLabel()

std::string GetLabel ( ) const
inline

Get the used text from button.

Returns
Text shown

◆ SetScrolling()

void SetScrolling ( bool scroll)
inline

To enable or disable scrolling on fade label.

Parameters
[in]scrollTo enable scrolling set to true, otherwise is disabled

◆ Reset()

void Reset ( )
inline

To reset al inserted labels.