Skip to main content

render_icon

Function render_icon 

Source
pub fn render_icon(
    painter: &Painter,
    rect: Rect,
    icon_data: &IconData,
    color: Color32,
)
Expand description

Render icon data to an egui painter.

Transforms and renders the pre-tessellated icon geometry to fit within the given rectangle, maintaining aspect ratio and centering.