It derives from <GtkWidget>.
Shows a horizontal or vertical scrollbar.
Its position and movement are controlled by the adjustment that is
passed to or created by scrollbar:new. See
<GtkAdjustment> for more details. The
adjustment:value field sets the
position of the thumb and must be between adjustment:lower and adjustment:upper - adjustment:page-size. The adjustment:page-size represents the size of the visible
scrollable area.
The fields adjustment:step-increment and adjustment:page-increment fields are added to
or subtracted from the adjustment:value when the user asks to move by a step (using
e.g. the cursor arrow keys) or by a page (using e.g. the Page Down/Up
keys).
scrollbar
╰── range[.fine-tune]
╰── trough
╰── slider
<GtkScrollbar> has a main CSS node with name
scrollbar and a subnode for its contents. The main node gets the
.horizontal or .vertical style classes applied, depending on the
scrollbar’s orientation.
The range node gets the style class .fine-tune added when the scrollbar is in ’fine-tuning’ mode.
Other style classes that may be added to scrollbars inside
<GtkScrolledWindow> include the positional
classes (.left, .right, .top, .bottom) and style classes related to
overlay scrolling (.overlay-indicator, .dragging, .hovering).
<GtkScrollbar> uses the
Gtk.AccessibleRole.scrollbar role.
The <GtkAdjustment> controlled by this
scrollbar.
Its value is a <GtkAdjustment>, or #f.
Set it with (set! (scrollbar:adjustment self) value).
Returns the scrollbar’s adjustment.
Passed: a <GtkScrollbar>.
Returned: a <GtkAdjustment>.
the scrollbar’s adjustment
Creates a new scrollbar with the given orientation.
Passed: a <GtkOrientation>, or one of its
symbols.
the scrollbar’s orientation.
Passed, or left out: a <GtkAdjustment>, or
#f.
the <GtkAdjustment> to use, or #f to
create a new adjustment.
Returned: a <GtkWidget>.
the new <GtkScrollbar>.
Makes the scrollbar use the given adjustment.
Passed: a <GtkScrollbar>.
Passed, or left out: a <GtkAdjustment>, or
#f.
the adjustment to set