Package: gtk
Class gtk-scrollbar
Superclassesgtk-range, gtk-widget, gtk-buildable, gtk-orientable, g-object, common-lisp:standard-object, common-lisp:t Documented Subclasses
None
Direct Slots
None
Details The gtk-scrollbar widget is a horizontal or vertical scrollbar, depending on the value of the orientation property. ![]() The position of the thumb in a scrollbar is controlled by the scroll adjustments. See the gtk-adjustment object for the properties in an adjustment - for the gtk-scrollbar widget, the value property represents the position of the scrollbar, which must be between the lower value and the (upper - page-size) difference. The page-size property represents the size of the visible scrollable area. The step-increment and page-increment properties are used when the user asks to step down, using the small stepper arrows, or page down, using for example the PageDown key. CSS nodesscrollbar[.fine-tune] ╰── contents ├── [button.up] ├── [button.down] ├── trough │ ╰── slider ├── [button.up] ╰── [button.down]The gtk-scrollbar implementation has a main CSS node with name scrollbar and a subnode for its contents, with subnodes named trough and slider. The main node gets the .fine-tune style class added when the scrollbar is in "fine-tuning" mode. If steppers are enabled, they are represented by up to four additional subnodes with name button. These get the .up and .down style classes to indicate in which direction they are moving. Other style classes that may be added to scrollbars inside the gtk-scrolled-window implmentation include the .left, .right, .top, .bottom positional classes and style classes related to overlay scrolling .overlay-indicator, .dragging, .hovering. Style Property Details
| Inherited Slot Access FunctionsSee also |
2021-12-27