Function ratatui_inner

Source
#[no_mangle]
pub extern "C" fn ratatui_inner(
    handle: *mut c_void,
    area_id: u32,
    horizontal: u16,
    vertical: u16,
) -> u32
Expand description

Returns a new area id covering the inner rectangle of area_id shrunk by the given margins on each side.

§Parameters

  • area_id: parent area id.
  • horizontal: cells to remove from the left and right edges.
  • vertical: cells to remove from the top and bottom edges.

§Returns

The id of the newly registered inner area, or u32::MAX if handle is null or area_id is unknown.