Skip to main content

pill_size

Function pill_size 

pub fn pill_size(
    text: &str,
    tr: &mut TextRenderer,
    theme: &Theme,
    control: f64,
) -> (f64, f64)
Expand description

The pill’s size for text. control is a leading+trailing slot in px each for a control inside the pill (0.0 for a plain label).