10 #ifndef MENUACCESS_HPP 11 #define MENUACCESS_HPP 16 namespace duds {
namespace ui {
namespace menu {
42 MenuAccess(
const std::shared_ptr<Menu> &m) : menu(m.get()) {
71 const std::string &
title()
const {
78 void title(
const std::string &newTitle)
const {
79 menu->
title(newTitle);
160 void remove(std::size_t index)
const {
172 item(index)->changeVisibility(vis);
179 void hide(std::size_t index)
const {
187 void show(std::size_t index)
const {
199 item(index)->changeEnabledState(en);
227 return item(index)->toggle();
240 item(index)->changeToggle(state);
269 const std::string &
label(std::size_t index)
const {
270 return item(index)->label();
279 item(index)->label(label);
287 const std::string &
value(std::size_t index)
const {
288 return item(index)->value();
297 item(index)->value(value);
303 #endif // #ifndef MENUACCESS_HPP
move_impl move(unsigned int c, unsigned int r)
Display stream manipulator that moves the display cursor to the given location.