Skip to main content

paint_diamond_outline

Function paint_diamond_outline 

Source
pub fn paint_diamond_outline(
    ui: &mut dyn UiBuilder,
    cx: f32,
    cy: f32,
    size: f32,
    color: [f32; 4],
    thickness: f32,
)
Expand description

Paints a 4-point diamond (rotated square) outline centered at (cx, cy).

Editor-only: the shared library ships a filled diamond, not an outlined one (the empty-state used to draw it, but that now uses the shared empty_state widget). Kept here for the few chrome call sites that still want the ring.