Skip to main content

split_caption

Function split_caption 

Source
pub fn split_caption(label: &str) -> (Option<&'static Icon>, &str)
Expand description

The same split, for a caller that must MEASURE a caption the way icon_button will draw it: the leading icon (if any) and the remaining text. A caption with no leading icon comes back whole.