1/* 2 * Copyright (C) 2015 The atkmm Development Team 3 * 4 * This library is free software; you can redistribute it and/or 5 * modify it under the terms of the GNU Lesser General Public 6 * License as published by the Free Software Foundation; either 7 * version 2.1 of the License, or (at your option) any later version. 8 * 9 * This library is distributed in the hope that it will be useful, 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 * Lesser General Public License for more details. 13 * 14 * You should have received a copy of the GNU Lesser General Public 15 * License along with this library; if not, write to the Free Software 16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 17 */ 18 19#include <glibmm/value.h> 20#include <atk/atk.h> 21 22_DEFS(atkmm,atk) 23 24namespace 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 */ 33class Range 34{ 35 _CLASS_BOXEDTYPE(Range, AtkRange, NONE, atk_range_copy, atk_range_free) 36 _IGNORE(atk_range_copy, atk_range_free) 37public: 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 48 49