Public Member Functions | |
MenuItemSuite (const std::shared_ptr< TestSuite > &suite, uint32_t width, uint32_t height) | |
void | ActivateCurrentSuite () override |
![]() | |
MenuItem (std::string name, uint32_t width, uint32_t height) | |
virtual bool | IsEnterable () const |
virtual void | Draw () |
virtual void | OnEnter () |
virtual void | Activate () |
virtual bool | Deactivate () |
virtual void | CursorUp (bool is_repeat) |
virtual void | CursorDown (bool is_repeat) |
virtual void | CursorLeft (bool is_repeat) |
virtual void | CursorRight (bool is_repeat) |
void | CursorUpAndActivate () |
void | CursorDownAndActivate () |
Public Attributes | |
std::shared_ptr< TestSuite > | suite |
![]() | |
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 void | SetBackgroundColor (uint32_t background_color) |
![]() | |
static uint32_t | menu_background_color_ = 0xFF3E003E |
![]() | |
void | PrepareDraw (uint32_t background_color) const |
![]() | |
static void | Swap () |
|
overridevirtual |
Reimplemented from MenuItem.