Skip to main content

toggle

Function toggle 

Source
pub fn toggle(
    x: f32,
    y: f32,
    w: f32,
    h: f32,
    on: bool,
    on_col: Rgba,
    track: Rgba,
) -> Draw
Expand description

Toggle switch; on slides the knob and recolours the rail.