ScrollBar
Inherits: Range < Control < CanvasItem < Entity < Object
Inherited by: HScrollBar, VScrollBar
Description
Section titled “Description”Abstract base class for scrollbars.
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
Section titled “Properties”| Type | Name | Default |
|---|---|---|
| float | custom_step |
-1.0 |
| Control.FocusMode | focus_mode |
3 (overrides Control) |
| float | step |
0.0 (overrides Range) |
Signals
Section titled “Signals”scrolling
scrolling()
Emitted when the scrollbar is being scrolled.
Theme items
Section titled “Theme items”icon_max_size
int icon_max_size (constant) = 0
decrement
Texture2D decrement (icon)
decrement_highlight
Texture2D decrement_highlight (icon)
decrement_pressed
Texture2D decrement_pressed (icon)
increment
Texture2D increment (icon)
increment_highlight
Texture2D increment_highlight (icon)
increment_pressed
Texture2D increment_pressed (icon)
drag_ended_sound
AudioStream drag_ended_sound (sound)
drag_started_sound
AudioStream drag_started_sound (sound)
value_change_rejected_sound
AudioStream value_change_rejected_sound (sound)
value_changed_sound
AudioStream value_changed_sound (sound)
grabber
StyleBox grabber (style)
grabber_highlight
StyleBox grabber_highlight (style)
grabber_pressed
StyleBox grabber_pressed (style)
scroll
StyleBox scroll (style)
scroll_focus
StyleBox scroll_focus (style)
Property descriptions
Section titled “Property descriptions”custom_step
float custom_step = -1.0
Overrides the step used when clicking increment and decrement buttons or when using arrow keys when the ScrollBar is focused.
