Skip to main content

SELECTED

Constant SELECTED 

Source
pub const SELECTED: Type = 7;
Expand description

Whether the cell is contained within the current selection (bool). This returns true when the cell’s column is within the current row’s row-local selection range, and false otherwise. Rendering policy for selected cells (colors, inversion, etc.) is left to the caller.

Renderers that can draw cells in spans may be more efficient querying GHOSTTY_RENDER_STATE_ROW_DATA_SELECTION once per row and applying that range directly, avoiding one C API call per cell for selection state.