Skip to main content

render_button_row

Function render_button_row 

Source
pub fn render_button_row(
    frame: &mut Frame<'_>,
    area: Rect,
    buttons: &[(&ButtonState, &ButtonColors)],
    gap: u16,
) -> Vec<ButtonLayout>
Expand description

Render a row of buttons with equal spacing

§Arguments

  • frame - The ratatui frame to render to
  • area - Rectangle where the buttons should be rendered
  • buttons - Slice of (state, colors) tuples for each button
  • gap - Space between buttons

§Returns

Layout information for each button