Abstract base class for range-based controls.
Range is a base class for [Control] nodes that change a floating point [i]value[/i] between a [i]minimum[/i] and a [i]maximum[/i], using [i]step[/i] and [i]page[/i], for example a [ScrollBar].
Return value mapped to 0 to 1 range.
Return the maximum value.
Return the minimum value.
Return the page size, if page is 0, paging is disabled.
Return the stepping, if step is 0, stepping is disabled.
Set value mapped to 0 to 1 (unit) range, it will then be converted to the actual value within min and max.
Set minimum value, clamped range value to it if it's less.
Set page size. Page is mainly used for scrollbars or anything that controls text scrolling.
Set step value. If step is 0, stepping will be disabled.
Binds two Ranges 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.
Stop Range from sharing its member variables with any other Range.
- If [code]true[/code] and [code]min_value[/code] is greater than 0, [code]value[/code] will be represented exponentially rather than linearly.
- Maximum value. Range is clamped if [code]value[/code] is greater than [code]max_value[/code]. Default value: 100.
- Minimum value. Range is clamped if [code]value[/code] is less than [code]min_value[/code]. Default value: 0.
- Page size. Used mainly for [ScrollBar]. ScrollBar's length is its size multiplied by [code]page[/code] over the difference between [code]min_value[/code] and [code]max_value[/code].
- If [code]true[/code], [code]value[/code] will always be rounded to the nearest integer.
- If greater than 0, [code]value[/code] will always be rounded to a multiple of [code]step[/code]. If [code]rounded[/code] is also [code]true[/code], [code]value[/code] will first be rounded to a multiple of [code]step[/code] then rounded to the nearest integer.
- Range's current value.
This signal is emitted when min, max, range or step change.
This signal is emitted when value changes.