14 #include <boost/noncopyable.hpp> 18 namespace duds {
namespace ui {
namespace menu {
58 class MenuItem :
public std::enable_shared_from_this<MenuItem>, boost::noncopyable {
131 const std::string &
label,
133 ) : lbl(label), flgs(
flags) { }
146 const std::string &label,
149 ) : lbl(label), descr(description), flgs(
flags) { }
165 const std::string &label,
166 const std::string &description,
167 const std::string &
value,
169 ) : lbl(label), descr(description), val(value), flgs(
flags | HasValue) { }
176 lbl(mi.lbl), descr(mi.descr), val(mi.val), flgs(mi.flgs) { }
190 void label(
const std::string &l);
222 void value(
const std::string &v);
420 #endif // #ifndef MENUITEM_HPP
static constexpr BitFlags Zero()
Makes a bit flags container with all flags cleared.
static constexpr BitFlags Bit(int b)
Makes a bit flags container with a single bit set that is specified by digit number rather than value...