Scale

@Composable
fun Scale(value: Double, onChange: (ScrollType, Double) -> Unit, modifier: Modifier = Modifier, orientation: Orientation = Orientation.HORIZONTAL, lower: Double = 0.0, upper: Double = 100.0, digits: Int = 1, drawValue: Boolean = true, hasOrigin: Boolean = true, valuePosition: PositionType = PositionType.TOP, fillLevel: Double = Double.MAX_VALUE, flippable: Boolean = true, stepIncrements: Double = 0.0, pageIncrements: Double = 0.0, inverted: Boolean = false, showFillLevel: Boolean = false, marks: List<Mark> = emptyList())

Creates a org.gnome.gtk.Scale that allows to select a numeric value with a slider control.

Parameters

value

The value of the scale.

onChange

Callback triggered when value changes.

modifier

Compose Modifier for layout and styling.

orientation

The orientation of the scale.

lower

The maximum value of the scale.

upper

The minimum value of the scale.

digits

The number of decimal places that are displayed in the value.

drawValue

Whether the current value is displayed as a string next to the slider.

hasOrigin

Whether the scale has an origin.

valuePosition

The position of the displayed value.

fillLevel

The value of the fill level indicator.

flippable

Makes the scale respect text direction.

stepIncrements

The value of a step increment (changing the value with the keyboard).

pageIncrements

The value of a page increment (changing the value by scrolling).

inverted

Whether the scale is inverted.

showFillLevel

Whether the fill level is displayed.

marks

A list of Mark to display next to the scale.