Kodi Development 22.0
for Binary and Script based Add-Ons
 
Loading...
Searching...
No Matches

Detailed Description

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.

Function Documentation

◆ CLabel()

CLabel ( CWindow * window,
int controlId )
inline

Construct a new control.

Parameters
[in]windowRelated window control class
[in]controlIdUsed skin xml control id

◆ ~CLabel()

~CLabel ( )
overridedefault

Destructor.

◆ SetVisible()

void SetVisible ( bool visible)
inline

Set the control on window to visible.

Parameters
[in]visibleIf true visible, otherwise hidden

◆ SetLabel()

void SetLabel ( const std::string & text)
inline

To set the text string on label.

Parameters
[in]textText to show

◆ GetLabel()

std::string GetLabel ( ) const
inline

Get the used text from control.

Returns
Used text on label control