ScrollBar

继承: Range < Control < Item < Object

派生: HScrollBar, VScrollBar

滚动条的抽象基类。

描述

滚动条的抽象基类,通常用于浏览超出控件可见区域的内容。滚动条是基于Range的控件。

属性

float

custom_step

-1.0

float

step

0.0 (overrides Range)

主题属性


信号

scrolling() 🔗

滚动条滚动时发出。


属性说明

float custom_step = -1.0 🔗

  • void set_custom_step(value: float)

  • float get_custom_step()

覆盖单击递增和递减按钮或在ScrollBar聚焦时使用箭头键时使用的步骤。


主题属性说明

Texture2D decrement 🔗

图标用作向左/向上滚动ScrollBar的按钮。支持使用custom_step属性自定义步骤。


Texture2D decrement_highlight 🔗

当鼠标光标悬停在递减按钮上时显示。


Texture2D decrement_pressed 🔗

按下递减按钮时显示。


Texture2D increment 🔗

图标用作向右/向下滚动ScrollBar的按钮。支持使用custom_step属性自定义步骤。


Texture2D increment_highlight 🔗

当鼠标光标悬停在增量按钮上时显示。


Texture2D increment_pressed 🔗

按下增量按钮时显示。


StyleBox grabber 🔗

用作抓取器的纹理,表示当前滚动的可拖动元素。


StyleBox grabber_highlight 🔗

当鼠标悬停在抓取器上时使用。


StyleBox grabber_pressed 🔗

拖动抓取器时使用。


StyleBox scroll 🔗

用作此ScrollBar的背景。


StyleBox scroll_focus 🔗

ScrollBar具有GUI焦点时用作背景。