2020-01-02 02:23:11 +00:00
|
|
|
% notcurses_stdplane(3)
|
|
|
|
% nick black <nickblack@linux.com>
|
2021-07-04 05:14:12 +00:00
|
|
|
% v2.3.8
|
2020-01-02 02:23:11 +00:00
|
|
|
|
|
|
|
# NAME
|
|
|
|
|
2020-01-04 07:37:55 +00:00
|
|
|
notcurses_stdplane - acquire the standard ncplane
|
2020-01-02 02:23:11 +00:00
|
|
|
|
|
|
|
## SYNOPSIS
|
|
|
|
|
2020-04-19 22:46:32 +00:00
|
|
|
**#include <notcurses/notcurses.h>**
|
2020-01-02 02:23:11 +00:00
|
|
|
|
2020-11-06 21:49:35 +00:00
|
|
|
**struct ncplane* notcurses_stdplane(struct notcurses* ***nc***);**
|
2020-01-02 02:23:11 +00:00
|
|
|
|
2020-11-06 21:49:35 +00:00
|
|
|
**const struct ncplane* notcurses_stdplane_const(const struct notcurses* ***nc***);**
|
2020-02-23 08:50:17 +00:00
|
|
|
|
2020-11-06 21:49:35 +00:00
|
|
|
**static inline struct ncplane* notcurses_stddim_yx(struct notcurses* ***nc***, int* restrict ***y***, int* restrict ***x***);**
|
2020-10-19 05:37:31 +00:00
|
|
|
|
2020-11-06 21:49:35 +00:00
|
|
|
**static inline const struct ncplane* notcurses_stddim_yx_const(const struct notcurses* ***nc***, int* restrict ***y***, int* restrict ***x***);**
|
2020-02-21 04:40:13 +00:00
|
|
|
|
2020-01-02 02:23:11 +00:00
|
|
|
# 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)**,
|
2020-02-21 05:13:47 +00:00
|
|
|
or **ncplane_move(3)** on the standard plane, but it can be freely moved
|
2020-01-02 02:23:11 +00:00
|
|
|
along the z-axis.
|
|
|
|
|
2021-06-24 11:13:16 +00:00
|
|
|
The standard plane's virtual cursor is initialized to its uppermost, leftmost
|
|
|
|
cell unless **NCOPTION_PRESERVE_CURSOR** is provided (see
|
|
|
|
**notcurses_init(3)**), in which case it is placed wherever the terminal's
|
|
|
|
real cursor was at startup.
|
|
|
|
|
2020-02-21 04:40:13 +00:00
|
|
|
**notcurses_stddim_yx** provides the same function, but also writes the
|
|
|
|
dimensions of the standard plane (and thus the real drawable area) into any
|
|
|
|
non-**NULL** parameters among **y** and **x**.
|
|
|
|
|
2020-02-23 08:50:17 +00:00
|
|
|
**notcurses_stdplane_const** allows a **const notcurses** to be safely used.
|
|
|
|
|
2020-02-21 04:40:13 +00:00
|
|
|
A resize event does not invalidate these references. They can be used until
|
|
|
|
**notcurses_stop(3)** is called on the associated **nc**.
|
2020-01-02 02:23:11 +00:00
|
|
|
|
|
|
|
# RETURN VALUES
|
|
|
|
|
|
|
|
These functions cannot fail when provided a valid **struct notcurses**. They
|
|
|
|
will always return a valid pointer to the standard plane.
|
|
|
|
|
|
|
|
# SEE ALSO
|
|
|
|
|
2020-02-21 04:40:13 +00:00
|
|
|
**notcurses(3)**,
|
2020-05-09 00:56:39 +00:00
|
|
|
**notcurses_plane(3)**,
|
2020-02-21 04:40:13 +00:00
|
|
|
**notcurses_stop(3)**
|