A GtkObject representing an adjustable bounded value
<gtk-adjustment> object represents a value which has an associated
lower and upper bound, together with step and page increments, and a page size.
It is used within several GTK+ widgets, including
<gtk-range> (which is a base class for
<gtk-adjustment> object does not update the value itself. Instead it
is left up to the owner of the
<gtk-adjustment> to control the value.
The owner of the
<gtk-adjustment> typically calls the
after changing the value and its bounds. This results in the emission of the
"value_changed" or "changed" signal respectively.
This class defines the following slots:
- The value of the adjustment
- The minimum value of the adjustment
- The maximum value of the adjustment
- The step increment of the adjustment
- The page increment of the adjustment
- The page size of the adjustment
Emitted when one or more of the
<gtk-adjustment>fields have been changed, other than the value field.
Emitted when the
<gtk-adjustment>value field has been changed.
double) ⇒ (ret
Creates a new
- the initial value.
- the minimum value.
- the maximum value.
- the step increment.
- the page increment.
- the page size.
- a new
<gtk-adjustment>) ⇒ (ret
Gets the current value of the adjustment. See
- The current value of the adjustment.
<gtk-adjustment>value. The value is clamped to lie between ‘adjustment->lower’ and ‘adjustment->upper’.
Note that for adjustments which are used in a
<gtk-scrollbar>, the effective range of allowed values goes from ‘adjustment->lower’ to ‘adjustment->upper - adjustment->page_size’.
- the new value.
<gtk-adjustment>value to ensure that the range between lower and upper is in the current page (i.e. between value and value + page-size). If the range is larger than the page size, then only the start of it will be in the current page. A "changed" signal will be emitted if the value is changed.
- the lower value.
- the upper value.
Emits a "changed" signal from the
<gtk-adjustment>. This is typically called by the owner of the
<gtk-adjustment>after it has changed any of the
<gtk-adjustment>fields other than the value.