USAGE/python/man: update ncplane_options #1115

pull/1128/head
nick black 4 years ago committed by Nick Black
parent a92e5d97e0
commit 1e6f8e4901

@ -650,10 +650,7 @@ When an `ncplane` is no longer needed, free it with
typedef struct ncplane_options {
int y; // vertical placement relative to parent plane
union {
int x;
ncalign_e align;
} horiz; // horizontal placement relative to parent plane
int x; // horizontal placement relative to parent plane
int rows; // number of rows, must be positive
int cols; // number of columns, must be positive
void* userptr; // user curry, may be NULL

@ -14,11 +14,8 @@ notcurses_plane - operations on ncplanes
#define NCPLANE_OPTION_HORALIGNED 0x0001ull
typedef struct ncplane_options {
int y; // placement relative to parent plane
union {
int x;
ncalign_e align;
} horiz; // placement relative to parent plane
int y; // vertical placement relative to parent plane
int x; // horizontal placement relative to parent plane
int rows; // number of rows, must be positive
int cols; // number of columns, must be positive
void* userptr; // user curry, may be NULL
@ -259,8 +256,8 @@ plane when scrolling is enabled).
# RETURN VALUES
**ncplane_new**, **ncplane_bound**, **ncplane_aligned**, and **ncplane_dup**
all return a new **struct ncplane** on success, or **NULL** on failure.
**ncplane_create** and **ncplane_dup** return a new **struct ncplane** on
success, or **NULL** on failure.
**ncplane_userptr** returns the configured user pointer for the ncplane, and
cannot fail.

@ -75,10 +75,7 @@ typedef enum {
} ncalign_e;
typedef struct ncplane_options {
int y; // vertical placement relative to parent plane
union {
int x;
ncalign_e align;
} horiz; // horizontal placement relative to parent plane
int x; // horizontal placement relative to parent plane
int rows; // number of rows, must be positive
int cols; // number of columns, must be positive
void* userptr; // user curry, may be NULL

Loading…
Cancel
Save