![]() |
OSCR
Open Source Cartridge Reader
|
Abstract menu renderer class. More...
#include <ui/interfaces.h>
Public Member Functions | |
| MenuRenderer (char const *menuTitle) | |
| MenuRenderer (char const *menuTitle, uint16_t entryCount) | |
| MenuRenderer (__FlashStringHelper const *menuTitle) | |
| MenuRenderer (__FlashStringHelper const *menuTitle, uint16_t entryCount) | |
| uint16_t | getPage () |
| uint16_t | getPageCount () |
| bool | isLast () |
| uint16_t | getPageEntryCount () |
| uint16_t | getPageEntryOffset () |
| uint16_t | getEntryIndex () |
| void | gotoPage (uint16_t page) |
| void | navNext () |
| void | navPrev () |
| void | nextPage () |
| void | prevPage () |
| void | render () |
| uint16_t | select () |
Protected Member Functions | |
| void | navigate (NavDir direction) |
| void | onSelectionChange () |
| virtual bool | onConfirm ()=0 |
| virtual void | setup ()=0 |
| virtual void | onPageChange ()=0 |
Abstract menu renderer class.
Base class used for writing menus to the output. Methods need to be implemented by a UI output implementation.
| void OSCR::UI::MenuRenderer::render | ( | ) |
Menus/Prompts
| uint16_t OSCR::UI::MenuRenderer::select | ( | ) |
Prompt the user with a menu and return the index of the selection.