ScrollBar
继承: Range
< Control
< CanvasItem
< Node
< Object
派生: HScrollBar
, VScrollBar
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.
属性
主题属性
信号
scrolling ( )
Emitted when the scrollbar is being scrolled.
属性说明
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.
主题属性说明
Texture2D
decrement
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.
Texture2D
decrement_pressed
Displayed when the decrement button is being pressed.
Texture2D
increment
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.
Texture2D
increment_pressed
Displayed when the increment button is being pressed.
StyleBox
grabber
Used as texture for the grabber, the draggable element representing current scroll.
StyleBox
grabber_highlight
Used when the mouse hovers over the grabber.
StyleBox
grabber_pressed
Used when the grabber is being dragged.
StyleBox
scroll
Used as background of this ScrollBar.
StyleBox
scroll_focus
Used as background when the ScrollBar has the GUI focus.
本方法通常需要用户覆盖才能生效。
本方法无副作用,不会修改该实例的任何成员变量。
本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。
本方法用于构造某个类型。
调用本方法无需实例,可直接使用类名进行调用。
本方法描述的是使用本类型作为左操作数的有效运算符。
这个值是由下列位标志构成位掩码的整数。
无返回值。