An interface for widgets with native scrolling ability.
To implement this interface you should override the
scrollable:hadjustment and
scrollable:vadjustment
properties.
All scrollable widgets should do the following.
adjustment:value-changed signal. The child widget
should then populate the adjustments’ properties as soon as possible,
which usually means queueing an allocation right away and populating the
properties in the widget:do-size-allocate implementation.
widget:do-size-allocate implementation.
adjustment:configure.
adjustment:value-changed signal, the scrollable widget
should scroll its contents.
Horizontal <GtkAdjustment> of the scrollable
widget.
This adjustment is shared between the scrollable widget and its parent.
Its value is a <GtkAdjustment>, or #f.
Set it with (set! (scrollable:hadjustment self) value).
Determines when horizontal scrolling should start.
Its value is a <GtkScrollablePolicy> (or,
to set it, one of its symbols).
Set it with (set! (scrollable:hscroll-policy self) value).
Vertical <GtkAdjustment> of the scrollable
widget.
This adjustment is shared between the scrollable widget and its parent.
Its value is a <GtkAdjustment>, or #f.
Set it with (set! (scrollable:vadjustment self) value).
Determines when vertical scrolling should start.
Its value is a <GtkScrollablePolicy> (or,
to set it, one of its symbols).
Set it with (set! (scrollable:vscroll-policy self) value).
Returns the size of a non-scrolling border around the outside of the scrollable.
An example for this would be treeview headers. GTK can use this information to display overlaid graphics, like the overshoot indication, at the right position.
Passed: a <GtkScrollable>.
Passed, filled in, and returned: a <GtkBorder>.
return location for the results
Returned: a boolean.
#t if border has been set
Retrieves the <GtkAdjustment> used for
horizontal scrolling.
Passed: a <GtkScrollable>.
Returned: a <GtkAdjustment>, or #f.
horizontal <GtkAdjustment>.
Gets the horizontal
<GtkScrollablePolicy>.
Passed: a <GtkScrollable>.
Returned: a <GtkScrollablePolicy>.
The horizontal <GtkScrollablePolicy>.
Retrieves the <GtkAdjustment> used for vertical
scrolling.
Passed: a <GtkScrollable>.
Returned: a <GtkAdjustment>, or #f.
vertical <GtkAdjustment>.
Gets the vertical <GtkScrollablePolicy>.
Passed: a <GtkScrollable>.
Returned: a <GtkScrollablePolicy>.
The vertical <GtkScrollablePolicy>.
Sets the horizontal adjustment of the
<GtkScrollable>.
Passed: a <GtkScrollable>.
Passed, or left out: a <GtkAdjustment>, or
#f.
Sets the <GtkScrollablePolicy>.
The policy determines whether horizontal scrolling should start below the minimum width or below the natural width.
Passed: a <GtkScrollable>.
Passed: a <GtkScrollablePolicy>, or one
of its symbols.
the horizontal <GtkScrollablePolicy>
Sets the vertical adjustment of the
<GtkScrollable>.
Passed: a <GtkScrollable>.
Passed, or left out: a <GtkAdjustment>, or
#f.
Sets the <GtkScrollablePolicy>.
The policy determines whether vertical scrolling should start below the minimum height or below the natural height.
Passed: a <GtkScrollable>.
Passed: a <GtkScrollablePolicy>, or one
of its symbols.
the vertical <GtkScrollablePolicy>
Returns the size of a non-scrolling border around the outside of the scrollable.
An example for this would be treeview headers. GTK can use this information to display overlaid graphics, like the overshoot indication, at the right position.
To override it in a new class, give register-type #:vfuncs
`((get-border . ,procedure)). The procedure is called as
(procedure self border) ⇒ %return.
Passed: the class whose implementation to call: a class that implements
<GtkScrollable>, or its GType number.
Passed: a <GtkScrollable>.
Passed, filled in, and returned: a <GtkBorder>.
return location for the results
Returned: a boolean.
#t if border has been set