Package: gtk

Class gtk:scrollbar

Superclasses

Documented Subclasses

None

Direct Slots

adjustment
The adjustment property of type gtk:adjustment (Read / Write / Construct)
The adjustment that contains the current value of this scrollbar.

Details

The gtk:scrollbar widget is a horizontal or vertical scrollbar, depending on the value of the orientation property.

Figure: GtkScrollbar

Its position and movement are controlled by the adjustment that is passed to or created by the gtk:scrollbar-new function. See the gtk:adjustment documentation for more details. The value property sets the position of the thumb and must be between the lower and upper - page-size values. The page-size property represents the size of the visible scrollable area. The step-increment and page-increment properties are added to or subtracted from the value property when the user asks to move by a step, using, for example, the cursor arrow keys, or by a page, using, for example, the Page Down/Page Up keys.

CSS nodes

scrollbar
╰── range[.fine-tune]
    ╰── trough
        ╰── slider    
The gtk:scrollbar implementation 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 orientation of the scrollbar. The range node gets the .fine-tune style class added when the scrollbar is in 'fine-tuning' mode.

Other style classes that may be added to scrollbars inside the gtk:scrolled-window widget include the .left, .right, .top, .bottom positional classes and .overlay-indicator, .dragging, .hovering style classes related to overlay scrolling.

Accessibility

The gtk:scrollbar implementation uses the :scrollbar role of the gtk:accessible-role enumeration.
 

Returned by

Slot Access Functions

Inherited Slot Access Functions

See also

2024-6-1