Skip to main content

token_control

Function token_control 

Source
pub fn token_control<G, S>(
    key: &'static str,
    min_exponent: u32,
    max_exponent: u32,
    value: G,
    set_value: S,
) -> Control
where G: Fn(&App) -> usize + 'static, S: Fn(usize, &mut App) + 'static,
Expand description

A power-of-two token slider, for use inside a SettingRow.