TermOx
|
Public Member Functions | |
auto | append_item (Glyph_string label) -> sl::Signal< void()> & |
Append item to the end of list, displayed with label . More... | |
auto | insert_item (Glyph_string label, std::size_t index) -> sl::Signal< void()> & |
Insert item at index into the Menu_list, displayed with label . More... | |
void | remove_item (std::size_t index) |
Remove item a index in the Menu_list, no-op if index is invalid. | |
Protected Member Functions | |
auto | key_press_event (Key k) -> bool override |
auto | mouse_press_event_filter (Widget &w, Mouse const &m) -> bool override |
auto ox::Menu_list::append_item | ( | Glyph_string | label | ) | -> sl::Signal<void()>& |
Append item to the end of list, displayed with label
.
Returns a Signal ref which will be called when this item is selected.
auto ox::Menu_list::insert_item | ( | Glyph_string | label, |
std::size_t | index | ||
) | -> sl::Signal<void()>& |
Insert item at index
into the Menu_list, displayed with label
.
Returns a Signal ref which will be called when this item is selected.