36 explicit Cell (uint32_t
c, uint16_t a, uint64_t chan,
NotCurses *ncinst =
nullptr) noexcept
47 operator nccell const* ()
const noexcept
64 return _cell.stylemask;
69 return _cell.channels;
74 nccell_set_styles (&_cell,
static_cast<unsigned>(styles));
79 return static_cast<CellStyle>(nccell_styles (&_cell));
84 nccell_on_styles (&_cell,
static_cast<unsigned>(styles));
89 nccell_off_styles (&_cell,
static_cast<unsigned>(styles));
94 return nccell_double_wide_p (&_cell);
99 return nccell_fg_rgb (&_cell);
104 return nccell_bg_rgb (&_cell);
109 return nccell_fg_alpha (&_cell);
114 return nccell_fg_default_p (&_cell);
119 return nccell_set_fg_alpha (&_cell, alpha) != -1;
124 return nccell_bg_alpha (&_cell);
129 return nccell_set_bg_alpha (&_cell, alpha) != -1;
132 unsigned get_fg_rgb8 (
unsigned *
r,
unsigned *g,
unsigned *b)
const noexcept
134 return nccell_fg_rgb8 (&_cell,
r, g, b);
140 nccell_set_fg_rgb8_clipped (&_cell,
r, g, b);
144 return nccell_set_fg_rgb8 (&_cell,
r, g, b) != -1;
149 nccell_set_fg_rgb (&_cell, channel);
154 nccell_set_fg_default (&_cell);
157 unsigned get_bg_rgb8 (
unsigned *
r,
unsigned *g,
unsigned *b)
const noexcept
159 return nccell_bg_rgb8 (&_cell,
r, g, b);
165 nccell_set_bg_rgb8_clipped (&_cell,
r, g, b);
169 return nccell_set_bg_rgb8 (&_cell,
r, g, b) != -1;
174 nccell_set_bg_rgb (&_cell, channel);
179 nccell_set_bg_default (&_cell);
184 return nccell_bg_default_p (&_cell);
189 return nccell_wide_right_p (&_cell);
194 return nccell_wide_left_p (&_cell);
void set_fg_rgb(uint32_t channel) noexcept
uint16_t get_stylemask() const noexcept
bool set_bg_rgb8(int r, int g, int b, bool clipped=false) noexcept
Cell(uint32_t c, NotCurses *ncinst=nullptr) noexcept
unsigned get_fg_rgb() const noexcept
bool is_double_wide() const noexcept
unsigned get_bg_alpha() const noexcept
bool set_fg_alpha(unsigned alpha) noexcept
bool is_fg_default() const noexcept
unsigned get_fg_alpha() const noexcept
bool is_wide_right() const noexcept
bool set_bg_alpha(unsigned alpha) noexcept
void set_fg_default() noexcept
bool is_bg_default() const noexcept
void styles_off(CellStyle styles) noexcept
void set_bg_default() noexcept
bool is_wide_left() const noexcept
bool set_fg_rgb8(int r, int g, int b, bool clipped=false) noexcept
unsigned get_bg_rgb() const noexcept
Cell(uint32_t c, uint16_t a, uint64_t chan, NotCurses *ncinst=nullptr) noexcept
unsigned get_fg_rgb8(unsigned *r, unsigned *g, unsigned *b) const noexcept
void styles_on(CellStyle styles) noexcept
unsigned get_bg_rgb8(unsigned *r, unsigned *g, unsigned *b) const noexcept
void set_bg_rgb(uint32_t channel) noexcept
CellStyle get_styles() noexcept
Cell(NotCurses *ncinst=nullptr) noexcept
void set_styles(CellStyle styles) noexcept
uint64_t get_channels() const noexcept
#define NCCELL_CHAR_INITIALIZER(c)
#define NCALPHA_TRANSPARENT
#define NCCELL_INITIALIZER(c, s, chan)
#define NCALPHA_HIGHCONTRAST