Kodi Development 22.0
for Binary and Script based Add-Ons
 
Loading...
Searching...
No Matches
slider.h
1/*
2 * Copyright (C) 2005-2020 Team Kodi
3 * This file is part of Kodi - https://kodi.tv
4 *
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 * See LICENSES/README.md for more information.
7 */
8
9#ifndef C_API_GUI_CONTROLS_SLIDER_H
10#define C_API_GUI_CONTROLS_SLIDER_H
11
12#include "../definitions.h"
13
14#ifdef __cplusplus
15extern "C"
16{
17#endif /* __cplusplus */
18
20 {
21 void (*set_visible)(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle, bool visible);
22 void (*set_enabled)(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle, bool enabled);
23 void (*reset)(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle);
24 char* (*get_description)(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle);
25 void (*set_int_range)(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle, int start, int end);
26 void (*set_int_value)(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle, int value);
27 int (*get_int_value)(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle);
28 void (*set_int_interval)(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle, int interval);
29 void (*set_percentage)(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle, float percent);
30 float (*get_percentage)(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle);
31 void (*set_float_range)(KODI_HANDLE kodiBase,
32 KODI_GUI_CONTROL_HANDLE handle,
33 float start,
34 float end);
35 void (*set_float_value)(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle, float value);
36 float (*get_float_value)(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle);
37 void (*set_float_interval)(KODI_HANDLE kodiBase,
38 KODI_GUI_CONTROL_HANDLE handle,
39 float interval);
41
42#ifdef __cplusplus
43} /* extern "C" */
44#endif /* __cplusplus */
45
46#endif /* !C_API_GUI_CONTROLS_SLIDER_H */