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

Owning RGB color; terminal encoding belongs to the output adapter. More...

#include <cell_buffer.hpp>

Public Member Functions

bool operator== (const RgbColor &other) const noexcept=default
 Compare all components.

Public Attributes

std::uint8_t red {}
 Red component.
std::uint8_t green {}
 Green component.
std::uint8_t blue {}
 Blue component.

Detailed Description

Owning RGB color; terminal encoding belongs to the output adapter.

Member Function Documentation

◆ operator==()

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

Compare all components.

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: