mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-08 01:10:23 +00:00
f6975d11d5
* sync up some docs #244 * sync README and man page * notcurses_output() man page work * pull attr/channels from output functions #244 * witherworm: clean up explicit moves #244 * still more man page work * notcurses_lines, last of the man pages i think * panelreel man page #244 * debian: ruby-ronn->pandoc * debian: full multiarch compliance * debian: symbols file * pandoc: fix syntax for lexgrog * fm6.mkv: strip audio * pandoc: fix up apropos man syntax #249 * ncurses_lines man page
86 lines
2.6 KiB
Markdown
86 lines
2.6 KiB
Markdown
% notcurses_lines(3)
|
|
% nick black <nickblack@linux.com>
|
|
% v1.0.0
|
|
|
|
# NAME
|
|
|
|
notcurses_lines - operations on lines and boxes
|
|
|
|
# SYNOPSIS
|
|
|
|
**#include <notcurses.h>**
|
|
|
|
**int ncplane_hline_interp(struct ncplane* n, const cell* c, int len,
|
|
uint64_t c1, uint64_t c2);**
|
|
|
|
**static inline int
|
|
ncplane_hline(struct ncplane* n, const cell* c, int len);**
|
|
|
|
**int ncplane_vline_interp(struct ncplane* n, const cell* c, int len,
|
|
uint64_t c1, uint64_t c2);**
|
|
|
|
**static inline int
|
|
ncplane_vline(struct ncplane* n, const cell* c, int len);**
|
|
|
|
```c
|
|
#define NCBOXMASK_TOP 0x0001
|
|
#define NCBOXMASK_RIGHT 0x0002
|
|
#define NCBOXMASK_BOTTOM 0x0004
|
|
#define NCBOXMASK_LEFT 0x0008
|
|
#define NCBOXGRAD_TOP 0x0010
|
|
#define NCBOXGRAD_RIGHT 0x0020
|
|
#define NCBOXGRAD_BOTTOM 0x0040
|
|
#define NCBOXGRAD_LEFT 0x0080
|
|
#define NCBOXCORNER_MASK 0x0300
|
|
#define NCBOXCORNER_SHIFT 8u
|
|
```
|
|
|
|
**int ncplane_box(struct ncplane* n, const cell* ul, const cell* ur,
|
|
const cell* ll, const cell* lr, const cell* hline,
|
|
const cell* vline, int ystop, int xstop,
|
|
unsigned ctlword);**
|
|
|
|
**static inline int
|
|
ncplane_box_sized(struct ncplane* n, const cell* ul, const cell* ur,
|
|
const cell* ll, const cell* lr, const cell* hline,
|
|
const cell* vline, int ylen, int xlen, unsigned ctlword);**
|
|
|
|
**static inline int
|
|
cells_load_box(struct ncplane* n, uint32_t attrs, uint64_t channels,
|
|
cell* ul, cell* ur, cell* ll, cell* lr,
|
|
cell* hl, cell* vl, const char* gclusters);**
|
|
|
|
**static inline int
|
|
cells_rounded_box(struct ncplane* n, uint32_t attr, uint64_t channels,
|
|
cell* ul, cell* ur, cell* ll, cell* lr, cell* hl, cell* vl);**
|
|
|
|
**static inline int
|
|
ncplane_rounded_box(struct ncplane* n, uint32_t attr, uint64_t channels,
|
|
int ystop, int xstop, unsigned ctlword);**
|
|
|
|
**static inline int
|
|
ncplane_rounded_box_sized(struct ncplane* n, uint32_t attr, uint64_t channels,
|
|
int ylen, int xlen, unsigned ctlword);**
|
|
|
|
**static inline int
|
|
cells_double_box(struct ncplane* n, uint32_t attr, uint64_t channels,
|
|
cell* ul, cell* ur, cell* ll, cell* lr, cell* hl, cell* vl);**
|
|
|
|
**static inline int
|
|
ncplane_double_box(struct ncplane* n, uint32_t attr, uint64_t channels,
|
|
int ystop, int xstop, unsigned ctlword);**
|
|
|
|
**static inline int
|
|
ncplane_double_box_sized(struct ncplane* n, uint32_t attr, uint64_t channels,
|
|
int ylen, int xlen, unsigned ctlword);**
|
|
|
|
# DESCRIPTION
|
|
|
|
|
|
# RETURN VALUES
|
|
|
|
|
|
# SEE ALSO
|
|
|
|
**notcurses(3)**, **notcurses_cell(3)**, **notcurses_ncplane(3)**
|