Merge pull request #22816 from CastagnaIT/fix_tx3g
[xbmc.git] / xbmc / guilib / ISliderCallback.h
blob20834e296cc8124b4f21d0a0687e5798e8a2279a
1 /*
2 * Copyright (C) 2013-2018 Team Kodi
3 * This file is part of Kodi - https://kodi.tv
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 * See LICENSES/README.md for more information.
7 */
9 #pragma once
11 class CGUISliderControl;
13 /*!
14 \brief Interface class for callback from the slider dialog
16 Used to pass feedback from the slider dialog to a caller. Users of the
17 slider dialog should derive from this class if they wish to respond to changes
18 in the slider by the user as they happen. OnSliderChange is called in response
19 to the user moving the slider. The caller may then update the text on the slider
20 and update anything that should be changed as the slider is adjusted.
22 \sa CGUIDialogSlider
24 class ISliderCallback
26 public:
27 virtual ~ISliderCallback() = default;
29 /*!
30 \brief Callback function called whenever the user moves the slider
32 \param data pointer of callbackData
33 \param slider pointer to the slider control
35 virtual void OnSliderChange(void *data, CGUISliderControl *slider) = 0;