Attention: Here be dragons
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Checking the stable version of the documentation...
ScrollBar
Inherits: Range < Control < CanvasItem < Node < Object
Inherited By: HScrollBar, VScrollBar
Abstract base class for scrollbars.
Description
Abstract base class for scrollbars, typically used to navigate through content that extends beyond the visible area of a control. Scrollbars are Range-based controls.
Properties
|
||
focus_mode |
|
|
step |
|
Theme Properties
|
||
Signals
scrolling() 🔗
Emitted when the scrollbar is being scrolled.
Property Descriptions
Overrides the step used when clicking increment and decrement buttons or when using arrow keys when the ScrollBar is focused.
Theme Property Descriptions
The maximum allowed size of the ScrollBar's increment and decrement icons. The texture is scaled down so its widest axis is icon_max_size and the other axis is scaled keeping the original ratio.
Icon used as a button to scroll the ScrollBar left/up. Supports custom step using the custom_step property.
Texture2D decrement_highlight 🔗
Displayed when the mouse cursor hovers over the decrement button.
Displayed when the decrement button is being pressed.
Icon used as a button to scroll the ScrollBar right/down. Supports custom step using the custom_step property.
Texture2D increment_highlight 🔗
Displayed when the mouse cursor hovers over the increment button.
Displayed when the increment button is being pressed.
AudioStream drag_ended_sound 🔗
Played when mouse or touch drag ends.
AudioStream drag_started_sound 🔗
Played when mouse or touch drag begins.
AudioStream value_change_rejected_sound 🔗
Played when the value is attempted to be changed through keyboard or gamepad input, but the value is already at the minimum (or maximum).
AudioStream value_changed_sound 🔗
Played when the value is changed through keyboard or gamepad input. If the value is already at the minimum (or maximum), value_change_rejected_sound is played instead.
Used as texture for the grabber, the draggable element representing current scroll.
Used when the mouse hovers over the grabber.
Used when the grabber is being dragged.
Used as background of this ScrollBar.
Used as background when the ScrollBar has the GUI focus.