Clear any highlighting. Call Refresh() after calling this to clear it on the display.
| 780 | |
| 781 | // Clear any highlighting. Call Refresh() after calling this to clear it on the display. |
| 782 | void Menu::ClearHighlighting() noexcept |
| 783 | { |
| 784 | highlightedItem = nullptr; |
| 785 | itemIsSelected = false; |
| 786 | } |
| 787 | |
| 788 | // Move the highlighted item forwards or backwards through the selectable items, setting it to nullptr if nothing is selectable |
| 789 | // On entry, n is nonzero |