OSCR
Open Source Cartridge Reader
Loading...
Searching...
No Matches
OSCR::UI::MenuOptionsMenu< optionCount, optionLength > Class Template Reference
Inheritance diagram for OSCR::UI::MenuOptionsMenu< optionCount, optionLength >:
OSCR::UI::MenuBase OSCR::UI::MenuRenderer

Public Member Functions

 MenuOptionsMenu (char const *menuTitle, MenuOptions< optionCount, optionLength > &menuEntries)
 Create a menu interface from an array of choices.
 MenuOptionsMenu (__FlashStringHelper const *menuTitle, MenuOptions< optionCount, optionLength > &menuEntries)
Public Member Functions inherited from OSCR::UI::MenuBase
 MenuBase (char const *menuTitle, uint8_t entryCount, MenuMode menuBaseMode, uint8_t entryLength=((uint8_t) 31))
 MenuBase (__FlashStringHelper const *menuTitle, uint8_t entryCount, MenuMode menuBaseMode, uint8_t entryLength=((uint8_t) 31))
Public Member Functions inherited from OSCR::UI::MenuRenderer
 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 onPageChange ()
Protected Member Functions inherited from OSCR::UI::MenuBase
void setup ()
bool onConfirm ()
Protected Member Functions inherited from OSCR::UI::MenuRenderer
void navigate (NavDir direction)
void onSelectionChange ()

Protected Attributes

__FlashStringHelper const * templateString
MenuOptions< optionCount, optionLength > * entries
Protected Attributes inherited from OSCR::UI::MenuBase
MenuMode menuMode
uint8_t entryLengthMax
Protected Attributes inherited from OSCR::UI::MenuRenderer
char title [30] = {}
uint16_t count
uint16_t totalPages
uint16_t pageEntriesLast
uint16_t currentPage = 1
uint16_t selection = 0
bool rendered = false
char pageEntries [((uint8_t) 32)][((uint8_t) 31)]

Constructor & Destructor Documentation

◆ MenuOptionsMenu()

template<uint8_t optionCount, uint8_t optionLength>
OSCR::UI::MenuOptionsMenu< optionCount, optionLength >::MenuOptionsMenu ( char const * menuTitle,
MenuOptions< optionCount, optionLength > & menuEntries )

Create a menu interface from an array of choices.

Parameters
menuTitleA flash string to use for the menu title.
menuEntriesAn instance of MenuOptions ready for use.

Member Function Documentation

◆ onPageChange()

template<uint8_t optionCount, uint8_t optionLength>
void OSCR::UI::MenuOptionsMenu< optionCount, optionLength >::onPageChange ( )
protectedvirtual

The documentation for this class was generated from the following files:
  • C:/Developer/Projects/OSCR/oscr-firmware/include/ui/interfaces.h
  • ui/interfaces.cpp