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.
 
 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.
 
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/4]

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

Constructs a black pixel.

◆ ColoredPixel() [2/4]

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:

◆ ColoredPixel() [3/4]

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

Constructs a black pixel.

◆ ColoredPixel() [4/4]

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

Constructs an opaque pixel with a given color.

Member Function Documentation

◆ cmp_rgb() [1/2]

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:

◆ cmp_rgb() [2/2]

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

Equality comparison for the RGB portion of the data.

Member Data Documentation

◆ b

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

◆ CMD

static constexpr 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 files: