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

Owning metadata; IDs may only be interpreted within the source buffer. More...

#include <cell_buffer.hpp>

Public Member Functions

bool operator== (const Cell &other) const noexcept=default
 Compare metadata, including local IDs.

Public Attributes

GlyphId glyph
 Interned display grapheme, shared by both halves of a wide glyph.
StyleId style
 Interned style, shared by both halves of a wide glyph.
CellKind kind {CellKind::BLANK}
 Blank, lead or continuation role.
std::uint8_t columns {1}
 Display width: one for blank/narrow, two for wide lead, zero for continuation.

Detailed Description

Owning metadata; IDs may only be interpreted within the source buffer.

Member Function Documentation

◆ operator==()

bool portals::Cell::operator== ( const Cell & other) const
defaultnoexcept

Compare metadata, including local IDs.

Parameters
otherValue whose corresponding fields are compared.
Returns
True when every compared field is equal; false otherwise.

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