11 #include "../../c-api/gui/controls/progress.h"
12 #include "../Window.h"
53 m_controlHandle = m_interface->kodi_gui->window->get_control_progress(
54 m_interface->kodiBase, m_Window->GetControlHandle(), controlId);
57 "kodi::gui::controls::CProgress can't create control class from Kodi !!!");
76 m_interface->kodi_gui->control_progress->set_visible(m_interface->kodiBase, m_controlHandle,
89 m_interface->kodi_gui->control_progress->set_percentage(m_interface->kodiBase, m_controlHandle,
102 return m_interface->kodi_gui->control_progress->get_percentage(m_interface->kodiBase,
Definition: ListItem.h:26
Definition: Progress.h:42
@ ADDON_LOG_FATAL
4 : To notify fatal unrecoverable errors, which can may also indicate upcoming crashes.
Definition: addon_base.h:187
void SetPercentage(float percent)
To set Percent position of control.
Definition: Progress.h:87
~CProgress() override=default
Destructor.
CProgress(CWindow *window, int controlId)
Construct a new control.
Definition: Progress.h:51
void SetVisible(bool visible)
Set the control on window to visible.
Definition: Progress.h:74
float GetPercentage() const
Get the active percent position of progress bar.
Definition: Progress.h:100
void ATTRIBUTE_HIDDEN Log(const AddonLog loglevel, const char *format,...)
Add a message to Kodi's log.
Definition: AddonBase.h:749