1#ifndef __NCPP_MULTI_SELECTOR_HH
2#define __NCPP_MULTI_SELECTOR_HH
22 ensure_valid_plane (plane);
23 common_init (Utilities::to_ncplane (plane),
opts);
24 take_plane_ownership (plane);
30 ensure_valid_plane (plane);
31 common_init (Utilities::to_ncplane (plane),
opts);
32 take_plane_ownership (plane);
37 if (!is_notcurses_stopped ())
60 if (multiselector ==
nullptr)
61 throw init_error (
"Notcurses failed to create a new multiselector");
MultiSelector(Plane &plane, const ncmultiselector_options *opts=nullptr)
bool offer_input(const struct ncinput *ni) const noexcept
int get_selected(bool *selected, unsigned count) const NOEXCEPT_MAYBE
MultiSelector(Plane *plane, const ncmultiselector_options *opts=nullptr)
static ncmultiselector_options default_options
Plane * get_plane() const noexcept
const struct ncplane_options * opts
void ncmultiselector_destroy(ncmultiselector *n)
int ncmultiselector_selected(ncmultiselector *n, bool *selected, unsigned count)
ncmultiselector * ncmultiselector_create(ncplane *n, const ncmultiselector_options *opts)
bool ncmultiselector_offer_input(ncmultiselector *n, const ncinput *nc)