Skip to main content

draw_text

Function draw_text 

Source
pub fn draw_text<R: Renderer>(
    anchor: Pos2,
    text: &str,
    width: BoxWidth,
    painter: &mut Style<'_, R>,
)
Expand description

Draw the annotation’s top-left-aligned text at anchor as a box width wide shows it, matching the in-place editor’s wrap.