mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-09 17:19:03 -04:00
Revert "purge all references to nccell_{set}?_[fb]channel() #2571"
This reverts commit 4e0428dfcc58b8de5b0d0b1449e5d7a0b8808e96.
This commit is contained in:
parent
860d06384d
commit
24293e8d72
12
USAGE.md
12
USAGE.md
@ -2245,6 +2245,18 @@ Helpers are provided to manipulate an `nccell`'s `channels` member. They are
|
|||||||
all implemented in terms of the lower-level [Channels API](#channels).
|
all implemented in terms of the lower-level [Channels API](#channels).
|
||||||
|
|
||||||
```c
|
```c
|
||||||
|
// Extract the 32-bit background channel from a cell.
|
||||||
|
static inline uint32_t
|
||||||
|
nccell_bchannel(const nccell* cl){
|
||||||
|
return ncchannels_bchannel(cl->channels);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Extract the 32-bit foreground channel from a cell.
|
||||||
|
static inline uint32_t
|
||||||
|
nccell_fchannel(const nccell* cl){
|
||||||
|
return ncchannels_fchannel(cl->channels);
|
||||||
|
}
|
||||||
|
|
||||||
// Extract 24 bits of foreground RGB from 'cl', shifted to LSBs.
|
// Extract 24 bits of foreground RGB from 'cl', shifted to LSBs.
|
||||||
static inline uint32_t
|
static inline uint32_t
|
||||||
nccell_fg_rgb(const nccell* cl){
|
nccell_fg_rgb(const nccell* cl){
|
||||||
|
@ -78,6 +78,14 @@ typedef struct nccell {
|
|||||||
|
|
||||||
**char* nccell_extract(const struct ncplane* ***n***, const nccell* ***c***, uint16_t* ***stylemask***, uint64_t* ***channels***);**
|
**char* nccell_extract(const struct ncplane* ***n***, const nccell* ***c***, uint16_t* ***stylemask***, uint64_t* ***channels***);**
|
||||||
|
|
||||||
|
**uint32_t nccell_bchannel(const nccell* ***c***);**
|
||||||
|
|
||||||
|
**uint32_t nccell_fchannel(const nccell* ***c***);**
|
||||||
|
|
||||||
|
**uint64_t nccell_set_bchannel(nccell* ***c***, uint32_t ***channel***);**
|
||||||
|
|
||||||
|
**uint64_t nccell_set_fchannel(nccell* ***c***, uint32_t ***channel***);**
|
||||||
|
|
||||||
**uint32_t nccell_fg_rgb(const nccell* ***c***);**
|
**uint32_t nccell_fg_rgb(const nccell* ***c***);**
|
||||||
|
|
||||||
**uint32_t nccell_bg_rgb(const nccell* ***c***);**
|
**uint32_t nccell_bg_rgb(const nccell* ***c***);**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user