It derives from
<GInitiallyUnowned>.
A model for a numeric value.
The <GtkAdjustment> has an associated lower and
upper bound. It also contains step and page increments, and a page
size.
Adjustments are used within several GTK widgets, including
<GtkSpinButton>,
<GtkViewport>,
<GtkScrollbar> and
<GtkScale>.
The <GtkAdjustment> object does not update the
value itself. Instead it is left up to the owner of the
<GtkAdjustment> to control the value.
parent-instanceThe minimum value of the adjustment.
Its value is a real number.
Set it with (set! (adjustment:lower self) value).
The page increment of the adjustment.
Its value is a real number.
Set it with (set! (adjustment:page-increment self) value).
The page size of the adjustment.
Note that the page-size is irrelevant and should be set to zero if the
adjustment is used for a simple scalar value, e.g. in a
<GtkSpinButton>.
Its value is a real number.
Set it with (set! (adjustment:page-size self) value).
The step increment of the adjustment.
Its value is a real number.
Set it with (set! (adjustment:step-increment self) value).
The maximum value of the adjustment.
Note that values will be restricted by upper - page-size if the
page-size property is nonzero.
Its value is a real number.
Set it with (set! (adjustment:upper self) value).
The value of the adjustment.
Its value is a real number.
Set it with (set! (adjustment:value self) value).
Updates the value of the adjustment to ensure that the given range is contained in the current page.
The current page goes from value to 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 adjustment:value-changed
signal will be emitted if the value is changed.
Passed: a <GtkAdjustment>.
an adjustment
Passed: a real number.
the lower value
Passed: a real number.
the upper value
Sets all properties of the adjustment at once.
Use this function to avoid multiple emissions of the
adjustment:changed signal. See
adjustment:set-lower for an
alternative way of compressing multiple emissions of
adjustment:changed into one.
Passed: a <GtkAdjustment>.
an adjustment
Passed: a real number.
the new value
Passed: a real number.
the new minimum value
Passed: a real number.
the new maximum value
Passed: a real number.
the new step increment
Passed: a real number.
the new page increment
Passed: a real number.
the new page size
Retrieves the minimum value of the adjustment.
Passed: a <GtkAdjustment>.
an adjustment
Returned: a real number.
the minimum value
Gets the smaller of step increment and page increment.
Passed: a <GtkAdjustment>.
an adjustment
Returned: a real number.
the minimum increment
Retrieves the page increment of the adjustment.
Passed: a <GtkAdjustment>.
an adjustment
Returned: a real number.
the page increment
Retrieves the page size of the adjustment.
Passed: a <GtkAdjustment>.
an adjustment
Returned: a real number.
the page size
Retrieves the step increment of the adjustment.
Passed: a <GtkAdjustment>.
an adjustment
Returned: a real number.
the step increment
Retrieves the maximum value of the adjustment.
Passed: a <GtkAdjustment>.
an adjustment
Returned: a real number.
the maximum value
Gets the current value of the adjustment.
Passed: a <GtkAdjustment>.
an adjustment
Returned: a real number.
the current value
Creates a new <GtkAdjustment>.
Passed: a real number.
the initial value
Passed: a real number.
the minimum value
Passed: a real number.
the maximum value
Passed: a real number.
the step increment
Passed: a real number.
the page increment
Passed: a real number.
the page size
Returned: a <GtkAdjustment>.
a new <GtkAdjustment>
Sets the minimum value of the adjustment.
When setting multiple adjustment properties via their individual
setters, multiple adjustment:changed signals will be emitted. However, since
the emission of the adjustment:changed signal is tied to the emission of the
::notify signals of the changed properties, it’s possible to compress
the adjustment:changed signals
into one by calling object:freeze-notify and object:thaw-notify around the calls to the
individual setters.
Alternatively, using a single g_object_set() for all the
properties to change, or using adjustment:configure has the same effect.
Passed: a <GtkAdjustment>.
an adjustment
Passed: a real number.
the new minimum value
Sets the page increment of the adjustment.
See adjustment:set-lower about how to
compress multiple emissions of the adjustment:changed signal when setting multiple adjustment
properties.
Passed: a <GtkAdjustment>.
an adjustment
Passed: a real number.
the new page increment
Sets the page size of the adjustment.
See adjustment:set-lower about how to
compress multiple emissions of the adjustment:changed signal when setting multiple adjustment
properties.
Passed: a <GtkAdjustment>.
an adjustment
Passed: a real number.
the new page size
Sets the step increment of the adjustment.
See adjustment:set-lower about how to
compress multiple emissions of the adjustment:changed signal when setting multiple adjustment
properties.
Passed: a <GtkAdjustment>.
an adjustment
Passed: a real number.
the new step increment
Sets the maximum value of the adjustment.
Note that values will be restricted by upper - page-size if the
page-size property is nonzero.
See adjustment:set-lower about how to
compress multiple emissions of the adjustment:changed signal when setting multiple adjustment
properties.
Passed: a <GtkAdjustment>.
an adjustment
Passed: a real number.
the new maximum value
Sets the <GtkAdjustment> value.
The value is clamped to lie between adjustment:lower and adjustment:upper.
Note that for adjustments which are used in a
<GtkScrollbar>, the effective range of allowed
values goes from adjustment:lower to adjustment:upper - adjustment:page-size.
Passed: a <GtkAdjustment>.
an adjustment
Passed: a real number.
the new value
Connect a handler with (connect object adjustment:changed
handler). It is called as (handler self).
Emitted when one or more of the <GtkAdjustment>
properties have been changed.
Note that the adjustment:value
property is covered by the adjustment:value-changed signal.
Passed: a <GtkAdjustment>.
Connect a handler with (connect object adjustment:value-changed
handler). It is called as (handler self).
Emitted when the value has been changed.
Passed: a <GtkAdjustment>.
To override it in a new class, give register-type #:vfuncs
`((changed . ,procedure)). The procedure is called as
(procedure self).
Passed: the class whose implementation to call:
<GtkAdjustment>, or a class that derives from
it, or its GType number.
Passed: a <GtkAdjustment>.
To override it in a new class, give register-type #:vfuncs
`((value-changed . ,procedure)). The procedure is called as
(procedure self).
Passed: the class whose implementation to call:
<GtkAdjustment>, or a class that derives from
it, or its GType number.
Passed: a <GtkAdjustment>.