

Public Member Functions | |
| MenuItemOption (const std::string &name, std::function< void(const MenuItemOption &)> on_apply) | |
| MenuItemOption (const std::string &label, const std::vector< std::string > &values, std::function< void(const MenuItemOption &)> on_apply) | |
| void | UpdateName () |
| void | Activate () override |
| void | CursorLeft (bool is_repeat) override |
| void | CursorRight (bool is_repeat) override |
Public Member Functions inherited from MenuItem | |
| MenuItem (std::string name, uint32_t width, uint32_t height) | |
| virtual bool | IsEnterable () const |
| virtual void | Draw () |
| virtual void | OnEnter () |
| virtual void | ActivateCurrentSuite () |
| virtual bool | Deactivate () |
| virtual void | CursorUp (bool is_repeat) |
| virtual void | CursorDown (bool is_repeat) |
| void | CursorUpAndActivate () |
| void | CursorDownAndActivate () |
Public Attributes | |
| std::string | label |
| std::vector< std::string > | values |
| uint32_t | current_option = 0 |
| std::function< void(const MenuItemOption &)> | on_apply |
Public Attributes inherited from MenuItem | |
| uint32_t | width |
| uint32_t | height |
| std::string | name |
| uint32_t | cursor_position {0} |
| std::vector< std::shared_ptr< MenuItem > > | submenu {} |
| std::shared_ptr< MenuItem > | active_submenu {} |
| MenuItem * | parent {nullptr} |
Additional Inherited Members | |
Static Public Member Functions inherited from MenuItem | |
| static void | SetBackgroundColor (uint32_t background_color) |
Static Public Attributes inherited from MenuItem | |
| static uint32_t | menu_background_color_ = 0xFF3E003E |
Protected Member Functions inherited from MenuItem | |
| void | PrepareDraw (uint32_t background_color) const |
Static Protected Member Functions inherited from MenuItem | |
| static void | Swap () |
|
overridevirtual |
Reimplemented from MenuItem.
|
overridevirtual |
Reimplemented from MenuItem.
|
overridevirtual |
Reimplemented from MenuItem.