2 /* $Id: adjustment.ccg,v 1.3 2006/11/08 21:51:35 murrayc Exp $ */
6 * Copyright 1998-2002 The gtkmm Development Team
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either
11 * version 2 of the License, or (at your option) any later version.
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Library General Public License for more details.
18 * You should have received a copy of the GNU Library General Public
19 * License along with this library; if not, write to the Free
20 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
22 #include <gtk/gtkadjustment.h>
27 //This is hand-coded so we can change the sequence of properties.
28 //If we don't do this then the value is restricted to the initial values, ignoring the specified boundaries:
29 Adjustment::Adjustment(double value, double lower, double upper, double step_increment, double page_increment, double page_size)
31 _CONSTRUCT("lower", lower, "upper", upper, "step_increment", step_increment, "page_increment", page_increment, "page_size", page_size, "value", value)
35 void Adjustment::set_lower(double lower)
37 gobj()->lower = lower;
41 void Adjustment::set_upper(double upper)
43 gobj()->upper = upper;
47 void Adjustment::set_step_increment(double incr)
49 gobj()->step_increment = incr;
53 void Adjustment::set_page_increment(double incr)
55 gobj()->page_increment = incr;
59 void Adjustment::set_page_size(double size)
61 gobj()->page_size = size;