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

Union-free owning snapshot of one compile-time cell appearance. More...

#include <ui_static.hpp>

Public Member Functions

constexpr PackedCellStyle (CellStyle style)
constexpr CellStyle value () const

Public Attributes

RgbColor foreground
 Foreground value; ignored when absent.
RgbColor background
 Background value; ignored when absent.
bool hasForeground
 Whether the foreground is an explicit RGB value.
bool hasBackground
 Whether the background is an explicit RGB value.
bool bold
 Explicit bold appearance.
bool italic
 Explicit italic appearance.
bool underline
 Explicit underline appearance.

Detailed Description

Union-free owning snapshot of one compile-time cell appearance.

Constructor & Destructor Documentation

◆ PackedCellStyle()

portals::ui::ct::detail::PackedCellStyle::PackedCellStyle ( CellStyle style)
inlineexplicitconstexpr
Parameters
styleOwning appearance whose RGB presence and attributes are preserved.

Member Function Documentation

◆ value()

CellStyle portals::ui::ct::detail::PackedCellStyle::value ( ) const
inlineconstexpr
Returns
Original owning appearance, including absent colors and explicit black.

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