pub fn button_icon(
rect: Rect,
icon: Icon,
label: &str,
kind: ButtonKind,
motion: &ButtonMotion,
theme: &KitTheme,
)Expand description
button with a pictogram before its label (or alone when label is
empty): [▶ Play], [↻ Retry], [⚙]. The icon takes the label’s ink.
use ferravex_render::{Rect, icons::Icon, ui::kit::{self, ButtonKind, ButtonMotion, KitTheme}};
let theme = KitTheme::default();
kit::button_icon(Rect::new(20., 20., 160., 40.), Icon::Play, "Resume",
ButtonKind::Primary, &ButtonMotion::default(), &theme);