Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
Used to show some lines of text. More...
Classes | |
class | XBMCAddon::xbmcgui::ControlLabel |
Functions | |
XBMCAddon::xbmcgui::ControlLabel::getLabel () | |
| |
XBMCAddon::xbmcgui::ControlLabel::setLabel (...) | |
| |
XBMCAddon::xbmcgui::ControlFadeLabel::reset () | |
| |
Used to show some lines of text.
Class: ControlLabel(x, y, width, height, label[, font, textColor,
/// disabledColor, alignment, hasPath, angle])
The label control is used for displaying text in Kodi. You can choose the font, size, colour, location and contents of the text to be displayed.
x | integer - x coordinate of control. | ||||||||||||||||||||||||
y | integer - y coordinate of control. | ||||||||||||||||||||||||
width | integer - width of control. | ||||||||||||||||||||||||
height | integer - height of control. | ||||||||||||||||||||||||
label | string or unicode - text string. | ||||||||||||||||||||||||
font | [opt] string - font used for label text. (e.g. 'font13') | ||||||||||||||||||||||||
textColor | [opt] hexstring - color of enabled label's label. (e.g. '0xFFFFFFFF') | ||||||||||||||||||||||||
disabledColor | [opt] hexstring - color of disabled label's label. (e.g. '0xFFFF3300') | ||||||||||||||||||||||||
alignment | [opt] integer - alignment of label
| ||||||||||||||||||||||||
hasPath | [opt] bool - True=stores a path / False=no path | ||||||||||||||||||||||||
angle | [opt] integer - angle of control. (+ rotates CCW, - rotates C) |
Example:
String XBMCAddon::xbmcgui::ControlLabel::getLabel | ( | ) |
Function: getLabel()
Example:
void XBMCAddon::xbmcgui::ControlFadeLabel::reset | ( | ) |
Function: reset()
Example:
void XBMCAddon::xbmcgui::ControlLabel::setLabel | ( | ... | ) |
Function: setLabel(label[, font, textColor, disabledColor, shadowColor, focusedColor, label2])
label | string or unicode - text string. |
font | [opt] string - font used for label text. (e.g. 'font13') |
textColor | [opt] hexstring - color of enabled label's label. (e.g. '0xFFFFFFFF') |
disabledColor | [opt] hexstring - color of disabled label's label. (e.g. '0xFFFF3300') |
shadowColor | [opt] hexstring - color of button's label's shadow. (e.g. '0xFF000000') |
focusedColor | [opt] hexstring - color of focused button's label. (e.g. '0xFF00FFFF') |
label2 | [opt] string or unicode - text string. |
Example: