[C++] API sync

Added:
 * NotCurses: `stats_alloc` (`notcurses_stats_alloc`)
 * Plane: `set_resizecb` (`ncplane_set_resizecb`)
pull/1133/head
Marek Habersack 4 years ago committed by Nick Black
parent a2cc5f096a
commit c8eb3875ff

@ -283,6 +283,11 @@ namespace ncpp
return error_guard (notcurses_align (availcols, align, cols), -INT_MAX);
}
ncstats* stats_alloc () const noexcept
{
return notcurses_stats_alloc (nc);
}
static bool ucs32_to_utf8 (const char32_t *ucs32, unsigned ucs32count, unsigned char *resultbuf, size_t buflen) NOEXCEPT_MAYBE
{
return error_guard (notcurses_ucs32_to_utf8 (ucs32, ucs32count, resultbuf, buflen), -1);

@ -1146,6 +1146,11 @@ namespace ncpp
return plane != nullptr;
}
void set_resizecb (int(*resizecb)(struct ncplane*)) const noexcept
{
ncplane_set_resizecb (plane, resizecb);
}
protected:
explicit Plane (ncplane *_plane, bool _is_stdplane)
: Root (nullptr),

Loading…
Cancel
Save