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

Small owning paint value, independent of themes and text metrics. More...

#include <cell_buffer.hpp>

Public Member Functions

bool operator== (const CellStyle &other) const noexcept=default
 Compare the complete value.

Public Attributes

std::optional< RgbColor > foreground
 Foreground RGB, or the terminal default when absent.
std::optional< RgbColor > background
 Background RGB, or the terminal default when absent.
bool bold {}
 Request bold rendering.
bool italic {}
 Request italic rendering.
bool underline {}
 Request underlined rendering.

Detailed Description

Small owning paint value, independent of themes and text metrics.

Member Function Documentation

◆ operator==()

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

Compare the complete value.

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: