kodi
SettingsSlider.h
1 /*
2  * Copyright (C) 2005-2018 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 #include "addons/kodi-dev-kit/include/kodi/c-api/gui/controls/settings_slider.h"
12 
13 extern "C"
14 {
15 
16  struct AddonGlobalInterface;
17 
18  namespace ADDON
19  {
20 
30  {
31  static void Init(AddonGlobalInterface* addonInterface);
32  static void DeInit(AddonGlobalInterface* addonInterface);
33 
45  static void set_visible(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle, bool visible);
46  static void set_enabled(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle, bool enabled);
47 
48  static void set_text(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle, const char* text);
49  static void reset(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle);
50 
51  static void set_int_range(KODI_HANDLE kodiBase,
52  KODI_GUI_CONTROL_HANDLE handle,
53  int start,
54  int end);
55  static void set_int_value(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle, int value);
56  static int get_int_value(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle);
57  static void set_int_interval(KODI_HANDLE kodiBase,
58  KODI_GUI_CONTROL_HANDLE handle,
59  int interval);
60 
61  static void set_percentage(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle, float percent);
62  static float get_percentage(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle);
63 
64  static void set_float_range(KODI_HANDLE kodiBase,
65  KODI_GUI_CONTROL_HANDLE handle,
66  float start,
67  float end);
68  static void set_float_value(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle, float value);
69  static float get_float_value(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle);
70  static void set_float_interval(KODI_HANDLE kodiBase,
71  KODI_GUI_CONTROL_HANDLE handle,
72  float interval);
74  };
75 
76  } /* namespace ADDON */
77 } /* extern "C" */
Main structure passed from kodi to addon with basic information needed to create add-on.
Definition: addon_base.h:378
static void set_visible(KODI_HANDLE kodiBase, KODI_GUI_CONTROL_HANDLE handle, bool visible)
callback functions from add-on to kodi
Definition: SettingsSlider.cpp:53
Global gui Add-on to Kodi callback functions.
Definition: SettingsSlider.h:29
Definition: Addon.cpp:39