|
| virtual | ~IMenu ()=default |
| | Virtual destructor.
|
| |
| virtual void | Update ()=0 |
| | Update all menu elements.
|
| |
| virtual void | Render ()=0 |
| | Render all menu elements.
|
| |
| virtual void | AddButton (std::shared_ptr< IButton > button)=0 |
| | Add a button to the menu.
|
| |
| virtual void | RemoveButton (size_t index)=0 |
| | Remove a button from the menu by index.
|
| |
| virtual std::shared_ptr< IButton > | GetButton (size_t index)=0 |
| | Get a button by index.
|
| |
| virtual size_t | GetButtonCount () const =0 |
| | Get the number of buttons in the menu.
|
| |
| virtual void | Clear ()=0 |
| | Remove all buttons from the menu.
|
| |
| virtual void | SetVisible (bool visible)=0 |
| | Set menu visibility.
|
| |
| virtual bool | IsVisible () const =0 |
| | Check menu visibility.
|
| |
| virtual void | HandleKeyboardNavigation ()=0 |
| | Handle keyboard navigation input.
|
| |
| virtual void | SelectNext ()=0 |
| | Select the next navigable element.
|
| |
| virtual void | SelectPrevious ()=0 |
| | Select the previous navigable element.
|
| |
| virtual void | TriggerSelected ()=0 |
| | Trigger the currently selected element (simulate click).
|
| |
| virtual int | GetSelectedIndex () const =0 |
| | Get the index of the currently selected element.
|
| |
| virtual void | SetSelectedIndex (int index)=0 |
| | Set the selected element by index.
|
| |
Abstract interface for UI menus.
A menu is a container of UI elements (currently: buttons only). It is responsible for:
- updating contained elements (input handling)
- rendering contained elements
- controlling visibility
This interface is part of the UI library layer and is designed to be backend-agnostic.
Definition at line 29 of file IMenu.hpp.