Class: kodi::gui::controls::CLabel
Window control used to show some lines of text
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.
It has the header #include <kodi/gui/controls/Label.h> be included to enjoy it.
Here you find the needed skin part for a label control.
- Note
- The call of the control is only possible from the corresponding window as its class and identification number is required.
◆ CLabel()
Construct a new control.
- Parameters
-
[in] | window | Related window control class |
[in] | controlId | Used skin xml control id |
◆ ~CLabel()
◆ SetVisible()
void SetVisible |
( |
bool | visible | ) |
|
|
inline |
Set the control on window to visible.
- Parameters
-
[in] | visible | If true visible, otherwise hidden |
◆ SetLabel()
void SetLabel |
( |
const std::string & | text | ) |
|
|
inline |
To set the text string on label.
- Parameters
-
◆ GetLabel()
std::string GetLabel |
( |
| ) |
const |
|
inline |
Get the used text from control.
- Returns
- Used text on label control