diff --git a/include/notcurses/notcurses.h b/include/notcurses/notcurses.h index 2c4b83d00..28ca4d56e 100644 --- a/include/notcurses/notcurses.h +++ b/include/notcurses/notcurses.h @@ -1020,7 +1020,8 @@ API struct ncplane* ncplane_create(struct ncplane* n, const ncplane_options* nop // This function will be marked deprecated in 2.0 in favor of ncplane_create(). // It persists only for backwards compatibility. -API struct ncplane* ncplane_new(struct ncplane* n, int rows, int cols, int y, int x, void* opaque, const char* name); +API struct ncplane* ncplane_new(struct ncplane* n, int rows, int cols, int y, int x, void* opaque, const char* name) + __attribute__ ((deprecated)); // Suitable for use as a `resizecb`. This will realign the plane 'n' against its // parent, using the alignment specified at ncplane_create()-time. @@ -2528,6 +2529,10 @@ API void* nctablet_userptr(struct nctablet* t); // Access the ncplane associated with nctablet 't', if one exists. API struct ncplane* nctablet_plane(struct nctablet* t); +// Deprecated form of nctablet_plane(). +API struct ncplane* nctablet_ncplane(struct nctablet* t) + __attribute__ ((deprecated)); + // The number of columns is one fewer, as the STRLEN expressions must leave // an extra byte open in case 'ยต' (U+00B5, 0xC2 0xB5) shows up. PREFIXCOLUMNS // is the maximum number of columns used by a mult == 1000 (standard) diff --git a/src/lib/reel.c b/src/lib/reel.c index cd80543a7..bbd0d94cc 100644 --- a/src/lib/reel.c +++ b/src/lib/reel.c @@ -715,6 +715,10 @@ ncplane* nctablet_plane(nctablet* t){ return t->cbp; } +ncplane* nctablet_ncplane(nctablet* t){ // deprecated + return nctablet_plane(t); +} + ncplane* ncreel_plane(ncreel* nr){ return nr->p; }