Skip to main content

draw_pill

Function draw_pill 

pub fn draw_pill(
    scene: &mut Scene,
    transform: Affine,
    tr: &mut TextRenderer,
    theme: &Theme,
    rect: Rect,
    text: &str,
)
Expand description

Paint a bubble with text in rect: a floating Panel (the blurred material, one soft shadow) with the label centred. For a bubble that hosts controls beside its label; a plain status uses StatusBubble::paint.