1#ifndef __NCPP_SELECTOR_HH
2#define __NCPP_SELECTOR_HH
25 ensure_valid_plane (plane);
26 common_init (Utilities::to_ncplane (plane),
opts);
27 take_plane_ownership (plane);
33 ensure_valid_plane (plane);
34 common_init (Utilities::to_ncplane (plane),
opts);
35 take_plane_ownership (plane);
40 if (!is_notcurses_stopped ())
83 if (selector ==
nullptr)
84 throw init_error (
"Notcurses failed to create a new selector");
const char * previtem() const noexcept
Selector(Plane &plane, const ncselector_options *opts=nullptr)
bool offer_input(const struct ncinput *ni) const noexcept
const char * get_selected() const noexcept
Selector(Plane *plane, const ncselector_options *opts=nullptr)
int additem(const ncselector_item *item) const NOEXCEPT_MAYBE
int delitem(const char *item) const NOEXCEPT_MAYBE
static ncselector_options default_options
Plane * get_plane() const noexcept
const char * nextitem() const noexcept
const struct ncplane_options * opts
void ncselector_destroy(ncselector *n, char **item)
const char * ncselector_nextitem(ncselector *n)
bool ncselector_offer_input(ncselector *n, const ncinput *nc)
ncselector * ncselector_create(ncplane *n, const ncselector_options *opts)
int ncselector_delitem(ncselector *n, const char *item)
int ncselector_additem(ncselector *n, const struct ncselector_item *item)
const char * ncselector_selected(const ncselector *n)
const char * ncselector_previtem(ncselector *n)