Skip to main content

rail_caption_fits

Function rail_caption_fits 

pub fn rail_caption_fits(
    theme: &Theme,
    text_renderer: &mut TextRenderer,
    label: &str,
    width: f64,
) -> bool
Expand description

Whether label stands whole in a rail tile width wide: on at most two caption lines, broken only at spaces, with nothing elided.