28 const String &text()
const {
return _text; }
29 void setText(
const String &text) { _text = text; }
31 bool isEnabled()
const {
return _enabled; }
32 void setEnabled(
bool enabled) { _enabled = enabled; }
50 const String &title()
const {
return _title; }
51 void setTitle(
const String &title) { _title = title;
update(); }
58 int currentIndex()
const {
return _currentIndex; }
59 void setCurrentIndex(
int index);
61 bool isOpen()
const {
return _open; }
75 int _currentIndex = 0;
91 int currentIndex()
const {
return _currentIndex; }
101 int _currentIndex = 0;
102 bool _active =
false;
Event delivered when a key is pressed or released.
Definition keyevent.h:22
Dynamic array container wrapping std::vector.
Definition list.h:40
Base object for promeki.
Definition objectbase.h:129
ObjectBase * parent() const
Returns the parent object, if one. nullptr if none.
Definition objectbase.h:258
Encoding-aware string class with copy-on-write semantics.
Definition string.h:35
A menu action item.
Definition menu.h:22
Event delivered when a TUI widget needs to repaint.
Definition widget.h:28
#define PROMEKI_NAMESPACE_BEGIN
Starts a promeki namespace block.
Definition namespace.h:14
#define PROMEKI_NAMESPACE_END
Ends a promeki namespace block.
Definition namespace.h:19