22 ensure_valid_plane (plane);
23 common_init (Utilities::to_ncplane (plane), popts);
24 take_plane_ownership (plane);
33 ensure_valid_plane (plane);
34 common_init (Utilities::to_ncplane (plane), popts);
35 take_plane_ownership (plane);
40 if (!is_notcurses_stopped ())
49 operator ncreel const* ()
const noexcept
59 throw init_error (
"Notcurses failed to create a new tablet");
61 return NcTablet::map_tablet (t, get_notcurses_cpp ());
66 return add (&after, &before, cb, opaque);
76 return error_guard (
ncreel_del (reel, get_tablet (t)), -1);
95 return NcTablet::map_tablet (t, get_notcurses_cpp ());
104 return NcTablet::map_tablet (t, get_notcurses_cpp ());
113 return NcTablet::map_tablet (t, get_notcurses_cpp ());
129 return t->get_tablet ();
134 reel =
ncreel_create (plane, popts ==
nullptr ? &default_options : popts);
136 throw init_error (
"Notcurses failed to create a new ncreel");
NcTablet * add(NcTablet *after, NcTablet *before, tabletcb cb, void *opaque=nullptr) const
bool del(NcTablet *t) const NOEXCEPT_MAYBE
bool del(NcTablet &t) const NOEXCEPT_MAYBE
static ncreel_options default_options
NcReel(Plane &plane, const ncreel_options *popts=nullptr)
bool offer_input(const struct ncinput *nci) const NOEXCEPT_MAYBE
NcReel(Plane *plane, const ncreel_options *popts=nullptr)
bool redraw() const NOEXCEPT_MAYBE
int get_tabletcount() const noexcept
NcTablet * add(NcTablet &after, NcTablet &before, tabletcb cb, void *opaque=nullptr) const noexcept
NcTablet * get_focused() const noexcept
Plane * get_plane() const noexcept
NcTablet * prev() const noexcept
NcTablet * next() const noexcept
int(* tabletcb)(struct nctablet *t, bool drawfromtop)
nctablet * ncreel_focused(ncreel *nr)
int ncreel_del(ncreel *nr, struct nctablet *t)
bool ncreel_offer_input(ncreel *n, const ncinput *nc)
void ncreel_destroy(ncreel *nreel)
int ncreel_redraw(ncreel *nr)
nctablet * ncreel_prev(ncreel *nr)
ncreel * ncreel_create(ncplane *n, const ncreel_options *ropts)
nctablet * ncreel_next(ncreel *nr)
int ncreel_tabletcount(const ncreel *nreel)
nctablet * ncreel_add(ncreel *nr, nctablet *after, nctablet *before, tabletcb cbfxn, void *opaque)