mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-09 09:09:03 -04:00
update notcurses_plane.3 and USAGE.md for new styles API
This commit is contained in:
parent
683217ef07
commit
afa65f640f
8
USAGE.md
8
USAGE.md
@ -778,15 +778,17 @@ not rendered. Note that the base cell, like every other cell, has its own
|
||||
foreground and background channels.
|
||||
|
||||
```c
|
||||
uint16_t ncplane_styles(const struct ncplane* n);**
|
||||
|
||||
// Set the specified style bits for the ncplane 'n', whether they're actively
|
||||
// supported or not.
|
||||
void ncplane_styles_set(struct ncplane* n, unsigned stylebits);
|
||||
void ncplane_set_styles(struct ncplane* n, unsigned stylebits);
|
||||
|
||||
// Add the specified styles to the ncplane's existing spec.
|
||||
void ncplane_styles_on(struct ncplane* n, unsigned stylebits);
|
||||
void ncplane_on_styles(struct ncplane* n, unsigned stylebits);
|
||||
|
||||
// Remove the specified styles from the ncplane's existing spec.
|
||||
void ncplane_styles_off(struct ncplane* n, unsigned stylebits);
|
||||
void ncplane_off_styles(struct ncplane* n, unsigned stylebits);
|
||||
|
||||
// Set the ncplane's base cell to this cell. It will be used for purposes of
|
||||
// rendering anywhere that the ncplane's gcluster is 0. Erasing the ncplane
|
||||
|
@ -100,12 +100,8 @@ typedef struct ncplane_options {
|
||||
|
||||
**uint64_t ncplane_channels(const struct ncplane* n);**
|
||||
|
||||
**uint16_t ncplane_attr(const struct ncplane* n);**
|
||||
|
||||
**void ncplane_set_channels(struct ncplane* nc, uint64_t channels);**
|
||||
|
||||
**void ncplane_set_attr(struct ncplane* nc, uint32_t styles);**
|
||||
|
||||
**static inline unsigned ncplane_bchannel(struct ncplane* nc);**
|
||||
|
||||
**static inline unsigned ncplane_fchannel(struct ncplane* nc);**
|
||||
@ -146,11 +142,13 @@ typedef struct ncplane_options {
|
||||
|
||||
**int ncplane_set_bg_palindex(struct ncplane* n, int idx);**
|
||||
|
||||
**void ncplane_styles_set(struct ncplane* n, unsigned stylebits);**
|
||||
**uint16_t ncplane_styles(const struct ncplane* n);**
|
||||
|
||||
**void ncplane_styles_on(struct ncplane* n, unsigned stylebits);**
|
||||
**void ncplane_set_styles(struct ncplane* n, unsigned stylebits);**
|
||||
|
||||
**void ncplane_styles_off(struct ncplane* n, unsigned stylebits);**
|
||||
**void ncplane_on_styles(struct ncplane* n, unsigned stylebits);**
|
||||
|
||||
**void ncplane_off_styles(struct ncplane* n, unsigned stylebits);**
|
||||
|
||||
**void ncplane_greyscale(struct ncplane* n);**
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user