Skip to main content

Module spin_button

Module spin_button 

Source
Expand description

Numeric stepper with - / + buttons flanking a value label.

Stateless w.r.t. the value: the host owns the i32 and rebuilds the widget each frame. The on_change callback receives the new value (clamped to min..=max) when a side is tapped.

Structs§

SpinButton
Numeric stepper widget.

Enums§

SpinOrientation
Layout direction for a SpinButton.

Functions§

horizontal_spin_button
Horizontal spinner [-] [value] [+].
vertical_spin_button
Vertical spinner stacked plus-on-top / value / minus-on-bottom.