Skip to content
0.2.0-dev Download ZIP
75 lines ·4.0 KB Raw
1<?xml version="1.0" encoding="UTF-8" ?>
2<class name="ScrollBar" inherits="Range" api_type="core" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
3 <brief_description>
4 Abstract base class for scrollbars.
5 </brief_description>
6 <description>
7 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.
8 </description>
9 <tutorials>
10 </tutorials>
11 <members>
12 <member name="custom_step" type="float" setter="set_custom_step" getter="get_custom_step" default="-1.0">
13 Overrides the step used when clicking increment and decrement buttons or when using arrow keys when the [ScrollBar] is focused.
14 </member>
15 <member name="focus_mode" type="int" setter="set_focus_mode" getter="get_focus_mode" overrides="Control" enum="Control.FocusMode" default="3" />
16 <member name="step" type="float" setter="set_step" getter="get_step" overrides="Range" default="0.0" />
17 </members>
18 <signals>
19 <signal name="scrolling">
20 <description>
21 Emitted when the scrollbar is being scrolled.
22 </description>
23 </signal>
24 </signals>
25 <theme_items>
26 <theme_item name="icon_max_size" data_type="constant" type="int" default="0">
27 The maximum allowed size of the [ScrollBar]'s increment and decrement icons. The texture is scaled down so its widest axis is [theme_item icon_max_size] and the other axis is scaled keeping the original ratio.
28 </theme_item>
29 <theme_item name="decrement" data_type="icon" type="Texture2D">
30 Icon used as a button to scroll the [ScrollBar] left/up. Supports custom step using the [member ScrollBar.custom_step] property.
31 </theme_item>
32 <theme_item name="decrement_highlight" data_type="icon" type="Texture2D">
33 Displayed when the mouse cursor hovers over the decrement button.
34 </theme_item>
35 <theme_item name="decrement_pressed" data_type="icon" type="Texture2D">
36 Displayed when the decrement button is being pressed.
37 </theme_item>
38 <theme_item name="increment" data_type="icon" type="Texture2D">
39 Icon used as a button to scroll the [ScrollBar] right/down. Supports custom step using the [member ScrollBar.custom_step] property.
40 </theme_item>
41 <theme_item name="increment_highlight" data_type="icon" type="Texture2D">
42 Displayed when the mouse cursor hovers over the increment button.
43 </theme_item>
44 <theme_item name="increment_pressed" data_type="icon" type="Texture2D">
45 Displayed when the increment button is being pressed.
46 </theme_item>
47 <theme_item name="drag_ended_sound" data_type="sound" type="AudioStream">
48 Played when mouse or touch drag ends.
49 </theme_item>
50 <theme_item name="drag_started_sound" data_type="sound" type="AudioStream">
51 Played when mouse or touch drag begins.
52 </theme_item>
53 <theme_item name="value_change_rejected_sound" data_type="sound" type="AudioStream">
54 Played when the value is attempted to be changed through keyboard or gamepad input, but the value is already at the minimum (or maximum).
55 </theme_item>
56 <theme_item name="value_changed_sound" data_type="sound" type="AudioStream">
57 Played when the value is changed through keyboard or gamepad input. If the value is already at the minimum (or maximum), [theme_item value_change_rejected_sound] is played instead.
58 </theme_item>
59 <theme_item name="grabber" data_type="style" type="StyleBox">
60 Used as texture for the grabber, the draggable element representing current scroll.
61 </theme_item>
62 <theme_item name="grabber_highlight" data_type="style" type="StyleBox">
63 Used when the mouse hovers over the grabber.
64 </theme_item>
65 <theme_item name="grabber_pressed" data_type="style" type="StyleBox">
66 Used when the grabber is being dragged.
67 </theme_item>
68 <theme_item name="scroll" data_type="style" type="StyleBox">
69 Used as background of this [ScrollBar].
70 </theme_item>
71 <theme_item name="scroll_focus" data_type="style" type="StyleBox">
72 Used as background when the [ScrollBar] has the GUI focus.
73 </theme_item>
74 </theme_items>
75</class>