Debian Codegraph @

atk/src/range.hg

raw
1 /* Copyright (C) 2015 The atkmm Development Team
2 *
3 * This library is free software; you can redistribute it and/or
4 * modify it under the terms of the GNU Lesser General Public
5 * License as published by the Free Software Foundation; either
6 * version 2.1 of the License, or (at your option) any later version.
7 *
8 * This library is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 * Lesser General Public License for more details.
12 *
13 * You should have received a copy of the GNU Lesser General Public
14 * License along with this library; if not, see <https://www.gnu.org/licenses/>.
15 */
16
17 _CONFIGINCLUDE(atkmmconfig.h)
18
19 #include <glibmm/value.h>
20 #include <atk/atk.h>
21
22 _DEFS(atkmm,atk)
23
24 namespace Atk
25 {
26
27 /** A given range or subrange, to be used with Atk::Value.
28 * This represents the full range of a given component (for example a slider or a range control),
29 * or, to define each individual subrange, this full range is split if available.
30 *
31 * @newin{2,24}
32 */
33 class ATKMM_API Range
34 {
35 _CLASS_BOXEDTYPE(Range, AtkRange, NONE, atk_range_copy, atk_range_free, ATKMM_API)
36 _IGNORE(atk_range_copy, atk_range_free)
37 public:
38
39 Range(double lower_limit, double upper_limit, const Glib::ustring& description);
40 _IGNORE(atk_range_new)
41
42 _WRAP_METHOD(double get_lower_limit() const, atk_range_get_lower_limit)
43 _WRAP_METHOD(double get_upper_limit() const, atk_range_get_upper_limit)
44 _WRAP_METHOD(Glib::ustring _get_description() const, atk_range_get_description)
45 };
46
47 } // namespace Atk