TermOx
Public Member Functions | Protected Member Functions | List of all members
ox::Menu_list Class Reference
Inheritance diagram for ox::Menu_list:
ox::Passive< layout::Selecting< layout::Vertical< Menu_item > > >

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
 

Member Function Documentation

◆ append_item()

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.

◆ insert_item()

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.


The documentation for this class was generated from the following files: