Skip to main content

layout

Function layout 

pub fn layout(
    groups: &[ReactionGroup],
    me: &str,
    can_react: bool,
    _: (Point, f64),
    text: &mut TextRenderer,
    metrics: &StripMetrics,
) -> StripLayout
Expand description

Lay out groups from origin, wrapping at max_width: one pill per group, then the add button when can_react.