Kodi Development  19.0
for Binary and Script based Add-Ons
spin.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 #pragma once
10 
11 #ifndef C_API_GUI_CONTROLS_SPIN_H
12 #define C_API_GUI_CONTROLS_SPIN_H
13 
14 #include "../definitions.h"
15 
16 #ifdef __cplusplus
17 extern "C"
18 {
19 #endif /* __cplusplus */
20 
22  {
23  void (*set_visible)(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle, bool visible);
24  void (*set_enabled)(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle, bool enabled);
25  void (*set_text)(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle, const char* text);
26  void (*reset)(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle);
27  void (*set_type)(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle, int type);
28  void (*add_string_label)(KODI_HANDLE kodiBase,
29  KODI_GUI_CONTROL_HANDLE handle,
30  const char* label,
31  const char* value);
32  void (*set_string_value)(KODI_HANDLE kodiBase,
33  KODI_GUI_CONTROL_HANDLE handle,
34  const char* value);
35  char* (*get_string_value)(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle);
36  void (*add_int_label)(KODI_HANDLE kodiBase,
37  KODI_GUI_CONTROL_HANDLE handle,
38  const char* label,
39  int value);
40  void (*set_int_range)(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle, int start, int end);
41  void (*set_int_value)(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle, int value);
42  int (*get_int_value)(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle);
43  void (*set_float_range)(KODI_HANDLE kodiBase,
44  KODI_GUI_CONTROL_HANDLE handle,
45  float start,
46  float end);
47  void (*set_float_value)(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle, float value);
48  float (*get_float_value)(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle);
49  void (*set_float_interval)(KODI_HANDLE kodiBase,
50  KODI_GUI_CONTROL_HANDLE handle,
51  float interval);
53 
54 #ifdef __cplusplus
55 } /* extern "C" */
56 #endif /* __cplusplus */
57 
58 #endif /* !C_API_GUI_CONTROLS_SPIN_H */
AddonToKodiFuncTable_kodi_gui_control_spin
Definition: spin.h:22