\cpp_class{ kodi::gui::controls::CLabel } Window control used to show some lines of text.
More...
\cpp_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()
kodi::gui::controls::CLabel::CLabel |
( |
CWindow * |
window, |
|
|
int |
controlId |
|
) |
| |
|
inline |
Construct a new control.
- Parameters
-
[in] | window | related window control class |
[in] | controlId | Used skin xml control id |
◆ GetLabel()
std::string kodi::gui::controls::CLabel::GetLabel |
( |
| ) |
const |
|
inline |
Get the used text from control.
- Returns
- Used text on label control
◆ SetLabel()
void kodi::gui::controls::CLabel::SetLabel |
( |
const std::string & |
text | ) |
|
|
inline |
To set the text string on label.
- Parameters
-
◆ SetVisible()
void kodi::gui::controls::CLabel::SetVisible |
( |
bool |
visible | ) |
|
|
inline |
Set the control on window to visible.
- Parameters
-
[in] | visible | If true visible, otherwise hidden |
◆ ~CLabel()
kodi::gui::controls::CLabel::~CLabel |
( |
| ) |
|
|
overridedefault |