Base class for all menu item types, and all menu item types must inherit from this. Every menu item has a name, which is what appears on screen for the user to select. Every menu item also needs an index to assist with selecting specific items. All menu items form a linked list associated with a menu.
More...
#include <BaseMenuItem.h>
Base class for all menu item types, and all menu item types must inherit from this. Every menu item has a name, which is what appears on screen for the user to select. Every menu item also needs an index to assist with selecting specific items. All menu items form a linked list associated with a menu.
◆ BaseMenuItem()
BaseMenuItem::BaseMenuItem |
( |
const char * |
name | ) |
|
Constructor for each MenuItem object.
- Parameters
-
name | Pointer to the text name char array to display in the menu |
◆ getIndex()
uint8_t BaseMenuItem::getIndex |
( |
| ) |
|
Get the index of this item.
- Returns
- Integer index of this menu item
◆ getName()
const char * BaseMenuItem::getName |
( |
| ) |
|
Get menu item name.
- Returns
- Pointer to the char array containing the item name
◆ getNext()
Get the next menu item.
- Returns
- Pointer to the next menu item
◆ setIndex()
void BaseMenuItem::setIndex |
( |
uint8_t |
index | ) |
|
Set the index of this menu item.
- Parameters
-
index | Integer index of this menu item |
◆ setNext()
Set the next menu item.
- Parameters
-
item | Pointer to the next menu item |
◆ _index
uint8_t BaseMenuItem::_index |
|
private |
◆ _name
const char* BaseMenuItem::_name |
|
private |
◆ _next
The documentation for this class was generated from the following files: