#include <MenuIterator.h>
A specialisation of the MenuItemPredicate that matches on a given MenuType. For example sub menus or boolean menu items. The following modes can be used
- TM_REGULAR anything matching the filter type
- TM_INVERTED anything not matching the filter type
- TM_REGULAR_NOLOCAL regular + local only not set
- TM_INVERTED_NOLOCAL inverted + local only not set
◆ MenuItemTypePredicate()
MenuItemTypePredicate::MenuItemTypePredicate |
( |
MenuType |
filterType, |
|
|
uint8_t |
mode = 0 |
|
) |
| |
|
inline |
Construct the predicate indicating the type of item to filter on
- Parameters
-
filterType | the type to filter for |
◆ matches()
bool MenuItemTypePredicate::matches |
( |
MenuItem * |
item | ) |
|
|
overridevirtual |
This predicate checks if the item matches the type in the constructor.
- Parameters
-
item | the item to be checked |
- Returns
- true if menu type is of filterType provided in the constructor
Implements MenuItemPredicate.
The documentation for this class was generated from the following files: