11#include "../../c-api/gui/controls/progress.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,
@ ADDON_LOG_FATAL
4 : To notify fatal unrecoverable errors, which can may also indicate upcoming crashes.
Definition addon_base.h:197
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 ATTR_DLL_LOCAL Log(const ADDON_LOG loglevel, const char *format,...)
Add a message to Kodi's log.
Definition AddonBase.h:1938