11 #include "../../c-api/gui/controls/image.h"
12 #include "../Window.h"
51 m_controlHandle = m_interface->kodi_gui->window->get_control_image(
52 m_interface->kodiBase, m_Window->GetControlHandle(), controlId);
55 "kodi::gui::controls::CImage can't create control class from Kodi !!!");
74 m_interface->kodi_gui->control_image->set_visible(m_interface->kodiBase, m_controlHandle,
87 void SetFileName(
const std::string& filename,
bool useCache =
true)
89 m_interface->kodi_gui->control_image->set_filename(m_interface->kodiBase, m_controlHandle,
90 filename.c_str(), useCache);
102 m_interface->kodi_gui->control_image->set_color_diffuse(m_interface->kodiBase, m_controlHandle,
Definition: ListItem.h:26
@ ADDON_LOG_FATAL
4 : To notify fatal unrecoverable errors, which can may also indicate upcoming crashes.
Definition: addon_base.h:187
~CImage() override=default
Destructor.
CImage(CWindow *window, int controlId)
Construct a new control.
Definition: Image.h:49
void SetColorDiffuse(uint32_t colorDiffuse)
To set set the diffuse color on image.
Definition: Image.h:100
void SetVisible(bool visible)
Set the control on window to visible.
Definition: Image.h:72
void SetFileName(const std::string &filename, bool useCache=true)
To set the filename used on image control.
Definition: Image.h:87
void ATTRIBUTE_HIDDEN Log(const AddonLog loglevel, const char *format,...)
Add a message to Kodi's log.
Definition: AddonBase.h:749