mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-09 09:09:03 -04:00
ncdirect_flush: struct ncdirect is const
This commit is contained in:
parent
4ebf8f748c
commit
32d352173b
3
NEWS.md
3
NEWS.md
@ -1,6 +1,9 @@
|
||||
This document attempts to list user-visible changes and any major internal
|
||||
rearrangements of Notcurses.
|
||||
|
||||
* 1.6.17 (not yet released)
|
||||
* `ncdirect_flush()` now takes a `const struct ncdirect*`.
|
||||
|
||||
* 1.6.16 (2020-08-22)
|
||||
* `cell_simple_p()` has been removed. It is no longer a useful concept for
|
||||
user code, and its presence is indicative of a likely error.
|
||||
|
@ -37,7 +37,7 @@ API unsigned ncdirect_palette_size(const struct ncdirect* nc);
|
||||
API int ncdirect_putstr(struct ncdirect* nc, uint64_t channels, const char* utf8);
|
||||
|
||||
// Force a flush. Returns 0 on success, -1 on failure.
|
||||
API int ncdirect_flush(struct ncdirect* nc);
|
||||
API int ncdirect_flush(const struct ncdirect* nc);
|
||||
|
||||
static inline int
|
||||
ncdirect_bg_rgb(struct ncdirect* nc, unsigned r, unsigned g, unsigned b){
|
||||
|
@ -427,6 +427,7 @@ int ncdirect_cursor_up(struct ncdirect* nc, int num);
|
||||
int ncdirect_cursor_left(struct ncdirect* nc, int num);
|
||||
int ncdirect_cursor_right(struct ncdirect* nc, int num);
|
||||
int ncdirect_cursor_down(struct ncdirect* nc, int num);
|
||||
int ncdirect_flush(const struct ncdirect* nc);
|
||||
int ncdirect_hline_interp(struct ncdirect* n, const char* egc, int len, uint64_t h1, uint64_t h2);
|
||||
int ncdirect_vline_interp(struct ncdirect* n, const char* egc, int len, uint64_t h1, uint64_t h2);
|
||||
int ncdirect_box(struct ncdirect* n, uint64_t ul, uint64_t ur, uint64_t ll, uint64_t lr, const wchar_t* wchars, int ylen, int xlen, unsigned ctlword);
|
||||
|
Loading…
x
Reference in New Issue
Block a user