Skip to main content

slider_with

Function slider_with 

Source
pub fn slider_with(
    ui: &mut Ui<'_>,
    label: &str,
    spec: NodeSpec,
    hint: Option<&str>,
) -> Key
Expand description

A slider with its spec in the caller’s hands: slider_spec plus the value rows (value_now, value_min, value_max, value_step, value_text), on_change, description, disabled, a width, and hint, the tooltip drawn while it is hovered. Keyed by label, which is its accessible name unless the spec carries a label of its own. The role is the slider’s whatever the spec said. What <slider> and its Lua and C doors lower to.