11#include "../../c-api/gui/controls/label.h"
51 m_controlHandle = m_interface->kodi_gui->window->get_control_label(
52 m_interface->kodiBase, m_Window->GetControlHandle(), controlId);
55 "kodi::gui::controls::CLabel can't create control class from Kodi !!!");
74 m_interface->kodi_gui->control_label->set_visible(m_interface->kodiBase, m_controlHandle,
87 m_interface->kodi_gui->control_label->set_label(m_interface->kodiBase, m_controlHandle,
102 m_interface->kodi_gui->control_label->get_label(m_interface->kodiBase, m_controlHandle);
105 if (std::strlen(ret))
107 m_interface->free_string(m_interface->kodiBase, ret);
@ ADDON_LOG_FATAL
4 : To notify fatal unrecoverable errors, which can may also indicate upcoming crashes.
Definition addon_base.h:197
void SetLabel(const std::string &text)
To set the text string on label.
Definition Label.h:85
CLabel(CWindow *window, int controlId)
Construct a new control.
Definition Label.h:49
std::string GetLabel() const
Get the used text from control.
Definition Label.h:98
void SetVisible(bool visible)
Set the control on window to visible.
Definition Label.h:72
~CLabel() override=default
Destructor.
void ATTR_DLL_LOCAL Log(const ADDON_LOG loglevel, const char *format,...)
Add a message to Kodi's log.
Definition AddonBase.h:1938