Skip to main content

paint_mark

Function paint_mark 

Source
pub fn paint_mark(
    p: &Painter,
    icon: Icon,
    rect: Rect,
    color: Color32,
    ring: f32,
) -> bool
Expand description

Paints one of the marks that fill their square (Icon::Circle, Disc, Square, Triangle, Asterisk, Corner, and the Icon::Diamond) at the full size of rect, a ring ring points thick; false for any other icon, which is left unpainted. Dots, LEDs and flags draw their default shapes with it.