Skip to main content

label

Function label 

Source
pub fn label(
    theme: &UiTheme,
    text: &str,
    position: Vec2,
    font_size: Option<f32>,
    color: Option<Color>,
) -> Rect
Expand description

Draw a text label. Returns its rect for layout purposes.