OSCR
Open Source Cartridge Reader
Loading...
Searching...
No Matches
OSCR::UI::IntegerTemplateMenu< T, Enable > Class Template Reference
Inheritance diagram for OSCR::UI::IntegerTemplateMenu< T, Enable >:
OSCR::UI::MenuBase OSCR::UI::MenuRenderer

Public Member Functions

 IntegerTemplateMenu (char const *menuTitle, __FlashStringHelper const *templateStr, T const *menuEntries, uint8_t entryCount)
 Create a menu interface from an array of choices using a template.
 IntegerTemplateMenu (__FlashStringHelper const *menuTitle, __FlashStringHelper const *templateStr, T const *menuEntries, uint8_t entryCount)
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
T const * 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

◆ IntegerTemplateMenu()

template<typename T, OSCR::Util::if_is_integer_t< T > Enable>
OSCR::UI::IntegerTemplateMenu< T, Enable >::IntegerTemplateMenu ( char const * menuTitle,
__FlashStringHelper const * templateStr,
T const * menuEntries,
uint8_t entryCount )

Create a menu interface from an array of choices using a template.

Parameters
menuTitleA flash string to use for the menu title.
templateStrA flash string template to use for menu options.
menuEntriesAn array of integers.
entryCountHow many entries are in menuEntries (usually sizeofarray(menuEntries)).

Member Function Documentation

◆ onPageChange()

template<typename T, OSCR::Util::if_is_integer_t< T > Enable = true>
void OSCR::UI::IntegerTemplateMenu< T, Enable >::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