Abstract base class for controls that represent a number within a range.
Range is an abstract base class for controls that represent a number within a range, using a configured [member step] and [member page] size. See e.g. [ScrollBar] and [Slider] for examples of higher-level nodes using Range.
Called when the [Range]'s value is changed (following the same conditions as [signal value_changed]).
Sets the [Range]'s current value to the specified [param value], without emitting the [signal value_changed] signal.
Binds two [Range]s together along with any ranges previously grouped with either of them. When any of range's member variables change, it will share the new value with all other ranges in its group.
Stops the [Range] from sharing its member variables with any other.
- If [code]true[/code], [member value] may be greater than [member max_value].
- If [code]true[/code], [member value] may be less than [member min_value].
- If [code]true[/code], and [member min_value] is greater or equal to [code]0[/code], [member value] will be represented exponentially rather than linearly.
- Maximum value. Range is clamped if [member value] is greater than [member max_value].
- Minimum value. Range is clamped if [member value] is less than [member min_value].
- Page size. Used mainly for [ScrollBar]. A [ScrollBar]'s grabber length is the [ScrollBar]'s size multiplied by [member page] over the difference between [member min_value] and [member max_value].
- The value mapped between 0 and 1.
- If [code]true[/code], [member value] will always be rounded to the nearest integer.
- If greater than [code]0.0[/code], [member value] will always be rounded to a multiple of this property's value above [member min_value]. For example, if [member min_value] is [code]0.1[/code] and step is [code]0.2[/code], then [member value] is limited to [code]0.1[/code], [code]0.3[/code], [code]0.5[/code], and so on. If [member rounded] is also [code]true[/code], [member value] will first be rounded to a multiple of this property's value, then rounded to the nearest integer.
- Range's current value. Changing this property (even via code) will trigger [signal value_changed] signal. Use [method set_value_no_signal] if you want to avoid it.
Emitted when [member min_value], [member max_value], [member page], or [member step] change.
Emitted when [member value] changes. When used on a [Slider], this is called continuously while dragging (potentially every frame). If you are performing an expensive operation in a function connected to [signal value_changed], consider using a [i]debouncing[/i] [Timer] to call the function less often. [b]Note:[/b] Unlike signals such as [signal LineEdit.text_changed], [signal value_changed] is also emitted when [param value] is set directly via code.