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).
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).
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.
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.
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.