pub fn render_svg_centered(
ui: &mut Ui,
icon: &Icon,
center: Pos2,
size: f32,
is_hovered: bool,
is_active: bool,
)Expand description
Render SVG icon at a centered position with specified size.
Convenience wrapper that creates a centered rect from a position.
ยงArguments
ui- The egui UI contexticon- The embedded Icon to rendercenter- Center position for the iconsize- Icon size (square)is_hovered- Whether the icon is being hoveredis_active- Whether the icon is in active/selected state