Like Cell
, but with RGBA
foreground and background colors, instead of RGB
.
More...
#include <cella.hpp>
|
constexpr | CellA (char character=' ', RGBA foreground=RGBAColors::transparent, RGBA background=RGBAColors::transparent) |
| Construct a CellA .
|
|
constexpr | CellA (Cell cell, uint8_t foregroundAlpha, uint8_t backgroundAlpha) |
| Construct a CellA from a Cell .
|
|
constexpr auto | operator== (const CellA &cellA) const -> bool |
| Compare 2 CellA s.
|
|
|
RGBA | f |
| Foreground (character) color.
|
|
RGBA | b |
| Background color.
|
|
char | c |
| ASCII character.
|
|
Like Cell
, but with RGBA
foreground and background colors, instead of RGB
.
◆ CellA() [1/2]
KTech::CellA::CellA |
( |
char | character = ' ', |
|
|
RGBA | foreground = RGBAColors::transparent, |
|
|
RGBA | background = RGBAColors::transparent ) |
|
inlineconstexpr |
Construct a CellA
.
- Parameters
-
[in] | character | ASCII character. |
[in] | foreground | Foreground (character) color. |
[in] | background | Background color. |
◆ CellA() [2/2]
KTech::CellA::CellA |
( |
Cell | cell, |
|
|
uint8_t | foregroundAlpha, |
|
|
uint8_t | backgroundAlpha ) |
|
inlineconstexpr |
Construct a CellA
from a Cell
.
- Parameters
-
[in] | cell | Base Cell . |
[in] | foregroundAlpha | Alpha to add to the foreground (character) color. |
[in] | backgroundAlpha | Alpha to add to the background color. |
◆ operator==()
auto KTech::CellA::operator== |
( |
const CellA & | cellA | ) |
const -> bool
|
|
inlineconstexpr |
Compare 2 CellA
s.
- Parameters
-
- Returns
true
: the foreground colors, background colors, and characters are equal. false
: they are unequal.
The documentation for this struct was generated from the following file: