1 #ifndef DALI_ADAPTOR_ATSPI_VALUE_H
2 #define DALI_ADAPTOR_ATSPI_VALUE_H
5 * Copyright (c) 2021 Samsung Electronics Co., Ltd.
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
21 #include <dali/devel-api/atspi-interfaces/accessible.h>
23 namespace Dali::Accessibility
26 * @brief Interface representing objects which can store numeric value.
28 class DALI_ADAPTOR_API Value : public virtual Accessible
32 * @brief Gets the lowest possible value.
34 * @return The minimum value
36 virtual double GetMinimum() const = 0;
39 * @brief Gets the current value.
41 * @return The current value
43 virtual double GetCurrent() const = 0;
46 * @brief Gets the highest possible value.
48 * @return The highest value.
50 virtual double GetMaximum() const = 0;
53 * @brief Sets the current value.
55 * @param[in] value The current value to set
57 * @return true if value could have been assigned, false otherwise
59 virtual bool SetCurrent(double value) = 0;
62 * @brief Gets the lowest increment that can be distinguished.
64 * @return The lowest increment
66 virtual double GetMinimumIncrement() const = 0;
69 } // namespace Dali::Accessibility
71 #endif // DALI_ADAPTOR_ATSPI_VALUE_H