OSCR
Open Source Cartridge Reader
Loading...
Searching...
No Matches
OSCR::UI::MenuOptions< optionCount, optionLength > Struct Template Reference

Data struct for Menu instances. More...

#include <ui/interfaces.h>

Public Member Functions

char * operator[] (size_t idx)
char const * operator[] (size_t idx) const

Public Attributes

char options [optionCount][optionLength]
OSCR::Util::clamped_value< uint8_t, 0, optionCount > count = optionCount
uint8_t const length = optionLength
uint8_t const max = optionCount

Detailed Description

template<uint8_t optionCount, uint8_t optionLength>
struct OSCR::UI::MenuOptions< optionCount, optionLength >

Data struct for Menu instances.

This struct is for holding data related to the options of a menu. The template parameters are the maximums. There will need to enough memory free to hold all of the options while the menu exists.

Do not change the count parameter to one larger than the value passed to the template.


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