nngn
Loading...
Searching...
No Matches
nngn::term::FrameBuffer::ColoredPixel Struct Reference

Public Member Functions

 ColoredPixel (void)=default
 Constructs a black pixel.
 
 ColoredPixel (Texture::texel3 color)
 Constructs an opaque pixel with a given color.
 

Static Public Member Functions

static bool cmp_rgb (const ColoredPixel &lhs, const ColoredPixel &rhs)
 Equality comparison for the RGB portion of the data.
 

Public Attributes

std::array< char, CMD.size()> cmd = nngn::to_array<CMD.size()>(CMD)
 
std::array< char, 3 > r = nngn::to_array("000")
 
char semicolon0 = ';'
 
std::array< char, 3 > g = nngn::to_array("000")
 
char semicolon1 = ';'
 
std::array< char, 3 > b = nngn::to_array("000")
 
char m = 'm'
 
char space = ' '
 

Static Public Attributes

static constexpr auto CMD = ANSIEscapeCode::bg_color_24bit
 

Constructor & Destructor Documentation

◆ ColoredPixel() [1/2]

nngn::term::FrameBuffer::ColoredPixel::ColoredPixel ( void )
default

Constructs a black pixel.

◆ ColoredPixel() [2/2]

nngn::term::FrameBuffer::ColoredPixel::ColoredPixel ( Texture::texel3 color)
inlineexplicit

Constructs an opaque pixel with a given color.

Here is the call graph for this function:

Member Function Documentation

◆ cmp_rgb()

bool nngn::term::FrameBuffer::ColoredPixel::cmp_rgb ( const ColoredPixel & lhs,
const ColoredPixel & rhs )
inlinestatic

Equality comparison for the RGB portion of the data.

Here is the caller graph for this function:

Member Data Documentation

◆ b

std::array<char, 3> nngn::term::FrameBuffer::ColoredPixel::b = nngn::to_array("000")

◆ CMD

auto nngn::term::FrameBuffer::ColoredPixel::CMD = ANSIEscapeCode::bg_color_24bit
staticconstexpr

◆ cmd

std::array<char, CMD.size()> nngn::term::FrameBuffer::ColoredPixel::cmd = nngn::to_array<CMD.size()>(CMD)

◆ g

std::array<char, 3> nngn::term::FrameBuffer::ColoredPixel::g = nngn::to_array("000")

◆ m

char nngn::term::FrameBuffer::ColoredPixel::m = 'm'

◆ r

std::array<char, 3> nngn::term::FrameBuffer::ColoredPixel::r = nngn::to_array("000")

◆ semicolon0

char nngn::term::FrameBuffer::ColoredPixel::semicolon0 = ';'

◆ semicolon1

char nngn::term::FrameBuffer::ColoredPixel::semicolon1 = ';'

◆ space

char nngn::term::FrameBuffer::ColoredPixel::space = ' '

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