Function ratatui_styled_para_begin

Source
#[no_mangle]
pub extern "C" fn ratatui_styled_para_begin(
    handle: *mut c_void,
    area_id: u32,
    alignment: u8,
    wrap: u8,
)
Expand description

Starts a multi-style paragraph builder.

Builder lifecycle:

  1. ratatui_styled_para_begin — open the builder for area_id.
  2. Zero or more ratatui_styled_para_span calls — append styled spans to the current line.
  3. Zero or more ratatui_styled_para_newline calls — start a new line.
  4. ratatui_styled_para_end — flush the builder into the command queue.

Only one styled-paragraph builder may be active at a time per handle. Beginning a new one before _end discards the previous one.

§Parameters

  • alignment: 0 Left, 1 Center, 2 Right.
  • wrap: non-zero to enable word wrapping (trim: false).