Skip to main content

ui_switch

Function ui_switch 

Source
pub fn ui_switch(id: u32, x: f32, y: f32, label: &str, initial: bool) -> bool
Expand description

Render a pill-shaped on/off toggle. Returns the current checked state.

initial sets the value the first time this ID is seen.