Portals0.7.0 · dev (544a5c68c72e · 2026-11-28 UTC)
Loading...
Searching...
No Matches
portals::TextCommand Struct Reference

One horizontal text run; controls display placeholders, never line breaks. More...

#include <render.hpp>

Public Attributes

CellPoint origin
 First grapheme origin in surface cells; negative coordinates are valid.
const GraphemeText & text
 Validated text borrowed synchronously; no pointer is retained in the result.
CellRect clip
 Half-open surface-cell clip; new graphemes must fit completely inside it.
CellStyle style {}
 Owning paint style for every visible grapheme.
std::int32_t z {}
 Ascending paint order; equal values preserve command input order.
std::size_t firstGrapheme {}
 First selected grapheme; origin places this grapheme, not the complete text.
std::size_t graphemeCount {std::numeric_limits<std::size_t>::max()}
 Selected count; SIZE_MAX selects the remaining suffix. Invalid ranges reject the frame.

Detailed Description

One horizontal text run; controls display placeholders, never line breaks.

text is borrowed until renderFullFrame returns. Other fields own their values. Keep the referenced text alive and unchanged while rendering. Commands have no thread affinity; sharing them requires synchronization with text mutation.


The documentation for this struct was generated from the following file: