man page work (#213)
parent
9849e66c43
commit
a0d00c8aa3
@ -0,0 +1,39 @@
|
||||
notcurses_ncplane(3) -- operations on notcurses planes
|
||||
======================================================
|
||||
|
||||
## SYNOPSIS
|
||||
|
||||
`#include <notcurses.h>`
|
||||
|
||||
`int ncplane_resize(struct ncplane* n, int keepy, int keepx, int keepleny, int keeplenx, int yoff, int xoff, int ylen, int xlen);`
|
||||
`int ncplane_move_yx(struct ncplane* n, int y, int x);`
|
||||
`void ncplane_yx(const struct ncplane* n, int* restrict y, int* restrict x);`
|
||||
`int ncplane_set_default(struct ncplane* ncp, const cell* c);`
|
||||
`int ncplane_default(struct ncplane* ncp, cell* c);`
|
||||
`int ncplane_destroy(struct ncplane* ncp);`
|
||||
`int ncplane_move_top(struct ncplane* n);`
|
||||
`int ncplane_move_bottom(struct ncplane* n);`
|
||||
`int ncplane_move_above(struct ncplane* n, struct ncplane* above);`
|
||||
`int ncplane_move_below(struct ncplane* n, struct ncplane* below);`
|
||||
`struct ncplane* ncplane_below(struct ncplane* n);`
|
||||
`int ncplane_at_cursor(struct ncplane* n, cell* c);`
|
||||
`int ncplane_at_yx(struct ncplane* n, int y, int x, cell* c);`
|
||||
`void* ncplane_set_userptr(struct ncplane* n, void* opaque);`
|
||||
`void* ncplane_userptr(struct ncplane* n);`
|
||||
`const void* ncplane_userptr_const(const struct ncplane* n);`
|
||||
`void ncplane_dim_yx(const struct ncplane* n, int* restrict rows, int* restrict cols);`
|
||||
`int ncplane_cursor_move_yx(struct ncplane* n, int y, int x);`
|
||||
`void ncplane_cursor_yx(const struct ncplane* n, int* restrict y, int* restrict x);`
|
||||
|
||||
## DESCRIPTION
|
||||
|
||||
|
||||
## RETURN VALUES
|
||||
|
||||
## AUTHORS
|
||||
|
||||
Nick Black <nickblack@linux.com>
|
||||
|
||||
## SEE ALSO
|
||||
|
||||
notcurses_newplane(3), notcurses_stdplane(3)
|
@ -0,0 +1,36 @@
|
||||
notcurses_stdplane(3) -- acquire the standard ncplane
|
||||
=====================================================
|
||||
|
||||
## SYNOPSIS
|
||||
|
||||
`#include <notcurses.h>`
|
||||
|
||||
`struct ncplane*
|
||||
notcurses_stdplane(struct notcurses* nc);`
|
||||
|
||||
`const struct ncplane*
|
||||
notcurses_const_stdplane(const struct notcurses* nc);`
|
||||
|
||||
## DESCRIPTION
|
||||
|
||||
`notcurses_stdplane` returns a handle to the standard ncplane for the context
|
||||
`nc. The standard plane always exists, and is always the same size as the
|
||||
screen. It is an error to call `ncplane_destroy(3)`, `ncplane_resize(3)`, or
|
||||
`ncplane_move(3)` on the standard plane, though it can be freely moved along
|
||||
the z-axis.
|
||||
|
||||
A resize event does not invalidate this reference; it can be used until
|
||||
`notcurses_stop(3)` is called on `nc`.
|
||||
|
||||
## RETURN VALUES
|
||||
|
||||
These functions cannot fail when provided a valid `struct notcurses*`. They
|
||||
will always return a valid pointer to the standard plane.
|
||||
|
||||
## AUTHORS
|
||||
|
||||
Nick Black <nickblack@linux.com>
|
||||
|
||||
## SEE ALSO
|
||||
|
||||
notcurses_ncplane(3), notcurses_stop(3)
|
Loading…
Reference in New Issue