mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-09 17:19:03 -04:00
kill ncplane_styles(), duplicates ncplane_attrs()
This commit is contained in:
parent
d57e1880e0
commit
202b88615f
3
USAGE.md
3
USAGE.md
@ -788,9 +788,6 @@ void ncplane_styles_on(struct ncplane* n, unsigned stylebits);
|
||||
// Remove the specified styles from the ncplane's existing spec.
|
||||
void ncplane_styles_off(struct ncplane* n, unsigned stylebits);
|
||||
|
||||
// Return the current styling for this ncplane.
|
||||
unsigned ncplane_styles(const struct ncplane* n);
|
||||
|
||||
// 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
|
||||
// does not reset the base cell; this function must be called with a zero 'c'.
|
||||
|
@ -148,6 +148,7 @@ int ncplane_set_fg_alpha(struct ncplane* n, unsigned alpha);
|
||||
int ncplane_set_bg_alpha(struct ncplane* n, unsigned alpha);
|
||||
int ncplane_set_fg_palindex(struct ncplane* n, int idx);
|
||||
int ncplane_set_bg_palindex(struct ncplane* n, int idx);
|
||||
unsigned ncplane_styles(const ncplane* n);
|
||||
void ncplane_styles_set(struct ncplane* n, unsigned stylebits);
|
||||
void ncplane_styles_on(struct ncplane* n, unsigned stylebits);
|
||||
void ncplane_styles_off(struct ncplane* n, unsigned stylebits);
|
||||
|
@ -74,7 +74,6 @@
|
||||
// ncplane_set_scrolling
|
||||
// ncplane_set_userptr
|
||||
// ncplane_stain
|
||||
// ncplane_styles
|
||||
// ncplane_styles_off
|
||||
// ncplane_styles_on
|
||||
// ncplane_styles_set
|
||||
|
@ -1567,10 +1567,6 @@ void ncplane_set_attr(ncplane* n, unsigned stylebits){
|
||||
n->stylemask = stylebits & NCSTYLE_MASK;
|
||||
}
|
||||
|
||||
unsigned ncplane_styles(const ncplane* n){
|
||||
return n->stylemask;
|
||||
}
|
||||
|
||||
// i hate the big allocation and two copies here, but eh what you gonna do?
|
||||
// well, for one, we don't need the huge allocation FIXME
|
||||
char* ncplane_vprintf_prep(const char* format, va_list ap){
|
||||
|
Loading…
x
Reference in New Issue
Block a user