![]() |
OSCR
Open Source Cartridge Reader
|
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 |
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.