A comprehensive collection of reusable TUI components for ratatui including resizable splits, tree views, markdown rendering, toast notifications, dialogs, and terminal embedding
//! Visual text-selection coordinates for rendered document viewers.
/// Position in rendered text using document-relative visual coordinates.
#[derive(Debug, Clone, Copy, PartialEq, Eq, Default)]pubstructSelectionPos{/// X coordinate, measured in rendered cells.
pubx:i32,
/// Y coordinate, relative to the rendered document start.
puby:i32,
}implSelectionPos{/// Creates a new rendered text position.
pubfnnew(x:i32, y:i32)->Self{Self{ x, y }}}