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.
◆ CFadeLabel()
Construct a new control.
- Parameters
-
[in] | window | Related window control class |
[in] | controlId | Used skin xml control id |
◆ ~CFadeLabel()
◆ SetVisible()
void SetVisible |
( |
bool | visible | ) |
|
|
inline |
Set the control on window to visible.
- Parameters
-
[in] | visible | If true visible, otherwise hidden |
◆ AddLabel()
void AddLabel |
( |
const std::string & | label | ) |
|
|
inline |
To add additional text string on fade label.
- Parameters
-
◆ 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] | scroll | To enable scrolling set to true, otherwise is disabled |
◆ Reset()
To reset al inserted labels.