Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
Used to show multiple pieces of text in the same position, by fading from one to the other. More...
Classes | |
class | XBMCAddon::xbmcgui::ControlFadeLabel |
Functions | |
XBMCAddon::xbmcgui::ControlFadeLabel::addLabel (...) | |
| |
XBMCAddon::xbmcgui::ControlFadeLabel::setScrolling (...) | |
| |
Used to show multiple pieces of text in the same position, by fading from one to the other.
Class: ControlFadeLabel(x, y, width, height[, font, textColor, alignment])
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.
x | integer - x coordinate of control. | ||||||||||||||||||||||||
y | integer - y coordinate of control. | ||||||||||||||||||||||||
width | integer - width of control. | ||||||||||||||||||||||||
height | integer - height of control. | ||||||||||||||||||||||||
font | [opt] string - font used for label text. (e.g. 'font13') | ||||||||||||||||||||||||
textColor | [opt] hexstring - color of fadelabel's labels. (e.g. '0xFFFFFFFF') | ||||||||||||||||||||||||
alignment | [opt] integer - alignment of label
|
Example:
void XBMCAddon::xbmcgui::ControlFadeLabel::addLabel | ( | ... | ) |
Function: addLabel(label)
label | string or unicode - text string to add. |
reset()
for them.Example:
void XBMCAddon::xbmcgui::ControlFadeLabel::setScrolling | ( | ... | ) |
Function: setScrolling(scroll)
scroll | boolean - True = enabled / False = disabled |
Example: