Skip to main content

create_standard_layout

Function create_standard_layout 

Source
pub fn create_standard_layout(
    area: Rect,
    header_height: u16,
    footer_height: u16,
) -> (Rect, Rect, Rect)
Expand description

Create a standard vertical layout with header, content, and footer

§Arguments

  • area - The area to split
  • header_height - Height of the header (default: 6 for Header component)
  • footer_height - Height of the footer (default: 2 for Footer component)

§Returns

Tuple of (header_area, content_area, footer_area)