Skip to main content

Module RenderStateRowCellsData

Module RenderStateRowCellsData 

Source

Constants§

BG_COLOR
The resolved background color of the cell (GhosttyColorRgb). Flattens the three possible sources: content-tag bg_color_rgb, content-tag bg_color_palette (looked up in the palette), or the style’s bg_color. Returns GHOSTTY_INVALID_VALUE if the cell has no background color, in which case the caller should use whatever default background color it wants (e.g. the terminal background).
FG_COLOR
The resolved foreground color of the cell (GhosttyColorRgb). Resolves palette indices through the palette. Bold color handling is not applied; the caller should handle bold styling separately. Returns GHOSTTY_INVALID_VALUE if the cell has no explicit foreground color, in which case the caller should use whatever default foreground color it wants (e.g. the terminal foreground).
GRAPHEMES_BUF
Write grapheme codepoints into a caller-provided buffer (uint32_t*). The buffer must be at least graphemes_len elements. The base codepoint is written first, followed by any extra codepoints.
GRAPHEMES_LEN
The total number of grapheme codepoints including the base codepoint (uint32_t). Returns 0 if the cell has no text.
GRAPHEMES_UTF8
Encode the current cell’s full grapheme cluster as UTF-8 into a caller-provided buffer (GhosttyBuffer).
HAS_STYLING
Whether the cell has any explicit styling (bool). This is equivalent to querying the raw cell’s GHOSTTY_CELL_DATA_HAS_STYLING value, but avoids materializing the raw GhosttyCell for renderers that only need to know whether fetching the full style is necessary.
INVALID
Invalid / sentinel value.
MAX_VALUE
Encode the current cell’s full grapheme cluster as UTF-8 into a caller-provided buffer (GhosttyBuffer).
RAW
The raw cell value (GhosttyCell).
SELECTED
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.
STYLE
The style for the current cell (GhosttyStyle).

Type Aliases§

Type
Queryable data kinds for ghostty_render_state_row_cells_get().