11#include "../../c-api/gui/controls/slider.h"
53 m_controlHandle = m_interface->kodi_gui->window->get_control_slider(
54 m_interface->kodiBase, m_Window->GetControlHandle(), controlId);
57 "kodi::gui::controls::CSlider can't create control class from Kodi !!!");
76 m_interface->kodi_gui->control_slider->set_visible(m_interface->kodiBase, m_controlHandle,
89 m_interface->kodi_gui->control_slider->set_enabled(m_interface->kodiBase, m_controlHandle,
100 m_interface->kodi_gui->control_slider->reset(m_interface->kodiBase, m_controlHandle);
120 char* ret = m_interface->kodi_gui->control_slider->get_description(m_interface->kodiBase,
124 if (std::strlen(ret))
126 m_interface->free_string(m_interface->kodiBase, ret);
152 m_interface->kodi_gui->control_slider->set_int_range(m_interface->kodiBase, m_controlHandle,
170 m_interface->kodi_gui->control_slider->set_int_value(m_interface->kodiBase, m_controlHandle,
187 return m_interface->kodi_gui->control_slider->get_int_value(m_interface->kodiBase,
206 m_interface->kodi_gui->control_slider->set_int_interval(m_interface->kodiBase, m_controlHandle,
223 m_interface->kodi_gui->control_slider->set_percentage(m_interface->kodiBase, m_controlHandle,
240 return m_interface->kodi_gui->control_slider->get_percentage(m_interface->kodiBase,
265 m_interface->kodi_gui->control_slider->set_float_range(m_interface->kodiBase, m_controlHandle,
284 m_interface->kodi_gui->control_slider->set_float_value(m_interface->kodiBase, m_controlHandle,
297 return m_interface->kodi_gui->control_slider->get_float_value(m_interface->kodiBase,
316 m_interface->kodi_gui->control_slider->set_float_interval(m_interface->kodiBase,
317 m_controlHandle, interval);
@ ADDON_LOG_FATAL
4 : To notify fatal unrecoverable errors, which can may also indicate upcoming crashes.
Definition addon_base.h:197
void SetIntInterval(int interval)
To set the interval steps of slider, as default is it 1. If it becomes changed with this function wil...
Definition Slider.h:204
std::string GetDescription() const
With GetDescription becomes a string value of position returned.
Definition Slider.h:117
void SetPercentage(float percent)
Sets the percent of the slider.
Definition Slider.h:221
void SetFloatInterval(float interval)
To set the interval steps of slider, as default is it 0.1 If it becomes changed with this function wi...
Definition Slider.h:314
void SetIntRange(int start, int end)
To set the the range as integer of slider, e.g. -10 is the slider start and e.g. +10 is the from here...
Definition Slider.h:150
void SetIntValue(int value)
Set the slider position with the given integer value. The Range must be defined with a call from SetI...
Definition Slider.h:168
void Reset()
To reset slider on defaults.
Definition Slider.h:98
float GetFloatValue() const
To get the current position as float value.
Definition Slider.h:295
void SetVisible(bool visible)
Set the control on window to visible.
Definition Slider.h:74
~CSlider() override=default
Destructor.
float GetPercentage() const
Returns a float of the percent of the slider.
Definition Slider.h:238
CSlider(CWindow *window, int controlId)
Construct a new control.
Definition Slider.h:51
void SetEnabled(bool enabled)
Set's the control's enabled/disabled state.
Definition Slider.h:87
void SetFloatValue(float value)
Set the slider position with the given float value. The Range can be defined with a call from SetIntR...
Definition Slider.h:282
int GetIntValue() const
To get the current position as integer value.
Definition Slider.h:185
void SetFloatRange(float start, float end)
To set the the range as float of slider, e.g. -25.0 is the slider start and e.g. +25....
Definition Slider.h:263
void ATTR_DLL_LOCAL Log(const ADDON_LOG loglevel, const char *format,...)
Add a message to Kodi's log.
Definition AddonBase.h:1938