Skip to main content

panel

Function panel 

Source
fn panel(
    ctx: &Context,
    id: Id,
    pos: Pos2,
    title: &str,
    rows: &[Row<'_>],
    title_sense: Sense,
) -> (Rect, Vec<Response>)
Expand description

Draw one menu panel (title bar plus rows) in its own foreground [Area] at pos. Returns the panel’s outer rect and each row’s response.