diff --git a/USAGE.md b/USAGE.md index 8e90ffa36..b5081b8ee 100644 --- a/USAGE.md +++ b/USAGE.md @@ -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 diff --git a/doc/man/man3/notcurses_plane.3.md b/doc/man/man3/notcurses_plane.3.md index 9b2b30002..55c239c58 100644 --- a/doc/man/man3/notcurses_plane.3.md +++ b/doc/man/man3/notcurses_plane.3.md @@ -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. diff --git a/python/src/notcurses/build_notcurses.py b/python/src/notcurses/build_notcurses.py index 5d19f36e0..d996ba532 100644 --- a/python/src/notcurses/build_notcurses.py +++ b/python/src/notcurses/build_notcurses.py @@ -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